[02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:02]ConnectInit Can't connect to host [04:34:06]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:38:59]ConnectInit Can't connect to host [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:21]accept exits with 10 [05:24:21]New connection [05:24:21]New thread 3067161956 created [05:24:21]Thread 3067305316 joined [05:24:21]Waiting for new connection... [05:24:21] Sock 10.Parse request [05:24:21]Sock 10.Check first char [05:24:21]Sock 10.First char is OK [05:24:21]request: POST /json_proto HTTP/1.0 [05:24:21]Method: POST [05:24:21]URL: /json_proto [05:24:21]Method is POST - this is cgi request [05:24:21]url: /json_proto [05:24:21]query_string will be loaded in cgi processing [05:24:21]execute_cgi json_proto POST (null) [05:24:21]execute_cgi path=json_proto method=POST [05:24:21]POST find Content-Length [05:24:21]Host: 172.17.49.196:8080 [05:24:21]Content-Length: 676 [05:24:21]Content-Type: application/json [05:24:21] [05:24:21]POST finish read [05:24:21]Found Content-Length = 676 [05:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164421", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:21]execute_script... [05:24: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)164421", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:21]POST & json_proto [05:24:21]process_json_proto [05:24:21]json parsed OK: [05:24:21]protocol is kg_v1.0 [05:24:21]action value=close_receipt [05:24:21]process_action close_receipt [05:24:21]cmd_close_receipt [05:24:21]MH_GetDate [05:24:21]Write to MH i2c: F0 00 00 25 4B 5F [05:24:21]Write i2c OK [05:24:21]MH_I2C_Read... [05:24:21]Read from MH i2c: F0 [05:24:21]MH_I2C_Read... [05:24:21]Read from MH i2c: F0 09 00 [05:24:21]MH_I2C_Read... [05:24:21]Read from MH i2c: F0 09 00 25 4B 00 91 2B 1B 67 BD 3B 11 67 16 [05:24:21]GetLastDocTimeStamp 1729818920 [05:24:21]current date 1729833873 [05:24:21]FM_GetShiftState [05:24:21]SAM_PROTO_GetShiftState [05:24:21]wFMCommunicate request_size=4 [05:24:21]MH_SAM_APDU [05:24:21]CAPDU: 80 13 01 00 [05:24:21]Write to MH i2c: E2 08 00 26 4B 80 13 01 00 00 00 00 00 EE [05:24:21]Write i2c OK [05:24:21]MH_I2C_Read... [05:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:21]Read from MH i2c: E2 [05:24:21]MH_I2C_Read... [05:24:21]Read from MH i2c: E2 0E 00 [05:24:21]MH_I2C_Read... [05:24:21]Read from MH i2c: E2 0E 00 26 4B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E6 [05:24:21]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [05:24:21]wFMCommunicate OK [05:24:21]SAM_PROTO_GetShiftState done [05:24:21]FM_GetShiftState done [05:24:21]opened in 1729815177 [05:24:21]opened+sec_in_day 1729901577 [05:24:21]quantity*price = 11000 [05:24:21]sum+1 = 11001 [05:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 7 25.10.2024 05:24 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50507 ФПД: 216317357878073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T052433&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50507&fm=216317357878073&tin=02508201610067®Number=0000000000097022&sum=11000 0 [05:24:22]StoreToDocumentArchive [05:24:22]shift 493 fd 50507 [05:24:22]save to /storage/0493/doc_00050507 [05:24:22]save last doc name /storage/0493/doc_00050507 to /storage/kkm_last_doc_name [05:24:22]save OK [05:24:22]Clear old archive folders... [05:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=284 [05:24:22]tlvbuf is 00249D90 [05:24:22]SAM_PROTO_ClearQueue [05:24:22]wFMCommunicate request_size=4 [05:24:22]MH_SAM_APDU [05:24:22]CAPDU: 80 09 00 00 [05:24:22]Write to MH i2c: E2 08 00 33 4B 80 09 00 00 00 00 00 00 F0 [05:24:22]Write i2c OK [05:24:22]MH_I2C_Read... [05:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:24:22]Read from MH i2c: E2 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 03 00 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 03 00 33 4B 00 90 00 F2 [05:24:22]RAPDU: 90 00 [05:24:22]wFMCommunicate OK [05:24:22]SAM_PROTO_ClearQueue done [05:24:22]KKMCreateOFDPacket [05:24:22]OFDProtocolAddRootSTLVToBuf [05:24:22]FM_MakeSignedData [05:24:22]FM_MakeSignedData [05:24:22]SAM_PROTO_SignData [05:24:22]wFMCommunicate request_size=4 [05:24:22]MH_SAM_APDU [05:24:22]CAPDU: 80 0D 01 02 [05:24:22]Write to MH i2c: E2 08 00 34 4B 80 0D 01 02 00 00 00 00 F8 [05:24:22]Write i2c OK [05:24:22]MH_I2C_Read... [05:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:24:22]Read from MH i2c: E2 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 03 00 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 03 00 34 4B 00 90 00 F3 [05:24:22]RAPDU: 90 00 [05:24:22]wFMCommunicate OK [05:24:22]wFMCommunicate request_size=255 [05:24:22]MH_SAM_APDU [05:24:22]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 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 07 00 00 00 F4 03 04 00 91 2B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [05:24:22]Write to MH i2c: E2 02 01 35 4B 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 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 07 00 00 00 F4 03 04 00 91 2B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 2D [05:24:22]Write i2c OK [05:24:22]MH_I2C_Read... [05:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:22]Read from MH i2c: E2 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 03 00 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 03 00 35 4B 00 90 00 F4 [05:24:22]RAPDU: 90 00 [05:24:22]wFMCommunicate OK [05:24:22]wFMCommunicate request_size=43 [05:24:22]MH_SAM_APDU [05:24:22]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4B C5 00 00 35 04 06 00 C4 BD 4F 46 6B 39 [05:24:22]Write to MH i2c: E2 2E 00 36 4B 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4B C5 00 00 35 04 06 00 C4 BD 4F 46 6B 39 00 00 A1 [05:24:22]Write i2c OK [05:24:22]MH_I2C_Read... [05:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:22]Read from MH i2c: E2 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 03 00 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 03 00 36 4B 00 90 00 F5 [05:24:22]RAPDU: 90 00 [05:24:22]wFMCommunicate OK [05:24:22]wFMCommunicate request_size=4 [05:24:22]MH_SAM_APDU [05:24:22]CAPDU: 80 0D 03 02 [05:24:22]Write to MH i2c: E2 08 00 37 4B 80 0D 03 02 00 00 00 00 FD [05:24:22]Write i2c OK [05:24:22]MH_I2C_Read... [05:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:24:22]Read from MH i2c: E2 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 0B 00 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 0B 00 37 4B 00 33 5D E6 4D 57 B8 92 DD 90 00 3F [05:24:22]RAPDU: 33 5D E6 4D 57 B8 92 DD 90 00 [05:24:22]wFMCommunicate OK [05:24:22]SAM_PROTO_SignData done [05:24:22]FM_MakeSignedData done [05:24:22]CreateOFDProtocolMessage [05:24:22]wFMCommunicate request_size=4 [05:24:22]MH_SAM_APDU [05:24:22]CAPDU: 80 11 00 00 [05:24:22]Write to MH i2c: E2 08 00 38 4B 80 11 00 00 00 00 00 00 FD [05:24:22]Write i2c OK [05:24:22]MH_I2C_Read... [05:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:22]Read from MH i2c: E2 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 17 00 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: E2 17 00 38 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 44 [05:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [05:24:22]wFMCommunicate OK [05:24:22]CreateOFDProtocolMessage done [05:24:22]OFDSenderStorePacket 50507 [05:24:22]StoreOFDPacket docnum=50507 [05:24:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 7D FA 28 01 A9 92 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 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 07 00 00 00 F4 03 04 00 91 2B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4B C5 00 00 35 04 06 00 C4 BD 4F 46 6B 39 33 5D E6 4D 57 B8 92 DD [05:24:22]CheckFolder [05:24:22]dirname=/storage/ofd_packets [05:24:22]CheckFolder done [05:24:22]ProducePacketName [05:24:22]name=ofd_packets/00050507 [05:24:22]NVStorageSaveData ofd_packets/00050507 [05:24:22]File name is /storage/ofd_packets/00050507 [05:24:22]Write 334 bytes [05:24:22]NVStorageSaveData done [05:24:22]OFDSenderStorePacket done [05:24:22]KKMCreateOFDPacket done [05:24:22]NVStorageSaveData kkm_last_timestamp [05:24:22]File name is /storage/kkm_last_timestamp [05:24:22]Write 4 bytes [05:24:22]NVStorageSaveData done [05:24:22]ExternCall_PrintAddStr [05:24:22]wPrintStart [05:24:22]Write to MH i2c: 01 00 00 39 4B 84 [05:24:22]Write i2c OK [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: 01 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: 01 07 00 [05:24:22]MH_I2C_Read... [05:24:22]Read from MH i2c: 01 07 00 39 4B 00 00 00 00 00 FF 0F 99 [05:24:22]RasterBufferAndPrint [05:24:22]line Счет N : (3)164421 [05:24:22]line ИНН: 02508201610067 [05:24:22]line Контрольно-Кассовый Чек [05:24:22]line ПРОДАЖА [05:24:22]line Товар: 4700003241276 [05:24:22]line Напиток Молочный ТАН 1л [05:24:22]line 1.000 * 110.00 [05:24:22]line = 110.00 [05:24:22]line НДС 12% НСП 1% [05:24:22]line > о реализуемом товаре [05:24:22]line ИТОГО: 110.00 [05:24:22]line НСП 1% : 0.97 [05:24:22]line НДС 12% : 11.68 [05:24:22]line Наличными: 110.00 [05:24:22]line Безнал.: 0.00 [05:24:22]line Место: АЗС № 80 "Партнер Нефть" [05:24:22]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [05:24:22]line СНО: Общий режим [05:24:22]line Чек 7 25.10.2024 05:24 [05:24:22]line Смена: 493 ФФД: 1.0 [05:24:22]line ЗНМ: 0300000090 [05:24:22]line РНМ: 0000000000097022 [05:24:22]line Версия ККМ: 001 [05:24:22]line ФМ: 0000000000875000 [05:24:22]line ФД: 50507 [05:24:22]line ФПД: 216317357878073 [05:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T052433&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50507&fm=216317357878073&tin=02508201610067®Number=0000000000097022&sum=11000 [05:24:23]OFD Sender: Processing packet 50507 [packets to send 7, broken 6] [05:24:23]ProducePacketName [05:24:23]name=ofd_packets/00050507 [05:24:23]OFD Sender: To server: pG, [05:24:23]CommunicateWithHost lk.salyk.kg:30040 [05:24:23]ConnectInit lk.salyk.kg [05:24:23]line 0 [05:24:23]written 0, free lines is 4095 [05:24:23]Connected sock=9 [05:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 7D FA 28 01 A9 92 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 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 07 00 00 00 F4 03 04 00 91 2B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4B C5 00 00 35 04 06 00 C4 BD 4F 46 6B 39 33 5D E6 4D 57 B8 92 DD [05:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 05 E1 47 00 96 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4B C5 00 00 F4 03 04 00 23 D7 1A 67 B6 04 01 00 00 05 5A 16 E6 BF 2D EF 80 [05:24:23]CommunicateWithHost err = 0 [05:24:23]CheckOFDResponse [05:24:23]1017 (14) - 77093643461234 [05:24:23]1041 (16) - 0000000000875000 [05:24:23]1040 (4) - 50507 [05:24:23]1012 (4) - 24.10.2024 23:24 [05:24:23]1206 (1) - 0 [05:24:23]OFD Sender: Remove packet 50507 [05:24:23]ProducePacketName [05:24:23]name=ofd_packets/00050507 [05:24:23]NVStorageDeleteData [05:24:23]Write to MH i2c: 01 00 00 61 4B AC [05:24:23]Write i2c OK [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: 01 [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: 01 07 00 [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: 01 07 00 61 4B 00 00 00 00 00 1B 0D DB [05:24:23]RasterBufferAndPrint [05:24:23]line [05:24:23]line [05:24:23]line [05:24:23]line [05:24:23]line [05:24:23]written 0, free lines is 3361 [05:24:23]process_action close_receipt done [05:24:23]requested_data is exist [05:24:23]produce_requested_data [05:24:23]requested_item fm.sn is exist - process it [05:24:23]wFMCommunicate request_size=4 [05:24:23]MH_SAM_APDU [05:24:23]CAPDU: 80 11 00 00 [05:24:23]Write to MH i2c: E2 08 00 68 4B 80 11 00 00 00 00 00 00 2D [05:24:23]Write i2c OK [05:24:23]MH_I2C_Read... [05:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:23]Read from MH i2c: E2 [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: E2 17 00 [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: E2 17 00 68 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 74 [05:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [05:24:23]wFMCommunicate OK [05:24:23]requested_item fd.num is exist - process it [05:24:23]SAM_PROTO_GetFieldsCounters [05:24:23]wFMCommunicate request_size=4 [05:24:23]MH_SAM_APDU [05:24:23]CAPDU: 80 13 00 00 [05:24:23]Write to MH i2c: E2 08 00 69 4B 80 13 00 00 00 00 00 00 30 [05:24:23]Write i2c OK [05:24:23]MH_I2C_Read... [05:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:24:23]Read from MH i2c: E2 [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: E2 62 00 [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: E2 62 00 69 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [05:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:24:23]wFMCommunicate OK [05:24:23]SAM_PROTO_GetFieldsCounters done [05:24:23]requested_item shift.num is exist - process it [05:24:23]requested_item shift.opened is exist - process it [05:24:23]req_shift_opened [05:24:23]FM_GetShiftState [05:24:23]SAM_PROTO_GetShiftState [05:24:23]wFMCommunicate request_size=4 [05:24:23]MH_SAM_APDU [05:24:23]CAPDU: 80 13 01 00 [05:24:23]Write to MH i2c: E2 08 00 6A 4B 80 13 01 00 00 00 00 00 32 [05:24:23]Write i2c OK [05:24:23]MH_I2C_Read... [05:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:23]Read from MH i2c: E2 [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: E2 0E 00 [05:24:23]MH_I2C_Read... [05:24:23]Read from MH i2c: E2 0E 00 6A 4B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2A [05:24:23]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [05:24:23]wFMCommunicate OK [05:24:23]SAM_PROTO_GetShiftState done [05:24:23]FM_GetShiftState done [05:24:23]req_shift_opened done [05:24:23]requested_item shift.open_date is exist - process it [05:24:23]req_shift_open_date [05:24:23]req_shift_open_date done [05:24:23]produce_requested_data done [05:24:23]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50507,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [05:24:23]process_action_free close_receipt [05:24:23]json_value_free [05:24:23]json_value_free done [05:24:23]process_json_proto returns [05:24:23]Send response to host [05:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50507,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [05:24:23]free response buf [05:24:24]execute_script done [05:24:24]execute_script returns [05:24:24]free content buf [05:24:24]Sock 10.Close socket [05:24:24]Sock 10.Thread stoped [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:36]accept exits with 7 [05:24:36]New connection [05:24:36]New thread 3067305316 created [05:24:36]Thread 3067161956 joined [05:24:36]Waiting for new connection... [05:24:36] Sock 7.Parse request [05:24:36]Sock 7.Check first char [05:24:36]Sock 7.First char is OK [05:24:36]request: POST /json_proto HTTP/1.0 [05:24:36]Method: POST [05:24:36]URL: /json_proto [05:24:36]Method is POST - this is cgi request [05:24:36]url: /json_proto [05:24:36]query_string will be loaded in cgi processing [05:24:36]execute_cgi json_proto POST (null) [05:24:36]execute_cgi path=json_proto method=POST [05:24:36]POST find Content-Length [05:24:36]Host: 172.17.49.196:8080 [05:24:36]Content-Length: 674 [05:24:36]Content-Type: application/json [05:24:36] [05:24:36]POST finish read [05:24:36]Found Content-Length = 674 [05:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164422", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:36]execute_script... [05:24: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)164422", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:36]POST & json_proto [05:24:36]process_json_proto [05:24:36]json parsed OK: [05:24:36]protocol is kg_v1.0 [05:24:36]action value=close_receipt [05:24:36]process_action close_receipt [05:24:36]cmd_close_receipt [05:24:36]MH_GetDate [05:24:36]Write to MH i2c: F0 00 00 6B 4B A5 [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: F0 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: F0 09 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: F0 09 00 6B 4B 00 A0 2B 1B 67 BD 3B 11 67 6B [05:24:36]GetLastDocTimeStamp 1729833873 [05:24:36]current date 1729833888 [05:24:36]FM_GetShiftState [05:24:36]SAM_PROTO_GetShiftState [05:24:36]wFMCommunicate request_size=4 [05:24:36]MH_SAM_APDU [05:24:36]CAPDU: 80 13 01 00 [05:24:36]Write to MH i2c: E2 08 00 6C 4B 80 13 01 00 00 00 00 00 34 [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:36]Read from MH i2c: E2 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 0E 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 0E 00 6C 4B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2C [05:24:36]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [05:24:36]wFMCommunicate OK [05:24:36]SAM_PROTO_GetShiftState done [05:24:36]FM_GetShiftState done [05:24:36]opened in 1729815177 [05:24:36]opened+sec_in_day 1729901577 [05:24:36]quantity*price = 7500 [05:24:36]sum+1 = 7501 [05:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 8 25.10.2024 05:24 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50508 ФПД: 57026108270568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T052448&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50508&fm=57026108270568&tin=02508201610067®Number=0000000000097022&sum=7500 0 [05:24:37]StoreToDocumentArchive [05:24:37]shift 493 fd 50508 [05:24:37]save to /storage/0493/doc_00050508 [05:24:37]save last doc name /storage/0493/doc_00050508 to /storage/kkm_last_doc_name [05:24:37]save OK [05:24:37]Clear old archive folders... [05:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=289 [05:24:37]tlvbuf is 0020F040 [05:24:37]SAM_PROTO_ClearQueue [05:24:37]wFMCommunicate request_size=4 [05:24:37]MH_SAM_APDU [05:24:37]CAPDU: 80 09 00 00 [05:24:37]Write to MH i2c: E2 08 00 79 4B 80 09 00 00 00 00 00 00 36 [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:24:37]Read from MH i2c: E2 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 03 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 03 00 79 4B 00 90 00 38 [05:24:37]RAPDU: 90 00 [05:24:37]wFMCommunicate OK [05:24:37]SAM_PROTO_ClearQueue done [05:24:37]KKMCreateOFDPacket [05:24:37]OFDProtocolAddRootSTLVToBuf [05:24:37]FM_MakeSignedData [05:24:37]FM_MakeSignedData [05:24:37]SAM_PROTO_SignData [05:24:37]wFMCommunicate request_size=4 [05:24:37]MH_SAM_APDU [05:24:37]CAPDU: 80 0D 01 02 [05:24:37]Write to MH i2c: E2 08 00 7A 4B 80 0D 01 02 00 00 00 00 3E [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:24:37]Read from MH i2c: E2 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 03 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 03 00 7A 4B 00 90 00 39 [05:24:37]RAPDU: 90 00 [05:24:37]wFMCommunicate OK [05:24:37]wFMCommunicate request_size=255 [05:24:37]MH_SAM_APDU [05:24:37]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A0 2B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [05:24:37]Write to MH i2c: E2 02 01 7B 4B 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A0 2B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 E8 [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:37]Read from MH i2c: E2 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 03 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 03 00 7B 4B 00 90 00 3A [05:24:37]RAPDU: 90 00 [05:24:37]wFMCommunicate OK [05:24:37]wFMCommunicate request_size=48 [05:24:37]MH_SAM_APDU [05:24:37]CAPDU: 80 0D 02 02 2B 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4C C5 00 00 35 04 06 00 33 DD 6C ED 27 E8 [05:24:37]Write to MH i2c: E2 33 00 7C 4B 80 0D 02 02 2B 00 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4C C5 00 00 35 04 06 00 33 DD 6C ED 27 E8 00 00 B4 [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:37]Read from MH i2c: E2 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 03 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 03 00 7C 4B 00 90 00 3B [05:24:37]RAPDU: 90 00 [05:24:37]wFMCommunicate OK [05:24:37]wFMCommunicate request_size=4 [05:24:37]MH_SAM_APDU [05:24:37]CAPDU: 80 0D 03 02 [05:24:37]Write to MH i2c: E2 08 00 7D 4B 80 0D 03 02 00 00 00 00 43 [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:24:37]Read from MH i2c: E2 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 0B 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 0B 00 7D 4B 00 45 33 B1 69 83 48 FF F9 90 00 99 [05:24:37]RAPDU: 45 33 B1 69 83 48 FF F9 90 00 [05:24:37]wFMCommunicate OK [05:24:37]SAM_PROTO_SignData done [05:24:37]FM_MakeSignedData done [05:24:37]CreateOFDProtocolMessage [05:24:37]wFMCommunicate request_size=4 [05:24:37]MH_SAM_APDU [05:24:37]CAPDU: 80 11 00 00 [05:24:37]Write to MH i2c: E2 08 00 7E 4B 80 11 00 00 00 00 00 00 43 [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:37]Read from MH i2c: E2 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 17 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: E2 17 00 7E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8A [05:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [05:24:37]wFMCommunicate OK [05:24:37]CreateOFDProtocolMessage done [05:24:37]OFDSenderStorePacket 50508 [05:24:37]StoreOFDPacket docnum=50508 [05:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 01 00 00 2A 9D 2D 01 21 9B 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A0 2B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4C C5 00 00 35 04 06 00 33 DD 6C ED 27 E8 45 33 B1 69 83 48 FF F9 [05:24:37]CheckFolder [05:24:37]dirname=/storage/ofd_packets [05:24:37]CheckFolder done [05:24:37]ProducePacketName [05:24:37]name=ofd_packets/00050508 [05:24:37]NVStorageSaveData ofd_packets/00050508 [05:24:37]File name is /storage/ofd_packets/00050508 [05:24:37]Write 339 bytes [05:24:37]NVStorageSaveData done [05:24:37]OFDSenderStorePacket done [05:24:37]KKMCreateOFDPacket done [05:24:37]NVStorageSaveData kkm_last_timestamp [05:24:37]File name is /storage/kkm_last_timestamp [05:24:37]Write 4 bytes [05:24:37]NVStorageSaveData done [05:24:37]ExternCall_PrintAddStr [05:24:37]wPrintStart [05:24:37]Write to MH i2c: 01 00 00 7F 4B CA [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: 01 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: 01 07 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: 01 07 00 7F 4B 00 00 00 00 00 FF 0F DF [05:24:37]RasterBufferAndPrint [05:24:37]line Счет N : (3)164422 [05:24:37]line ИНН: 02508201610067 [05:24:37]line Контрольно-Кассовый Чек [05:24:37]line ПРОДАЖА [05:24:37]line Товар: 5449000189325 [05:24:37]line Холодный чай Fuse персик 0,5л [05:24:37]line 1.000 * 75.00 [05:24:37]line = 75.00 [05:24:37]line НДС 12% НСП 1% [05:24:37]line > о реализуемом товаре [05:24:37]line ИТОГО: 75.00 [05:24:37]line НСП 1% : 0.66 [05:24:37]line НДС 12% : 7.96 [05:24:37]line Наличными: 75.00 [05:24:37]line Безнал.: 0.00 [05:24:37]line Место: АЗС № 80 "Партнер Нефть" [05:24:37]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [05:24:37]line СНО: Общий режим [05:24:37]line Чек 8 25.10.2024 05:24 [05:24:37]line Смена: 493 ФФД: 1.0 [05:24:37]line ЗНМ: 0300000090 [05:24:37]line РНМ: 0000000000097022 [05:24:37]line Версия ККМ: 001 [05:24:37]line ФМ: 0000000000875000 [05:24:37]line ФД: 50508 [05:24:37]line ФПД: 57026108270568 [05:24:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T052448&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50508&fm=57026108270568&tin=02508201610067®Number=0000000000097022&sum=7500 [05:24:38]line 0 [05:24:38]OFD Sender: Processing packet 50508 [packets to send 7, broken 6] [05:24:38]ProducePacketName [05:24:38]name=ofd_packets/00050508 [05:24:38]OFD Sender: To server: pG, [05:24:38]CommunicateWithHost lk.salyk.kg:30040 [05:24:38]ConnectInit lk.salyk.kg [05:24:38]written 0, free lines is 4095 [05:24:38]Connected sock=10 [05:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 01 00 00 2A 9D 2D 01 21 9B 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A0 2B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4C C5 00 00 35 04 06 00 33 DD 6C ED 27 E8 45 33 B1 69 83 48 FF F9 [05:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 1F 61 47 00 BB 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4C C5 00 00 F4 03 04 00 32 D7 1A 67 B6 04 01 00 00 96 20 00 19 5B FA 72 AC [05:24:38]CommunicateWithHost err = 0 [05:24:38]CheckOFDResponse [05:24:38]1017 (14) - 77093643461234 [05:24:38]1041 (16) - 0000000000875000 [05:24:38]1040 (4) - 50508 [05:24:38]1012 (4) - 24.10.2024 23:24 [05:24:38]1206 (1) - 0 [05:24:38]OFD Sender: Remove packet 50508 [05:24:38]ProducePacketName [05:24:38]name=ofd_packets/00050508 [05:24:38]NVStorageDeleteData [05:24:38]Write to MH i2c: 01 00 00 A8 4B F3 [05:24:38]Write i2c OK [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: 01 [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: 01 07 00 [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: 01 07 00 A8 4B 00 00 00 00 00 F5 0C FB [05:24:38]RasterBufferAndPrint [05:24:38]line [05:24:38]line [05:24:38]line [05:24:38]line [05:24:38]line [05:24:38]written 0, free lines is 3327 [05:24:38]process_action close_receipt done [05:24:38]requested_data is exist [05:24:38]produce_requested_data [05:24:38]requested_item fm.sn is exist - process it [05:24:38]wFMCommunicate request_size=4 [05:24:38]MH_SAM_APDU [05:24:38]CAPDU: 80 11 00 00 [05:24:38]Write to MH i2c: E2 08 00 AF 4B 80 11 00 00 00 00 00 00 74 [05:24:38]Write i2c OK [05:24:38]MH_I2C_Read... [05:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:38]Read from MH i2c: E2 [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: E2 17 00 [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: E2 17 00 AF 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BB [05:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [05:24:38]wFMCommunicate OK [05:24:38]requested_item fd.num is exist - process it [05:24:38]SAM_PROTO_GetFieldsCounters [05:24:38]wFMCommunicate request_size=4 [05:24:38]MH_SAM_APDU [05:24:38]CAPDU: 80 13 00 00 [05:24:38]Write to MH i2c: E2 08 00 B0 4B 80 13 00 00 00 00 00 00 77 [05:24:38]Write i2c OK [05:24:38]MH_I2C_Read... [05:24:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:24:38]Read from MH i2c: E2 [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: E2 62 00 [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: E2 62 00 B0 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [05:24:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:24:38]wFMCommunicate OK [05:24:38]SAM_PROTO_GetFieldsCounters done [05:24:38]requested_item shift.num is exist - process it [05:24:38]requested_item shift.opened is exist - process it [05:24:38]req_shift_opened [05:24:38]FM_GetShiftState [05:24:38]SAM_PROTO_GetShiftState [05:24:38]wFMCommunicate request_size=4 [05:24:38]MH_SAM_APDU [05:24:38]CAPDU: 80 13 01 00 [05:24:38]Write to MH i2c: E2 08 00 B1 4B 80 13 01 00 00 00 00 00 79 [05:24:38]Write i2c OK [05:24:38]MH_I2C_Read... [05:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:38]Read from MH i2c: E2 [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: E2 0E 00 [05:24:38]MH_I2C_Read... [05:24:38]Read from MH i2c: E2 0E 00 B1 4B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 71 [05:24:38]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [05:24:38]wFMCommunicate OK [05:24:38]SAM_PROTO_GetShiftState done [05:24:38]FM_GetShiftState done [05:24:38]req_shift_opened done [05:24:38]requested_item shift.open_date is exist - process it [05:24:38]req_shift_open_date [05:24:38]req_shift_open_date done [05:24:38]produce_requested_data done [05:24:38]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50508,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [05:24:38]process_action_free close_receipt [05:24:38]json_value_free [05:24:38]json_value_free done [05:24:38]process_json_proto returns [05:24:38]Send response to host [05:24:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50508,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [05:24:38]free response buf [05:24:38]execute_script done [05:24:38]execute_script returns [05:24:38]free content buf [05:24:38]Sock 7.Close socket [05:24:38]Sock 7.Thread stoped [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:22]accept exits with 9 [06:07:22]New connection [06:07:22]New thread 3067161956 created [06:07:22]Thread 3067305316 joined [06:07:22]Waiting for new connection... [06:07:22] Sock 9.Parse request [06:07:22]Sock 9.Check first char [06:07:22]Sock 9.First char is OK [06:07:22]request: POST /json_proto HTTP/1.0 [06:07:22]Method: POST [06:07:22]URL: /json_proto [06:07:22]Method is POST - this is cgi request [06:07:22]url: /json_proto [06:07:22]query_string will be loaded in cgi processing [06:07:22]execute_cgi json_proto POST (null) [06:07:22]execute_cgi path=json_proto method=POST [06:07:22]POST find Content-Length [06:07:22]Host: 172.17.49.196:8080 [06:07:22]Content-Length: 939 [06:07:22]Content-Type: application/json [06:07:22] [06:07:22]POST finish read [06:07:22]Found Content-Length = 939 [06:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164423", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.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" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:22]execute_script... [06:07:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164423", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.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" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:22]POST & json_proto [06:07:22]process_json_proto [06:07:22]json parsed OK: [06:07:22]protocol is kg_v1.0 [06:07:22]action value=close_receipt [06:07:22]process_action close_receipt [06:07:22]cmd_close_receipt [06:07:22]MH_GetDate [06:07:22]Write to MH i2c: F0 00 00 B2 4B EC [06:07:22]Write i2c OK [06:07:22]MH_I2C_Read... [06:07:22]Read from MH i2c: F0 [06:07:22]MH_I2C_Read... [06:07:22]Read from MH i2c: F0 09 00 [06:07:22]MH_I2C_Read... [06:07:22]Read from MH i2c: F0 09 00 B2 4B 00 A6 35 1B 67 BD 3B 11 67 C2 [06:07:22]GetLastDocTimeStamp 1729833888 [06:07:22]current date 1729836454 [06:07:22]FM_GetShiftState [06:07:22]SAM_PROTO_GetShiftState [06:07:22]wFMCommunicate request_size=4 [06:07:22]MH_SAM_APDU [06:07:22]CAPDU: 80 13 01 00 [06:07:22]Write to MH i2c: E2 08 00 B3 4B 80 13 01 00 00 00 00 00 7B [06:07:22]Write i2c OK [06:07:22]MH_I2C_Read... [06:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:22]Read from MH i2c: E2 [06:07:22]MH_I2C_Read... [06:07:22]Read from MH i2c: E2 0E 00 [06:07:22]MH_I2C_Read... [06:07:22]Read from MH i2c: E2 0E 00 B3 4B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 73 [06:07:22]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:07:22]wFMCommunicate OK [06:07:22]SAM_PROTO_GetShiftState done [06:07:22]FM_GetShiftState done [06:07:22]opened in 1729815177 [06:07:22]opened+sec_in_day 1729901577 [06:07:22]quantity*price = 7900 [06:07:22]sum+1 = 7901 [06:07:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 129.00 НСП 1% : 1.14 НДС 12% : 13.70 Наличными: 129.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 9 25.10.2024 06:07 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50509 ФПД: 157680647871017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T060734&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50509&fm=157680647871017&tin=02508201610067®Number=0000000000097022&sum=12900 0 [06:07:23]StoreToDocumentArchive [06:07:23]shift 493 fd 50509 [06:07:23]save to /storage/0493/doc_00050509 [06:07:23]save last doc name /storage/0493/doc_00050509 to /storage/kkm_last_doc_name [06:07:23]save OK [06:07:23]Clear old archive folders... [06:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=389 [06:07:23]tlvbuf is 0020EEB0 [06:07:23]SAM_PROTO_ClearQueue [06:07:23]wFMCommunicate request_size=4 [06:07:23]MH_SAM_APDU [06:07:23]CAPDU: 80 09 00 00 [06:07:23]Write to MH i2c: E2 08 00 C0 4B 80 09 00 00 00 00 00 00 7D [06:07:23]Write i2c OK [06:07:23]MH_I2C_Read... [06:07:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:23]Read from MH i2c: E2 [06:07:23]MH_I2C_Read... [06:07:23]Read from MH i2c: E2 03 00 [06:07:23]MH_I2C_Read... [06:07:23]Read from MH i2c: E2 03 00 C0 4B 00 90 00 7F [06:07:23]RAPDU: 90 00 [06:07:23]wFMCommunicate OK [06:07:23]SAM_PROTO_ClearQueue done [06:07:23]KKMCreateOFDPacket [06:07:23]OFDProtocolAddRootSTLVToBuf [06:07:23]FM_MakeSignedData [06:07:23]FM_MakeSignedData [06:07:23]SAM_PROTO_SignData [06:07:23]wFMCommunicate request_size=4 [06:07:23]MH_SAM_APDU [06:07:23]CAPDU: 80 0D 01 02 [06:07:23]Write to MH i2c: E2 08 00 C1 4B 80 0D 01 02 00 00 00 00 85 [06:07:23]Write i2c OK [06:07:23]MH_I2C_Read... [06:07:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:23]Read from MH i2c: E2 [06:07:23]MH_I2C_Read... [06:07:23]Read from MH i2c: E2 03 00 [06:07:23]MH_I2C_Read... [06:07:23]Read from MH i2c: E2 03 00 C1 4B 00 90 00 80 [06:07:23]RAPDU: 90 00 [06:07:23]wFMCommunicate OK [06:07:23]wFMCommunicate request_size=255 [06:07:23]MH_SAM_APDU [06:07:23]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [06:07:23]Write to MH i2c: E2 02 01 C2 4B 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 EF [06:07:23]Write i2c OK [06:07:23]MH_I2C_Read... [06:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:23]Read from MH i2c: E2 [06:07:23]MH_I2C_Read... [06:07:23]Read from MH i2c: E2 03 00 [06:07:23]MH_I2C_Read... [06:07:23]Read from MH i2c: E2 03 00 C2 4B 00 90 00 81 [06:07:23]RAPDU: 90 00 [06:07:23]wFMCommunicate OK [06:07:23]wFMCommunicate request_size=148 [06:07:23]MH_SAM_APDU [06:07:23]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 09 00 00 00 F4 03 04 00 A6 35 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4D C5 00 00 35 04 06 00 8F 68 E3 01 1A 29 [06:07:23]Write to MH i2c: E2 97 00 C3 4B 80 0D 02 02 8F 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 09 00 00 00 F4 03 04 00 A6 35 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4D C5 00 00 35 04 06 00 8F 68 E3 01 1A 29 00 00 AE [06:07:23]Write i2c OK [06:07:23]MH_I2C_Read... [06:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:24]Read from MH i2c: E2 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 03 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 03 00 C3 4B 00 90 00 82 [06:07:24]RAPDU: 90 00 [06:07:24]wFMCommunicate OK [06:07:24]wFMCommunicate request_size=4 [06:07:24]MH_SAM_APDU [06:07:24]CAPDU: 80 0D 03 02 [06:07:24]Write to MH i2c: E2 08 00 C4 4B 80 0D 03 02 00 00 00 00 8A [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:24]Read from MH i2c: E2 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 0B 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 0B 00 C4 4B 00 C9 02 09 C4 8C 22 6F 41 90 00 81 [06:07:24]RAPDU: C9 02 09 C4 8C 22 6F 41 90 00 [06:07:24]wFMCommunicate OK [06:07:24]SAM_PROTO_SignData done [06:07:24]FM_MakeSignedData done [06:07:24]CreateOFDProtocolMessage [06:07:24]wFMCommunicate request_size=4 [06:07:24]MH_SAM_APDU [06:07:24]CAPDU: 80 11 00 00 [06:07:24]Write to MH i2c: E2 08 00 C5 4B 80 11 00 00 00 00 00 00 8A [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:24]Read from MH i2c: E2 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 17 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 17 00 C5 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D1 [06:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:07:24]wFMCommunicate OK [06:07:24]CreateOFDProtocolMessage done [06:07:24]OFDSenderStorePacket 50509 [06:07:24]StoreOFDPacket docnum=50509 [06:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 99 01 00 00 E5 64 91 01 F0 07 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 09 00 00 00 F4 03 04 00 A6 35 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4D C5 00 00 35 04 06 00 8F 68 E3 01 1A 29 C9 02 09 C4 8C 22 6F 41 [06:07:24]CheckFolder [06:07:24]dirname=/storage/ofd_packets [06:07:24]CheckFolder done [06:07:24]ProducePacketName [06:07:24]name=ofd_packets/00050509 [06:07:24]NVStorageSaveData ofd_packets/00050509 [06:07:24]File name is /storage/ofd_packets/00050509 [06:07:24]Write 439 bytes [06:07:24]NVStorageSaveData done [06:07:24]OFDSenderStorePacket done [06:07:24]KKMCreateOFDPacket done [06:07:24]NVStorageSaveData kkm_last_timestamp [06:07:24]OFD Sender: Processing packet 50509 [packets to send 7, broken 6] [06:07:24]ProducePacketName [06:07:24]name=ofd_packets/00050509 [06:07:24]OFD Sender: To server: pG, [06:07:24]CommunicateWithHost lk.salyk.kg:30040 [06:07:24]ConnectInit lk.salyk.kg [06:07:24]File name is /storage/kkm_last_timestamp [06:07:24]Write 4 bytes [06:07:24]NVStorageSaveData done [06:07:24]ExternCall_PrintAddStr [06:07:24]wPrintStart [06:07:24]Write to MH i2c: 01 00 00 C6 4B 11 [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: 01 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: 01 07 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: 01 07 00 C6 4B 00 00 00 00 00 FF 0F 26 [06:07:24]RasterBufferAndPrint [06:07:24]line Счет N : (3)164423 [06:07:24]line ИНН: 02508201610067 [06:07:24]line Контрольно-Кассовый Чек [06:07:24]line ПРОДАЖА [06:07:24]line Товар: 4700000310258 [06:07:24]line Напиток Лимонад Келечек 1л [06:07:24]line 1.000 * 79.00 [06:07:24]line = 79.00 [06:07:24]line НДС 12% НСП 1% [06:07:24]line > о реализуемом товаре [06:07:24]line Товар: 4700000160358 [06:07:24]line Вода Легенда 1л [06:07:24]line 1.000 * 50.00 [06:07:24]line = 50.00 [06:07:24]line НДС 12% НСП 1% [06:07:24]line > о реализуемом товаре [06:07:24]line ИТОГО: 129.00 [06:07:24]line НСП 1% : 1.14 [06:07:24]line НДС 12% : 13.70 [06:07:24]line Наличными: 129.00 [06:07:24]line Безнал.: 0.00 [06:07:24]line Место: АЗС № 80 "Партнер Нефть" [06:07:24]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [06:07:24]line СНО: Общий режим [06:07:24]line Чек 9 25.10.2024 06:07 [06:07:24]line Смена: 493 ФФД: 1.0 [06:07:24]line ЗНМ: 0300000090 [06:07:24]line РНМ: 0000000000097022 [06:07:24]line Версия ККМ: 001 [06:07:24]line ФМ: 0000000000875000 [06:07:24]line ФД: 50509 [06:07:24]line ФПД: 157680647871017 [06:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T060734&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50509&fm=157680647871017&tin=02508201610067®Number=0000000000097022&sum=12900 [06:07:24]line 0 [06:07:24]written 0, free lines is 4095 [06:07:24]Connected sock=10 [06:07:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 99 01 00 00 E5 64 91 01 F0 07 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 09 00 00 00 F4 03 04 00 A6 35 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4D C5 00 00 35 04 06 00 8F 68 E3 01 1A 29 C9 02 09 C4 8C 22 6F 41 [06:07:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C5 0C 47 00 1B 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4D C5 00 00 F4 03 04 00 38 E1 1A 67 B6 04 01 00 00 33 67 9A 67 0D 56 BC 77 [06:07:24]CommunicateWithHost err = 0 [06:07:24]CheckOFDResponse [06:07:24]1017 (14) - 77093643461234 [06:07:24]1041 (16) - 0000000000875000 [06:07:24]1040 (4) - 50509 [06:07:24]1012 (4) - 25.10.2024 00:07 [06:07:24]1206 (1) - 0 [06:07:24]OFD Sender: Remove packet 50509 [06:07:24]ProducePacketName [06:07:24]name=ofd_packets/00050509 [06:07:24]NVStorageDeleteData [06:07:24]Write to MH i2c: 01 00 00 F4 4B 3F [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: 01 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: 01 07 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: 01 07 00 F4 4B 00 00 00 00 00 C6 0C 18 [06:07:24]RasterBufferAndPrint [06:07:24]line [06:07:24]line [06:07:24]line [06:07:24]line [06:07:24]line [06:07:24]written 0, free lines is 3277 [06:07:24]process_action close_receipt done [06:07:24]requested_data is exist [06:07:24]produce_requested_data [06:07:24]requested_item fm.sn is exist - process it [06:07:24]wFMCommunicate request_size=4 [06:07:24]MH_SAM_APDU [06:07:24]CAPDU: 80 11 00 00 [06:07:24]Write to MH i2c: E2 08 00 FB 4B 80 11 00 00 00 00 00 00 C0 [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:24]Read from MH i2c: E2 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 17 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 17 00 FB 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 07 [06:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:07:24]wFMCommunicate OK [06:07:24]requested_item fd.num is exist - process it [06:07:24]SAM_PROTO_GetFieldsCounters [06:07:24]wFMCommunicate request_size=4 [06:07:24]MH_SAM_APDU [06:07:24]CAPDU: 80 13 00 00 [06:07:24]Write to MH i2c: E2 08 00 FC 4B 80 13 00 00 00 00 00 00 C3 [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:24]Read from MH i2c: E2 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 62 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 62 00 FC 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [06:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:07:24]wFMCommunicate OK [06:07:24]SAM_PROTO_GetFieldsCounters done [06:07:24]requested_item shift.num is exist - process it [06:07:24]requested_item shift.opened is exist - process it [06:07:24]req_shift_opened [06:07:24]FM_GetShiftState [06:07:24]SAM_PROTO_GetShiftState [06:07:24]wFMCommunicate request_size=4 [06:07:24]MH_SAM_APDU [06:07:24]CAPDU: 80 13 01 00 [06:07:24]Write to MH i2c: E2 08 00 FD 4B 80 13 01 00 00 00 00 00 C5 [06:07:24]Write i2c OK [06:07:24]MH_I2C_Read... [06:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:24]Read from MH i2c: E2 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 0E 00 [06:07:24]MH_I2C_Read... [06:07:24]Read from MH i2c: E2 0E 00 FD 4B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 BD [06:07:24]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:07:24]wFMCommunicate OK [06:07:24]SAM_PROTO_GetShiftState done [06:07:24]FM_GetShiftState done [06:07:24]req_shift_opened done [06:07:24]requested_item shift.open_date is exist - process it [06:07:24]req_shift_open_date [06:07:24]req_shift_open_date done [06:07:24]produce_requested_data done [06:07:24]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50509,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [06:07:24]process_action_free close_receipt [06:07:24]json_value_free [06:07:24]json_value_free done [06:07:24]process_json_proto returns [06:07:24]Send response to host [06:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50509,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [06:07:24]free response buf [06:07:24]execute_script done [06:07:24]execute_script returns [06:07:24]free content buf [06:07:24]Sock 9.Close socket [06:07:24]Sock 9.Thread stoped [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:18]accept exits with 7 [06:09:18]New connection [06:09:18]New thread 3067305316 created [06:09:18]Thread 3067161956 joined [06:09:18]Waiting for new connection... [06:09:18] Sock 7.Parse request [06:09:18]Sock 7.Check first char [06:09:18]Sock 7.First char is OK [06:09:18]request: POST /json_proto HTTP/1.0 [06:09:18]Method: POST [06:09:18]URL: /json_proto [06:09:18]Method is POST - this is cgi request [06:09:18]url: /json_proto [06:09:18]query_string will be loaded in cgi processing [06:09:18]execute_cgi json_proto POST (null) [06:09:18]execute_cgi path=json_proto method=POST [06:09:18]POST find Content-Length [06:09:18]Host: 172.17.49.196:8080 [06:09:18]Content-Length: 663 [06:09:18]Content-Type: application/json [06:09:18] [06:09:18]POST finish read [06:09:18]Found Content-Length = 663 [06:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164424", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:09:18]execute_script... [06:09:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164424", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:09:18]POST & json_proto [06:09:18]process_json_proto [06:09:18]json parsed OK: [06:09:18]protocol is kg_v1.0 [06:09:18]action value=close_receipt [06:09:18]process_action close_receipt [06:09:18]cmd_close_receipt [06:09:18]MH_GetDate [06:09:18]Write to MH i2c: F0 00 00 FE 4B 38 [06:09:18]Write i2c OK [06:09:18]MH_I2C_Read... [06:09:18]Read from MH i2c: F0 [06:09:18]MH_I2C_Read... [06:09:18]Read from MH i2c: F0 09 00 [06:09:18]MH_I2C_Read... [06:09:18]Read from MH i2c: F0 09 00 FE 4B 00 1A 36 1B 67 BD 3B 11 67 83 [06:09:18]GetLastDocTimeStamp 1729836454 [06:09:18]current date 1729836570 [06:09:18]FM_GetShiftState [06:09:18]SAM_PROTO_GetShiftState [06:09:18]wFMCommunicate request_size=4 [06:09:18]MH_SAM_APDU [06:09:18]CAPDU: 80 13 01 00 [06:09:18]Write to MH i2c: E2 08 00 FF 4B 80 13 01 00 00 00 00 00 C7 [06:09:18]Write i2c OK [06:09:18]MH_I2C_Read... [06:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:09:18]Read from MH i2c: E2 [06:09:18]MH_I2C_Read... [06:09:18]Read from MH i2c: E2 0E 00 [06:09:18]MH_I2C_Read... [06:09:18]Read from MH i2c: E2 0E 00 FF 4B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 BF [06:09:18]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:09:18]wFMCommunicate OK [06:09:18]SAM_PROTO_GetShiftState done [06:09:18]FM_GetShiftState done [06:09:18]opened in 1729815177 [06:09:18]opened+sec_in_day 1729901577 [06:09:18]quantity*price = 2500 [06:09:18]sum+1 = 2501 [06:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 25.00 НСП 1% : 0.22 НДС 12% : 2.65 Наличными: 25.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 10 25.10.2024 06:09 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50510 ФПД: 160731432233566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T060930&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50510&fm=160731432233566&tin=02508201610067®Number=0000000000097022&sum=2500 0 [06:09:19]StoreToDocumentArchive [06:09:19]shift 493 fd 50510 [06:09:19]save to /storage/0493/doc_00050510 [06:09:19]save last doc name /storage/0493/doc_00050510 to /storage/kkm_last_doc_name [06:09:19]save OK [06:09:19]Clear old archive folders... [06:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=286 [06:09:19]tlvbuf is 001CF4D0 [06:09:19]SAM_PROTO_ClearQueue [06:09:19]wFMCommunicate request_size=4 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 09 00 00 [06:09:19]Write to MH i2c: E2 08 00 0C 4C 80 09 00 00 00 00 00 00 CA [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 03 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 03 00 0C 4C 00 90 00 CC [06:09:19]RAPDU: 90 00 [06:09:19]wFMCommunicate OK [06:09:19]SAM_PROTO_ClearQueue done [06:09:19]KKMCreateOFDPacket [06:09:19]OFDProtocolAddRootSTLVToBuf [06:09:19]FM_MakeSignedData [06:09:19]FM_MakeSignedData [06:09:19]SAM_PROTO_SignData [06:09:19]wFMCommunicate request_size=4 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 0D 01 02 [06:09:19]Write to MH i2c: E2 08 00 0D 4C 80 0D 01 02 00 00 00 00 D2 [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 03 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 03 00 0D 4C 00 90 00 CD [06:09:19]RAPDU: 90 00 [06:09:19]wFMCommunicate OK [06:09:19]wFMCommunicate request_size=255 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 1A 36 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 [06:09:19]Write to MH i2c: E2 02 01 0E 4C 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 1A 36 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 00 00 40 [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 03 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 03 00 0E 4C 00 90 00 CE [06:09:19]RAPDU: 90 00 [06:09:19]wFMCommunicate OK [06:09:19]wFMCommunicate request_size=45 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 0D 02 02 28 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4E C5 00 00 35 04 06 00 92 2F 33 EC 2A 5E [06:09:19]Write to MH i2c: E2 30 00 0F 4C 80 0D 02 02 28 00 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4E C5 00 00 35 04 06 00 92 2F 33 EC 2A 5E 00 00 94 [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 03 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 03 00 0F 4C 00 90 00 CF [06:09:19]RAPDU: 90 00 [06:09:19]wFMCommunicate OK [06:09:19]wFMCommunicate request_size=4 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 0D 03 02 [06:09:19]Write to MH i2c: E2 08 00 10 4C 80 0D 03 02 00 00 00 00 D7 [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 0B 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 0B 00 10 4C 00 2C 76 89 A7 6E 8C 21 D6 90 00 9B [06:09:19]RAPDU: 2C 76 89 A7 6E 8C 21 D6 90 00 [06:09:19]wFMCommunicate OK [06:09:19]SAM_PROTO_SignData done [06:09:19]FM_MakeSignedData done [06:09:19]CreateOFDProtocolMessage [06:09:19]wFMCommunicate request_size=4 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 11 00 00 [06:09:19]Write to MH i2c: E2 08 00 11 4C 80 11 00 00 00 00 00 00 D7 [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 17 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 17 00 11 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1E [06:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:09:19]wFMCommunicate OK [06:09:19]CreateOFDProtocolMessage done [06:09:19]OFDSenderStorePacket 50510 [06:09:19]StoreOFDPacket docnum=50510 [06:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 32 01 00 00 B9 3C 2A 01 85 0A 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 1A 36 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4E C5 00 00 35 04 06 00 92 2F 33 EC 2A 5E 2C 76 89 A7 6E 8C 21 D6 [06:09:19]CheckFolder [06:09:19]dirname=/storage/ofd_packets [06:09:19]CheckFolder done [06:09:19]ProducePacketName [06:09:19]name=ofd_packets/00050510 [06:09:19]NVStorageSaveData ofd_packets/00050510 [06:09:19]File name is /storage/ofd_packets/00050510 [06:09:19]Write 336 bytes [06:09:19]NVStorageSaveData done [06:09:19]OFDSenderStorePacket done [06:09:19]KKMCreateOFDPacket done [06:09:19]NVStorageSaveData kkm_last_timestamp [06:09:19]File name is /storage/kkm_last_timestamp [06:09:19]Write 4 bytes [06:09:19]NVStorageSaveData done [06:09:19]ExternCall_PrintAddStr [06:09:19]wPrintStart [06:09:19]Write to MH i2c: 01 00 00 12 4C 5E [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: 01 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: 01 07 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: 01 07 00 12 4C 00 00 00 00 00 FF 0F 73 [06:09:19]RasterBufferAndPrint [06:09:19]line Счет N : (3)164424 [06:09:19]line ИНН: 02508201610067 [06:09:19]line Контрольно-Кассовый Чек [06:09:19]line ПРОДАЖА [06:09:19]line Товар: 4607120854177 [06:09:19]line Снек Орехи BEERKa Арахис 30г [06:09:19]line 1.000 * 25.00 [06:09:19]line = 25.00 [06:09:19]line НДС 12% НСП 1% [06:09:19]line > о реализуемом товаре [06:09:19]line ИТОГО: 25.00 [06:09:19]line НСП 1% : 0.22 [06:09:19]line НДС 12% : 2.65 [06:09:19]line Наличными: 25.00 [06:09:19]line Безнал.: 0.00 [06:09:19]line Место: АЗС № 80 "Партнер Нефть" [06:09:19]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [06:09:19]line СНО: Общий режим [06:09:19]line Чек 10 25.10.2024 06:09 [06:09:19]line Смена: 493 ФФД: 1.0 [06:09:19]line ЗНМ: 0300000090 [06:09:19]line РНМ: 0000000000097022 [06:09:19]line Версия ККМ: 001 [06:09:19]line ФМ: 0000000000875000 [06:09:19]line ФД: 50510 [06:09:19]line ФПД: 160731432233566 [06:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T060930&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50510&fm=160731432233566&tin=02508201610067®Number=0000000000097022&sum=2500 [06:09:20]line 0 [06:09:20]OFD Sender: Processing packet 50510 [packets to send 7, broken 6] [06:09:20]ProducePacketName [06:09:20]name=ofd_packets/00050510 [06:09:20]OFD Sender: To server: pG, [06:09:20]CommunicateWithHost lk.salyk.kg:30040 [06:09:20]ConnectInit lk.salyk.kg [06:09:20]written 0, free lines is 4095 [06:09:20]Connected sock=10 [06:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 32 01 00 00 B9 3C 2A 01 85 0A 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 1A 36 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4E C5 00 00 35 04 06 00 92 2F 33 EC 2A 5E 2C 76 89 A7 6E 8C 21 D6 [06:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 FC 35 47 00 15 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4E C5 00 00 F4 03 04 00 AC E1 1A 67 B6 04 01 00 00 50 D5 02 A2 41 EC B8 AE [06:09:20]CommunicateWithHost err = 0 [06:09:20]CheckOFDResponse [06:09:20]1017 (14) - 77093643461234 [06:09:20]1041 (16) - 0000000000875000 [06:09:20]1040 (4) - 50510 [06:09:20]1012 (4) - 25.10.2024 00:09 [06:09:20]1206 (1) - 0 [06:09:20]OFD Sender: Remove packet 50510 [06:09:20]ProducePacketName [06:09:20]name=ofd_packets/00050510 [06:09:20]NVStorageDeleteData [06:09:20]Write to MH i2c: 01 00 00 3B 4C 87 [06:09:20]Write i2c OK [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: 01 [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: 01 07 00 [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: 01 07 00 3B 4C 00 00 00 00 00 F5 0C 8F [06:09:20]RasterBufferAndPrint [06:09:20]line [06:09:20]line [06:09:20]line [06:09:20]line [06:09:20]line [06:09:20]written 0, free lines is 3326 [06:09:20]process_action close_receipt done [06:09:20]requested_data is exist [06:09:20]produce_requested_data [06:09:20]requested_item fm.sn is exist - process it [06:09:20]wFMCommunicate request_size=4 [06:09:20]MH_SAM_APDU [06:09:20]CAPDU: 80 11 00 00 [06:09:20]Write to MH i2c: E2 08 00 42 4C 80 11 00 00 00 00 00 00 08 [06:09:20]Write i2c OK [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: E2 [06:09:20]MH_I2C_Read... [06:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:09:20]Read from MH i2c: E2 17 00 [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: E2 17 00 42 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4F [06:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:09:20]wFMCommunicate OK [06:09:20]requested_item fd.num is exist - process it [06:09:20]SAM_PROTO_GetFieldsCounters [06:09:20]wFMCommunicate request_size=4 [06:09:20]MH_SAM_APDU [06:09:20]CAPDU: 80 13 00 00 [06:09:20]Write to MH i2c: E2 08 00 43 4C 80 13 00 00 00 00 00 00 0B [06:09:20]Write i2c OK [06:09:20]MH_I2C_Read... [06:09:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:09:20]Read from MH i2c: E2 [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: E2 62 00 [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: E2 62 00 43 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [06:09:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:09:20]wFMCommunicate OK [06:09:20]SAM_PROTO_GetFieldsCounters done [06:09:20]requested_item shift.num is exist - process it [06:09:20]requested_item shift.opened is exist - process it [06:09:20]req_shift_opened [06:09:20]FM_GetShiftState [06:09:20]SAM_PROTO_GetShiftState [06:09:20]wFMCommunicate request_size=4 [06:09:20]MH_SAM_APDU [06:09:20]CAPDU: 80 13 01 00 [06:09:20]Write to MH i2c: E2 08 00 44 4C 80 13 01 00 00 00 00 00 0D [06:09:20]Write i2c OK [06:09:20]MH_I2C_Read... [06:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:09:20]Read from MH i2c: E2 [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: E2 0E 00 [06:09:20]MH_I2C_Read... [06:09:20]Read from MH i2c: E2 0E 00 44 4C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 05 [06:09:20]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:09:20]wFMCommunicate OK [06:09:20]SAM_PROTO_GetShiftState done [06:09:20]FM_GetShiftState done [06:09:20]req_shift_opened done [06:09:20]requested_item shift.open_date is exist - process it [06:09:20]req_shift_open_date [06:09:20]req_shift_open_date done [06:09:20]produce_requested_data done [06:09:20]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50510,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [06:09:20]process_action_free close_receipt [06:09:20]json_value_free [06:09:20]json_value_free done [06:09:20]process_json_proto returns [06:09:20]Send response to host [06:09:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50510,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [06:09:20]free response buf [06:09:20]execute_script done [06:09:20]execute_script returns [06:09:20]free content buf [06:09:20]Sock 7.Close socket [06:09:20]Sock 7.Thread stoped [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:23]accept exits with 9 [06:15:23]New connection [06:15:23]New thread 3067161956 created [06:15:23]Thread 3067305316 joined [06:15:23]Waiting for new connection... [06:15:23] Sock 9.Parse request [06:15:23]Sock 9.Check first char [06:15:23]Sock 9.First char is OK [06:15:23]request: POST /json_proto HTTP/1.0 [06:15:23]Method: POST [06:15:23]URL: /json_proto [06:15:23]Method is POST - this is cgi request [06:15:23]url: /json_proto [06:15:23]query_string will be loaded in cgi processing [06:15:23]execute_cgi json_proto POST (null) [06:15:23]execute_cgi path=json_proto method=POST [06:15:23]POST find Content-Length [06:15:23]Host: 172.17.49.196:8080 [06:15:23]Content-Length: 725 [06:15:23]Content-Type: application/json [06:15:23] [06:15:23]POST finish read [06:15:23]Found Content-Length = 725 [06:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164425", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:23]execute_script... [06:15: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)164425", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:23]POST & json_proto [06:15:23]process_json_proto [06:15:23]json parsed OK: [06:15:23]protocol is kg_v1.0 [06:15:23]action value=close_receipt [06:15:23]process_action close_receipt [06:15:23]cmd_close_receipt [06:15:23]MH_GetDate [06:15:23]Write to MH i2c: F0 00 00 45 4C 80 [06:15:23]Write i2c OK [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: F0 [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: F0 09 00 [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: F0 09 00 45 4C 00 87 37 1B 67 BD 3B 11 67 39 [06:15:23]GetLastDocTimeStamp 1729836570 [06:15:23]current date 1729836935 [06:15:23]FM_GetShiftState [06:15:23]SAM_PROTO_GetShiftState [06:15:23]wFMCommunicate request_size=4 [06:15:23]MH_SAM_APDU [06:15:23]CAPDU: 80 13 01 00 [06:15:23]Write to MH i2c: E2 08 00 46 4C 80 13 01 00 00 00 00 00 0F [06:15:23]Write i2c OK [06:15:23]MH_I2C_Read... [06:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:23]Read from MH i2c: E2 [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: E2 0E 00 [06:15:23]MH_I2C_Read... [06:15:23]Read from MH i2c: E2 0E 00 46 4C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 07 [06:15:23]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:15:23]wFMCommunicate OK [06:15:23]SAM_PROTO_GetShiftState done [06:15:23]FM_GetShiftState done [06:15:23]opened in 1729815177 [06:15:23]opened+sec_in_day 1729901577 [06:15:23]quantity*price = 51000 [06:15:23]sum+1 = 51001 [06:15:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 0.00 Безнал.: 510.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 11 25.10.2024 06:15 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50511 ФПД: 81963710296396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T061535&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50511&fm=81963710296396&tin=02508201610067®Number=0000000000097022&sum=51000 0 [06:15:24]StoreToDocumentArchive [06:15:24]shift 493 fd 50511 [06:15:24]save to /storage/0493/doc_00050511 [06:15:24]save last doc name /storage/0493/doc_00050511 to /storage/kkm_last_doc_name [06:15:24]save OK [06:15:24]Clear old archive folders... [06:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=262 [06:15:24]tlvbuf is 00124320 [06:15:24]SAM_PROTO_ClearQueue [06:15:24]wFMCommunicate request_size=4 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 09 00 00 [06:15:24]Write to MH i2c: E2 08 00 53 4C 80 09 00 00 00 00 00 00 11 [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:24]Read from MH i2c: E2 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 53 4C 00 90 00 13 [06:15:24]RAPDU: 90 00 [06:15:24]wFMCommunicate OK [06:15:24]SAM_PROTO_ClearQueue done [06:15:24]KKMCreateOFDPacket [06:15:24]OFDProtocolAddRootSTLVToBuf [06:15:24]FM_MakeSignedData [06:15:24]FM_MakeSignedData [06:15:24]SAM_PROTO_SignData [06:15:24]wFMCommunicate request_size=4 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 0D 01 02 [06:15:24]Write to MH i2c: E2 08 00 54 4C 80 0D 01 02 00 00 00 00 19 [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:24]Read from MH i2c: E2 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 54 4C 00 90 00 14 [06:15:24]RAPDU: 90 00 [06:15:24]wFMCommunicate OK [06:15:24]wFMCommunicate request_size=255 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 C7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 87 37 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 [06:15:24]Write to MH i2c: E2 02 01 55 4C 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 C7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 87 37 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 00 00 7F [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:24]Read from MH i2c: E2 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 55 4C 00 90 00 15 [06:15:24]RAPDU: 90 00 [06:15:24]wFMCommunicate OK [06:15:24]wFMCommunicate request_size=21 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 0D 02 02 10 04 00 4F C5 00 00 35 04 06 00 4A 8B A9 D6 31 4C [06:15:24]Write to MH i2c: E2 18 00 56 4C 80 0D 02 02 10 00 04 00 4F C5 00 00 35 04 06 00 4A 8B A9 D6 31 4C 00 00 64 [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:24]Read from MH i2c: E2 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 03 00 56 4C 00 90 00 16 [06:15:24]RAPDU: 90 00 [06:15:24]wFMCommunicate OK [06:15:24]wFMCommunicate request_size=4 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 0D 03 02 [06:15:24]Write to MH i2c: E2 08 00 57 4C 80 0D 03 02 00 00 00 00 1E [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:24]Read from MH i2c: E2 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 0B 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 0B 00 57 4C 00 1D 58 DC 99 14 13 41 19 90 00 8A [06:15:24]RAPDU: 1D 58 DC 99 14 13 41 19 90 00 [06:15:24]wFMCommunicate OK [06:15:24]SAM_PROTO_SignData done [06:15:24]FM_MakeSignedData done [06:15:24]CreateOFDProtocolMessage [06:15:24]wFMCommunicate request_size=4 [06:15:24]MH_SAM_APDU [06:15:24]CAPDU: 80 11 00 00 [06:15:24]Write to MH i2c: E2 08 00 58 4C 80 11 00 00 00 00 00 00 1E [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:24]Read from MH i2c: E2 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 17 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: E2 17 00 58 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 65 [06:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:15:24]wFMCommunicate OK [06:15:24]CreateOFDProtocolMessage done [06:15:24]OFDSenderStorePacket 50511 [06:15:24]StoreOFDPacket docnum=50511 [06:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1A 01 00 00 AC 01 12 01 54 C9 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 C7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 87 37 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4F C5 00 00 35 04 06 00 4A 8B A9 D6 31 4C 1D 58 DC 99 14 13 41 19 [06:15:24]CheckFolder [06:15:24]dirname=/storage/ofd_packets [06:15:24]CheckFolder done [06:15:24]ProducePacketName [06:15:24]name=ofd_packets/00050511 [06:15:24]NVStorageSaveData ofd_packets/00050511 [06:15:24]File name is /storage/ofd_packets/00050511 [06:15:24]Write 312 bytes [06:15:24]NVStorageSaveData done [06:15:24]OFDSenderStorePacket done [06:15:24]KKMCreateOFDPacket done [06:15:24]NVStorageSaveData kkm_last_timestamp [06:15:24]File name is /storage/kkm_last_timestamp [06:15:24]Write 4 bytes [06:15:24]NVStorageSaveData done [06:15:24]ExternCall_PrintAddStr [06:15:24]wPrintStart [06:15:24]Write to MH i2c: 01 00 00 59 4C A5 [06:15:24]Write i2c OK [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: 01 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: 01 07 00 [06:15:24]MH_I2C_Read... [06:15:24]Read from MH i2c: 01 07 00 59 4C 00 00 00 00 00 FF 0F BA [06:15:24]RasterBufferAndPrint [06:15:24]line Счет N : (3)164425 [06:15:24]line ИНН: 02508201610067 [06:15:24]line Контрольно-Кассовый Чек [06:15:24]line ПРОДАЖА [06:15:24]line Товар: 4700002083327 [06:15:24]line Водка Level 0,5 [06:15:24]line 1.000 * 510.00 [06:15:24]line = 510.00 [06:15:24]line НДС 12% НСП 1% [06:15:24]line > о реализуемом товаре [06:15:24]line ИТОГО: 510.00 [06:15:24]line НСП 1% : 4.51 [06:15:24]line НДС 12% : 54.16 [06:15:24]line Наличными: 0.00 [06:15:24]line Безнал.: 510.00 [06:15:24]line Место: АЗС № 80 "Партнер Нефть" [06:15:24]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [06:15:24]line СНО: Общий режим [06:15:24]line Чек 11 25.10.2024 06:15 [06:15:24]line Смена: 493 ФФД: 1.0 [06:15:24]line ЗНМ: 0300000090 [06:15:24]line РНМ: 0000000000097022 [06:15:24]line Версия ККМ: 001 [06:15:24]line Платежная система: Mbank [06:15:24]line ФМ: 0000000000875000 [06:15:24]line ФД: 50511 [06:15:24]line ФПД: 81963710296396 [06:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T061535&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50511&fm=81963710296396&tin=02508201610067®Number=0000000000097022&sum=51000 [06:15:25]OFD Sender: Processing packet 50511 [packets to send 7, broken 6] [06:15:25]ProducePacketName [06:15:25]name=ofd_packets/00050511 [06:15:25]OFD Sender: To server: pG, [06:15:25]CommunicateWithHost lk.salyk.kg:30040 [06:15:25]ConnectInit lk.salyk.kg [06:15:25]line 0 [06:15:25]written 0, free lines is 4095 [06:15:25]Connected sock=10 [06:15:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1A 01 00 00 AC 01 12 01 54 C9 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 C7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 87 37 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4F C5 00 00 35 04 06 00 4A 8B A9 D6 31 4C 1D 58 DC 99 14 13 41 19 [06:15:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AE B9 47 00 4C BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 4F C5 00 00 F4 03 04 00 19 E3 1A 67 B6 04 01 00 00 03 AA 9B 17 01 B5 C9 59 [06:15:25]CommunicateWithHost err = 0 [06:15:25]CheckOFDResponse [06:15:25]1017 (14) - 77093643461234 [06:15:25]1041 (16) - 0000000000875000 [06:15:25]1040 (4) - 50511 [06:15:25]1012 (4) - 25.10.2024 00:15 [06:15:25]1206 (1) - 0 [06:15:25]OFD Sender: Remove packet 50511 [06:15:25]ProducePacketName [06:15:25]name=ofd_packets/00050511 [06:15:25]NVStorageDeleteData [06:15:25]Write to MH i2c: 01 00 00 82 4C CE [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: 01 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: 01 07 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: 01 07 00 82 4C 00 00 00 00 00 09 0D EB [06:15:25]RasterBufferAndPrint [06:15:25]line [06:15:25]line [06:15:25]line [06:15:25]line [06:15:25]line [06:15:25]written 0, free lines is 3344 [06:15:25]process_action close_receipt done [06:15:25]requested_data is exist [06:15:25]produce_requested_data [06:15:25]requested_item fm.sn is exist - process it [06:15:25]wFMCommunicate request_size=4 [06:15:25]MH_SAM_APDU [06:15:25]CAPDU: 80 11 00 00 [06:15:25]Write to MH i2c: E2 08 00 89 4C 80 11 00 00 00 00 00 00 4F [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:25]Read from MH i2c: E2 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 17 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 17 00 89 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 96 [06:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:15:25]wFMCommunicate OK [06:15:25]requested_item fd.num is exist - process it [06:15:25]SAM_PROTO_GetFieldsCounters [06:15:25]wFMCommunicate request_size=4 [06:15:25]MH_SAM_APDU [06:15:25]CAPDU: 80 13 00 00 [06:15:25]Write to MH i2c: E2 08 00 8A 4C 80 13 00 00 00 00 00 00 52 [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:25]Read from MH i2c: E2 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 62 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 62 00 8A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [06:15:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 4F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:15:25]wFMCommunicate OK [06:15:25]SAM_PROTO_GetFieldsCounters done [06:15:25]requested_item shift.num is exist - process it [06:15:25]requested_item shift.opened is exist - process it [06:15:25]req_shift_opened [06:15:25]FM_GetShiftState [06:15:25]SAM_PROTO_GetShiftState [06:15:25]wFMCommunicate request_size=4 [06:15:25]MH_SAM_APDU [06:15:25]CAPDU: 80 13 01 00 [06:15:25]Write to MH i2c: E2 08 00 8B 4C 80 13 01 00 00 00 00 00 54 [06:15:25]Write i2c OK [06:15:25]MH_I2C_Read... [06:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:25]Read from MH i2c: E2 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 0E 00 [06:15:25]MH_I2C_Read... [06:15:25]Read from MH i2c: E2 0E 00 8B 4C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4C [06:15:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:15:25]wFMCommunicate OK [06:15:25]SAM_PROTO_GetShiftState done [06:15:25]FM_GetShiftState done [06:15:25]req_shift_opened done [06:15:25]requested_item shift.open_date is exist - process it [06:15:25]req_shift_open_date [06:15:25]req_shift_open_date done [06:15:25]produce_requested_data done [06:15:25]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50511,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [06:15:25]process_action_free close_receipt [06:15:25]json_value_free [06:15:25]json_value_free done [06:15:25]process_json_proto returns [06:15:25]Send response to host [06:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50511,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [06:15:25]free response buf [06:15:25]execute_script done [06:15:25]execute_script returns [06:15:25]free content buf [06:15:25]Sock 9.Close socket [06:15:25]Sock 9.Thread stoped [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [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:18]accept exits with 7 [06:40:18]New connection [06:40:18]New thread 3067305316 created [06:40:18]Thread 3067161956 joined [06:40:18]Waiting for new connection... [06:40:18] Sock 7.Parse request [06:40:18]Sock 7.Check first char [06:40:18]Sock 7.First char is OK [06:40:18]request: POST /json_proto HTTP/1.0 [06:40:18]Method: POST [06:40:18]URL: /json_proto [06:40:18]Method is POST - this is cgi request [06:40:18]url: /json_proto [06:40:18]query_string will be loaded in cgi processing [06:40:18]execute_cgi json_proto POST (null) [06:40:18]execute_cgi path=json_proto method=POST [06:40:18]POST find Content-Length [06:40:18]Host: 172.17.49.196:8080 [06:40:18]Content-Length: 670 [06:40:18]Content-Type: application/json [06:40:18] [06:40:18]POST finish read [06:40:18]Found Content-Length = 670 [06:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164426", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:18]execute_script... [06:40:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164426", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:18]POST & json_proto [06:40:18]process_json_proto [06:40:18]json parsed OK: [06:40:18]protocol is kg_v1.0 [06:40:18]action value=close_receipt [06:40:18]process_action close_receipt [06:40:18]cmd_close_receipt [06:40:18]MH_GetDate [06:40:18]Write to MH i2c: F0 00 00 8C 4C C7 [06:40:18]Write i2c OK [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: F0 [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: F0 09 00 [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: F0 09 00 8C 4C 00 5F 3D 1B 67 BD 3B 11 67 5E [06:40:18]GetLastDocTimeStamp 1729836935 [06:40:18]current date 1729838431 [06:40:18]FM_GetShiftState [06:40:18]SAM_PROTO_GetShiftState [06:40:18]wFMCommunicate request_size=4 [06:40:18]MH_SAM_APDU [06:40:18]CAPDU: 80 13 01 00 [06:40:18]Write to MH i2c: E2 08 00 8D 4C 80 13 01 00 00 00 00 00 56 [06:40:18]Write i2c OK [06:40:18]MH_I2C_Read... [06:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:19]Read from MH i2c: E2 [06:40:19]MH_I2C_Read... [06:40:19]Read from MH i2c: E2 0E 00 [06:40:19]MH_I2C_Read... [06:40:19]Read from MH i2c: E2 0E 00 8D 4C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4E [06:40:19]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:40:19]wFMCommunicate OK [06:40:19]SAM_PROTO_GetShiftState done [06:40:19]FM_GetShiftState done [06:40:19]opened in 1729815177 [06:40:19]opened+sec_in_day 1729901577 [06:40:19]quantity*price = 9500 [06:40:19]sum+1 = 9501 [06:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 12 25.10.2024 06:40 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50512 ФПД: 254178306284683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T064031&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50512&fm=254178306284683&tin=02508201610067®Number=0000000000097022&sum=9500 0 [06:40:20]StoreToDocumentArchive [06:40:20]shift 493 fd 50512 [06:40:20]save to /storage/0493/doc_00050512 [06:40:20]save last doc name /storage/0493/doc_00050512 to /storage/kkm_last_doc_name [06:40:20]save OK [06:40:20]Clear old archive folders... [06:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:40:20]tlvbuf is 0014AB60 [06:40:20]SAM_PROTO_ClearQueue [06:40:20]wFMCommunicate request_size=4 [06:40:20]MH_SAM_APDU [06:40:20]CAPDU: 80 09 00 00 [06:40:20]Write to MH i2c: E2 08 00 9A 4C 80 09 00 00 00 00 00 00 58 [06:40:20]Write i2c OK [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 [06:40:20]MH_I2C_Read... [06:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:20]Read from MH i2c: E2 03 00 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 03 00 9A 4C 00 90 00 5A [06:40:20]RAPDU: 90 00 [06:40:20]wFMCommunicate OK [06:40:20]SAM_PROTO_ClearQueue done [06:40:20]KKMCreateOFDPacket [06:40:20]OFDProtocolAddRootSTLVToBuf [06:40:20]FM_MakeSignedData [06:40:20]FM_MakeSignedData [06:40:20]SAM_PROTO_SignData [06:40:20]wFMCommunicate request_size=4 [06:40:20]MH_SAM_APDU [06:40:20]CAPDU: 80 0D 01 02 [06:40:20]Write to MH i2c: E2 08 00 9B 4C 80 0D 01 02 00 00 00 00 60 [06:40:20]Write i2c OK [06:40:20]MH_I2C_Read... [06:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:20]Read from MH i2c: E2 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 03 00 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 03 00 9B 4C 00 90 00 5B [06:40:20]RAPDU: 90 00 [06:40:20]wFMCommunicate OK [06:40:20]wFMCommunicate request_size=255 [06:40:20]MH_SAM_APDU [06:40:20]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 00 00 00 F4 03 04 00 5F 3D 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:40:20]Write to MH i2c: E2 02 01 9C 4C 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 00 00 00 F4 03 04 00 5F 3D 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 70 [06:40:20]Write i2c OK [06:40:20]MH_I2C_Read... [06:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:20]Read from MH i2c: E2 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 03 00 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 03 00 9C 4C 00 90 00 5C [06:40:20]RAPDU: 90 00 [06:40:20]wFMCommunicate OK [06:40:20]wFMCommunicate request_size=52 [06:40:20]MH_SAM_APDU [06:40:20]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 50 C5 00 00 35 04 06 00 E7 2C 7F A7 DC 8B [06:40:20]Write to MH i2c: E2 37 00 9D 4C 80 0D 02 02 2F 00 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 50 C5 00 00 35 04 06 00 E7 2C 7F A7 DC 8B 00 00 CA [06:40:20]Write i2c OK [06:40:20]MH_I2C_Read... [06:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:20]Read from MH i2c: E2 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 03 00 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 03 00 9D 4C 00 90 00 5D [06:40:20]RAPDU: 90 00 [06:40:20]wFMCommunicate OK [06:40:20]wFMCommunicate request_size=4 [06:40:20]MH_SAM_APDU [06:40:20]CAPDU: 80 0D 03 02 [06:40:20]Write to MH i2c: E2 08 00 9E 4C 80 0D 03 02 00 00 00 00 65 [06:40:20]Write i2c OK [06:40:20]MH_I2C_Read... [06:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:20]Read from MH i2c: E2 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 0B 00 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 0B 00 9E 4C 00 B5 65 D0 3C D0 60 D5 EC 90 00 7D [06:40:20]RAPDU: B5 65 D0 3C D0 60 D5 EC 90 00 [06:40:20]wFMCommunicate OK [06:40:20]SAM_PROTO_SignData done [06:40:20]FM_MakeSignedData done [06:40:20]CreateOFDProtocolMessage [06:40:20]wFMCommunicate request_size=4 [06:40:20]MH_SAM_APDU [06:40:20]CAPDU: 80 11 00 00 [06:40:20]Write to MH i2c: E2 08 00 9F 4C 80 11 00 00 00 00 00 00 65 [06:40:20]Write i2c OK [06:40:20]MH_I2C_Read... [06:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:20]Read from MH i2c: E2 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 17 00 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 17 00 9F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AC [06:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:40:20]wFMCommunicate OK [06:40:20]CreateOFDProtocolMessage done [06:40:20]OFDSenderStorePacket 50512 [06:40:20]StoreOFDPacket docnum=50512 [06:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 39 01 00 00 6C D7 31 01 64 32 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 00 00 00 F4 03 04 00 5F 3D 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 50 C5 00 00 35 04 06 00 E7 2C 7F A7 DC 8B B5 65 D0 3C D0 60 D5 EC [06:40:20]CheckFolder [06:40:20]dirname=/storage/ofd_packets [06:40:20]CheckFolder done [06:40:20]ProducePacketName [06:40:20]name=ofd_packets/00050512 [06:40:20]NVStorageSaveData ofd_packets/00050512 [06:40:20]File name is /storage/ofd_packets/00050512 [06:40:20]Write 343 bytes [06:40:20]NVStorageSaveData done [06:40:20]OFDSenderStorePacket done [06:40:20]KKMCreateOFDPacket done [06:40:20]NVStorageSaveData kkm_last_timestamp [06:40:20]File name is /storage/kkm_last_timestamp [06:40:20]Write 4 bytes [06:40:20]NVStorageSaveData done [06:40:20]ExternCall_PrintAddStr [06:40:20]wPrintStart [06:40:20]Write to MH i2c: 01 00 00 A0 4C EC [06:40:20]Write i2c OK [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: 01 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: 01 07 00 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: 01 07 00 A0 4C 00 00 00 00 00 FF 0F 01 [06:40:20]RasterBufferAndPrint [06:40:20]line Счет N : (3)164426 [06:40:20]line ИНН: 02508201610067 [06:40:20]line Контрольно-Кассовый Чек [06:40:20]line ПРОДАЖА [06:40:20]line Товар: 4700003010056 [06:40:20]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [06:40:20]line 1.000 * 95.00 [06:40:20]line = 95.00 [06:40:20]line НДС 12% НСП 1% [06:40:20]line > о реализуемом товаре [06:40:20]line ИТОГО: 95.00 [06:40:20]line НСП 1% : 0.84 [06:40:20]line НДС 12% : 10.09 [06:40:20]line Наличными: 95.00 [06:40:20]line Безнал.: 0.00 [06:40:20]line Место: АЗС № 80 "Партнер Нефть" [06:40:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [06:40:20]line СНО: Общий режим [06:40:20]line Чек 12 25.10.2024 06:40 [06:40:21]line Смена: 493 ФФД: 1.0 [06:40:21]line ЗНМ: 0300000090 [06:40:21]line РНМ: 0000000000097022 [06:40:21]line Версия ККМ: 001 [06:40:21]line ФМ: 0000000000875000 [06:40:21]line ФД: 50512 [06:40:21]line ФПД: 254178306284683 [06:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T064031&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50512&fm=254178306284683&tin=02508201610067®Number=0000000000097022&sum=9500 [06:40:21]line 0 [06:40:21]OFD Sender: Processing packet 50512 [packets to send 7, broken 6] [06:40:21]ProducePacketName [06:40:21]name=ofd_packets/00050512 [06:40:21]OFD Sender: To server: pG, [06:40:21]CommunicateWithHost lk.salyk.kg:30040 [06:40:21]ConnectInit lk.salyk.kg [06:40:21]written 0, free lines is 4095 [06:40:21]Connected sock=10 [06:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 39 01 00 00 6C D7 31 01 64 32 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 00 00 00 F4 03 04 00 5F 3D 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 50 C5 00 00 35 04 06 00 E7 2C 7F A7 DC 8B B5 65 D0 3C D0 60 D5 EC [06:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 77 E7 47 00 D0 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 50 C5 00 00 F4 03 04 00 F1 E8 1A 67 B6 04 01 00 00 B4 11 D7 C3 E2 03 77 1E [06:40:21]CommunicateWithHost err = 0 [06:40:21]CheckOFDResponse [06:40:21]1017 (14) - 77093643461234 [06:40:21]1041 (16) - 0000000000875000 [06:40:21]1040 (4) - 50512 [06:40:21]1012 (4) - 25.10.2024 00:40 [06:40:21]1206 (1) - 0 [06:40:21]OFD Sender: Remove packet 50512 [06:40:21]ProducePacketName [06:40:21]name=ofd_packets/00050512 [06:40:21]NVStorageDeleteData [06:40:21]Write to MH i2c: 01 00 00 C9 4C 15 [06:40:21]Write i2c OK [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: 01 [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: 01 07 00 [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: 01 07 00 C9 4C 00 00 00 00 00 05 0D 2E [06:40:21]RasterBufferAndPrint [06:40:21]line [06:40:21]line [06:40:21]line [06:40:21]line [06:40:21]line [06:40:21]written 0, free lines is 3339 [06:40:21]process_action close_receipt done [06:40:21]requested_data is exist [06:40:21]produce_requested_data [06:40:21]requested_item fm.sn is exist - process it [06:40:21]wFMCommunicate request_size=4 [06:40:21]MH_SAM_APDU [06:40:21]CAPDU: 80 11 00 00 [06:40:21]Write to MH i2c: E2 08 00 D0 4C 80 11 00 00 00 00 00 00 96 [06:40:21]Write i2c OK [06:40:21]MH_I2C_Read... [06:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:21]Read from MH i2c: E2 [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: E2 17 00 [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: E2 17 00 D0 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DD [06:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:40:21]wFMCommunicate OK [06:40:21]requested_item fd.num is exist - process it [06:40:21]SAM_PROTO_GetFieldsCounters [06:40:21]wFMCommunicate request_size=4 [06:40:21]MH_SAM_APDU [06:40:21]CAPDU: 80 13 00 00 [06:40:21]Write to MH i2c: E2 08 00 D1 4C 80 13 00 00 00 00 00 00 99 [06:40:21]Write i2c OK [06:40:21]MH_I2C_Read... [06:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:21]Read from MH i2c: E2 [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: E2 62 00 [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: E2 62 00 D1 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 50 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [06:40:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 50 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:40:21]wFMCommunicate OK [06:40:21]SAM_PROTO_GetFieldsCounters done [06:40:21]requested_item shift.num is exist - process it [06:40:21]requested_item shift.opened is exist - process it [06:40:21]req_shift_opened [06:40:21]FM_GetShiftState [06:40:21]SAM_PROTO_GetShiftState [06:40:21]wFMCommunicate request_size=4 [06:40:21]MH_SAM_APDU [06:40:21]CAPDU: 80 13 01 00 [06:40:21]Write to MH i2c: E2 08 00 D2 4C 80 13 01 00 00 00 00 00 9B [06:40:21]Write i2c OK [06:40:21]MH_I2C_Read... [06:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:21]Read from MH i2c: E2 [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: E2 0E 00 [06:40:21]MH_I2C_Read... [06:40:21]Read from MH i2c: E2 0E 00 D2 4C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 93 [06:40:21]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:40:21]wFMCommunicate OK [06:40:21]SAM_PROTO_GetShiftState done [06:40:21]FM_GetShiftState done [06:40:21]req_shift_opened done [06:40:21]requested_item shift.open_date is exist - process it [06:40:21]req_shift_open_date [06:40:21]req_shift_open_date done [06:40:21]produce_requested_data done [06:40:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50512,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [06:40:21]process_action_free close_receipt [06:40:21]json_value_free [06:40:21]json_value_free done [06:40:21]process_json_proto returns [06:40:21]Send response to host [06:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50512,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [06:40:21]free response buf [06:40:21]execute_script done [06:40:21]execute_script returns [06:40:21]free content buf [06:40:21]Sock 7.Close socket [06:40:21]Sock 7.Thread stoped [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44: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:05]accept exits with 9 [06:46:05]New connection [06:46:05]New thread 3067161956 created [06:46:05]Thread 3067305316 joined [06:46:05]Waiting for new connection... [06:46:05] Sock 9.Parse request [06:46:05]Sock 9.Check first char [06:46:05]Sock 9.First char is OK [06:46:05]request: POST /json_proto HTTP/1.0 [06:46:05]Method: POST [06:46:05]URL: /json_proto [06:46:05]Method is POST - this is cgi request [06:46:05]url: /json_proto [06:46:05]query_string will be loaded in cgi processing [06:46:05]execute_cgi json_proto POST (null) [06:46:05]execute_cgi path=json_proto method=POST [06:46:05]POST find Content-Length [06:46:05]Host: 172.17.49.196:8080 [06:46:05]Content-Length: 930 [06:46:05]Content-Type: application/json [06:46:05] [06:46:05]POST finish read [06:46:05]Found Content-Length = 930 [06:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164427", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000325891", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043F\u0440\u0430\u0439\u0442 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:05]execute_script... [06:46:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164427", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000325891", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043F\u0440\u0430\u0439\u0442 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:05]POST & json_proto [06:46:05]process_json_proto [06:46:05]json parsed OK: [06:46:05]protocol is kg_v1.0 [06:46:05]action value=close_receipt [06:46:05]process_action close_receipt [06:46:05]cmd_close_receipt [06:46:05]MH_GetDate [06:46:05]Write to MH i2c: F0 00 00 D3 4C 0E [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: F0 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: F0 09 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: F0 09 00 D3 4C 00 B9 3E 1B 67 BD 3B 11 67 00 [06:46:05]GetLastDocTimeStamp 1729838431 [06:46:05]current date 1729838777 [06:46:05]FM_GetShiftState [06:46:05]SAM_PROTO_GetShiftState [06:46:05]wFMCommunicate request_size=4 [06:46:05]MH_SAM_APDU [06:46:05]CAPDU: 80 13 01 00 [06:46:05]Write to MH i2c: E2 08 00 D4 4C 80 13 01 00 00 00 00 00 9D [06:46:05]Write i2c OK [06:46:05]MH_I2C_Read... [06:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:05]Read from MH i2c: E2 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 0E 00 [06:46:05]MH_I2C_Read... [06:46:05]Read from MH i2c: E2 0E 00 D4 4C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 95 [06:46:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:46:05]wFMCommunicate OK [06:46:05]SAM_PROTO_GetShiftState done [06:46:05]FM_GetShiftState done [06:46:05]opened in 1729815177 [06:46:05]opened+sec_in_day 1729901577 [06:46:05]quantity*price = 9000 [06:46:05]sum+1 = 9001 [06:46:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000325891 Напиток Спрайт 0,45л ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.60 НДС 12% : 19.12 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 13 25.10.2024 06:46 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50513 ФПД: 87974780326071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T064617&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50513&fm=87974780326071&tin=02508201610067®Number=0000000000097022&sum=18000 0 [06:46:06]StoreToDocumentArchive [06:46:06]shift 493 fd 50513 [06:46:06]save to /storage/0493/doc_00050513 [06:46:06]save last doc name /storage/0493/doc_00050513 to /storage/kkm_last_doc_name [06:46:06]save OK [06:46:06]Clear old archive folders... [06:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=392 [06:46:06]tlvbuf is 00128280 [06:46:06]SAM_PROTO_ClearQueue [06:46:06]wFMCommunicate request_size=4 [06:46:06]MH_SAM_APDU [06:46:06]CAPDU: 80 09 00 00 [06:46:06]Write to MH i2c: E2 08 00 E1 4C 80 09 00 00 00 00 00 00 9F [06:46:06]Write i2c OK [06:46:06]MH_I2C_Read... [06:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:06]Read from MH i2c: E2 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 03 00 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 03 00 E1 4C 00 90 00 A1 [06:46:06]RAPDU: 90 00 [06:46:06]wFMCommunicate OK [06:46:06]SAM_PROTO_ClearQueue done [06:46:06]KKMCreateOFDPacket [06:46:06]OFDProtocolAddRootSTLVToBuf [06:46:06]FM_MakeSignedData [06:46:06]FM_MakeSignedData [06:46:06]SAM_PROTO_SignData [06:46:06]wFMCommunicate request_size=4 [06:46:06]MH_SAM_APDU [06:46:06]CAPDU: 80 0D 01 02 [06:46:06]Write to MH i2c: E2 08 00 E2 4C 80 0D 01 02 00 00 00 00 A7 [06:46:06]Write i2c OK [06:46:06]MH_I2C_Read... [06:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:06]Read from MH i2c: E2 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 03 00 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 03 00 E2 4C 00 90 00 A2 [06:46:06]RAPDU: 90 00 [06:46:06]wFMCommunicate OK [06:46:06]wFMCommunicate request_size=255 [06:46:06]MH_SAM_APDU [06:46:06]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 38 39 31 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [06:46:06]Write to MH i2c: E2 02 01 E3 4C 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 38 39 31 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 DD [06:46:06]Write i2c OK [06:46:06]MH_I2C_Read... [06:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:06]Read from MH i2c: E2 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 03 00 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 03 00 E3 4C 00 90 00 A3 [06:46:06]RAPDU: 90 00 [06:46:06]wFMCommunicate OK [06:46:06]wFMCommunicate request_size=151 [06:46:06]MH_SAM_APDU [06:46:06]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B9 3E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 51 C5 00 00 35 04 06 00 50 03 39 87 D0 B7 [06:46:06]Write to MH i2c: E2 9A 00 E4 4C 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B9 3E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 51 C5 00 00 35 04 06 00 50 03 39 87 D0 B7 00 00 C8 [06:46:06]Write i2c OK [06:46:06]MH_I2C_Read... [06:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:06]Read from MH i2c: E2 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 03 00 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 03 00 E4 4C 00 90 00 A4 [06:46:06]RAPDU: 90 00 [06:46:06]wFMCommunicate OK [06:46:06]wFMCommunicate request_size=4 [06:46:06]MH_SAM_APDU [06:46:06]CAPDU: 80 0D 03 02 [06:46:06]Write to MH i2c: E2 08 00 E5 4C 80 0D 03 02 00 00 00 00 AC [06:46:06]Write i2c OK [06:46:06]MH_I2C_Read... [06:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:07]Read from MH i2c: E2 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 0B 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 0B 00 E5 4C 00 D2 1C 4A D2 28 3F 96 56 90 00 0A [06:46:07]RAPDU: D2 1C 4A D2 28 3F 96 56 90 00 [06:46:07]wFMCommunicate OK [06:46:07]SAM_PROTO_SignData done [06:46:07]FM_MakeSignedData done [06:46:07]CreateOFDProtocolMessage [06:46:07]wFMCommunicate request_size=4 [06:46:07]MH_SAM_APDU [06:46:07]CAPDU: 80 11 00 00 [06:46:07]Write to MH i2c: E2 08 00 E6 4C 80 11 00 00 00 00 00 00 AC [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:07]Read from MH i2c: E2 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 17 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 17 00 E6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F3 [06:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:46:07]wFMCommunicate OK [06:46:07]CreateOFDProtocolMessage done [06:46:07]OFDSenderStorePacket 50513 [06:46:07]StoreOFDPacket docnum=50513 [06:46:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9C 01 00 00 42 A3 94 01 E0 4E 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 38 39 31 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B9 3E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 51 C5 00 00 35 04 06 00 50 03 39 87 D0 B7 D2 1C 4A D2 28 3F 96 56 [06:46:07]CheckFolder [06:46:07]dirname=/storage/ofd_packets [06:46:07]CheckFolder done [06:46:07]ProducePacketName [06:46:07]name=ofd_packets/00050513 [06:46:07]NVStorageSaveData ofd_packets/00050513 [06:46:07]File name is /storage/ofd_packets/00050513 [06:46:07]Write 442 bytes [06:46:07]NVStorageSaveData done [06:46:07]OFDSenderStorePacket done [06:46:07]KKMCreateOFDPacket done [06:46:07]NVStorageSaveData kkm_last_timestamp [06:46:07]File name is /storage/kkm_last_timestamp [06:46:07]Write 4 bytes [06:46:07]NVStorageSaveData done [06:46:07]ExternCall_PrintAddStr [06:46:07]wPrintStart [06:46:07]Write to MH i2c: 01 00 00 E7 4C 33 [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: 01 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: 01 07 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: 01 07 00 E7 4C 00 00 00 00 00 FF 0F 48 [06:46:07]RasterBufferAndPrint [06:46:07]line Счет N : (3)164427 [06:46:07]line ИНН: 02508201610067 [06:46:07]line Контрольно-Кассовый Чек [06:46:07]line ПРОДАЖА [06:46:07]line Товар: 5449000325907 [06:46:07]line Напиток Фанта 0,45л ж/б [06:46:07]line 1.000 * 90.00 [06:46:07]line = 90.00 [06:46:07]line НДС 12% НСП 1% [06:46:07]line > о реализуемом товаре [06:46:07]line Товар: 5449000325891 [06:46:07]line Напиток Спрайт 0,45л ж/б [06:46:07]line 1.000 * 90.00 [06:46:07]line = 90.00 [06:46:07]line НДС 12% НСП 1% [06:46:07]line > о реализуемом товаре [06:46:07]line ИТОГО: 180.00 [06:46:07]line НСП 1% : 1.60 [06:46:07]line НДС 12% : 19.12 [06:46:07]line Наличными: 180.00 [06:46:07]line Безнал.: 0.00 [06:46:07]line Место: АЗС № 80 "Партнер Нефть" [06:46:07]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [06:46:07]line СНО: Общий режим [06:46:07]line Чек 13 25.10.2024 06:46 [06:46:07]line Смена: 493 ФФД: 1.0 [06:46:07]line ЗНМ: 0300000090 [06:46:07]line РНМ: 0000000000097022 [06:46:07]line Версия ККМ: 001 [06:46:07]line ФМ: 0000000000875000 [06:46:07]line ФД: 50513 [06:46:07]line ФПД: 87974780326071 [06:46:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T064617&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50513&fm=87974780326071&tin=02508201610067®Number=0000000000097022&sum=18000 [06:46:07]line 0 [06:46:07]OFD Sender: Processing packet 50513 [packets to send 7, broken 6] [06:46:07]ProducePacketName [06:46:07]name=ofd_packets/00050513 [06:46:07]OFD Sender: To server: pG, [06:46:07]CommunicateWithHost lk.salyk.kg:30040 [06:46:07]ConnectInit lk.salyk.kg [06:46:07]written 0, free lines is 4095 [06:46:07]Connected sock=10 [06:46:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9C 01 00 00 42 A3 94 01 E0 4E 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 38 39 31 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 B9 3E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 51 C5 00 00 35 04 06 00 50 03 39 87 D0 B7 D2 1C 4A D2 28 3F 96 56 [06:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C7 61 47 00 4C 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 51 C5 00 00 F4 03 04 00 4B EA 1A 67 B6 04 01 00 00 DD 33 A3 53 39 D9 5C CB [06:46:07]CommunicateWithHost err = 0 [06:46:07]CheckOFDResponse [06:46:07]1017 (14) - 77093643461234 [06:46:07]1041 (16) - 0000000000875000 [06:46:07]1040 (4) - 50513 [06:46:07]1012 (4) - 25.10.2024 00:46 [06:46:07]1206 (1) - 0 [06:46:07]OFD Sender: Remove packet 50513 [06:46:07]ProducePacketName [06:46:07]name=ofd_packets/00050513 [06:46:07]NVStorageDeleteData [06:46:07]Write to MH i2c: 01 00 00 15 4D 62 [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: 01 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: 01 07 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: 01 07 00 15 4D 00 00 00 00 00 E3 0C 58 [06:46:07]RasterBufferAndPrint [06:46:07]line [06:46:07]line [06:46:07]line [06:46:07]line [06:46:07]line [06:46:07]written 0, free lines is 3308 [06:46:07]process_action close_receipt done [06:46:07]requested_data is exist [06:46:07]produce_requested_data [06:46:07]requested_item fm.sn is exist - process it [06:46:07]wFMCommunicate request_size=4 [06:46:07]MH_SAM_APDU [06:46:07]CAPDU: 80 11 00 00 [06:46:07]Write to MH i2c: E2 08 00 1C 4D 80 11 00 00 00 00 00 00 E3 [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:07]Read from MH i2c: E2 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 17 00 [06:46:07]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 17 00 1C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2A [06:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:46:08]wFMCommunicate OK [06:46:08]requested_item fd.num is exist - process it [06:46:08]SAM_PROTO_GetFieldsCounters [06:46:08]wFMCommunicate request_size=4 [06:46:08]MH_SAM_APDU [06:46:08]CAPDU: 80 13 00 00 [06:46:08]Write to MH i2c: E2 08 00 1D 4D 80 13 00 00 00 00 00 00 E6 [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:08]Read from MH i2c: E2 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 62 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 62 00 1D 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 51 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [06:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 51 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:08]wFMCommunicate OK [06:46:08]SAM_PROTO_GetFieldsCounters done [06:46:08]requested_item shift.num is exist - process it [06:46:08]requested_item shift.opened is exist - process it [06:46:08]req_shift_opened [06:46:08]FM_GetShiftState [06:46:08]SAM_PROTO_GetShiftState [06:46:08]wFMCommunicate request_size=4 [06:46:08]MH_SAM_APDU [06:46:08]CAPDU: 80 13 01 00 [06:46:08]Write to MH i2c: E2 08 00 1E 4D 80 13 01 00 00 00 00 00 E8 [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:08]Read from MH i2c: E2 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 0E 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 0E 00 1E 4D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E0 [06:46:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:46:08]wFMCommunicate OK [06:46:08]SAM_PROTO_GetShiftState done [06:46:08]FM_GetShiftState done [06:46:08]req_shift_opened done [06:46:08]requested_item shift.open_date is exist - process it [06:46:08]req_shift_open_date [06:46:08]req_shift_open_date done [06:46:08]produce_requested_data done [06:46:08]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50513,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [06:46:08]process_action_free close_receipt [06:46:08]json_value_free [06:46:08]json_value_free done [06:46:08]process_json_proto returns [06:46:08]Send response to host [06:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50513,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [06:46:08]free response buf [06:46:08]execute_script done [06:46:08]execute_script returns [06:46:08]free content buf [06:46:08]Sock 9.Close socket [06:46:08]Sock 9.Thread stoped [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]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:04]accept exits with 7 [06:57:04]New connection [06:57:04]New thread 3067305316 created [06:57:04]Thread 3067161956 joined [06:57:04]Waiting for new connection... [06:57:04] Sock 7.Parse request [06:57:04]Sock 7.Check first char [06:57:04]Sock 7.First char is OK [06:57:04]request: POST /json_proto HTTP/1.0 [06:57:04]Method: POST [06:57:04]URL: /json_proto [06:57:04]Method is POST - this is cgi request [06:57:04]url: /json_proto [06:57:04]query_string will be loaded in cgi processing [06:57:04]execute_cgi json_proto POST (null) [06:57:04]execute_cgi path=json_proto method=POST [06:57:04]POST find Content-Length [06:57:04]Host: 172.17.49.196:8080 [06:57:04]Content-Length: 605 [06:57:04]Content-Type: application/json [06:57:04] [06:57:04]POST finish read [06:57:04]Found Content-Length = 605 [06:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164428", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 34.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:04]execute_script... [06:57:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164428", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 34.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:04]POST & json_proto [06:57:04]process_json_proto [06:57:04]json parsed OK: [06:57:04]protocol is kg_v1.0 [06:57:04]action value=close_receipt [06:57:04]process_action close_receipt [06:57:04]cmd_close_receipt [06:57:04]MH_GetDate [06:57:04]Write to MH i2c: F0 00 00 1F 4D 5B [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: F0 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: F0 09 00 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: F0 09 00 1F 4D 00 4D 41 1B 67 BD 3B 11 67 E4 [06:57:04]GetLastDocTimeStamp 1729838777 [06:57:04]current date 1729839437 [06:57:04]FM_GetShiftState [06:57:04]SAM_PROTO_GetShiftState [06:57:04]wFMCommunicate request_size=4 [06:57:04]MH_SAM_APDU [06:57:04]CAPDU: 80 13 01 00 [06:57:04]Write to MH i2c: E2 08 00 20 4D 80 13 01 00 00 00 00 00 EA [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:05]Read from MH i2c: E2 [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: E2 0E 00 [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: E2 0E 00 20 4D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E2 [06:57:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:57:05]wFMCommunicate OK [06:57:05]SAM_PROTO_GetShiftState done [06:57:05]FM_GetShiftState done [06:57:05]opened in 1729815177 [06:57:05]opened+sec_in_day 1729901577 [06:57:05]quantity*price = 3400 [06:57:05]sum+1 = 3401 [06:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 34.00 НСП 1% : 0.30 НДС 12% : 3.61 Наличными: 34.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 14 25.10.2024 06:57 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50514 ФПД: 136691648839766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T065717&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50514&fm=136691648839766&tin=02508201610067®Number=0000000000097022&sum=3400 0 [06:57:06]StoreToDocumentArchive [06:57:06]shift 493 fd 50514 [06:57:06]save to /storage/0493/doc_00050514 [06:57:06]save last doc name /storage/0493/doc_00050514 to /storage/kkm_last_doc_name [06:57:06]save OK [06:57:06]Clear old archive folders... [06:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=268 [06:57:06]tlvbuf is 002665C0 [06:57:06]SAM_PROTO_ClearQueue [06:57:06]wFMCommunicate request_size=4 [06:57:06]MH_SAM_APDU [06:57:06]CAPDU: 80 09 00 00 [06:57:06]Write to MH i2c: E2 08 00 2D 4D 80 09 00 00 00 00 00 00 EC [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:06]Read from MH i2c: E2 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 03 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 03 00 2D 4D 00 90 00 EE [06:57:06]RAPDU: 90 00 [06:57:06]wFMCommunicate OK [06:57:06]SAM_PROTO_ClearQueue done [06:57:06]KKMCreateOFDPacket [06:57:06]OFDProtocolAddRootSTLVToBuf [06:57:06]FM_MakeSignedData [06:57:06]FM_MakeSignedData [06:57:06]SAM_PROTO_SignData [06:57:06]wFMCommunicate request_size=4 [06:57:06]MH_SAM_APDU [06:57:06]CAPDU: 80 0D 01 02 [06:57:06]Write to MH i2c: E2 08 00 2E 4D 80 0D 01 02 00 00 00 00 F4 [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:06]Read from MH i2c: E2 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 03 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 03 00 2E 4D 00 90 00 EF [06:57:06]RAPDU: 90 00 [06:57:06]wFMCommunicate OK [06:57:06]wFMCommunicate request_size=255 [06:57:06]MH_SAM_APDU [06:57:06]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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 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 0E 00 00 00 F4 03 04 00 4D 41 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [06:57:06]Write to MH i2c: E2 02 01 2F 4D 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 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 0E 00 00 00 F4 03 04 00 4D 41 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 0F [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:06]Read from MH i2c: E2 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 03 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 03 00 2F 4D 00 90 00 F0 [06:57:06]RAPDU: 90 00 [06:57:06]wFMCommunicate OK [06:57:06]wFMCommunicate request_size=27 [06:57:06]MH_SAM_APDU [06:57:06]CAPDU: 80 0D 02 02 16 35 30 30 30 10 04 04 00 52 C5 00 00 35 04 06 00 7C 52 01 2C 40 56 [06:57:06]Write to MH i2c: E2 1E 00 30 4D 80 0D 02 02 16 00 35 30 30 30 10 04 04 00 52 C5 00 00 35 04 06 00 7C 52 01 2C 40 56 00 00 E7 [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:06]Read from MH i2c: E2 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 03 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 03 00 30 4D 00 90 00 F1 [06:57:06]RAPDU: 90 00 [06:57:06]wFMCommunicate OK [06:57:06]wFMCommunicate request_size=4 [06:57:06]MH_SAM_APDU [06:57:06]CAPDU: 80 0D 03 02 [06:57:06]Write to MH i2c: E2 08 00 31 4D 80 0D 03 02 00 00 00 00 F9 [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:06]Read from MH i2c: E2 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 0B 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 0B 00 31 4D 00 28 10 23 60 0A AC C9 83 90 00 B7 [06:57:06]RAPDU: 28 10 23 60 0A AC C9 83 90 00 [06:57:06]wFMCommunicate OK [06:57:06]SAM_PROTO_SignData done [06:57:06]FM_MakeSignedData done [06:57:06]CreateOFDProtocolMessage [06:57:06]wFMCommunicate request_size=4 [06:57:06]MH_SAM_APDU [06:57:06]CAPDU: 80 11 00 00 [06:57:06]Write to MH i2c: E2 08 00 32 4D 80 11 00 00 00 00 00 00 F9 [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:06]Read from MH i2c: E2 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 17 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 17 00 32 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 40 [06:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:57:06]wFMCommunicate OK [06:57:06]CreateOFDProtocolMessage done [06:57:06]OFDSenderStorePacket 50514 [06:57:06]StoreOFDPacket docnum=50514 [06:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 78 5D 18 01 E3 99 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 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 0E 00 00 00 F4 03 04 00 4D 41 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 52 C5 00 00 35 04 06 00 7C 52 01 2C 40 56 28 10 23 60 0A AC C9 83 [06:57:06]CheckFolder [06:57:06]dirname=/storage/ofd_packets [06:57:06]CheckFolder done [06:57:06]ProducePacketName [06:57:06]name=ofd_packets/00050514 [06:57:06]NVStorageSaveData ofd_packets/00050514 [06:57:06]File name is /storage/ofd_packets/00050514 [06:57:06]Write 318 bytes [06:57:06]NVStorageSaveData done [06:57:06]OFDSenderStorePacket done [06:57:06]KKMCreateOFDPacket done [06:57:06]NVStorageSaveData kkm_last_timestamp [06:57:06]File name is /storage/kkm_last_timestamp [06:57:06]Write 4 bytes [06:57:06]NVStorageSaveData done [06:57:06]ExternCall_PrintAddStr [06:57:06]wPrintStart [06:57:06]Write to MH i2c: 01 00 00 33 4D 80 [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: 01 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: 01 07 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: 01 07 00 33 4D 00 00 00 00 00 FF 0F 95 [06:57:06]RasterBufferAndPrint [06:57:06]line Счет N : (3)164428 [06:57:06]line ИНН: 02508201610067 [06:57:06]line Контрольно-Кассовый Чек [06:57:06]line ПРОДАЖА [06:57:06]line Товар: 50173976 [06:57:06]line Жев Orbit Winterfresh под [06:57:06]line 1.000 * 34.00 [06:57:06]line = 34.00 [06:57:06]line НДС 12% НСП 1% [06:57:06]line > о реализуемом товаре [06:57:06]line ИТОГО: 34.00 [06:57:06]line НСП 1% : 0.30 [06:57:06]line НДС 12% : 3.61 [06:57:06]line Наличными: 34.00 [06:57:06]line Безнал.: 0.00 [06:57:06]line Место: АЗС № 80 "Партнер Нефть" [06:57:06]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [06:57:06]line СНО: Общий режим [06:57:06]line Чек 14 25.10.2024 06:57 [06:57:06]line Смена: 493 ФФД: 1.0 [06:57:06]line ЗНМ: 0300000090 [06:57:06]line РНМ: 0000000000097022 [06:57:06]line Версия ККМ: 001 [06:57:06]line ФМ: 0000000000875000 [06:57:06]line ФД: 50514 [06:57:06]line ФПД: 136691648839766 [06:57:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T065717&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50514&fm=136691648839766&tin=02508201610067®Number=0000000000097022&sum=3400 [06:57:07]line 0 [06:57:07]OFD Sender: Processing packet 50514 [packets to send 7, broken 6] [06:57:07]ProducePacketName [06:57:07]name=ofd_packets/00050514 [06:57:07]OFD Sender: To server: pG, [06:57:07]CommunicateWithHost lk.salyk.kg:30040 [06:57:07]ConnectInit lk.salyk.kg [06:57:07]written 0, free lines is 4095 [06:57:07]Connected sock=10 [06:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 78 5D 18 01 E3 99 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 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 0E 00 00 00 F4 03 04 00 4D 41 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 52 C5 00 00 35 04 06 00 7C 52 01 2C 40 56 28 10 23 60 0A AC C9 83 [06:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 76 CE 47 00 BA 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 52 C5 00 00 F4 03 04 00 DF EC 1A 67 B6 04 01 00 00 F3 80 EB 53 26 5A 40 52 [06:57:07]CommunicateWithHost err = 0 [06:57:07]CheckOFDResponse [06:57:07]1017 (14) - 77093643461234 [06:57:07]1041 (16) - 0000000000875000 [06:57:07]1040 (4) - 50514 [06:57:07]1012 (4) - 25.10.2024 00:57 [06:57:07]1206 (1) - 0 [06:57:07]OFD Sender: Remove packet 50514 [06:57:07]ProducePacketName [06:57:07]name=ofd_packets/00050514 [06:57:07]NVStorageDeleteData [06:57:07]Write to MH i2c: 01 00 00 5B 4D A8 [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: 01 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: 01 07 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: 01 07 00 5B 4D 00 00 00 00 00 16 0D D2 [06:57:07]RasterBufferAndPrint [06:57:07]line [06:57:07]line [06:57:07]line [06:57:07]line [06:57:07]line [06:57:07]written 0, free lines is 3358 [06:57:07]process_action close_receipt done [06:57:07]requested_data is exist [06:57:07]produce_requested_data [06:57:07]requested_item fm.sn is exist - process it [06:57:07]wFMCommunicate request_size=4 [06:57:07]MH_SAM_APDU [06:57:07]CAPDU: 80 11 00 00 [06:57:07]Write to MH i2c: E2 08 00 62 4D 80 11 00 00 00 00 00 00 29 [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:07]Read from MH i2c: E2 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 17 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 17 00 62 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 70 [06:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [06:57:07]wFMCommunicate OK [06:57:07]requested_item fd.num is exist - process it [06:57:07]SAM_PROTO_GetFieldsCounters [06:57:07]wFMCommunicate request_size=4 [06:57:07]MH_SAM_APDU [06:57:07]CAPDU: 80 13 00 00 [06:57:07]Write to MH i2c: E2 08 00 63 4D 80 13 00 00 00 00 00 00 2C [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:07]Read from MH i2c: E2 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 62 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 62 00 63 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 52 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [06:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 52 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:57:07]wFMCommunicate OK [06:57:07]SAM_PROTO_GetFieldsCounters done [06:57:07]requested_item shift.num is exist - process it [06:57:07]requested_item shift.opened is exist - process it [06:57:07]req_shift_opened [06:57:07]FM_GetShiftState [06:57:07]SAM_PROTO_GetShiftState [06:57:07]wFMCommunicate request_size=4 [06:57:07]MH_SAM_APDU [06:57:07]CAPDU: 80 13 01 00 [06:57:07]Write to MH i2c: E2 08 00 64 4D 80 13 01 00 00 00 00 00 2E [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:07]Read from MH i2c: E2 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 0E 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 0E 00 64 4D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 26 [06:57:07]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [06:57:07]wFMCommunicate OK [06:57:07]SAM_PROTO_GetShiftState done [06:57:07]FM_GetShiftState done [06:57:07]req_shift_opened done [06:57:07]requested_item shift.open_date is exist - process it [06:57:07]req_shift_open_date [06:57:07]req_shift_open_date done [06:57:07]produce_requested_data done [06:57:07]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50514,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [06:57:07]process_action_free close_receipt [06:57:07]json_value_free [06:57:07]json_value_free done [06:57:07]process_json_proto returns [06:57:07]Send response to host [06:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50514,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [06:57:07]free response buf [06:57:07]execute_script done [06:57:07]execute_script returns [06:57:07]free content buf [06:57:07]Sock 7.Close socket [06:57:07]Sock 7.Thread stoped [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]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]accept exits with 9 [07:10:08]New connection [07:10:08]New thread 3067161956 created [07:10:08]Thread 3067305316 joined [07:10:08]Waiting for new connection... [07:10:08] Sock 9.Parse request [07:10:08]Sock 9.Check first char [07:10:08]Sock 9.First char is OK [07:10:08]request: POST /json_proto HTTP/1.0 [07:10:08]Method: POST [07:10:08]URL: /json_proto [07:10:08]Method is POST - this is cgi request [07:10:08]url: /json_proto [07:10:08]query_string will be loaded in cgi processing [07:10:08]execute_cgi json_proto POST (null) [07:10:08]execute_cgi path=json_proto method=POST [07:10:08]POST find Content-Length [07:10:08]Host: 172.17.49.196:8080 [07:10:08]Content-Length: 215 [07:10:08]Content-Type: application/json [07:10:08] [07:10:08]POST finish read [07:10:08]Found Content-Length = 215 [07:10: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" ] } } [07:10:08]execute_script... [07:10: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" ] } } [07:10:08]POST & json_proto [07:10:08]process_json_proto [07:10:08]json parsed OK: [07:10:08]protocol is kg_v1.0 [07:10:08]action value=get_value [07:10:08]process_action get_value [07:10:08]cmd_get_value [07:10:08]process_action get_value done [07:10:08]requested_data is exist [07:10:08]produce_requested_data [07:10:08]requested_item kkm.sn is exist - process it [07:10:08]requested_item kkm.ver is exist - process it [07:10:08]requested_item fm.sn is exist - process it [07:10:08]wFMCommunicate request_size=4 [07:10:08]MH_SAM_APDU [07:10:08]CAPDU: 80 11 00 00 [07:10:08]Write to MH i2c: E2 08 00 65 4D 80 11 00 00 00 00 00 00 2C [07:10:08]Write i2c OK [07:10:08]MH_I2C_Read... [07:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:08]Read from MH i2c: E2 [07:10:08]MH_I2C_Read... [07:10:08]Read from MH i2c: E2 17 00 [07:10:08]MH_I2C_Read... [07:10:08]Read from MH i2c: E2 17 00 65 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 73 [07:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:10:08]wFMCommunicate OK [07:10:08]requested_item fd.num is exist - process it [07:10:08]SAM_PROTO_GetFieldsCounters [07:10:08]wFMCommunicate request_size=4 [07:10:08]MH_SAM_APDU [07:10:08]CAPDU: 80 13 00 00 [07:10:08]Write to MH i2c: E2 08 00 66 4D 80 13 00 00 00 00 00 00 2F [07:10:08]Write i2c OK [07:10:08]MH_I2C_Read... [07:10:08]OFD Sender: No OFD packet to send [07:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:08]Read from MH i2c: E2 [07:10:08]MH_I2C_Read... [07:10:08]Read from MH i2c: E2 62 00 [07:10:08]MH_I2C_Read... [07:10:08]Read from MH i2c: E2 62 00 66 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 52 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [07:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 52 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:08]wFMCommunicate OK [07:10:08]SAM_PROTO_GetFieldsCounters done [07:10:08]requested_item shift.num is exist - process it [07:10:08]requested_item shift.opened is exist - process it [07:10:08]req_shift_opened [07:10:08]FM_GetShiftState [07:10:08]SAM_PROTO_GetShiftState [07:10:08]wFMCommunicate request_size=4 [07:10:08]MH_SAM_APDU [07:10:08]CAPDU: 80 13 01 00 [07:10:08]Write to MH i2c: E2 08 00 67 4D 80 13 01 00 00 00 00 00 31 [07:10:08]Write i2c OK [07:10:08]MH_I2C_Read... [07:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:08]Read from MH i2c: E2 [07:10:08]MH_I2C_Read... [07:10:08]Read from MH i2c: E2 0E 00 [07:10:08]MH_I2C_Read... [07:10:08]Read from MH i2c: E2 0E 00 67 4D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 29 [07:10:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:10:08]wFMCommunicate OK [07:10:08]SAM_PROTO_GetShiftState done [07:10:08]FM_GetShiftState done [07:10:08]req_shift_opened done [07:10:08]requested_item shift.open_date is exist - process it [07:10:08]req_shift_open_date [07:10:08]req_shift_open_date done [07:10:08]produce_requested_data done [07:10:08]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50514,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [07:10:08]process_action_free get_value [07:10:08]json_value_free [07:10:08]json_value_free done [07:10:08]process_json_proto returns [07:10:08]Send response to host [07:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50514,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [07:10:08]free response buf [07:10:08]execute_script done [07:10:08]execute_script returns [07:10:08]free content buf [07:10:08]Sock 9.Close socket [07:10:08]Sock 9.Thread stoped [07:10:08]accept exits with 7 [07:10:08]New connection [07:10:08]New thread 3067305316 created [07:10:08]Thread 3067161956 joined [07:10:08]Waiting for new connection... [07:10:08] Sock 7.Parse request [07:10:08]Sock 7.Check first char [07:10:08]Sock 7.First char is OK [07:10:08]request: POST /json_proto HTTP/1.0 [07:10:08]Method: POST [07:10:08]URL: /json_proto [07:10:08]Method is POST - this is cgi request [07:10:08]url: /json_proto [07:10:08]query_string will be loaded in cgi processing [07:10:08]execute_cgi json_proto POST (null) [07:10:08]execute_cgi path=json_proto method=POST [07:10:08]POST find Content-Length [07:10:08]Host: 172.17.49.196:8080 [07:10:08]Content-Length: 331 [07:10:08]Content-Type: application/json [07:10:08] [07:10:08]POST finish read [07:10:08]Found Content-Length = 331 [07:10:08]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" ] } } [07:10:08]execute_script... [07:10:08]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" ] } } [07:10:08]POST & json_proto [07:10:08]process_json_proto [07:10:08]json parsed OK: [07:10:08]protocol is kg_v1.0 [07:10:08]action value=get_value [07:10:08]process_action get_value [07:10:08]cmd_get_value [07:10:08]process_action get_value done [07:10:08]requested_data is exist [07:10:08]produce_requested_data [07:10:08]requested_item fm.sale.total is exist - process it [07:10:08]SAM_PROTO_GetFMData [07:10:08]wFMCommunicate request_size=4 [07:10:08]MH_SAM_APDU [07:10:08]CAPDU: 80 13 03 00 [07:10:08]Write to MH i2c: E2 08 00 68 4D 80 13 03 00 00 00 00 00 34 [07:10:08]Write i2c OK [07:10:08]MH_I2C_Read... [07:10:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:10:09]Read from MH i2c: E2 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 FD 00 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 FD 00 68 4D 00 C5 04 85 04 C1 04 6E 04 04 00 78 C1 00 00 69 04 A1 00 6F 04 04 00 78 C0 00 00 B1 04 04 00 89 68 A7 82 70 04 04 00 7C 30 97 61 72 04 04 00 0D 38 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 02 5F E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A F5 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 43 [07:10:09]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 78 C1 00 00 69 04 A1 00 6F 04 04 00 78 C0 00 00 B1 04 04 00 89 68 A7 82 70 04 04 00 7C 30 97 61 72 04 04 00 0D 38 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 02 5F E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A F5 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [07:10:09]wFMCommunicate OK [07:10:09]wFMCommunicate request_size=4 [07:10:09]MH_SAM_APDU [07:10:09]CAPDU: 80 17 00 00 [07:10:09]Write to MH i2c: E2 08 00 69 4D 80 17 00 00 00 00 00 00 36 [07:10:09]Write i2c OK [07:10:09]MH_I2C_Read... [07:10:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:09]Read from MH i2c: E2 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 FD 00 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 FD 00 69 4D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [07:10:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:09]wFMCommunicate OK [07:10:09]wFMCommunicate request_size=4 [07:10:09]MH_SAM_APDU [07:10:09]CAPDU: 80 17 00 00 [07:10:09]Write to MH i2c: E2 08 00 6A 4D 80 17 00 00 00 00 00 00 37 [07:10:09]Write i2c OK [07:10:09]MH_I2C_Read... [07:10:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:09]Read from MH i2c: E2 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 FD 00 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 FD 00 6A 4D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 49 [07:10:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:09]wFMCommunicate OK [07:10:09]wFMCommunicate request_size=4 [07:10:09]MH_SAM_APDU [07:10:09]CAPDU: 80 17 00 00 [07:10:09]Write to MH i2c: E2 08 00 6B 4D 80 17 00 00 00 00 00 00 38 [07:10:09]Write i2c OK [07:10:09]MH_I2C_Read... [07:10:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:10]Read from MH i2c: E2 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 FD 00 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 FD 00 6B 4D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [07:10:10]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:10]wFMCommunicate OK [07:10:10]wFMCommunicate request_size=4 [07:10:10]MH_SAM_APDU [07:10:10]CAPDU: 80 17 00 00 [07:10:10]Write to MH i2c: E2 08 00 6C 4D 80 17 00 00 00 00 00 00 39 [07:10:10]Write i2c OK [07:10:10]MH_I2C_Read... [07:10:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [07:10:10]Read from MH i2c: E2 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 E2 00 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 E2 00 6C 4D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 17 [07:10:10]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [07:10:10]wFMCommunicate OK [07:10:10]SAM_PROTO_GetFMData done [07:10:10]requested_item fm.sale_refund.total is exist - process it [07:10:10]requested_item fm.buy.total is exist - process it [07:10:10]requested_item shift.sale.total is exist - process it [07:10:10]SAM_PROTO_GetShiftData [07:10:10]wFMCommunicate request_size=4 [07:10:10]MH_SAM_APDU [07:10:10]CAPDU: 80 13 02 00 [07:10:10]Write to MH i2c: E2 08 00 6D 4D 80 13 02 00 00 00 00 00 38 [07:10:10]Write i2c OK [07:10:10]MH_I2C_Read... [07:10:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:10:10]Read from MH i2c: E2 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 FD 00 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 FD 00 6D 4D 00 AD 04 AA 04 A9 04 6E 04 04 00 0E 00 00 00 69 04 9A 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 74 3B 05 70 04 03 00 9C 70 02 72 04 03 00 D8 CA 02 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 3C 8E 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 DB 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [07:10:10]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 0E 00 00 00 69 04 9A 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 74 3B 05 70 04 03 00 9C 70 02 72 04 03 00 D8 CA 02 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 3C 8E 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 DB 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:10]wFMCommunicate OK [07:10:10]wFMCommunicate request_size=4 [07:10:10]MH_SAM_APDU [07:10:10]CAPDU: 80 17 00 00 [07:10:10]Write to MH i2c: E2 08 00 6E 4D 80 17 00 00 00 00 00 00 3B [07:10:10]Write i2c OK [07:10:10]MH_I2C_Read... [07:10:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 6E 4D 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [07:10:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:11]wFMCommunicate OK [07:10:11]wFMCommunicate request_size=4 [07:10:11]MH_SAM_APDU [07:10:11]CAPDU: 80 17 00 00 [07:10:11]Write to MH i2c: E2 08 00 6F 4D 80 17 00 00 00 00 00 00 3C [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 6F 4D 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [07:10:11]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:11]wFMCommunicate OK [07:10:11]wFMCommunicate request_size=4 [07:10:11]MH_SAM_APDU [07:10:11]CAPDU: 80 17 00 00 [07:10:11]Write to MH i2c: E2 08 00 70 4D 80 17 00 00 00 00 00 00 3D [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 70 4D 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 90 00 B2 [07:10:11]RAPDU: 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 90 00 [07:10:11]wFMCommunicate OK [07:10:11]wFMCommunicate request_size=4 [07:10:11]MH_SAM_APDU [07:10:11]CAPDU: 80 17 00 00 [07:10:11]Write to MH i2c: E2 08 00 71 4D 80 17 00 00 00 00 00 00 3E [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [07:10:12]Read from MH i2c: E2 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 CA 00 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 CA 00 71 4D 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 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 [07:10:12]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 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 [07:10:12]wFMCommunicate OK [07:10:12]SAM_PROTO_GetShiftData done [07:10:12]requested_item shift.sale.total_cash is exist - process it [07:10:12]requested_item shift.sale_refund.total is exist - process it [07:10:12]requested_item shift.sale_refund.total_cash is exist - process it [07:10:12]requested_item shift.buy.total is exist - process it [07:10:12]requested_item shift.buy.total_cash is exist - process it [07:10:12]produce_requested_data done [07:10:12]produce_requested_data return {"fm.sale.total":21920093.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":3429.00,"shift.sale.total_cash":1599.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} [07:10:12]process_action_free get_value [07:10:12]json_value_free [07:10:12]json_value_free done [07:10:12]process_json_proto returns [07:10:12]Send response to host [07:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21920093.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":3429.00,"shift.sale.total_cash":1599.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}}} [07:10:12]free response buf [07:10:12]execute_script done [07:10:12]execute_script returns [07:10:12]free content buf [07:10:12]Sock 7.Close socket [07:10:12]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]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:09]OFD Sender: No OFD packet to send [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]accept exits with 9 [07:24:34]New connection [07:24:34]New thread 3067161956 created [07:24:34]Thread 3067305316 joined [07:24:34]Waiting for new connection... [07:24:34] Sock 9.Parse request [07:24:34]Sock 9.Check first char [07:24:34]Sock 9.First char is OK [07:24:34]request: POST /json_proto HTTP/1.0 [07:24:34]Method: POST [07:24:34]URL: /json_proto [07:24:34]Method is POST - this is cgi request [07:24:34]url: /json_proto [07:24:34]query_string will be loaded in cgi processing [07:24:34]execute_cgi json_proto POST (null) [07:24:34]execute_cgi path=json_proto method=POST [07:24:34]POST find Content-Length [07:24:34]Host: 172.17.49.196:8080 [07:24:34]Content-Length: 928 [07:24:34]Content-Type: application/json [07:24:34] [07:24:34]POST finish read [07:24:34]Found Content-Length = 928 [07:24:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164429", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:34]execute_script... [07:24: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)164429", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:34]POST & json_proto [07:24:34]process_json_proto [07:24:34]json parsed OK: [07:24:34]protocol is kg_v1.0 [07:24:34]action value=close_receipt [07:24:34]process_action close_receipt [07:24:34]cmd_close_receipt [07:24:34]MH_GetDate [07:24:34]Write to MH i2c: F0 00 00 72 4D AE [07:24:34]Write i2c OK [07:24:34]MH_I2C_Read... [07:24:34]Read from MH i2c: F0 [07:24:34]MH_I2C_Read... [07:24:34]Read from MH i2c: F0 09 00 [07:24:34]MH_I2C_Read... [07:24:34]Read from MH i2c: F0 09 00 72 4D 00 BF 47 1B 67 BD 3B 11 67 AF [07:24:34]GetLastDocTimeStamp 1729839437 [07:24:34]current date 1729841087 [07:24:34]FM_GetShiftState [07:24:34]SAM_PROTO_GetShiftState [07:24:34]wFMCommunicate request_size=4 [07:24:34]MH_SAM_APDU [07:24:34]CAPDU: 80 13 01 00 [07:24:34]Write to MH i2c: E2 08 00 73 4D 80 13 01 00 00 00 00 00 3D [07:24:34]Write i2c OK [07:24:34]MH_I2C_Read... [07:24:34]OFD Sender: No OFD packet to send [07:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:34]Read from MH i2c: E2 [07:24:34]MH_I2C_Read... [07:24:34]Read from MH i2c: E2 0E 00 [07:24:34]MH_I2C_Read... [07:24:34]Read from MH i2c: E2 0E 00 73 4D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 35 [07:24:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:24:34]wFMCommunicate OK [07:24:34]SAM_PROTO_GetShiftState done [07:24:34]FM_GetShiftState done [07:24:34]opened in 1729815177 [07:24:34]opened+sec_in_day 1729901577 [07:24:34]quantity*price = 22500 [07:24:34]sum+1 = 22501 [07:24:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.10 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 15 25.10.2024 07:24 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50515 ФПД: 277500467562260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T072447&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50515&fm=277500467562260&tin=02508201610067®Number=0000000000097022&sum=34000 0 [07:24:35]StoreToDocumentArchive [07:24:35]shift 493 fd 50515 [07:24:35]save to /storage/0493/doc_00050515 [07:24:35]save last doc name /storage/0493/doc_00050515 to /storage/kkm_last_doc_name [07:24:35]save OK [07:24:35]Clear old archive folders... [07:24:35]ProcessDocumentItem done err = 0, tmpTLVsize=406 [07:24:35]tlvbuf is 0011C210 [07:24:35]SAM_PROTO_ClearQueue [07:24:35]wFMCommunicate request_size=4 [07:24:35]MH_SAM_APDU [07:24:35]CAPDU: 80 09 00 00 [07:24:35]Write to MH i2c: E2 08 00 80 4D 80 09 00 00 00 00 00 00 3F [07:24:35]Write i2c OK [07:24:35]MH_I2C_Read... [07:24:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:35]Read from MH i2c: E2 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 03 00 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 03 00 80 4D 00 90 00 41 [07:24:35]RAPDU: 90 00 [07:24:35]wFMCommunicate OK [07:24:35]SAM_PROTO_ClearQueue done [07:24:35]KKMCreateOFDPacket [07:24:35]OFDProtocolAddRootSTLVToBuf [07:24:35]FM_MakeSignedData [07:24:35]FM_MakeSignedData [07:24:35]SAM_PROTO_SignData [07:24:35]wFMCommunicate request_size=4 [07:24:35]MH_SAM_APDU [07:24:35]CAPDU: 80 0D 01 02 [07:24:35]Write to MH i2c: E2 08 00 81 4D 80 0D 01 02 00 00 00 00 47 [07:24:35]Write i2c OK [07:24:35]MH_I2C_Read... [07:24:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:35]Read from MH i2c: E2 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 03 00 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 03 00 81 4D 00 90 00 42 [07:24:35]RAPDU: 90 00 [07:24:35]wFMCommunicate OK [07:24:35]wFMCommunicate request_size=255 [07:24:35]MH_SAM_APDU [07:24:35]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 [07:24:35]Write to MH i2c: E2 02 01 82 4D 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 00 00 02 [07:24:35]Write i2c OK [07:24:35]MH_I2C_Read... [07:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:35]Read from MH i2c: E2 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 03 00 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 03 00 82 4D 00 90 00 43 [07:24:35]RAPDU: 90 00 [07:24:35]wFMCommunicate OK [07:24:35]wFMCommunicate request_size=165 [07:24:35]MH_SAM_APDU [07:24:35]CAPDU: 80 0D 02 02 A0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BF 47 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 53 C5 00 00 35 04 06 00 FC 62 9C CB 47 14 [07:24:35]Write to MH i2c: E2 A8 00 83 4D 80 0D 02 02 A0 00 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BF 47 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 53 C5 00 00 35 04 06 00 FC 62 9C CB 47 14 00 00 A1 [07:24:35]Write i2c OK [07:24:35]MH_I2C_Read... [07:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:35]Read from MH i2c: E2 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 03 00 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 03 00 83 4D 00 90 00 44 [07:24:35]RAPDU: 90 00 [07:24:35]wFMCommunicate OK [07:24:35]wFMCommunicate request_size=4 [07:24:35]MH_SAM_APDU [07:24:35]CAPDU: 80 0D 03 02 [07:24:35]Write to MH i2c: E2 08 00 84 4D 80 0D 03 02 00 00 00 00 4C [07:24:35]Write i2c OK [07:24:35]MH_I2C_Read... [07:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:35]Read from MH i2c: E2 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 0B 00 [07:24:35]MH_I2C_Read... [07:24:35]Read from MH i2c: E2 0B 00 84 4D 00 FD 6C EC DD 56 68 7B E3 90 00 9B [07:24:35]RAPDU: FD 6C EC DD 56 68 7B E3 90 00 [07:24:35]wFMCommunicate OK [07:24:35]SAM_PROTO_SignData done [07:24:35]FM_MakeSignedData done [07:24:35]CreateOFDProtocolMessage [07:24:35]wFMCommunicate request_size=4 [07:24:35]MH_SAM_APDU [07:24:35]CAPDU: 80 11 00 00 [07:24:35]Write to MH i2c: E2 08 00 85 4D 80 11 00 00 00 00 00 00 4C [07:24:35]Write i2c OK [07:24:35]MH_I2C_Read... [07:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:36]Read from MH i2c: E2 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: E2 17 00 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: E2 17 00 85 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 93 [07:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:24:36]wFMCommunicate OK [07:24:36]CreateOFDProtocolMessage done [07:24:36]OFDSenderStorePacket 50515 [07:24:36]StoreOFDPacket docnum=50515 [07:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 AA 01 00 00 AD 54 A2 01 12 3A 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BF 47 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 53 C5 00 00 35 04 06 00 FC 62 9C CB 47 14 FD 6C EC DD 56 68 7B E3 [07:24:36]CheckFolder [07:24:36]dirname=/storage/ofd_packets [07:24:36]CheckFolder done [07:24:36]ProducePacketName [07:24:36]name=ofd_packets/00050515 [07:24:36]NVStorageSaveData ofd_packets/00050515 [07:24:36]File name is /storage/ofd_packets/00050515 [07:24:36]Write 456 bytes [07:24:36]NVStorageSaveData done [07:24:36]OFDSenderStorePacket done [07:24:36]KKMCreateOFDPacket done [07:24:36]NVStorageSaveData kkm_last_timestamp [07:24:36]File name is /storage/kkm_last_timestamp [07:24:36]Write 4 bytes [07:24:36]NVStorageSaveData done [07:24:36]ExternCall_PrintAddStr [07:24:36]wPrintStart [07:24:36]Write to MH i2c: 01 00 00 86 4D D3 [07:24:36]Write i2c OK [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: 01 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: 01 07 00 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: 01 07 00 86 4D 00 00 00 00 00 FF 0F E8 [07:24:36]RasterBufferAndPrint [07:24:36]line Счет N : (3)164429 [07:24:36]line ИНН: 02508201610067 [07:24:36]line Контрольно-Кассовый Чек [07:24:36]line ПРОДАЖА [07:24:36]line Товар: 4670003190013 [07:24:36]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [07:24:36]line 1.000 * 225.00 [07:24:36]line = 225.00 [07:24:36]line НДС 12% НСП 1% [07:24:36]line > о реализуемом товаре [07:24:36]line Товар: 2000036210013 [07:24:36]line Кофе Капучино (GABB TRADE) [07:24:36]line 1.000 * 115.00 [07:24:36]line = 115.00 [07:24:36]line НДС 12% НСП 1% [07:24:36]line > о реализуемом товаре [07:24:36]line ИТОГО: 340.00 [07:24:36]line НСП 1% : 3.01 [07:24:36]line НДС 12% : 36.10 [07:24:36]line Наличными: 340.00 [07:24:36]line Безнал.: 0.00 [07:24:36]line Место: АЗС № 80 "Партнер Нефть" [07:24:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:24:36]line СНО: Общий режим [07:24:36]line Чек 15 25.10.2024 07:24 [07:24:36]line Смена: 493 ФФД: 1.0 [07:24:36]line ЗНМ: 0300000090 [07:24:36]line РНМ: 0000000000097022 [07:24:36]line Версия ККМ: 001 [07:24:36]line ФМ: 0000000000875000 [07:24:36]line ФД: 50515 [07:24:36]line ФПД: 277500467562260 [07:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T072447&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50515&fm=277500467562260&tin=02508201610067®Number=0000000000097022&sum=34000 [07:24:36]OFD Sender: Processing packet 50515 [packets to send 7, broken 6] [07:24:36]ProducePacketName [07:24:36]name=ofd_packets/00050515 [07:24:36]OFD Sender: To server: pG, [07:24:36]CommunicateWithHost lk.salyk.kg:30040 [07:24:36]ConnectInit lk.salyk.kg [07:24:36]line 0 [07:24:36]written 0, free lines is 4095 [07:24:36]Connected sock=10 [07:24:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 AA 01 00 00 AD 54 A2 01 12 3A 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BF 47 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 53 C5 00 00 35 04 06 00 FC 62 9C CB 47 14 FD 6C EC DD 56 68 7B E3 [07:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 77 72 47 00 EB BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 53 C5 00 00 F4 03 04 00 50 F3 1A 67 B6 04 01 00 00 FC 1A 35 B3 E4 42 F3 98 [07:24:36]CommunicateWithHost err = 0 [07:24:36]CheckOFDResponse [07:24:36]1017 (14) - 77093643461234 [07:24:36]1041 (16) - 0000000000875000 [07:24:36]1040 (4) - 50515 [07:24:36]1012 (4) - 25.10.2024 01:24 [07:24:36]1206 (1) - 0 [07:24:36]OFD Sender: Remove packet 50515 [07:24:36]ProducePacketName [07:24:36]name=ofd_packets/00050515 [07:24:36]NVStorageDeleteData [07:24:36]Write to MH i2c: 01 00 00 B5 4D 02 [07:24:36]Write i2c OK [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: 01 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: 01 07 00 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: 01 07 00 B5 4D 00 00 00 00 00 EB 0C 00 [07:24:36]RasterBufferAndPrint [07:24:36]line [07:24:36]line [07:24:36]line [07:24:36]line [07:24:36]line [07:24:36]written 0, free lines is 3316 [07:24:36]process_action close_receipt done [07:24:36]requested_data is exist [07:24:36]produce_requested_data [07:24:36]requested_item fm.sn is exist - process it [07:24:36]wFMCommunicate request_size=4 [07:24:36]MH_SAM_APDU [07:24:36]CAPDU: 80 11 00 00 [07:24:36]Write to MH i2c: E2 08 00 BC 4D 80 11 00 00 00 00 00 00 83 [07:24:36]Write i2c OK [07:24:36]MH_I2C_Read... [07:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:36]Read from MH i2c: E2 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: E2 17 00 [07:24:36]MH_I2C_Read... [07:24:36]Read from MH i2c: E2 17 00 BC 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CA [07:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:24:36]wFMCommunicate OK [07:24:36]requested_item fd.num is exist - process it [07:24:36]SAM_PROTO_GetFieldsCounters [07:24:36]wFMCommunicate request_size=4 [07:24:36]MH_SAM_APDU [07:24:36]CAPDU: 80 13 00 00 [07:24:36]Write to MH i2c: E2 08 00 BD 4D 80 13 00 00 00 00 00 00 86 [07:24:36]Write i2c OK [07:24:36]MH_I2C_Read... [07:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:37]Read from MH i2c: E2 [07:24:37]MH_I2C_Read... [07:24:37]Read from MH i2c: E2 62 00 [07:24:37]MH_I2C_Read... [07:24:37]Read from MH i2c: E2 62 00 BD 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 53 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [07:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 53 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:24:37]wFMCommunicate OK [07:24:37]SAM_PROTO_GetFieldsCounters done [07:24:37]requested_item shift.num is exist - process it [07:24:37]requested_item shift.opened is exist - process it [07:24:37]req_shift_opened [07:24:37]FM_GetShiftState [07:24:37]SAM_PROTO_GetShiftState [07:24:37]wFMCommunicate request_size=4 [07:24:37]MH_SAM_APDU [07:24:37]CAPDU: 80 13 01 00 [07:24:37]Write to MH i2c: E2 08 00 BE 4D 80 13 01 00 00 00 00 00 88 [07:24:37]Write i2c OK [07:24:37]MH_I2C_Read... [07:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:37]Read from MH i2c: E2 [07:24:37]MH_I2C_Read... [07:24:37]Read from MH i2c: E2 0E 00 [07:24:37]MH_I2C_Read... [07:24:37]Read from MH i2c: E2 0E 00 BE 4D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 80 [07:24:37]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:24:37]wFMCommunicate OK [07:24:37]SAM_PROTO_GetShiftState done [07:24:37]FM_GetShiftState done [07:24:37]req_shift_opened done [07:24:37]requested_item shift.open_date is exist - process it [07:24:37]req_shift_open_date [07:24:37]req_shift_open_date done [07:24:37]produce_requested_data done [07:24:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50515,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [07:24:37]process_action_free close_receipt [07:24:37]json_value_free [07:24:37]json_value_free done [07:24:37]process_json_proto returns [07:24:37]Send response to host [07:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50515,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [07:24:37]free response buf [07:24:37]execute_script done [07:24:37]execute_script returns [07:24:37]free content buf [07:24:37]Sock 9.Close socket [07:24:37]Sock 9.Thread stoped [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:21]accept exits with 7 [07:33:21]New connection [07:33:21]New thread 3067305316 created [07:33:21]Thread 3067161956 joined [07:33:21]Waiting for new connection... [07:33:21] Sock 7.Parse request [07:33:21]Sock 7.Check first char [07:33:21]Sock 7.First char is OK [07:33:21]request: POST /json_proto HTTP/1.0 [07:33:21]Method: POST [07:33:21]URL: /json_proto [07:33:21]Method is POST - this is cgi request [07:33:21]url: /json_proto [07:33:21]query_string will be loaded in cgi processing [07:33:21]execute_cgi json_proto POST (null) [07:33:21]execute_cgi path=json_proto method=POST [07:33:21]POST find Content-Length [07:33:21]Host: 172.17.49.196:8080 [07:33:21]Content-Length: 652 [07:33:21]Content-Type: application/json [07:33:21] [07:33:21]POST finish read [07:33:21]Found Content-Length = 652 [07:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164430", "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 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:21]execute_script... [07:33: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)164430", "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 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:21]POST & json_proto [07:33:21]process_json_proto [07:33:21]json parsed OK: [07:33:21]protocol is kg_v1.0 [07:33:21]action value=close_receipt [07:33:21]process_action close_receipt [07:33:21]cmd_close_receipt [07:33:21]MH_GetDate [07:33:21]Write to MH i2c: F0 00 00 BF 4D FB [07:33:21]Write i2c OK [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: F0 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: F0 09 00 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: F0 09 00 BF 4D 00 CE 49 1B 67 BD 3B 11 67 0D [07:33:21]GetLastDocTimeStamp 1729841087 [07:33:21]current date 1729841614 [07:33:21]FM_GetShiftState [07:33:21]SAM_PROTO_GetShiftState [07:33:21]wFMCommunicate request_size=4 [07:33:21]MH_SAM_APDU [07:33:21]CAPDU: 80 13 01 00 [07:33:21]Write to MH i2c: E2 08 00 C0 4D 80 13 01 00 00 00 00 00 8A [07:33:21]Write i2c OK [07:33:21]MH_I2C_Read... [07:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:21]Read from MH i2c: E2 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 0E 00 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 0E 00 C0 4D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 82 [07:33:21]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:33:21]wFMCommunicate OK [07:33:21]SAM_PROTO_GetShiftState done [07:33:21]FM_GetShiftState done [07:33:21]opened in 1729815177 [07:33:21]opened+sec_in_day 1729901577 [07:33:21]quantity*price = 12500 [07:33:21]sum+1 = 12501 [07:33:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 16 25.10.2024 07:33 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50516 ФПД: 39599858502817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T073334&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50516&fm=39599858502817&tin=02508201610067®Number=0000000000097022&sum=12500 0 [07:33:23]StoreToDocumentArchive [07:33:23]shift 493 fd 50516 [07:33:23]save to /storage/0493/doc_00050516 [07:33:23]save last doc name /storage/0493/doc_00050516 to /storage/kkm_last_doc_name [07:33:23]save OK [07:33:23]Clear old archive folders... [07:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=284 [07:33:23]tlvbuf is B6FAB010 [07:33:23]SAM_PROTO_ClearQueue [07:33:23]wFMCommunicate request_size=4 [07:33:23]MH_SAM_APDU [07:33:23]CAPDU: 80 09 00 00 [07:33:23]Write to MH i2c: E2 08 00 CD 4D 80 09 00 00 00 00 00 00 8C [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:23]Read from MH i2c: E2 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 03 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 03 00 CD 4D 00 90 00 8E [07:33:23]RAPDU: 90 00 [07:33:23]wFMCommunicate OK [07:33:23]SAM_PROTO_ClearQueue done [07:33:23]KKMCreateOFDPacket [07:33:23]OFDProtocolAddRootSTLVToBuf [07:33:23]FM_MakeSignedData [07:33:23]FM_MakeSignedData [07:33:23]SAM_PROTO_SignData [07:33:23]wFMCommunicate request_size=4 [07:33:23]MH_SAM_APDU [07:33:23]CAPDU: 80 0D 01 02 [07:33:23]Write to MH i2c: E2 08 00 CE 4D 80 0D 01 02 00 00 00 00 94 [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:23]Read from MH i2c: E2 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 03 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 03 00 CE 4D 00 90 00 8F [07:33:23]RAPDU: 90 00 [07:33:23]wFMCommunicate OK [07:33:23]wFMCommunicate request_size=255 [07:33:23]MH_SAM_APDU [07:33:23]CAPDU: 80 0D 02 02 FA 03 00 1C 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 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 10 00 00 00 F4 03 04 00 CE 49 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [07:33:23]Write to MH i2c: E2 02 01 CF 4D 80 0D 02 02 FA 00 03 00 1C 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 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 10 00 00 00 F4 03 04 00 CE 49 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 C8 [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:23]Read from MH i2c: E2 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 03 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 03 00 CF 4D 00 90 00 90 [07:33:23]RAPDU: 90 00 [07:33:23]wFMCommunicate OK [07:33:23]wFMCommunicate request_size=43 [07:33:23]MH_SAM_APDU [07:33:23]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 54 C5 00 00 35 04 06 00 24 04 0F 7F CC A1 [07:33:23]Write to MH i2c: E2 2E 00 D0 4D 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 54 C5 00 00 35 04 06 00 24 04 0F 7F CC A1 00 00 AF [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:23]Read from MH i2c: E2 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 03 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 03 00 D0 4D 00 90 00 91 [07:33:23]RAPDU: 90 00 [07:33:23]wFMCommunicate OK [07:33:23]wFMCommunicate request_size=4 [07:33:23]MH_SAM_APDU [07:33:23]CAPDU: 80 0D 03 02 [07:33:23]Write to MH i2c: E2 08 00 D1 4D 80 0D 03 02 00 00 00 00 99 [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:23]Read from MH i2c: E2 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 0B 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 0B 00 D1 4D 00 9C F6 77 22 21 2D B8 19 90 00 E4 [07:33:23]RAPDU: 9C F6 77 22 21 2D B8 19 90 00 [07:33:23]wFMCommunicate OK [07:33:23]SAM_PROTO_SignData done [07:33:23]FM_MakeSignedData done [07:33:23]CreateOFDProtocolMessage [07:33:23]wFMCommunicate request_size=4 [07:33:23]MH_SAM_APDU [07:33:23]CAPDU: 80 11 00 00 [07:33:23]Write to MH i2c: E2 08 00 D2 4D 80 11 00 00 00 00 00 00 99 [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:23]Read from MH i2c: E2 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 17 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: E2 17 00 D2 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E0 [07:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:33:23]wFMCommunicate OK [07:33:23]CreateOFDProtocolMessage done [07:33:23]OFDSenderStorePacket 50516 [07:33:23]StoreOFDPacket docnum=50516 [07:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 07 1C 28 01 92 D3 5A 03 01 00 03 00 1C 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 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 10 00 00 00 F4 03 04 00 CE 49 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 54 C5 00 00 35 04 06 00 24 04 0F 7F CC A1 9C F6 77 22 21 2D B8 19 [07:33:23]CheckFolder [07:33:23]dirname=/storage/ofd_packets [07:33:23]CheckFolder done [07:33:23]ProducePacketName [07:33:23]name=ofd_packets/00050516 [07:33:23]NVStorageSaveData ofd_packets/00050516 [07:33:23]File name is /storage/ofd_packets/00050516 [07:33:23]Write 334 bytes [07:33:23]NVStorageSaveData done [07:33:23]OFDSenderStorePacket done [07:33:23]KKMCreateOFDPacket done [07:33:23]NVStorageSaveData kkm_last_timestamp [07:33:23]File name is /storage/kkm_last_timestamp [07:33:23]Write 4 bytes [07:33:23]NVStorageSaveData done [07:33:23]ExternCall_PrintAddStr [07:33:23]wPrintStart [07:33:23]Write to MH i2c: 01 00 00 D3 4D 20 [07:33:23]Write i2c OK [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: 01 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: 01 07 00 [07:33:23]MH_I2C_Read... [07:33:23]Read from MH i2c: 01 07 00 D3 4D 00 00 00 00 00 FF 0F 35 [07:33:23]RasterBufferAndPrint [07:33:23]line Счет N : (3)164430 [07:33:23]line ИНН: 02508201610067 [07:33:23]line Контрольно-Кассовый Чек [07:33:23]line ПРОДАЖА [07:33:23]line Товар: 2000036190018 [07:33:23]line Кофе Американо XL(GABB TRADE) [07:33:23]line 1.000 * 125.00 [07:33:23]line = 125.00 [07:33:23]line НДС 12% НСП 1% [07:33:23]line > о реализуемом товаре [07:33:23]line ИТОГО: 125.00 [07:33:23]line НСП 1% : 1.11 [07:33:23]line НДС 12% : 13.27 [07:33:23]line Наличными: 125.00 [07:33:23]line Безнал.: 0.00 [07:33:23]line Место: АЗС № 80 "Партнер Нефть" [07:33:23]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:33:23]line СНО: Общий режим [07:33:23]line Чек 16 25.10.2024 07:33 [07:33:23]line Смена: 493 ФФД: 1.0 [07:33:23]line ЗНМ: 0300000090 [07:33:23]line РНМ: 0000000000097022 [07:33:23]line Версия ККМ: 001 [07:33:23]line ФМ: 0000000000875000 [07:33:23]line ФД: 50516 [07:33:23]line ФПД: 39599858502817 [07:33:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T073334&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50516&fm=39599858502817&tin=02508201610067®Number=0000000000097022&sum=12500 [07:33:23]line 0 [07:33:23]OFD Sender: Processing packet 50516 [packets to send 7, broken 6] [07:33:23]ProducePacketName [07:33:23]name=ofd_packets/00050516 [07:33:23]OFD Sender: To server: pG, [07:33:23]CommunicateWithHost lk.salyk.kg:30040 [07:33:23]ConnectInit lk.salyk.kg [07:33:23]written 0, free lines is 4095 [07:33:24]Connected sock=9 [07:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 07 1C 28 01 92 D3 5A 03 01 00 03 00 1C 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 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 10 00 00 00 F4 03 04 00 CE 49 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 54 C5 00 00 35 04 06 00 24 04 0F 7F CC A1 9C F6 77 22 21 2D B8 19 [07:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 85 0D 47 00 39 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 54 C5 00 00 F4 03 04 00 60 F5 1A 67 B6 04 01 00 00 2B 98 D2 40 4C 5A 6B F6 [07:33:24]CommunicateWithHost err = 0 [07:33:24]CheckOFDResponse [07:33:24]1017 (14) - 77093643461234 [07:33:24]1041 (16) - 0000000000875000 [07:33:24]1040 (4) - 50516 [07:33:24]1012 (4) - 25.10.2024 01:33 [07:33:24]1206 (1) - 0 [07:33:24]OFD Sender: Remove packet 50516 [07:33:24]ProducePacketName [07:33:24]name=ofd_packets/00050516 [07:33:24]NVStorageDeleteData [07:33:24]Write to MH i2c: 01 00 00 FC 4D 49 [07:33:24]Write i2c OK [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: 01 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: 01 07 00 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: 01 07 00 FC 4D 00 00 00 00 00 1D 0D 7A [07:33:24]RasterBufferAndPrint [07:33:24]line [07:33:24]line [07:33:24]line [07:33:24]line [07:33:24]line [07:33:24]written 0, free lines is 3363 [07:33:24]process_action close_receipt done [07:33:24]requested_data is exist [07:33:24]produce_requested_data [07:33:24]requested_item fm.sn is exist - process it [07:33:24]wFMCommunicate request_size=4 [07:33:24]MH_SAM_APDU [07:33:24]CAPDU: 80 11 00 00 [07:33:24]Write to MH i2c: E2 08 00 03 4E 80 11 00 00 00 00 00 00 CB [07:33:24]Write i2c OK [07:33:24]MH_I2C_Read... [07:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:24]Read from MH i2c: E2 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 17 00 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 17 00 03 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 12 [07:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:33:24]wFMCommunicate OK [07:33:24]requested_item fd.num is exist - process it [07:33:24]SAM_PROTO_GetFieldsCounters [07:33:24]wFMCommunicate request_size=4 [07:33:24]MH_SAM_APDU [07:33:24]CAPDU: 80 13 00 00 [07:33:24]Write to MH i2c: E2 08 00 04 4E 80 13 00 00 00 00 00 00 CE [07:33:24]Write i2c OK [07:33:24]MH_I2C_Read... [07:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:24]Read from MH i2c: E2 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 62 00 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 62 00 04 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 54 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [07:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 54 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:33:24]wFMCommunicate OK [07:33:24]SAM_PROTO_GetFieldsCounters done [07:33:24]requested_item shift.num is exist - process it [07:33:24]requested_item shift.opened is exist - process it [07:33:24]req_shift_opened [07:33:24]FM_GetShiftState [07:33:24]SAM_PROTO_GetShiftState [07:33:24]wFMCommunicate request_size=4 [07:33:24]MH_SAM_APDU [07:33:24]CAPDU: 80 13 01 00 [07:33:24]Write to MH i2c: E2 08 00 05 4E 80 13 01 00 00 00 00 00 D0 [07:33:24]Write i2c OK [07:33:24]MH_I2C_Read... [07:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:24]Read from MH i2c: E2 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 0E 00 [07:33:24]MH_I2C_Read... [07:33:24]Read from MH i2c: E2 0E 00 05 4E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 C8 [07:33:24]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:33:24]wFMCommunicate OK [07:33:24]SAM_PROTO_GetShiftState done [07:33:24]FM_GetShiftState done [07:33:24]req_shift_opened done [07:33:24]requested_item shift.open_date is exist - process it [07:33:24]req_shift_open_date [07:33:24]req_shift_open_date done [07:33:24]produce_requested_data done [07:33:24]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50516,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [07:33:24]process_action_free close_receipt [07:33:24]json_value_free [07:33:24]json_value_free done [07:33:24]process_json_proto returns [07:33:24]Send response to host [07:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50516,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [07:33:24]free response buf [07:33:24]execute_script done [07:33:24]execute_script returns [07:33:24]free content buf [07:33:24]Sock 7.Close socket [07:33:24]Sock 7.Thread stoped [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:53]accept exits with 10 [07:37:53]New connection [07:37:53]New thread 3067161956 created [07:37:53]Thread 3067305316 joined [07:37:53]Waiting for new connection... [07:37:53] Sock 10.Parse request [07:37:53]Sock 10.Check first char [07:37:53]Sock 10.First char is OK [07:37:53]request: POST /json_proto HTTP/1.0 [07:37:53]Method: POST [07:37:53]URL: /json_proto [07:37:53]Method is POST - this is cgi request [07:37:53]url: /json_proto [07:37:53]query_string will be loaded in cgi processing [07:37:53]execute_cgi json_proto POST (null) [07:37:53]execute_cgi path=json_proto method=POST [07:37:53]POST find Content-Length [07:37:53]Host: 172.17.49.196:8080 [07:37:53]Content-Length: 605 [07:37:53]Content-Type: application/json [07:37:53] [07:37:53]POST finish read [07:37:53]Found Content-Length = 605 [07:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164431", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 34.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:53]execute_script... [07:37:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164431", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 34.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:53]POST & json_proto [07:37:53]process_json_proto [07:37:53]json parsed OK: [07:37:53]protocol is kg_v1.0 [07:37:53]action value=close_receipt [07:37:53]process_action close_receipt [07:37:53]cmd_close_receipt [07:37:53]MH_GetDate [07:37:53]Write to MH i2c: F0 00 00 06 4E 43 [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: F0 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: F0 09 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: F0 09 00 06 4E 00 DE 4A 1B 67 BD 3B 11 67 66 [07:37:53]GetLastDocTimeStamp 1729841614 [07:37:53]current date 1729841886 [07:37:53]FM_GetShiftState [07:37:53]SAM_PROTO_GetShiftState [07:37:53]wFMCommunicate request_size=4 [07:37:53]MH_SAM_APDU [07:37:53]CAPDU: 80 13 01 00 [07:37:53]Write to MH i2c: E2 08 00 07 4E 80 13 01 00 00 00 00 00 D2 [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:53]Read from MH i2c: E2 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 0E 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 0E 00 07 4E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 CA [07:37:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:37:53]wFMCommunicate OK [07:37:53]SAM_PROTO_GetShiftState done [07:37:53]FM_GetShiftState done [07:37:53]opened in 1729815177 [07:37:53]opened+sec_in_day 1729901577 [07:37:53]quantity*price = 3400 [07:37:53]sum+1 = 3401 [07:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 34.00 НСП 1% : 0.30 НДС 12% : 3.61 Наличными: 34.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 17 25.10.2024 07:38 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50517 ФПД: 34930329880232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T073806&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50517&fm=34930329880232&tin=02508201610067®Number=0000000000097022&sum=3400 0 [07:37:54]StoreToDocumentArchive [07:37:54]shift 493 fd 50517 [07:37:54]save to /storage/0493/doc_00050517 [07:37:54]save last doc name /storage/0493/doc_00050517 to /storage/kkm_last_doc_name [07:37:54]save OK [07:37:54]Clear old archive folders... [07:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=268 [07:37:55]tlvbuf is B6FAED60 [07:37:55]SAM_PROTO_ClearQueue [07:37:55]wFMCommunicate request_size=4 [07:37:55]MH_SAM_APDU [07:37:55]CAPDU: 80 09 00 00 [07:37:55]Write to MH i2c: E2 08 00 14 4E 80 09 00 00 00 00 00 00 D4 [07:37:55]Write i2c OK [07:37:55]MH_I2C_Read... [07:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:55]OFD Sender: No OFD packet to send [07:37:55]Read from MH i2c: E2 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 03 00 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 03 00 14 4E 00 90 00 D6 [07:37:55]RAPDU: 90 00 [07:37:55]wFMCommunicate OK [07:37:55]SAM_PROTO_ClearQueue done [07:37:55]KKMCreateOFDPacket [07:37:55]OFDProtocolAddRootSTLVToBuf [07:37:55]FM_MakeSignedData [07:37:55]FM_MakeSignedData [07:37:55]SAM_PROTO_SignData [07:37:55]wFMCommunicate request_size=4 [07:37:55]MH_SAM_APDU [07:37:55]CAPDU: 80 0D 01 02 [07:37:55]Write to MH i2c: E2 08 00 15 4E 80 0D 01 02 00 00 00 00 DC [07:37:55]Write i2c OK [07:37:55]MH_I2C_Read... [07:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:55]Read from MH i2c: E2 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 03 00 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 03 00 15 4E 00 90 00 D7 [07:37:55]RAPDU: 90 00 [07:37:55]wFMCommunicate OK [07:37:55]wFMCommunicate request_size=255 [07:37:55]MH_SAM_APDU [07:37:55]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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 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 11 00 00 00 F4 03 04 00 DE 4A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [07:37:55]Write to MH i2c: E2 02 01 16 4E 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 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 11 00 00 00 F4 03 04 00 DE 4A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 94 [07:37:55]Write i2c OK [07:37:55]MH_I2C_Read... [07:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:55]Read from MH i2c: E2 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 03 00 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 03 00 16 4E 00 90 00 D8 [07:37:55]RAPDU: 90 00 [07:37:55]wFMCommunicate OK [07:37:55]wFMCommunicate request_size=27 [07:37:55]MH_SAM_APDU [07:37:55]CAPDU: 80 0D 02 02 16 35 30 30 30 10 04 04 00 55 C5 00 00 35 04 06 00 1F C4 D9 E7 86 A8 [07:37:55]Write to MH i2c: E2 1E 00 17 4E 80 0D 02 02 16 00 35 30 30 30 10 04 04 00 55 C5 00 00 35 04 06 00 1F C4 D9 E7 86 A8 00 00 12 [07:37:55]Write i2c OK [07:37:55]MH_I2C_Read... [07:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:55]Read from MH i2c: E2 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 03 00 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 03 00 17 4E 00 90 00 D9 [07:37:55]RAPDU: 90 00 [07:37:55]wFMCommunicate OK [07:37:55]wFMCommunicate request_size=4 [07:37:55]MH_SAM_APDU [07:37:55]CAPDU: 80 0D 03 02 [07:37:55]Write to MH i2c: E2 08 00 18 4E 80 0D 03 02 00 00 00 00 E1 [07:37:55]Write i2c OK [07:37:55]MH_I2C_Read... [07:37:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:55]Read from MH i2c: E2 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 0B 00 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 0B 00 18 4E 00 20 BB 60 CA 97 85 D1 BF 90 00 93 [07:37:55]RAPDU: 20 BB 60 CA 97 85 D1 BF 90 00 [07:37:55]wFMCommunicate OK [07:37:55]SAM_PROTO_SignData done [07:37:55]FM_MakeSignedData done [07:37:55]CreateOFDProtocolMessage [07:37:55]wFMCommunicate request_size=4 [07:37:55]MH_SAM_APDU [07:37:55]CAPDU: 80 11 00 00 [07:37:55]Write to MH i2c: E2 08 00 19 4E 80 11 00 00 00 00 00 00 E1 [07:37:55]Write i2c OK [07:37:55]MH_I2C_Read... [07:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:55]Read from MH i2c: E2 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 17 00 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: E2 17 00 19 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 28 [07:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:37:55]wFMCommunicate OK [07:37:55]CreateOFDProtocolMessage done [07:37:55]OFDSenderStorePacket 50517 [07:37:55]StoreOFDPacket docnum=50517 [07:37:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 F8 A9 18 01 38 C3 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 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 11 00 00 00 F4 03 04 00 DE 4A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 55 C5 00 00 35 04 06 00 1F C4 D9 E7 86 A8 20 BB 60 CA 97 85 D1 BF [07:37:55]CheckFolder [07:37:55]dirname=/storage/ofd_packets [07:37:55]CheckFolder done [07:37:55]ProducePacketName [07:37:55]name=ofd_packets/00050517 [07:37:55]NVStorageSaveData ofd_packets/00050517 [07:37:55]File name is /storage/ofd_packets/00050517 [07:37:55]Write 318 bytes [07:37:55]NVStorageSaveData done [07:37:55]OFDSenderStorePacket done [07:37:55]KKMCreateOFDPacket done [07:37:55]NVStorageSaveData kkm_last_timestamp [07:37:55]File name is /storage/kkm_last_timestamp [07:37:55]Write 4 bytes [07:37:55]NVStorageSaveData done [07:37:55]ExternCall_PrintAddStr [07:37:55]wPrintStart [07:37:55]Write to MH i2c: 01 00 00 1A 4E 68 [07:37:55]OFD Sender: Processing packet 50517 [packets to send 7, broken 6] [07:37:55]ProducePacketName [07:37:55]name=ofd_packets/00050517 [07:37:55]OFD Sender: To server: pG, [07:37:55]CommunicateWithHost lk.salyk.kg:30040 [07:37:55]ConnectInit lk.salyk.kg [07:37:55]Write i2c OK [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: 01 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: 01 07 00 [07:37:55]MH_I2C_Read... [07:37:55]Read from MH i2c: 01 07 00 1A 4E 00 00 00 00 00 FF 0F 7D [07:37:55]RasterBufferAndPrint [07:37:55]line Счет N : (3)164431 [07:37:55]line ИНН: 02508201610067 [07:37:55]line Контрольно-Кассовый Чек [07:37:55]line ПРОДАЖА [07:37:55]line Товар: 50173976 [07:37:55]line Жев Orbit Winterfresh под [07:37:55]line 1.000 * 34.00 [07:37:55]line = 34.00 [07:37:55]line НДС 12% НСП 1% [07:37:55]line > о реализуемом товаре [07:37:55]line ИТОГО: 34.00 [07:37:55]line НСП 1% : 0.30 [07:37:55]line НДС 12% : 3.61 [07:37:55]line Наличными: 34.00 [07:37:55]line Безнал.: 0.00 [07:37:55]line Место: АЗС № 80 "Партнер Нефть" [07:37:55]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:37:55]line СНО: Общий режим [07:37:55]line Чек 17 25.10.2024 07:38 [07:37:55]line Смена: 493 ФФД: 1.0 [07:37:55]line ЗНМ: 0300000090 [07:37:55]line РНМ: 0000000000097022 [07:37:55]line Версия ККМ: 001 [07:37:55]line ФМ: 0000000000875000 [07:37:55]line ФД: 50517 [07:37:55]line ФПД: 34930329880232 [07:37:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T073806&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50517&fm=34930329880232&tin=02508201610067®Number=0000000000097022&sum=3400 [07:37:55]Connected sock=9 [07:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 F8 A9 18 01 38 C3 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 01 00 00 00 00 07 04 06 00 48 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 11 00 00 00 F4 03 04 00 DE 4A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 55 C5 00 00 35 04 06 00 1F C4 D9 E7 86 A8 20 BB 60 CA 97 85 D1 BF [07:37:55]line 0 [07:37:55]written 0, free lines is 4095 [07:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 49 3B 47 00 11 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 55 C5 00 00 F4 03 04 00 70 F6 1A 67 B6 04 01 00 00 AF 30 EB 2C 96 CF 13 A5 [07:37:56]CommunicateWithHost err = 0 [07:37:56]CheckOFDResponse [07:37:56]1017 (14) - 77093643461234 [07:37:56]1041 (16) - 0000000000875000 [07:37:56]1040 (4) - 50517 [07:37:56]1012 (4) - 25.10.2024 01:37 [07:37:56]1206 (1) - 0 [07:37:56]OFD Sender: Remove packet 50517 [07:37:56]ProducePacketName [07:37:56]name=ofd_packets/00050517 [07:37:56]NVStorageDeleteData [07:37:56]Write to MH i2c: 01 00 00 42 4E 90 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: 01 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: 01 07 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: 01 07 00 42 4E 00 00 00 00 00 11 0D B5 [07:37:56]RasterBufferAndPrint [07:37:56]line [07:37:56]line [07:37:56]line [07:37:56]line [07:37:56]line [07:37:56]written 0, free lines is 3354 [07:37:56]process_action close_receipt done [07:37:56]requested_data is exist [07:37:56]produce_requested_data [07:37:56]requested_item fm.sn is exist - process it [07:37:56]wFMCommunicate request_size=4 [07:37:56]MH_SAM_APDU [07:37:56]CAPDU: 80 11 00 00 [07:37:56]Write to MH i2c: E2 08 00 49 4E 80 11 00 00 00 00 00 00 11 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:56]Read from MH i2c: E2 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 17 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 17 00 49 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 58 [07:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:37:56]wFMCommunicate OK [07:37:56]requested_item fd.num is exist - process it [07:37:56]SAM_PROTO_GetFieldsCounters [07:37:56]wFMCommunicate request_size=4 [07:37:56]MH_SAM_APDU [07:37:56]CAPDU: 80 13 00 00 [07:37:56]Write to MH i2c: E2 08 00 4A 4E 80 13 00 00 00 00 00 00 14 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:56]Read from MH i2c: E2 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 62 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 62 00 4A 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 55 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [07:37:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 55 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:37:56]wFMCommunicate OK [07:37:56]SAM_PROTO_GetFieldsCounters done [07:37:56]requested_item shift.num is exist - process it [07:37:56]requested_item shift.opened is exist - process it [07:37:56]req_shift_opened [07:37:56]FM_GetShiftState [07:37:56]SAM_PROTO_GetShiftState [07:37:56]wFMCommunicate request_size=4 [07:37:56]MH_SAM_APDU [07:37:56]CAPDU: 80 13 01 00 [07:37:56]Write to MH i2c: E2 08 00 4B 4E 80 13 01 00 00 00 00 00 16 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]OFD Sender: No OFD packet to send [07:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:56]Read from MH i2c: E2 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 0E 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 0E 00 4B 4E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 0E [07:37:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:37:56]wFMCommunicate OK [07:37:56]SAM_PROTO_GetShiftState done [07:37:56]FM_GetShiftState done [07:37:56]req_shift_opened done [07:37:56]requested_item shift.open_date is exist - process it [07:37:56]req_shift_open_date [07:37:56]req_shift_open_date done [07:37:56]produce_requested_data done [07:37:56]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50517,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [07:37:56]process_action_free close_receipt [07:37:56]json_value_free [07:37:56]json_value_free done [07:37:56]process_json_proto returns [07:37:56]Send response to host [07:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50517,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [07:37:56]free response buf [07:37:56]execute_script done [07:37:56]execute_script returns [07:37:56]free content buf [07:37:56]Sock 10.Close socket [07:37:56]Sock 10.Thread stoped [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:14]accept exits with 7 [07:43:14]New connection [07:43:14]New thread 3067305316 created [07:43:14]Thread 3067161956 joined [07:43:14]Waiting for new connection... [07:43:14] Sock 7.Parse request [07:43:14]Sock 7.Check first char [07:43:14]Sock 7.First char is OK [07:43:14]request: POST /json_proto HTTP/1.0 [07:43:14]Method: POST [07:43:14]URL: /json_proto [07:43:14]Method is POST - this is cgi request [07:43:14]url: /json_proto [07:43:14]query_string will be loaded in cgi processing [07:43:14]execute_cgi json_proto POST (null) [07:43:14]execute_cgi path=json_proto method=POST [07:43:14]POST find Content-Length [07:43:14]Host: 172.17.49.196:8080 [07:43:14]Content-Length: 626 [07:43:14]Content-Type: application/json [07:43:14] [07:43:14]POST finish read [07:43:14]Found Content-Length = 626 [07:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164432", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:14]execute_script... [07:43: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)164432", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:14]POST & json_proto [07:43:14]process_json_proto [07:43:14]json parsed OK: [07:43:14]protocol is kg_v1.0 [07:43:14]action value=close_receipt [07:43:14]process_action close_receipt [07:43:14]cmd_close_receipt [07:43:14]MH_GetDate [07:43:14]Write to MH i2c: F0 00 00 4C 4E 89 [07:43:14]Write i2c OK [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: F0 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: F0 09 00 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: F0 09 00 4C 4E 00 1F 4C 1B 67 BD 3B 11 67 EF [07:43:14]GetLastDocTimeStamp 1729841886 [07:43:14]current date 1729842207 [07:43:14]FM_GetShiftState [07:43:14]SAM_PROTO_GetShiftState [07:43:14]wFMCommunicate request_size=4 [07:43:14]MH_SAM_APDU [07:43:14]CAPDU: 80 13 01 00 [07:43:14]Write to MH i2c: E2 08 00 4D 4E 80 13 01 00 00 00 00 00 18 [07:43:14]Write i2c OK [07:43:14]MH_I2C_Read... [07:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:14]Read from MH i2c: E2 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: E2 0E 00 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: E2 0E 00 4D 4E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 10 [07:43:14]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:43:14]wFMCommunicate OK [07:43:14]SAM_PROTO_GetShiftState done [07:43:14]FM_GetShiftState done [07:43:14]opened in 1729815177 [07:43:14]opened+sec_in_day 1729901577 [07:43:14]quantity*price = 13900 [07:43:14]sum+1 = 13901 [07:43:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 18 25.10.2024 07:43 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50518 ФПД: 171992586359826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T074327&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50518&fm=171992586359826&tin=02508201610067®Number=0000000000097022&sum=13900 0 [07:43:16]StoreToDocumentArchive [07:43:16]shift 493 fd 50518 [07:43:16]save to /storage/0493/doc_00050518 [07:43:16]save last doc name /storage/0493/doc_00050518 to /storage/kkm_last_doc_name [07:43:16]save OK [07:43:16]Clear old archive folders... [07:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=278 [07:43:16]tlvbuf is 00220890 [07:43:16]SAM_PROTO_ClearQueue [07:43:16]wFMCommunicate request_size=4 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 09 00 00 [07:43:16]Write to MH i2c: E2 08 00 5A 4E 80 09 00 00 00 00 00 00 1A [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 5A 4E 00 90 00 1C [07:43:16]RAPDU: 90 00 [07:43:16]wFMCommunicate OK [07:43:16]SAM_PROTO_ClearQueue done [07:43:16]KKMCreateOFDPacket [07:43:16]OFDProtocolAddRootSTLVToBuf [07:43:16]FM_MakeSignedData [07:43:16]FM_MakeSignedData [07:43:16]SAM_PROTO_SignData [07:43:16]wFMCommunicate request_size=4 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 0D 01 02 [07:43:16]Write to MH i2c: E2 08 00 5B 4E 80 0D 01 02 00 00 00 00 22 [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 5B 4E 00 90 00 1D [07:43:16]RAPDU: 90 00 [07:43:16]wFMCommunicate OK [07:43:16]wFMCommunicate request_size=255 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1F 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 [07:43:16]Write to MH i2c: E2 02 01 5C 4E 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1F 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 00 00 4A [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 5C 4E 00 90 00 1E [07:43:16]RAPDU: 90 00 [07:43:16]wFMCommunicate OK [07:43:16]wFMCommunicate request_size=37 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 56 C5 00 00 35 04 06 00 9C 6D 25 03 94 12 [07:43:16]Write to MH i2c: E2 28 00 5D 4E 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 56 C5 00 00 35 04 06 00 9C 6D 25 03 94 12 00 00 62 [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 5D 4E 00 90 00 1F [07:43:16]RAPDU: 90 00 [07:43:16]wFMCommunicate OK [07:43:16]wFMCommunicate request_size=4 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 0D 03 02 [07:43:16]Write to MH i2c: E2 08 00 5E 4E 80 0D 03 02 00 00 00 00 27 [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 0B 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 0B 00 5E 4E 00 6B 55 B1 FF B0 48 FC CD 90 00 59 [07:43:16]RAPDU: 6B 55 B1 FF B0 48 FC CD 90 00 [07:43:16]wFMCommunicate OK [07:43:16]SAM_PROTO_SignData done [07:43:16]FM_MakeSignedData done [07:43:16]CreateOFDProtocolMessage [07:43:16]wFMCommunicate request_size=4 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 11 00 00 [07:43:16]Write to MH i2c: E2 08 00 5F 4E 80 11 00 00 00 00 00 00 27 [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 17 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 17 00 5F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6E [07:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:43:16]wFMCommunicate OK [07:43:16]CreateOFDProtocolMessage done [07:43:16]OFDSenderStorePacket 50518 [07:43:16]StoreOFDPacket docnum=50518 [07:43:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2A 01 00 00 9A 3E 22 01 DA DB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1F 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 56 C5 00 00 35 04 06 00 9C 6D 25 03 94 12 6B 55 B1 FF B0 48 FC CD [07:43:16]CheckFolder [07:43:16]dirname=/storage/ofd_packets [07:43:16]CheckFolder done [07:43:16]ProducePacketName [07:43:16]name=ofd_packets/00050518 [07:43:16]NVStorageSaveData ofd_packets/00050518 [07:43:16]File name is /storage/ofd_packets/00050518 [07:43:16]Write 328 bytes [07:43:16]NVStorageSaveData done [07:43:16]OFDSenderStorePacket done [07:43:16]KKMCreateOFDPacket done [07:43:16]NVStorageSaveData kkm_last_timestamp [07:43:16]File name is /storage/kkm_last_timestamp [07:43:16]Write 4 bytes [07:43:16]NVStorageSaveData done [07:43:16]ExternCall_PrintAddStr [07:43:16]wPrintStart [07:43:16]Write to MH i2c: 01 00 00 60 4E AE [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: 01 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: 01 07 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: 01 07 00 60 4E 00 00 00 00 00 FF 0F C3 [07:43:16]RasterBufferAndPrint [07:43:16]line Счет N : (3)164432 [07:43:16]line ИНН: 02508201610067 [07:43:16]line Контрольно-Кассовый Чек [07:43:16]line ПРОДАЖА [07:43:16]line Товар: 48741224 [07:43:16]line Сигареты Winston Super Slims Blue [07:43:16]line 1.000 * 139.00 [07:43:16]line = 139.00 [07:43:16]line НДС 12% НСП 1% [07:43:16]line > о реализуемом товаре [07:43:16]line ИТОГО: 139.00 [07:43:16]line НСП 1% : 1.23 [07:43:16]line НДС 12% : 14.76 [07:43:16]line Наличными: 139.00 [07:43:16]line Безнал.: 0.00 [07:43:16]line Место: АЗС № 80 "Партнер Нефть" [07:43:16]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:43:16]line СНО: Общий режим [07:43:16]line Чек 18 25.10.2024 07:43 [07:43:16]line Смена: 493 ФФД: 1.0 [07:43:16]line ЗНМ: 0300000090 [07:43:16]line РНМ: 0000000000097022 [07:43:16]line Версия ККМ: 001 [07:43:16]line ФМ: 0000000000875000 [07:43:16]line ФД: 50518 [07:43:16]line ФПД: 171992586359826 [07:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T074327&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50518&fm=171992586359826&tin=02508201610067®Number=0000000000097022&sum=13900 [07:43:16]line 0 [07:43:16]OFD Sender: Processing packet 50518 [packets to send 7, broken 6] [07:43:16]ProducePacketName [07:43:16]name=ofd_packets/00050518 [07:43:16]OFD Sender: To server: pG, [07:43:16]CommunicateWithHost lk.salyk.kg:30040 [07:43:16]ConnectInit lk.salyk.kg [07:43:16]written 0, free lines is 4095 [07:43:17]Connected sock=10 [07:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2A 01 00 00 9A 3E 22 01 DA DB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1F 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 56 C5 00 00 35 04 06 00 9C 6D 25 03 94 12 6B 55 B1 FF B0 48 FC CD [07:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CD 7A 47 00 11 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 56 C5 00 00 F4 03 04 00 B1 F7 1A 67 B6 04 01 00 00 8D 2A BE CA AA BA 8A 2C [07:43:17]CommunicateWithHost err = 0 [07:43:17]CheckOFDResponse [07:43:17]1017 (14) - 77093643461234 [07:43:17]1041 (16) - 0000000000875000 [07:43:17]1040 (4) - 50518 [07:43:17]1012 (4) - 25.10.2024 01:43 [07:43:17]1206 (1) - 0 [07:43:17]OFD Sender: Remove packet 50518 [07:43:17]ProducePacketName [07:43:17]name=ofd_packets/00050518 [07:43:17]NVStorageDeleteData [07:43:17]Write to MH i2c: 01 00 00 89 4E D7 [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: 01 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: 01 07 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: 01 07 00 89 4E 00 00 00 00 00 02 0D ED [07:43:17]RasterBufferAndPrint [07:43:17]line [07:43:17]line [07:43:17]line [07:43:17]line [07:43:17]line [07:43:17]written 0, free lines is 3336 [07:43:17]process_action close_receipt done [07:43:17]requested_data is exist [07:43:17]produce_requested_data [07:43:17]requested_item fm.sn is exist - process it [07:43:17]wFMCommunicate request_size=4 [07:43:17]MH_SAM_APDU [07:43:17]CAPDU: 80 11 00 00 [07:43:17]Write to MH i2c: E2 08 00 90 4E 80 11 00 00 00 00 00 00 58 [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:17]Read from MH i2c: E2 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 17 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 17 00 90 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9F [07:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:43:17]wFMCommunicate OK [07:43:17]requested_item fd.num is exist - process it [07:43:17]SAM_PROTO_GetFieldsCounters [07:43:17]wFMCommunicate request_size=4 [07:43:17]MH_SAM_APDU [07:43:17]CAPDU: 80 13 00 00 [07:43:17]Write to MH i2c: E2 08 00 91 4E 80 13 00 00 00 00 00 00 5B [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:17]Read from MH i2c: E2 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 62 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 62 00 91 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 56 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [07:43:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 56 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:17]wFMCommunicate OK [07:43:17]SAM_PROTO_GetFieldsCounters done [07:43:17]requested_item shift.num is exist - process it [07:43:17]requested_item shift.opened is exist - process it [07:43:17]req_shift_opened [07:43:17]FM_GetShiftState [07:43:17]SAM_PROTO_GetShiftState [07:43:17]wFMCommunicate request_size=4 [07:43:17]MH_SAM_APDU [07:43:17]CAPDU: 80 13 01 00 [07:43:17]Write to MH i2c: E2 08 00 92 4E 80 13 01 00 00 00 00 00 5D [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:17]Read from MH i2c: E2 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 0E 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 0E 00 92 4E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 55 [07:43:17]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:43:17]wFMCommunicate OK [07:43:17]SAM_PROTO_GetShiftState done [07:43:17]FM_GetShiftState done [07:43:17]req_shift_opened done [07:43:17]requested_item shift.open_date is exist - process it [07:43:17]req_shift_open_date [07:43:17]req_shift_open_date done [07:43:17]produce_requested_data done [07:43:17]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50518,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [07:43:17]process_action_free close_receipt [07:43:17]json_value_free [07:43:17]json_value_free done [07:43:17]process_json_proto returns [07:43:17]Send response to host [07:43:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50518,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [07:43:17]free response buf [07:43:17]execute_script done [07:43:17]execute_script returns [07:43:17]free content buf [07:43:17]Sock 7.Close socket [07:43:17]Sock 7.Thread stoped [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:08]accept exits with 9 [07:46:08]New connection [07:46:08]New thread 3067161956 created [07:46:08]Thread 3067305316 joined [07:46:08]Waiting for new connection... [07:46:08] Sock 9.Parse request [07:46:08]Sock 9.Check first char [07:46:08]Sock 9.First char is OK [07:46:08]request: POST /json_proto HTTP/1.0 [07:46:08]Method: POST [07:46:08]URL: /json_proto [07:46:08]Method is POST - this is cgi request [07:46:08]url: /json_proto [07:46:08]query_string will be loaded in cgi processing [07:46:08]execute_cgi json_proto POST (null) [07:46:08]execute_cgi path=json_proto method=POST [07:46:08]POST find Content-Length [07:46:08]Host: 172.17.49.196:8080 [07:46:08]Content-Length: 622 [07:46:08]Content-Type: application/json [07:46:08] [07:46:08]POST finish read [07:46:08]Found Content-Length = 622 [07:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164433", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:08]execute_script... [07:46: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)164433", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:08]POST & json_proto [07:46:08]process_json_proto [07:46:08]json parsed OK: [07:46:08]protocol is kg_v1.0 [07:46:08]action value=close_receipt [07:46:08]process_action close_receipt [07:46:08]cmd_close_receipt [07:46:08]MH_GetDate [07:46:08]Write to MH i2c: F0 00 00 93 4E D0 [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: F0 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: F0 09 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: F0 09 00 93 4E 00 CD 4C 1B 67 BD 3B 11 67 E4 [07:46:08]GetLastDocTimeStamp 1729842207 [07:46:08]current date 1729842381 [07:46:08]FM_GetShiftState [07:46:08]SAM_PROTO_GetShiftState [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 13 01 00 [07:46:08]Write to MH i2c: E2 08 00 94 4E 80 13 01 00 00 00 00 00 5F [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:09]Read from MH i2c: E2 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: E2 0E 00 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: E2 0E 00 94 4E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 57 [07:46:09]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:46:09]wFMCommunicate OK [07:46:09]SAM_PROTO_GetShiftState done [07:46:09]FM_GetShiftState done [07:46:09]opened in 1729815177 [07:46:09]opened+sec_in_day 1729901577 [07:46:09]quantity*price = 15900 [07:46:09]sum+1 = 15901 [07:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 19 25.10.2024 07:46 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50519 ФПД: 154340275406413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T074621&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50519&fm=154340275406413&tin=02508201610067®Number=0000000000097022&sum=15900 0 [07:46:10]StoreToDocumentArchive [07:46:10]shift 493 fd 50519 [07:46:10]save to /storage/0493/doc_00050519 [07:46:10]save last doc name /storage/0493/doc_00050519 to /storage/kkm_last_doc_name [07:46:10]save OK [07:46:10]Clear old archive folders... [07:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=274 [07:46:10]tlvbuf is 002204B0 [07:46:10]SAM_PROTO_ClearQueue [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 09 00 00 [07:46:10]Write to MH i2c: E2 08 00 A1 4E 80 09 00 00 00 00 00 00 61 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 A1 4E 00 90 00 63 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]SAM_PROTO_ClearQueue done [07:46:10]KKMCreateOFDPacket [07:46:10]OFDProtocolAddRootSTLVToBuf [07:46:10]FM_MakeSignedData [07:46:10]FM_MakeSignedData [07:46:10]SAM_PROTO_SignData [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 01 02 [07:46:10]Write to MH i2c: E2 08 00 A2 4E 80 0D 01 02 00 00 00 00 69 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 A2 4E 00 90 00 64 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]wFMCommunicate request_size=255 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 CD 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [07:46:10]Write to MH i2c: E2 02 01 A3 4E 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 CD 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 24 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 A3 4E 00 90 00 65 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]wFMCommunicate request_size=33 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 57 C5 00 00 35 04 06 00 8C 5F 25 4A 46 4D [07:46:10]Write to MH i2c: E2 24 00 A4 4E 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 57 C5 00 00 35 04 06 00 8C 5F 25 4A 46 4D 00 00 F8 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 A4 4E 00 90 00 66 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 03 02 [07:46:10]Write to MH i2c: E2 08 00 A5 4E 80 0D 03 02 00 00 00 00 6E [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 0B 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 0B 00 A5 4E 00 0A BF 44 7A 1D 3D E1 25 90 00 56 [07:46:10]RAPDU: 0A BF 44 7A 1D 3D E1 25 90 00 [07:46:10]wFMCommunicate OK [07:46:10]SAM_PROTO_SignData done [07:46:10]FM_MakeSignedData done [07:46:10]CreateOFDProtocolMessage [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 11 00 00 [07:46:10]Write to MH i2c: E2 08 00 A6 4E 80 11 00 00 00 00 00 00 6E [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 17 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 17 00 A6 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B5 [07:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:46:10]wFMCommunicate OK [07:46:10]CreateOFDProtocolMessage done [07:46:10]OFDSenderStorePacket 50519 [07:46:10]StoreOFDPacket docnum=50519 [07:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 0D 06 1E 01 43 E1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 CD 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 57 C5 00 00 35 04 06 00 8C 5F 25 4A 46 4D 0A BF 44 7A 1D 3D E1 25 [07:46:10]CheckFolder [07:46:10]dirname=/storage/ofd_packets [07:46:10]CheckFolder done [07:46:10]ProducePacketName [07:46:10]name=ofd_packets/00050519 [07:46:10]NVStorageSaveData ofd_packets/00050519 [07:46:10]File name is /storage/ofd_packets/00050519 [07:46:10]Write 324 bytes [07:46:10]NVStorageSaveData done [07:46:10]OFDSenderStorePacket done [07:46:10]KKMCreateOFDPacket done [07:46:10]NVStorageSaveData kkm_last_timestamp [07:46:10]File name is /storage/kkm_last_timestamp [07:46:10]Write 4 bytes [07:46:10]NVStorageSaveData done [07:46:10]ExternCall_PrintAddStr [07:46:10]wPrintStart [07:46:10]Write to MH i2c: 01 00 00 A7 4E F5 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: 01 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: 01 07 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: 01 07 00 A7 4E 00 00 00 00 00 FF 0F 0A [07:46:10]RasterBufferAndPrint [07:46:10]line Счет N : (3)164433 [07:46:10]line ИНН: 02508201610067 [07:46:10]line Контрольно-Кассовый Чек [07:46:10]line ПРОДАЖА [07:46:10]line Товар: 4640030091645 [07:46:10]line Сигареты ESSE Exchange M [07:46:10]line 1.000 * 159.00 [07:46:10]line = 159.00 [07:46:10]line НДС 12% НСП 1% [07:46:10]line > о реализуемом товаре [07:46:10]line ИТОГО: 159.00 [07:46:10]line НСП 1% : 1.41 [07:46:10]line НДС 12% : 16.88 [07:46:10]line Наличными: 159.00 [07:46:10]line Безнал.: 0.00 [07:46:10]line Место: АЗС № 80 "Партнер Нефть" [07:46:10]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:46:10]line СНО: Общий режим [07:46:10]line Чек 19 25.10.2024 07:46 [07:46:10]line Смена: 493 ФФД: 1.0 [07:46:10]line ЗНМ: 0300000090 [07:46:10]line РНМ: 0000000000097022 [07:46:10]line Версия ККМ: 001 [07:46:10]line ФМ: 0000000000875000 [07:46:10]line ФД: 50519 [07:46:10]line ФПД: 154340275406413 [07:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T074621&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50519&fm=154340275406413&tin=02508201610067®Number=0000000000097022&sum=15900 [07:46:10]line 0 [07:46:11]written 0, free lines is 4095 [07:46:11]OFD Sender: Processing packet 50519 [packets to send 7, broken 6] [07:46:11]ProducePacketName [07:46:11]name=ofd_packets/00050519 [07:46:11]OFD Sender: To server: pG, [07:46:11]CommunicateWithHost lk.salyk.kg:30040 [07:46:11]ConnectInit lk.salyk.kg [07:46:11]Connected sock=7 [07:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 0D 06 1E 01 43 E1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 CD 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 57 C5 00 00 35 04 06 00 8C 5F 25 4A 46 4D 0A BF 44 7A 1D 3D E1 25 [07:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AC 9C 47 00 FC FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 57 C5 00 00 F4 03 04 00 5F F8 1A 67 B6 04 01 00 00 A5 AA 35 27 AF 89 A5 2A [07:46:11]CommunicateWithHost err = 0 [07:46:11]CheckOFDResponse [07:46:11]1017 (14) - 77093643461234 [07:46:11]1041 (16) - 0000000000875000 [07:46:11]1040 (4) - 50519 [07:46:11]1012 (4) - 25.10.2024 01:46 [07:46:11]1206 (1) - 0 [07:46:11]OFD Sender: Remove packet 50519 [07:46:11]ProducePacketName [07:46:11]name=ofd_packets/00050519 [07:46:11]NVStorageDeleteData [07:46:11]Write to MH i2c: 01 00 00 CF 4E 1D [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 07 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 07 00 CF 4E 00 00 00 00 00 2B 0D 5C [07:46:11]RasterBufferAndPrint [07:46:11]line [07:46:11]line [07:46:11]line [07:46:11]line [07:46:11]line [07:46:11]written 0, free lines is 3378 [07:46:11]process_action close_receipt done [07:46:11]requested_data is exist [07:46:11]produce_requested_data [07:46:11]requested_item fm.sn is exist - process it [07:46:11]wFMCommunicate request_size=4 [07:46:11]MH_SAM_APDU [07:46:11]CAPDU: 80 11 00 00 [07:46:11]Write to MH i2c: E2 08 00 D6 4E 80 11 00 00 00 00 00 00 9E [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 17 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 17 00 D6 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E5 [07:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:46:11]wFMCommunicate OK [07:46:11]requested_item fd.num is exist - process it [07:46:11]SAM_PROTO_GetFieldsCounters [07:46:11]wFMCommunicate request_size=4 [07:46:11]MH_SAM_APDU [07:46:11]CAPDU: 80 13 00 00 [07:46:11]Write to MH i2c: E2 08 00 D7 4E 80 13 00 00 00 00 00 00 A1 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 62 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 62 00 D7 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 57 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [07:46:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 57 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:11]wFMCommunicate OK [07:46:11]SAM_PROTO_GetFieldsCounters done [07:46:11]requested_item shift.num is exist - process it [07:46:11]requested_item shift.opened is exist - process it [07:46:11]req_shift_opened [07:46:11]FM_GetShiftState [07:46:11]SAM_PROTO_GetShiftState [07:46:11]wFMCommunicate request_size=4 [07:46:11]MH_SAM_APDU [07:46:11]CAPDU: 80 13 01 00 [07:46:11]Write to MH i2c: E2 08 00 D8 4E 80 13 01 00 00 00 00 00 A3 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 0E 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 0E 00 D8 4E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 9B [07:46:11]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:46:11]wFMCommunicate OK [07:46:11]SAM_PROTO_GetShiftState done [07:46:11]FM_GetShiftState done [07:46:11]req_shift_opened done [07:46:11]requested_item shift.open_date is exist - process it [07:46:11]req_shift_open_date [07:46:11]req_shift_open_date done [07:46:11]produce_requested_data done [07:46:11]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50519,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [07:46:11]process_action_free close_receipt [07:46:11]json_value_free [07:46:11]json_value_free done [07:46:11]process_json_proto returns [07:46:11]Send response to host [07:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50519,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [07:46:11]free response buf [07:46:11]execute_script done [07:46:11]execute_script returns [07:46:11]free content buf [07:46:11]Sock 9.Close socket [07:46:11]Sock 9.Thread stoped [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:46:58]accept exits with 10 [07:46:58]New connection [07:46:58]New thread 3067305316 created [07:46:58]Thread 3067161956 joined [07:46:58]Waiting for new connection... [07:46:58] Sock 10.Parse request [07:46:58]Sock 10.Check first char [07:46:58]Sock 10.First char is OK [07:46:58]request: POST /json_proto HTTP/1.0 [07:46:58]Method: POST [07:46:58]URL: /json_proto [07:46:58]Method is POST - this is cgi request [07:46:58]url: /json_proto [07:46:58]query_string will be loaded in cgi processing [07:46:58]execute_cgi json_proto POST (null) [07:46:58]execute_cgi path=json_proto method=POST [07:46:58]POST find Content-Length [07:46:58]Host: 172.17.49.196:8080 [07:46:58]Content-Length: 794 [07:46:58]Content-Type: application/json [07:46:58] [07:46:58]POST finish read [07:46:58]Found Content-Length = 794 [07:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43182", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:58]execute_script... [07:46:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43182", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:58]POST & json_proto [07:46:58]process_json_proto [07:46:58]json parsed OK: [07:46:58]protocol is kg_v1.0 [07:46:58]action value=close_receipt [07:46:58]process_action close_receipt [07:46:58]cmd_close_receipt [07:46:58]MH_GetDate [07:46:58]Write to MH i2c: F0 00 00 D9 4E 16 [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: F0 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: F0 09 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: F0 09 00 D9 4E 00 FF 4C 1B 67 BD 3B 11 67 5C [07:46:58]GetLastDocTimeStamp 1729842381 [07:46:58]current date 1729842431 [07:46:58]FM_GetShiftState [07:46:58]SAM_PROTO_GetShiftState [07:46:58]wFMCommunicate request_size=4 [07:46:58]MH_SAM_APDU [07:46:58]CAPDU: 80 13 01 00 [07:46:58]Write to MH i2c: E2 08 00 DA 4E 80 13 01 00 00 00 00 00 A5 [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 0E 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 0E 00 DA 4E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 9D [07:46:58]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:46:58]wFMCommunicate OK [07:46:58]SAM_PROTO_GetShiftState done [07:46:58]FM_GetShiftState done [07:46:58]opened in 1729815177 [07:46:58]opened+sec_in_day 1729901577 [07:46:58]quantity*price = 0 [07:46:58]sum+1 = 1 [07:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 20 25.10.2024 07:47 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Талоны: Топливная Карта 43182 ФМ: 0000000000875000 ФД: 50520 ФПД: 190475413513640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T074711&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50520&fm=190475413513640&tin=02508201610067®Number=0000000000097022&sum=0 [07:46:59]StoreToDocumentArchive [07:46:59]shift 493 fd 50520 [07:46:59]save to /storage/0493/doc_00050520 [07:46:59]save last doc name /storage/0493/doc_00050520 to /storage/kkm_last_doc_name [07:46:59]save OK [07:46:59]Clear old archive folders... [07:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:59]tlvbuf is 001A7450 [07:46:59]SAM_PROTO_ClearQueue [07:46:59]wFMCommunicate request_size=4 [07:46:59]MH_SAM_APDU [07:46:59]CAPDU: 80 09 00 00 [07:46:59]Write to MH i2c: E2 08 00 E7 4E 80 09 00 00 00 00 00 00 A7 [07:46:59]Write i2c OK [07:46:59]MH_I2C_Read... [07:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:59]Read from MH i2c: E2 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: E2 03 00 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: E2 03 00 E7 4E 00 90 00 A9 [07:46:59]RAPDU: 90 00 [07:46:59]wFMCommunicate OK [07:46:59]SAM_PROTO_ClearQueue done [07:46:59]KKMCreateOFDPacket [07:46:59]OFDProtocolAddRootSTLVToBuf [07:46:59]FM_MakeSignedData [07:46:59]FM_MakeSignedData [07:46:59]SAM_PROTO_SignData [07:46:59]wFMCommunicate request_size=4 [07:46:59]MH_SAM_APDU [07:46:59]CAPDU: 80 0D 01 02 [07:46:59]Write to MH i2c: E2 08 00 E8 4E 80 0D 01 02 00 00 00 00 AF [07:46:59]Write i2c OK [07:46:59]MH_I2C_Read... [07:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:59]Read from MH i2c: E2 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: E2 03 00 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: E2 03 00 E8 4E 00 90 00 AA [07:46:59]RAPDU: 90 00 [07:46:59]wFMCommunicate OK [07:46:59]wFMCommunicate request_size=255 [07:46:59]MH_SAM_APDU [07:46:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FF 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C5 00 00 35 04 06 00 AD [07:46:59]Write to MH i2c: E2 02 01 E9 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FF 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C5 00 00 35 04 06 00 AD 00 00 E5 [07:46:59]Write i2c OK [07:46:59]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 E9 4E 00 90 00 AB [07:47:00]RAPDU: 90 00 [07:47:00]wFMCommunicate OK [07:47:00]wFMCommunicate request_size=10 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 0D 02 02 05 3C 83 5C 65 A8 [07:47:00]Write to MH i2c: E2 0D 00 EA 4E 80 0D 02 02 05 00 3C 83 5C 65 A8 00 00 E4 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 03 00 EA 4E 00 90 00 AC [07:47:00]RAPDU: 90 00 [07:47:00]wFMCommunicate OK [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 0D 03 02 [07:47:00]Write to MH i2c: E2 08 00 EB 4E 80 0D 03 02 00 00 00 00 B4 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 0B 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 0B 00 EB 4E 00 20 07 E7 7A AA 2C 25 06 90 00 3E [07:47:00]RAPDU: 20 07 E7 7A AA 2C 25 06 90 00 [07:47:00]wFMCommunicate OK [07:47:00]SAM_PROTO_SignData done [07:47:00]FM_MakeSignedData done [07:47:00]CreateOFDProtocolMessage [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 11 00 00 [07:47:00]Write to MH i2c: E2 08 00 EC 4E 80 11 00 00 00 00 00 00 B4 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 17 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 17 00 EC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FB [07:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:47:00]wFMCommunicate OK [07:47:00]CreateOFDProtocolMessage done [07:47:00]OFDSenderStorePacket 50520 [07:47:00]StoreOFDPacket docnum=50520 [07:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 FA 36 07 01 EF A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FF 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C5 00 00 35 04 06 00 AD 3C 83 5C 65 A8 20 07 E7 7A AA 2C 25 06 [07:47:00]CheckFolder [07:47:00]dirname=/storage/ofd_packets [07:47:00]CheckFolder done [07:47:00]ProducePacketName [07:47:00]name=ofd_packets/00050520 [07:47:00]NVStorageSaveData ofd_packets/00050520 [07:47:00]File name is /storage/ofd_packets/00050520 [07:47:00]Write 301 bytes [07:47:00]NVStorageSaveData done [07:47:00]OFDSenderStorePacket done [07:47:00]KKMCreateOFDPacket done [07:47:00]NVStorageSaveData kkm_last_timestamp [07:47:00]File name is /storage/kkm_last_timestamp [07:47:00]Write 4 bytes [07:47:00]NVStorageSaveData done [07:47:00]ExternCall_PrintAddStr [07:47:00]wPrintStart [07:47:00]Write to MH i2c: 01 00 00 ED 4E 3B [07:47:00]OFD Sender: Processing packet 50520 [packets to send 7, broken 6] [07:47:00]ProducePacketName [07:47:00]name=ofd_packets/00050520 [07:47:00]OFD Sender: To server: pG, [07:47:00]CommunicateWithHost lk.salyk.kg:30040 [07:47:00]ConnectInit lk.salyk.kg [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 07 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 07 00 ED 4E 00 00 00 00 00 FF 0F 50 [07:47:00]RasterBufferAndPrint [07:47:00]line Счет N : (1)15442258 [07:47:00]line ИНН: 02508201610067 [07:47:00]line Контрольно-Кассовый Чек [07:47:00]line ПРОДАЖА [07:47:00]line ТРК (МРК, ГНК) : 13 [07:47:00]line Товар: 2710124130 [07:47:00]line Аи-92-К-4 [07:47:00]line 30.000 * 0.00 [07:47:00]line = 0.00 [07:47:00]line НДС 12% НСП 1% [07:47:00]line > о реализуемом товаре [07:47:00]line ИТОГО: 0.00 [07:47:00]line НСП 1% : 0.00 [07:47:00]line НДС 12% : 0.00 [07:47:00]line Наличными: 0.00 [07:47:00]line Безнал.: 0.00 [07:47:00]line Место: АЗС № 80 "Партнер Нефть" [07:47:00]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:47:00]line СНО: Общий режим [07:47:00]line Чек 20 25.10.2024 07:47 [07:47:00]line Смена: 493 ФФД: 1.0 [07:47:00]line ЗНМ: 0300000090 [07:47:00]line РНМ: 0000000000097022 [07:47:00]line Версия ККМ: 001 [07:47:00]line Талоны: Топливная Карта [07:47:00]line 43182 [07:47:00]line ФМ: 0000000000875000 [07:47:00]line ФД: 50520 [07:47:00]line ФПД: 190475413513640 [07:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T074711&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50520&fm=190475413513640&tin=02508201610067®Number=0000000000097022&sum=0 [07:47:00]written 0, free lines is 4095 [07:47:00]Connected sock=9 [07:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 FA 36 07 01 EF A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FF 4C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C5 00 00 35 04 06 00 AD 3C 83 5C 65 A8 20 07 E7 7A AA 2C 25 06 [07:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 FA 81 47 00 18 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 58 C5 00 00 F4 03 04 00 90 F8 1A 67 B6 04 01 00 00 B1 BD 9E 21 B6 7A CD 2B [07:47:00]CommunicateWithHost err = 0 [07:47:00]CheckOFDResponse [07:47:00]1017 (14) - 77093643461234 [07:47:00]1041 (16) - 0000000000875000 [07:47:00]1040 (4) - 50520 [07:47:00]1012 (4) - 25.10.2024 01:46 [07:47:00]1206 (1) - 0 [07:47:00]OFD Sender: Remove packet 50520 [07:47:00]ProducePacketName [07:47:00]name=ofd_packets/00050520 [07:47:00]NVStorageDeleteData [07:47:00]Write to MH i2c: 01 00 00 17 4F 66 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 07 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 07 00 17 4F 00 00 00 00 00 0A 0D 84 [07:47:00]RasterBufferAndPrint [07:47:00]line [07:47:00]line [07:47:00]line [07:47:00]line [07:47:00]line [07:47:00]written 0, free lines is 3344 [07:47:00]process_action close_receipt done [07:47:00]requested_data is exist [07:47:00]produce_requested_data [07:47:00]requested_item fm.sn is exist - process it [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 11 00 00 [07:47:00]Write to MH i2c: E2 08 00 1E 4F 80 11 00 00 00 00 00 00 E7 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 17 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 17 00 1E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2E [07:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:47:00]wFMCommunicate OK [07:47:00]requested_item fd.num is exist - process it [07:47:00]SAM_PROTO_GetFieldsCounters [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 13 00 00 [07:47:00]Write to MH i2c: E2 08 00 1F 4F 80 13 00 00 00 00 00 00 EA [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 62 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 62 00 1F 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 58 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [07:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 58 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:47:00]wFMCommunicate OK [07:47:00]SAM_PROTO_GetFieldsCounters done [07:47:00]requested_item shift.num is exist - process it [07:47:00]requested_item shift.opened is exist - process it [07:47:00]req_shift_opened [07:47:00]FM_GetShiftState [07:47:00]SAM_PROTO_GetShiftState [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 13 01 00 [07:47:00]Write to MH i2c: E2 08 00 20 4F 80 13 01 00 00 00 00 00 EC [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 0E 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 0E 00 20 4F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E4 [07:47:00]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:47:00]wFMCommunicate OK [07:47:00]SAM_PROTO_GetShiftState done [07:47:00]FM_GetShiftState done [07:47:00]req_shift_opened done [07:47:00]requested_item shift.open_date is exist - process it [07:47:00]req_shift_open_date [07:47:00]req_shift_open_date done [07:47:00]produce_requested_data done [07:47:00]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50520,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [07:47:00]process_action_free close_receipt [07:47:00]json_value_free [07:47:00]json_value_free done [07:47:00]process_json_proto returns [07:47:00]Send response to host [07:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50520,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [07:47:00]free response buf [07:47:00]execute_script done [07:47:00]execute_script returns [07:47:00]free content buf [07:47:00]Sock 10.Close socket [07:47:00]Sock 10.Thread stoped [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:13]int [07:47:13]Write to MH i2c: 01 00 00 21 4F 70 [07:47:13]*** FLAG_PRN_PAP1 set [07:47:13]Write i2c OK [07:47:13]MH_I2C_Read... [07:47:13]Read from MH i2c: 01 [07:47:13]MH_I2C_Read... [07:47:13]Read from MH i2c: 01 07 00 [07:47:13]MH_I2C_Read... [07:47:13]Read from MH i2c: 01 07 00 21 4F 00 01 00 00 00 FF 0F 86 [07:47:13]state=0 [07:47:13]No paper [07:47:13]int [07:47:13]Write to MH i2c: 01 00 00 22 4F 71 [07:47:13]*** FLAG_PRN_PAP2 set [07:47:13]Write i2c OK [07:47:13]MH_I2C_Read... [07:47:13]Read from MH i2c: 01 [07:47:13]MH_I2C_Read... [07:47:13]Read from MH i2c: 01 07 00 [07:47:13]MH_I2C_Read... [07:47:13]Read from MH i2c: 01 07 00 22 4F 00 03 00 00 00 FF 0F 89 [07:47:13]state=0 [07:47:13]No paper [07:47:13]Cover opened [07:47:14]int [07:47:14]Write to MH i2c: 01 00 00 23 4F 72 [07:47:14]*** FLAG_PRN_PAP2 reset [07:47:14]Write i2c OK [07:47:14]MH_I2C_Read... [07:47:14]Read from MH i2c: 01 [07:47:14]MH_I2C_Read... [07:47:14]Read from MH i2c: 01 07 00 [07:47:14]MH_I2C_Read... [07:47:14]Read from MH i2c: 01 07 00 23 4F 00 01 00 00 00 FF 0F 88 [07:47:14]state=3 [07:47:14]No paper [07:47:14]Cover closed [07:47:14]int [07:47:14]Write to MH i2c: 01 00 00 24 4F 73 [07:47:14]*** FLAG_PRN_PAP1 reset [07:47:14]Write i2c OK [07:47:14]MH_I2C_Read... [07:47:14]Read from MH i2c: 01 [07:47:14]MH_I2C_Read... [07:47:14]Read from MH i2c: 01 07 00 [07:47:14]MH_I2C_Read... [07:47:14]Read from MH i2c: 01 07 00 24 4F 00 00 00 00 00 FF 0F 88 [07:47:14]state=0 [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]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:08]accept exits with 7 [07:59:08]New connection [07:59:08]New thread 3067161956 created [07:59:08]Thread 3067305316 joined [07:59:08]Waiting for new connection... [07:59:08] Sock 7.Parse request [07:59:08]Sock 7.Check first char [07:59:08]Sock 7.First char is OK [07:59:08]request: POST /json_proto HTTP/1.0 [07:59:08]Method: POST [07:59:08]URL: /json_proto [07:59:08]Method is POST - this is cgi request [07:59:08]url: /json_proto [07:59:08]query_string will be loaded in cgi processing [07:59:08]execute_cgi json_proto POST (null) [07:59:08]execute_cgi path=json_proto method=POST [07:59:08]POST find Content-Length [07:59:08]Host: 172.17.49.196:8080 [07:59:08]Content-Length: 624 [07:59:08]Content-Type: application/json [07:59:08] [07:59:08]POST finish read [07:59:08]Found Content-Length = 624 [07:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164434", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:08]execute_script... [07:59:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164434", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:08]POST & json_proto [07:59:08]process_json_proto [07:59:08]json parsed OK: [07:59:08]protocol is kg_v1.0 [07:59:08]action value=close_receipt [07:59:08]process_action close_receipt [07:59:08]cmd_close_receipt [07:59:08]MH_GetDate [07:59:08]Write to MH i2c: F0 00 00 25 4F 63 [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: F0 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: F0 09 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: F0 09 00 25 4F 00 D9 4F 1B 67 BD 3B 11 67 86 [07:59:08]GetLastDocTimeStamp 1729842431 [07:59:08]current date 1729843161 [07:59:08]FM_GetShiftState [07:59:08]SAM_PROTO_GetShiftState [07:59:08]wFMCommunicate request_size=4 [07:59:08]MH_SAM_APDU [07:59:08]CAPDU: 80 13 01 00 [07:59:08]Write to MH i2c: E2 08 00 26 4F 80 13 01 00 00 00 00 00 F2 [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:08]Read from MH i2c: E2 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 0E 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 0E 00 26 4F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 EA [07:59:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:59:08]wFMCommunicate OK [07:59:08]SAM_PROTO_GetShiftState done [07:59:08]FM_GetShiftState done [07:59:08]opened in 1729815177 [07:59:08]opened+sec_in_day 1729901577 [07:59:08]quantity*price = 14700 [07:59:08]sum+1 = 14701 [07:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 21 25.10.2024 07:59 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50521 ФПД: 251042342343291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T075921&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50521&fm=251042342343291&tin=02508201610067®Number=0000000000097022&sum=14700 0 [07:59:10]StoreToDocumentArchive [07:59:10]shift 493 fd 50521 [07:59:10]save to /storage/0493/doc_00050521 [07:59:10]save last doc name /storage/0493/doc_00050521 to /storage/kkm_last_doc_name [07:59:10]save OK [07:59:10]Clear old archive folders... [07:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:59:10]tlvbuf is 0020EA50 [07:59:10]SAM_PROTO_ClearQueue [07:59:10]wFMCommunicate request_size=4 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 09 00 00 [07:59:10]Write to MH i2c: E2 08 00 33 4F 80 09 00 00 00 00 00 00 F4 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 33 4F 00 90 00 F6 [07:59:10]RAPDU: 90 00 [07:59:10]wFMCommunicate OK [07:59:10]SAM_PROTO_ClearQueue done [07:59:10]KKMCreateOFDPacket [07:59:10]OFDProtocolAddRootSTLVToBuf [07:59:10]FM_MakeSignedData [07:59:10]FM_MakeSignedData [07:59:10]SAM_PROTO_SignData [07:59:10]wFMCommunicate request_size=4 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 0D 01 02 [07:59:10]Write to MH i2c: E2 08 00 34 4F 80 0D 01 02 00 00 00 00 FC [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 34 4F 00 90 00 F7 [07:59:10]RAPDU: 90 00 [07:59:10]wFMCommunicate OK [07:59:10]wFMCommunicate request_size=255 [07:59:10]MH_SAM_APDU [07:59:10]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 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 D9 4F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [07:59:10]Write to MH i2c: E2 02 01 35 4F 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 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 D9 4F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 6A [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 35 4F 00 90 00 F8 [07:59:10]RAPDU: 90 00 [07:59:10]wFMCommunicate OK [07:59:10]wFMCommunicate request_size=35 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C5 00 00 35 04 06 00 E4 52 59 A3 92 7B [07:59:10]Write to MH i2c: E2 26 00 36 4F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C5 00 00 35 04 06 00 E4 52 59 A3 92 7B 00 00 43 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 03 00 36 4F 00 90 00 F9 [07:59:10]RAPDU: 90 00 [07:59:10]wFMCommunicate OK [07:59:10]wFMCommunicate request_size=4 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 0D 03 02 [07:59:10]Write to MH i2c: E2 08 00 37 4F 80 0D 03 02 00 00 00 00 01 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 0B 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 0B 00 37 4F 00 15 33 43 05 42 B7 55 DF 90 00 BF [07:59:10]RAPDU: 15 33 43 05 42 B7 55 DF 90 00 [07:59:10]wFMCommunicate OK [07:59:10]SAM_PROTO_SignData done [07:59:10]FM_MakeSignedData done [07:59:10]CreateOFDProtocolMessage [07:59:10]wFMCommunicate request_size=4 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 11 00 00 [07:59:10]Write to MH i2c: E2 08 00 38 4F 80 11 00 00 00 00 00 00 01 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 17 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 17 00 38 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 48 [07:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:59:10]wFMCommunicate OK [07:59:10]CreateOFDProtocolMessage done [07:59:10]OFDSenderStorePacket 50521 [07:59:10]StoreOFDPacket docnum=50521 [07:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 8C 07 20 01 70 E5 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 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 D9 4F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C5 00 00 35 04 06 00 E4 52 59 A3 92 7B 15 33 43 05 42 B7 55 DF [07:59:10]CheckFolder [07:59:10]dirname=/storage/ofd_packets [07:59:10]CheckFolder done [07:59:10]ProducePacketName [07:59:10]name=ofd_packets/00050521 [07:59:10]NVStorageSaveData ofd_packets/00050521 [07:59:10]File name is /storage/ofd_packets/00050521 [07:59:10]Write 326 bytes [07:59:10]NVStorageSaveData done [07:59:10]OFDSenderStorePacket done [07:59:10]KKMCreateOFDPacket done [07:59:10]NVStorageSaveData kkm_last_timestamp [07:59:10]File name is /storage/kkm_last_timestamp [07:59:10]Write 4 bytes [07:59:10]NVStorageSaveData done [07:59:10]ExternCall_PrintAddStr [07:59:10]wPrintStart [07:59:10]Write to MH i2c: 01 00 00 39 4F 88 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 07 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 07 00 39 4F 00 00 00 00 00 FF 0F 9D [07:59:10]RasterBufferAndPrint [07:59:10]line Счет N : (3)164434 [07:59:10]line ИНН: 02508201610067 [07:59:10]line Контрольно-Кассовый Чек [07:59:10]line ПРОДАЖА [07:59:10]line Товар: 48744683 [07:59:10]line Сигареты Winston XStyle Caster+ [07:59:10]line 1.000 * 147.00 [07:59:10]line = 147.00 [07:59:10]line НДС 12% НСП 1% [07:59:10]line > о реализуемом товаре [07:59:10]line ИТОГО: 147.00 [07:59:10]line НСП 1% : 1.30 [07:59:10]line НДС 12% : 15.61 [07:59:10]line Наличными: 147.00 [07:59:10]line Безнал.: 0.00 [07:59:10]line Место: АЗС № 80 "Партнер Нефть" [07:59:10]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [07:59:10]line СНО: Общий режим [07:59:10]line Чек 21 25.10.2024 07:59 [07:59:10]line Смена: 493 ФФД: 1.0 [07:59:10]line ЗНМ: 0300000090 [07:59:10]line РНМ: 0000000000097022 [07:59:10]line Версия ККМ: 001 [07:59:10]line ФМ: 0000000000875000 [07:59:10]line ФД: 50521 [07:59:10]line ФПД: 251042342343291 [07:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T075921&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50521&fm=251042342343291&tin=02508201610067®Number=0000000000097022&sum=14700 [07:59:10]OFD Sender: Processing packet 50521 [packets to send 7, broken 6] [07:59:10]ProducePacketName [07:59:10]name=ofd_packets/00050521 [07:59:10]OFD Sender: To server: pG, [07:59:10]CommunicateWithHost lk.salyk.kg:30040 [07:59:10]ConnectInit lk.salyk.kg [07:59:10]line 0 [07:59:10]written 0, free lines is 4095 [07:59:11]Connected sock=11 [07:59:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 8C 07 20 01 70 E5 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 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 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 D9 4F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C5 00 00 35 04 06 00 E4 52 59 A3 92 7B 15 33 43 05 42 B7 55 DF [07:59:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AB 3D 47 00 AA FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 59 C5 00 00 F4 03 04 00 6B FB 1A 67 B6 04 01 00 00 B5 1D 97 9E 85 D6 DE 51 [07:59:11]CommunicateWithHost err = 0 [07:59:11]CheckOFDResponse [07:59:11]1017 (14) - 77093643461234 [07:59:11]1041 (16) - 0000000000875000 [07:59:11]1040 (4) - 50521 [07:59:11]1012 (4) - 25.10.2024 01:59 [07:59:11]1206 (1) - 0 [07:59:11]OFD Sender: Remove packet 50521 [07:59:11]ProducePacketName [07:59:11]name=ofd_packets/00050521 [07:59:11]NVStorageDeleteData [07:59:11]Write to MH i2c: 01 00 00 62 4F B1 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: 01 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: 01 07 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: 01 07 00 62 4F 00 00 00 00 00 F8 0C BC [07:59:11]RasterBufferAndPrint [07:59:11]line [07:59:11]line [07:59:11]line [07:59:11]line [07:59:11]line [07:59:11]written 0, free lines is 3330 [07:59:11]process_action close_receipt done [07:59:11]requested_data is exist [07:59:11]produce_requested_data [07:59:11]requested_item fm.sn is exist - process it [07:59:11]wFMCommunicate request_size=4 [07:59:11]MH_SAM_APDU [07:59:11]CAPDU: 80 11 00 00 [07:59:11]Write to MH i2c: E2 08 00 69 4F 80 11 00 00 00 00 00 00 32 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:11]Read from MH i2c: E2 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 17 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 17 00 69 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 79 [07:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [07:59:11]wFMCommunicate OK [07:59:11]requested_item fd.num is exist - process it [07:59:11]SAM_PROTO_GetFieldsCounters [07:59:11]wFMCommunicate request_size=4 [07:59:11]MH_SAM_APDU [07:59:11]CAPDU: 80 13 00 00 [07:59:11]Write to MH i2c: E2 08 00 6A 4F 80 13 00 00 00 00 00 00 35 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:11]Read from MH i2c: E2 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 62 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 62 00 6A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 59 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [07:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 59 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:11]wFMCommunicate OK [07:59:11]SAM_PROTO_GetFieldsCounters done [07:59:11]requested_item shift.num is exist - process it [07:59:11]requested_item shift.opened is exist - process it [07:59:11]req_shift_opened [07:59:11]FM_GetShiftState [07:59:11]SAM_PROTO_GetShiftState [07:59:11]wFMCommunicate request_size=4 [07:59:11]MH_SAM_APDU [07:59:11]CAPDU: 80 13 01 00 [07:59:11]Write to MH i2c: E2 08 00 6B 4F 80 13 01 00 00 00 00 00 37 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:11]Read from MH i2c: E2 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 0E 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 0E 00 6B 4F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2F [07:59:11]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [07:59:11]wFMCommunicate OK [07:59:11]SAM_PROTO_GetShiftState done [07:59:11]FM_GetShiftState done [07:59:11]req_shift_opened done [07:59:11]requested_item shift.open_date is exist - process it [07:59:11]req_shift_open_date [07:59:11]req_shift_open_date done [07:59:11]produce_requested_data done [07:59:11]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50521,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [07:59:11]process_action_free close_receipt [07:59:11]json_value_free [07:59:11]json_value_free done [07:59:11]process_json_proto returns [07:59:11]Send response to host [07:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50521,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [07:59:11]free response buf [07:59:11]execute_script done [07:59:11]execute_script returns [07:59:11]free content buf [07:59:11]Sock 7.Close socket [07:59:11]Sock 7.Thread stoped [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:02]accept exits with 10 [08:01:02]New connection [08:01:02]New thread 3067305316 created [08:01:02]Thread 3067161956 joined [08:01:02]Waiting for new connection... [08:01:02] Sock 10.Parse request [08:01:02]Sock 10.Check first char [08:01:02]Sock 10.First char is OK [08:01:02]request: POST /json_proto HTTP/1.0 [08:01:02]Method: POST [08:01:02]URL: /json_proto [08:01:02]Method is POST - this is cgi request [08:01:02]url: /json_proto [08:01:02]query_string will be loaded in cgi processing [08:01:02]execute_cgi json_proto POST (null) [08:01:02]execute_cgi path=json_proto method=POST [08:01:02]POST find Content-Length [08:01:02]Host: 172.17.49.196:8080 [08:01:02]Content-Length: 1204 [08:01:02]Content-Type: application/json [08:01:02] [08:01:02]POST finish read [08:01:02]Found Content-Length = 1204 [08:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164435", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 343.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:02]execute_script... [08:01: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)164435", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 343.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:02]POST & json_proto [08:01:02]process_json_proto [08:01:02]json parsed OK: [08:01:02]protocol is kg_v1.0 [08:01:02]action value=close_receipt [08:01:02]process_action close_receipt [08:01:02]cmd_close_receipt [08:01:02]MH_GetDate [08:01:02]Write to MH i2c: F0 00 00 6C 4F AA [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: F0 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: F0 09 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: F0 09 00 6C 4F 00 4B 50 1B 67 BD 3B 11 67 40 [08:01:02]GetLastDocTimeStamp 1729843161 [08:01:02]current date 1729843275 [08:01:02]FM_GetShiftState [08:01:02]SAM_PROTO_GetShiftState [08:01:02]wFMCommunicate request_size=4 [08:01:02]MH_SAM_APDU [08:01:02]CAPDU: 80 13 01 00 [08:01:02]Write to MH i2c: E2 08 00 6D 4F 80 13 01 00 00 00 00 00 39 [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:02]Read from MH i2c: E2 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 0E 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 0E 00 6D 4F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 31 [08:01:02]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:01:02]wFMCommunicate OK [08:01:02]SAM_PROTO_GetShiftState done [08:01:02]FM_GetShiftState done [08:01:02]opened in 1729815177 [08:01:02]opened+sec_in_day 1729901577 [08:01:02]quantity*price = 12000 [08:01:02]sum+1 = 12001 [08:01:02]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 343.00 НСП 1% : 3.03 НДС 12% : 36.42 Наличными: 343.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 22 25.10.2024 08:01 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50522 ФПД: 273402131075939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080115&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50522&fm=273402131075939&tin=02508201610067®Number=0000000000097022&sum=34300 0 [08:01:03]StoreToDocumentArchive [08:01:03]shift 493 fd 50522 [08:01:03]save to /storage/0493/doc_00050522 [08:01:03]save last doc name /storage/0493/doc_00050522 to /storage/kkm_last_doc_name [08:01:03]save OK [08:01:03]Clear old archive folders... [08:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=514 [08:01:03]tlvbuf is 00128680 [08:01:03]SAM_PROTO_ClearQueue [08:01:03]wFMCommunicate request_size=4 [08:01:03]MH_SAM_APDU [08:01:03]CAPDU: 80 09 00 00 [08:01:03]Write to MH i2c: E2 08 00 7A 4F 80 09 00 00 00 00 00 00 3B [08:01:03]Write i2c OK [08:01:03]MH_I2C_Read... [08:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:03]Read from MH i2c: E2 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 03 00 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 03 00 7A 4F 00 90 00 3D [08:01:03]RAPDU: 90 00 [08:01:03]wFMCommunicate OK [08:01:03]SAM_PROTO_ClearQueue done [08:01:03]KKMCreateOFDPacket [08:01:03]OFDProtocolAddRootSTLVToBuf [08:01:03]FM_MakeSignedData [08:01:03]FM_MakeSignedData [08:01:03]SAM_PROTO_SignData [08:01:03]wFMCommunicate request_size=4 [08:01:03]MH_SAM_APDU [08:01:03]CAPDU: 80 0D 01 02 [08:01:03]Write to MH i2c: E2 08 00 7B 4F 80 0D 01 02 00 00 00 00 43 [08:01:03]Write i2c OK [08:01:03]MH_I2C_Read... [08:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:03]Read from MH i2c: E2 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 03 00 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: E2 03 00 7B 4F 00 90 00 3E [08:01:03]RAPDU: 90 00 [08:01:03]wFMCommunicate OK [08:01:03]wFMCommunicate request_size=255 [08:01:03]MH_SAM_APDU [08:01:03]CAPDU: 80 0D 02 02 FA 03 00 02 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 72 00 8A 04 0D 00 34 36 30 33 32 39 30 [08:01:03]Write to MH i2c: E2 02 01 7C 4F 80 0D 02 02 FA 00 03 00 02 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 72 00 8A 04 0D 00 34 36 30 33 32 39 30 00 00 BE [08:01:03]Write i2c OK [08:01:03]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 03 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 03 00 7C 4F 00 90 00 3F [08:01:04]RAPDU: 90 00 [08:01:04]wFMCommunicate OK [08:01:04]wFMCommunicate request_size=255 [08:01:04]MH_SAM_APDU [08:01:04]CAPDU: 80 0D 02 02 FA 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 4B 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 [08:01:04]Write to MH i2c: E2 02 01 7D 4F 80 0D 02 02 FA 00 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 4B 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 00 00 F4 [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 03 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 03 00 7D 4F 00 90 00 40 [08:01:04]RAPDU: 90 00 [08:01:04]wFMCommunicate OK [08:01:04]wFMCommunicate request_size=23 [08:01:04]MH_SAM_APDU [08:01:04]CAPDU: 80 0D 02 02 12 10 04 04 00 5A C5 00 00 35 04 06 00 F8 A8 64 E7 53 63 [08:01:04]Write to MH i2c: E2 1A 00 7E 4F 80 0D 02 02 12 00 10 04 04 00 5A C5 00 00 35 04 06 00 F8 A8 64 E7 53 63 00 00 82 [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 03 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 03 00 7E 4F 00 90 00 41 [08:01:04]RAPDU: 90 00 [08:01:04]wFMCommunicate OK [08:01:04]wFMCommunicate request_size=4 [08:01:04]MH_SAM_APDU [08:01:04]CAPDU: 80 0D 03 02 [08:01:04]Write to MH i2c: E2 08 00 7F 4F 80 0D 03 02 00 00 00 00 49 [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 0B 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 0B 00 7F 4F 00 8D F7 8D 40 78 AB EF 1D 90 00 CA [08:01:04]RAPDU: 8D F7 8D 40 78 AB EF 1D 90 00 [08:01:04]wFMCommunicate OK [08:01:04]SAM_PROTO_SignData done [08:01:04]FM_MakeSignedData done [08:01:04]CreateOFDProtocolMessage [08:01:04]wFMCommunicate request_size=4 [08:01:04]MH_SAM_APDU [08:01:04]CAPDU: 80 11 00 00 [08:01:04]Write to MH i2c: E2 08 00 80 4F 80 11 00 00 00 00 00 00 49 [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 17 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 17 00 80 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 90 [08:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:01:04]wFMCommunicate OK [08:01:04]CreateOFDProtocolMessage done [08:01:04]OFDSenderStorePacket 50522 [08:01:04]StoreOFDPacket docnum=50522 [08:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 16 02 00 00 45 D1 0E 02 DF 63 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 4B 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5A C5 00 00 35 04 06 00 F8 A8 64 E7 53 63 8D F7 8D 40 78 AB EF 1D [08:01:04]CheckFolder [08:01:04]dirname=/storage/ofd_packets [08:01:04]CheckFolder done [08:01:04]ProducePacketName [08:01:04]name=ofd_packets/00050522 [08:01:04]NVStorageSaveData ofd_packets/00050522 [08:01:04]File name is /storage/ofd_packets/00050522 [08:01:04]Write 564 bytes [08:01:04]NVStorageSaveData done [08:01:04]OFDSenderStorePacket done [08:01:04]KKMCreateOFDPacket done [08:01:04]NVStorageSaveData kkm_last_timestamp [08:01:04]File name is /storage/kkm_last_timestamp [08:01:04]Write 4 bytes [08:01:04]NVStorageSaveData done [08:01:04]ExternCall_PrintAddStr [08:01:04]wPrintStart [08:01:04]Write to MH i2c: 01 00 00 81 4F D0 [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: 01 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: 01 07 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: 01 07 00 81 4F 00 00 00 00 00 FF 0F E5 [08:01:04]RasterBufferAndPrint [08:01:04]line Счет N : (3)164435 [08:01:04]line ИНН: 02508201610067 [08:01:04]line Контрольно-Кассовый Чек [08:01:04]line ПРОДАЖА [08:01:04]line Товар: 2000034250011 [08:01:04]line Горячий шоколад (GABB trade) [08:01:04]line 1.000 * 120.00 [08:01:04]line = 120.00 [08:01:04]line НДС 12% НСП 1% [08:01:04]line > о реализуемом товаре [08:01:04]line Товар: 2000036220012 [08:01:04]line Кофе Капучино XL(GABB TRADE) [08:01:04]line 1.000 * 130.00 [08:01:04]line = 130.00 [08:01:04]line НДС 12% НСП 1% [08:01:04]line > о реализуемом товаре [08:01:04]line Товар: 4603290004879 [08:01:04]line Печ.сах.FORSITE Сэнд.кокос.вк [08:01:04]line 1.000 * 93.00 [08:01:04]line = 93.00 [08:01:04]line НДС 12% НСП 1% [08:01:04]line > о реализуемом товаре [08:01:04]line ИТОГО: 343.00 [08:01:04]line НСП 1% : 3.03 [08:01:04]line НДС 12% : 36.42 [08:01:04]line Наличными: 343.00 [08:01:04]line Безнал.: 0.00 [08:01:04]line Место: АЗС № 80 "Партнер Нефть" [08:01:04]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:01:04]line СНО: Общий режим [08:01:04]line Чек 22 25.10.2024 08:01 [08:01:04]line Смена: 493 ФФД: 1.0 [08:01:04]line ЗНМ: 0300000090 [08:01:04]line РНМ: 0000000000097022 [08:01:04]line Версия ККМ: 001 [08:01:04]line ФМ: 0000000000875000 [08:01:04]line ФД: 50522 [08:01:04]line ФПД: 273402131075939 [08:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080115&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50522&fm=273402131075939&tin=02508201610067®Number=0000000000097022&sum=34300 [08:01:04]line 0 [08:01:04]OFD Sender: Processing packet 50522 [packets to send 7, broken 6] [08:01:04]ProducePacketName [08:01:04]name=ofd_packets/00050522 [08:01:04]OFD Sender: To server: pG, [08:01:04]CommunicateWithHost lk.salyk.kg:30040 [08:01:04]ConnectInit lk.salyk.kg [08:01:04]written 0, free lines is 4095 [08:01:05]Connected sock=9 [08:01:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 16 02 00 00 45 D1 0E 02 DF 63 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 4B 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5A C5 00 00 35 04 06 00 F8 A8 64 E7 53 63 8D F7 8D 40 78 AB EF 1D [08:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A3 30 47 00 99 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5A C5 00 00 F4 03 04 00 DD FB 1A 67 B6 04 01 00 00 8D 2C 68 72 44 D1 13 42 [08:01:05]CommunicateWithHost err = 0 [08:01:05]CheckOFDResponse [08:01:05]1017 (14) - 77093643461234 [08:01:05]1041 (16) - 0000000000875000 [08:01:05]1040 (4) - 50522 [08:01:05]1012 (4) - 25.10.2024 02:01 [08:01:05]1206 (1) - 0 [08:01:05]OFD Sender: Remove packet 50522 [08:01:05]ProducePacketName [08:01:05]name=ofd_packets/00050522 [08:01:05]NVStorageDeleteData [08:01:05]Write to MH i2c: 01 00 00 B7 4F 06 [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: 01 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: 01 07 00 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: 01 07 00 B7 4F 00 00 00 00 00 60 0C 79 [08:01:05]RasterBufferAndPrint [08:01:05]line [08:01:05]line [08:01:05]line [08:01:05]line [08:01:05]line [08:01:05]written 0, free lines is 3177 [08:01:05]process_action close_receipt done [08:01:05]requested_data is exist [08:01:05]produce_requested_data [08:01:05]requested_item fm.sn is exist - process it [08:01:05]wFMCommunicate request_size=4 [08:01:05]MH_SAM_APDU [08:01:05]CAPDU: 80 11 00 00 [08:01:05]Write to MH i2c: E2 08 00 BE 4F 80 11 00 00 00 00 00 00 87 [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:05]Read from MH i2c: E2 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 17 00 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 17 00 BE 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CE [08:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:01:05]wFMCommunicate OK [08:01:05]requested_item fd.num is exist - process it [08:01:05]SAM_PROTO_GetFieldsCounters [08:01:05]wFMCommunicate request_size=4 [08:01:05]MH_SAM_APDU [08:01:05]CAPDU: 80 13 00 00 [08:01:05]Write to MH i2c: E2 08 00 BF 4F 80 13 00 00 00 00 00 00 8A [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:05]Read from MH i2c: E2 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 62 00 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 62 00 BF 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [08:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:05]wFMCommunicate OK [08:01:05]SAM_PROTO_GetFieldsCounters done [08:01:05]requested_item shift.num is exist - process it [08:01:05]requested_item shift.opened is exist - process it [08:01:05]req_shift_opened [08:01:05]FM_GetShiftState [08:01:05]SAM_PROTO_GetShiftState [08:01:05]wFMCommunicate request_size=4 [08:01:05]MH_SAM_APDU [08:01:05]CAPDU: 80 13 01 00 [08:01:05]Write to MH i2c: E2 08 00 C0 4F 80 13 01 00 00 00 00 00 8C [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:05]OFD Sender: No OFD packet to send [08:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:05]Read from MH i2c: E2 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 0E 00 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 0E 00 C0 4F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 84 [08:01:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:01:05]wFMCommunicate OK [08:01:05]SAM_PROTO_GetShiftState done [08:01:05]FM_GetShiftState done [08:01:05]req_shift_opened done [08:01:05]requested_item shift.open_date is exist - process it [08:01:05]req_shift_open_date [08:01:05]req_shift_open_date done [08:01:05]produce_requested_data done [08:01:05]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50522,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:01:05]process_action_free close_receipt [08:01:05]json_value_free [08:01:05]json_value_free done [08:01:05]process_json_proto returns [08:01:05]Send response to host [08:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50522,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:01:05]free response buf [08:01:05]execute_script done [08:01:05]execute_script returns [08:01:05]free content buf [08:01:05]Sock 10.Close socket [08:01:05]Sock 10.Thread stoped [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:25]accept exits with 7 [08:01:25]New connection [08:01:25]New thread 3067161956 created [08:01:25]Thread 3067305316 joined [08:01:25]Waiting for new connection... [08:01:25] Sock 7.Parse request [08:01:25]Sock 7.Check first char [08:01:25]Sock 7.First char is OK [08:01:25]request: POST /json_proto HTTP/1.0 [08:01:25]Method: POST [08:01:25]URL: /json_proto [08:01:25]Method is POST - this is cgi request [08:01:25]url: /json_proto [08:01:25]query_string will be loaded in cgi processing [08:01:25]execute_cgi json_proto POST (null) [08:01:25]execute_cgi path=json_proto method=POST [08:01:25]POST find Content-Length [08:01:25]Host: 172.17.49.196:8080 [08:01:25]Content-Length: 751 [08:01:25]Content-Type: application/json [08:01:25] [08:01:25]POST finish read [08:01:25]Found Content-Length = 751 [08:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164436", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:25]execute_script... [08:01: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)164436", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:25]POST & json_proto [08:01:25]process_json_proto [08:01:25]json parsed OK: [08:01:25]protocol is kg_v1.0 [08:01:25]action value=close_receipt [08:01:25]process_action close_receipt [08:01:25]cmd_close_receipt [08:01:25]MH_GetDate [08:01:25]Write to MH i2c: F0 00 00 C1 4F FF [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: F0 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: F0 09 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: F0 09 00 C1 4F 00 62 50 1B 67 BD 3B 11 67 AC [08:01:25]GetLastDocTimeStamp 1729843275 [08:01:25]current date 1729843298 [08:01:25]FM_GetShiftState [08:01:25]SAM_PROTO_GetShiftState [08:01:25]wFMCommunicate request_size=4 [08:01:25]MH_SAM_APDU [08:01:25]CAPDU: 80 13 01 00 [08:01:25]Write to MH i2c: E2 08 00 C2 4F 80 13 01 00 00 00 00 00 8E [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:25]Read from MH i2c: E2 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 0E 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 0E 00 C2 4F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 86 [08:01:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:01:25]wFMCommunicate OK [08:01:25]SAM_PROTO_GetShiftState done [08:01:25]FM_GetShiftState done [08:01:25]opened in 1729815177 [08:01:25]opened+sec_in_day 1729901577 [08:01:25]quantity*price = 16000 [08:01:25]sum+1 = 16001 [08:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 23 25.10.2024 08:01 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50523 ФПД: 265294298216324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080138&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50523&fm=265294298216324&tin=02508201610067®Number=0000000000097022&sum=16000 0 [08:01:27]StoreToDocumentArchive [08:01:27]shift 493 fd 50523 [08:01:27]save to /storage/0493/doc_00050523 [08:01:27]save last doc name /storage/0493/doc_00050523 to /storage/kkm_last_doc_name [08:01:27]save OK [08:01:27]Clear old archive folders... [08:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:01:27]tlvbuf is 0020EB70 [08:01:27]SAM_PROTO_ClearQueue [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 09 00 00 [08:01:27]Write to MH i2c: E2 08 00 CF 4F 80 09 00 00 00 00 00 00 90 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 CF 4F 00 90 00 92 [08:01:27]RAPDU: 90 00 [08:01:27]wFMCommunicate OK [08:01:27]SAM_PROTO_ClearQueue done [08:01:27]KKMCreateOFDPacket [08:01:27]OFDProtocolAddRootSTLVToBuf [08:01:27]FM_MakeSignedData [08:01:27]FM_MakeSignedData [08:01:27]SAM_PROTO_SignData [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 0D 01 02 [08:01:27]Write to MH i2c: E2 08 00 D0 4F 80 0D 01 02 00 00 00 00 98 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 D0 4F 00 90 00 93 [08:01:27]RAPDU: 90 00 [08:01:27]wFMCommunicate OK [08:01:27]wFMCommunicate request_size=255 [08:01:27]MH_SAM_APDU [08:01:27]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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 62 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [08:01:27]Write to MH i2c: E2 02 01 D1 4F 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 62 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 A6 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 D1 4F 00 90 00 94 [08:01:27]RAPDU: 90 00 [08:01:27]wFMCommunicate OK [08:01:27]wFMCommunicate request_size=35 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C5 00 00 35 04 06 00 F1 48 A4 67 F7 84 [08:01:27]Write to MH i2c: E2 26 00 D2 4F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C5 00 00 35 04 06 00 F1 48 A4 67 F7 84 00 00 61 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 D2 4F 00 90 00 95 [08:01:27]RAPDU: 90 00 [08:01:27]wFMCommunicate OK [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 0D 03 02 [08:01:27]Write to MH i2c: E2 08 00 D3 4F 80 0D 03 02 00 00 00 00 9D [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 0B 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 0B 00 D3 4F 00 53 40 DF A4 AE 71 77 80 90 00 CA [08:01:27]RAPDU: 53 40 DF A4 AE 71 77 80 90 00 [08:01:27]wFMCommunicate OK [08:01:27]SAM_PROTO_SignData done [08:01:27]FM_MakeSignedData done [08:01:27]CreateOFDProtocolMessage [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 11 00 00 [08:01:27]Write to MH i2c: E2 08 00 D4 4F 80 11 00 00 00 00 00 00 9D [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 17 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 17 00 D4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E4 [08:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:01:27]wFMCommunicate OK [08:01:27]CreateOFDProtocolMessage done [08:01:27]OFDSenderStorePacket 50523 [08:01:27]StoreOFDPacket docnum=50523 [08:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 07 FE 20 01 12 5A 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 62 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C5 00 00 35 04 06 00 F1 48 A4 67 F7 84 53 40 DF A4 AE 71 77 80 [08:01:27]CheckFolder [08:01:27]dirname=/storage/ofd_packets [08:01:27]CheckFolder done [08:01:27]ProducePacketName [08:01:27]name=ofd_packets/00050523 [08:01:27]NVStorageSaveData ofd_packets/00050523 [08:01:27]File name is /storage/ofd_packets/00050523 [08:01:27]Write 326 bytes [08:01:27]NVStorageSaveData done [08:01:27]OFDSenderStorePacket done [08:01:27]KKMCreateOFDPacket done [08:01:27]NVStorageSaveData kkm_last_timestamp [08:01:27]File name is /storage/kkm_last_timestamp [08:01:27]Write 4 bytes [08:01:27]NVStorageSaveData done [08:01:27]ExternCall_PrintAddStr [08:01:27]wPrintStart [08:01:27]Write to MH i2c: 01 00 00 D5 4F 24 [08:01:27]OFD Sender: Processing packet 50523 [packets to send 7, broken 6] [08:01:27]ProducePacketName [08:01:27]name=ofd_packets/00050523 [08:01:27]OFD Sender: To server: pG, [08:01:27]CommunicateWithHost lk.salyk.kg:30040 [08:01:27]ConnectInit lk.salyk.kg [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: 01 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: 01 07 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: 01 07 00 D5 4F 00 00 00 00 00 FF 0F 39 [08:01:27]RasterBufferAndPrint [08:01:27]line Счет N : (3)164436 [08:01:27]line ИНН: 02508201610067 [08:01:27]line Контрольно-Кассовый Чек [08:01:27]line ПРОДАЖА [08:01:27]line Товар: 48742245 [08:01:27]line Сигареты Parliament Silver Blue [08:01:27]line 1.000 * 160.00 [08:01:27]line = 160.00 [08:01:27]line НДС 12% НСП 1% [08:01:27]line > о реализуемом товаре [08:01:27]line ИТОГО: 160.00 [08:01:27]line НСП 1% : 1.42 [08:01:27]line НДС 12% : 16.99 [08:01:27]line Наличными: 0.00 [08:01:27]line Безнал.: 160.00 [08:01:27]line Место: АЗС № 80 "Партнер Нефть" [08:01:27]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:01:27]line СНО: Общий режим [08:01:27]line Чек 23 25.10.2024 08:01 [08:01:27]line Смена: 493 ФФД: 1.0 [08:01:27]line ЗНМ: 0300000090 [08:01:27]line РНМ: 0000000000097022 [08:01:27]line Версия ККМ: 001 [08:01:27]line Платежная система: Mbank [08:01:27]line ФМ: 0000000000875000 [08:01:27]line ФД: 50523 [08:01:27]line ФПД: 265294298216324 [08:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080138&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50523&fm=265294298216324&tin=02508201610067®Number=0000000000097022&sum=16000 [08:01:27]Connected sock=10 [08:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 07 FE 20 01 12 5A 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 62 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 line 0 [08:01:27]30 30 30 10 04 04 00 5B C5 00 00 35 04 06 00 F1 48 A4 67 F7 84 53 40 DF A4 AE 71 77 80 [08:01:27]written 0, free lines is 4095 [08:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 84 AA 47 00 CF 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5B C5 00 00 F4 03 04 00 F4 FB 1A 67 B6 04 01 00 00 80 8C 85 BF A5 E4 6B 1C [08:01:28]CommunicateWithHost err = 0 [08:01:28]CheckOFDResponse [08:01:28]1017 (14) - 77093643461234 [08:01:28]1041 (16) - 0000000000875000 [08:01:28]1040 (4) - 50523 [08:01:28]1012 (4) - 25.10.2024 02:01 [08:01:28]1206 (1) - 0 [08:01:28]OFD Sender: Remove packet 50523 [08:01:28]ProducePacketName [08:01:28]name=ofd_packets/00050523 [08:01:28]NVStorageDeleteData [08:01:28]Write to MH i2c: 01 00 00 FF 4F 4E [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 07 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 07 00 FF 4F 00 00 00 00 00 F5 0C 56 [08:01:28]RasterBufferAndPrint [08:01:28]line [08:01:28]line [08:01:28]line [08:01:28]line [08:01:28]line [08:01:28]written 0, free lines is 3323 [08:01:28]process_action close_receipt done [08:01:28]requested_data is exist [08:01:28]produce_requested_data [08:01:28]requested_item fm.sn is exist - process it [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 11 00 00 [08:01:28]Write to MH i2c: E2 08 00 06 50 80 11 00 00 00 00 00 00 D0 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 17 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 17 00 06 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 17 [08:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:01:28]wFMCommunicate OK [08:01:28]requested_item fd.num is exist - process it [08:01:28]SAM_PROTO_GetFieldsCounters [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 13 00 00 [08:01:28]Write to MH i2c: E2 08 00 07 50 80 13 00 00 00 00 00 00 D3 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 62 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 62 00 07 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [08:01:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:28]wFMCommunicate OK [08:01:28]SAM_PROTO_GetFieldsCounters done [08:01:28]requested_item shift.num is exist - process it [08:01:28]requested_item shift.opened is exist - process it [08:01:28]req_shift_opened [08:01:28]FM_GetShiftState [08:01:28]SAM_PROTO_GetShiftState [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 13 01 00 [08:01:28]Write to MH i2c: E2 08 00 08 50 80 13 01 00 00 00 00 00 D5 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]OFD Sender: No OFD packet to send [08:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 0E 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 0E 00 08 50 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 CD [08:01:28]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:01:28]wFMCommunicate OK [08:01:28]SAM_PROTO_GetShiftState done [08:01:28]FM_GetShiftState done [08:01:28]req_shift_opened done [08:01:28]requested_item shift.open_date is exist - process it [08:01:28]req_shift_open_date [08:01:28]req_shift_open_date done [08:01:28]produce_requested_data done [08:01:28]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50523,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:01:28]process_action_free close_receipt [08:01:28]json_value_free [08:01:28]json_value_free done [08:01:28]process_json_proto returns [08:01:28]Send response to host [08:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50523,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:01:28]free response buf [08:01:28]execute_script done [08:01:28]execute_script returns [08:01:28]free content buf [08:01:28]Sock 7.Close socket [08:01:28]Sock 7.Thread stoped [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:56]accept exits with 9 [08:01:56]New connection [08:01:56]New thread 3067305316 created [08:01:56]Thread 3067161956 joined [08:01:56]Waiting for new connection... [08:01:56] Sock 9.Parse request [08:01:56]Sock 9.Check first char [08:01:56]Sock 9.First char is OK [08:01:56]request: POST /json_proto HTTP/1.0 [08:01:56]Method: POST [08:01:56]URL: /json_proto [08:01:56]Method is POST - this is cgi request [08:01:56]url: /json_proto [08:01:56]query_string will be loaded in cgi processing [08:01:56]execute_cgi json_proto POST (null) [08:01:56]execute_cgi path=json_proto method=POST [08:01:56]POST find Content-Length [08:01:56]Host: 172.17.49.196:8080 [08:01:56]Content-Length: 644 [08:01:56]Content-Type: application/json [08:01:56] [08:01:56]POST finish read [08:01:56]Found Content-Length = 644 [08:01:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164437", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:56]execute_script... [08:01:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164437", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:56]POST & json_proto [08:01:56]process_json_proto [08:01:56]json parsed OK: [08:01:56]protocol is kg_v1.0 [08:01:56]action value=close_receipt [08:01:56]process_action close_receipt [08:01:56]cmd_close_receipt [08:01:56]MH_GetDate [08:01:56]Write to MH i2c: F0 00 00 09 50 48 [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: F0 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: F0 09 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: F0 09 00 09 50 00 81 50 1B 67 BD 3B 11 67 14 [08:01:56]GetLastDocTimeStamp 1729843298 [08:01:56]current date 1729843329 [08:01:56]FM_GetShiftState [08:01:56]SAM_PROTO_GetShiftState [08:01:56]wFMCommunicate request_size=4 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 13 01 00 [08:01:56]Write to MH i2c: E2 08 00 0A 50 80 13 01 00 00 00 00 00 D7 [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:56]Read from MH i2c: E2 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 0E 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 0E 00 0A 50 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 CF [08:01:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:01:56]wFMCommunicate OK [08:01:56]SAM_PROTO_GetShiftState done [08:01:56]FM_GetShiftState done [08:01:56]opened in 1729815177 [08:01:56]opened+sec_in_day 1729901577 [08:01:56]quantity*price = 11500 [08:01:56]sum+1 = 11501 [08:01:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 24 25.10.2024 08:02 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50524 ФПД: 227504949293371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080209&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50524&fm=227504949293371&tin=02508201610067®Number=0000000000097022&sum=11500 0 [08:01:58]StoreToDocumentArchive [08:01:58]shift 493 fd 50524 [08:01:58]save to /storage/0493/doc_00050524 [08:01:58]save last doc name /storage/0493/doc_00050524 to /storage/kkm_last_doc_name [08:01:58]save OK [08:01:58]Clear old archive folders... [08:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:01:58]tlvbuf is 002736C0 [08:01:58]SAM_PROTO_ClearQueue [08:01:58]wFMCommunicate request_size=4 [08:01:58]MH_SAM_APDU [08:01:58]CAPDU: 80 09 00 00 [08:01:58]Write to MH i2c: E2 08 00 17 50 80 09 00 00 00 00 00 00 D9 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:58]Read from MH i2c: E2 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 03 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 03 00 17 50 00 90 00 DB [08:01:58]RAPDU: 90 00 [08:01:58]wFMCommunicate OK [08:01:58]SAM_PROTO_ClearQueue done [08:01:58]KKMCreateOFDPacket [08:01:58]OFDProtocolAddRootSTLVToBuf [08:01:58]FM_MakeSignedData [08:01:58]FM_MakeSignedData [08:01:58]SAM_PROTO_SignData [08:01:58]wFMCommunicate request_size=4 [08:01:58]MH_SAM_APDU [08:01:58]CAPDU: 80 0D 01 02 [08:01:58]Write to MH i2c: E2 08 00 18 50 80 0D 01 02 00 00 00 00 E1 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:58]Read from MH i2c: E2 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 03 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 03 00 18 50 00 90 00 DC [08:01:58]RAPDU: 90 00 [08:01:58]wFMCommunicate OK [08:01:58]wFMCommunicate request_size=255 [08:01:58]MH_SAM_APDU [08:01:58]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 81 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 [08:01:58]Write to MH i2c: E2 02 01 19 50 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 81 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 00 00 75 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:58]Read from MH i2c: E2 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 03 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 03 00 19 50 00 90 00 DD [08:01:58]RAPDU: 90 00 [08:01:58]wFMCommunicate OK [08:01:58]wFMCommunicate request_size=39 [08:01:58]MH_SAM_APDU [08:01:58]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C5 00 00 35 04 06 00 CE EA 1F AF F1 3B [08:01:58]Write to MH i2c: E2 2A 00 1A 50 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C5 00 00 35 04 06 00 CE EA 1F AF F1 3B 00 00 66 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:58]Read from MH i2c: E2 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 03 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 03 00 1A 50 00 90 00 DE [08:01:58]RAPDU: 90 00 [08:01:58]wFMCommunicate OK [08:01:58]wFMCommunicate request_size=4 [08:01:58]MH_SAM_APDU [08:01:58]CAPDU: 80 0D 03 02 [08:01:58]Write to MH i2c: E2 08 00 1B 50 80 0D 03 02 00 00 00 00 E6 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:58]Read from MH i2c: E2 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 0B 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 0B 00 1B 50 00 1D D1 A3 09 02 3D B0 E0 90 00 50 [08:01:58]RAPDU: 1D D1 A3 09 02 3D B0 E0 90 00 [08:01:58]wFMCommunicate OK [08:01:58]SAM_PROTO_SignData done [08:01:58]FM_MakeSignedData done [08:01:58]CreateOFDProtocolMessage [08:01:58]wFMCommunicate request_size=4 [08:01:58]MH_SAM_APDU [08:01:58]CAPDU: 80 11 00 00 [08:01:58]Write to MH i2c: E2 08 00 1C 50 80 11 00 00 00 00 00 00 E6 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:58]Read from MH i2c: E2 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 17 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 17 00 1C 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2D [08:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:01:58]wFMCommunicate OK [08:01:58]CreateOFDProtocolMessage done [08:01:58]OFDSenderStorePacket 50524 [08:01:58]StoreOFDPacket docnum=50524 [08:01:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 D1 AE 24 01 FF 1A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 81 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C5 00 00 35 04 06 00 CE EA 1F AF F1 3B 1D D1 A3 09 02 3D B0 E0 [08:01:58]CheckFolder [08:01:58]dirname=/storage/ofd_packets [08:01:58]CheckFolder done [08:01:58]ProducePacketName [08:01:58]name=ofd_packets/00050524 [08:01:58]NVStorageSaveData ofd_packets/00050524 [08:01:58]File name is /storage/ofd_packets/00050524 [08:01:58]Write 330 bytes [08:01:58]NVStorageSaveData done [08:01:58]OFDSenderStorePacket done [08:01:58]KKMCreateOFDPacket done [08:01:58]NVStorageSaveData kkm_last_timestamp [08:01:58]File name is /storage/kkm_last_timestamp [08:01:58]Write 4 bytes [08:01:58]NVStorageSaveData done [08:01:58]ExternCall_PrintAddStr [08:01:58]wPrintStart [08:01:58]Write to MH i2c: 01 00 00 1D 50 6D [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 07 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 07 00 1D 50 00 00 00 00 00 FF 0F 82 [08:01:58]RasterBufferAndPrint [08:01:58]line Счет N : (3)164437 [08:01:58]line ИНН: 02508201610067 [08:01:58]line Контрольно-Кассовый Чек [08:01:58]line ПРОДАЖА [08:01:58]line Товар: 2000036210013 [08:01:58]line Кофе Капучино (GABB TRADE) [08:01:58]line 1.000 * 115.00 [08:01:58]line = 115.00 [08:01:58]line НДС 12% НСП 1% [08:01:58]line > о реализуемом товаре [08:01:58]line ИТОГО: 115.00 [08:01:58]line НСП 1% : 1.02 [08:01:58]line НДС 12% : 12.21 [08:01:58]line Наличными: 115.00 [08:01:58]line Безнал.: 0.00 [08:01:58]line Место: АЗС № 80 "Партнер Нефть" [08:01:58]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:01:58]line СНО: Общий режим [08:01:58]line Чек 24 25.10.2024 08:02 [08:01:58]line Смена: 493 ФФД: 1.0 [08:01:58]line ЗНМ: 0300000090 [08:01:58]line РНМ: 0000000000097022 [08:01:58]line Версия ККМ: 001 [08:01:58]line ФМ: 0000000000875000 [08:01:58]line ФД: 50524 [08:01:58]line ФПД: 227504949293371 [08:01:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080209&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50524&fm=227504949293371&tin=02508201610067®Number=0000000000097022&sum=11500 [08:01:59]OFD Sender: Processing packet 50524 [packets to send 7, broken 6] [08:01:59]ProducePacketName [08:01:59]name=ofd_packets/00050524 [08:01:59]OFD Sender: To server: pG, [08:01:59]CommunicateWithHost lk.salyk.kg:30040 [08:01:59]ConnectInit lk.salyk.kg [08:01:59]line 0 [08:01:59]written 0, free lines is 4095 [08:01:59]Connected sock=10 [08:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 D1 AE 24 01 FF 1A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 81 50 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C5 00 00 35 04 06 00 CE EA 1F AF F1 3B 1D D1 A3 09 02 3D B0 E0 [08:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 34 A1 47 00 3B F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5C C5 00 00 F4 03 04 00 13 FC 1A 67 B6 04 01 00 00 28 C2 E8 49 FD 15 13 2C [08:01:59]CommunicateWithHost err = 0 [08:01:59]CheckOFDResponse [08:01:59]1017 (14) - 77093643461234 [08:01:59]1041 (16) - 0000000000875000 [08:01:59]1040 (4) - 50524 [08:01:59]1012 (4) - 25.10.2024 02:01 [08:01:59]1206 (1) - 0 [08:01:59]OFD Sender: Remove packet 50524 [08:01:59]ProducePacketName [08:01:59]name=ofd_packets/00050524 [08:01:59]NVStorageDeleteData [08:01:59]Write to MH i2c: 01 00 00 45 50 95 [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: 01 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: 01 07 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: 01 07 00 45 50 00 00 00 00 00 24 0D CD [08:01:59]RasterBufferAndPrint [08:01:59]line [08:01:59]line [08:01:59]line [08:01:59]line [08:01:59]line [08:01:59]written 0, free lines is 3370 [08:01:59]process_action close_receipt done [08:01:59]requested_data is exist [08:01:59]produce_requested_data [08:01:59]requested_item fm.sn is exist - process it [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 11 00 00 [08:01:59]Write to MH i2c: E2 08 00 4C 50 80 11 00 00 00 00 00 00 16 [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 17 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 17 00 4C 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 5D [08:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:01:59]wFMCommunicate OK [08:01:59]requested_item fd.num is exist - process it [08:01:59]SAM_PROTO_GetFieldsCounters [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 13 00 00 [08:01:59]Write to MH i2c: E2 08 00 4D 50 80 13 00 00 00 00 00 00 19 [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 62 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 62 00 4D 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [08:01:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:59]wFMCommunicate OK [08:01:59]SAM_PROTO_GetFieldsCounters done [08:01:59]requested_item shift.num is exist - process it [08:01:59]requested_item shift.opened is exist - process it [08:01:59]req_shift_opened [08:01:59]FM_GetShiftState [08:01:59]SAM_PROTO_GetShiftState [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 13 01 00 [08:01:59]Write to MH i2c: E2 08 00 4E 50 80 13 01 00 00 00 00 00 1B [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 0E 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 0E 00 4E 50 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 13 [08:01:59]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:01:59]wFMCommunicate OK [08:01:59]SAM_PROTO_GetShiftState done [08:01:59]FM_GetShiftState done [08:01:59]req_shift_opened done [08:01:59]requested_item shift.open_date is exist - process it [08:01:59]req_shift_open_date [08:01:59]req_shift_open_date done [08:01:59]produce_requested_data done [08:01:59]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50524,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:01:59]process_action_free close_receipt [08:01:59]json_value_free [08:01:59]json_value_free done [08:01:59]process_json_proto returns [08:01:59]Send response to host [08:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50524,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:01:59]free response buf [08:01:59]execute_script done [08:01:59]execute_script returns [08:01:59]free content buf [08:01:59]Sock 9.Close socket [08:01:59]Sock 9.Thread stoped [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:19]accept exits with 7 [08:05:19]New connection [08:05:19]New thread 3067161956 created [08:05:19]Thread 3067305316 joined [08:05:19]Waiting for new connection... [08:05:19] Sock 7.Parse request [08:05:19]Sock 7.Check first char [08:05:19]Sock 7.First char is OK [08:05:19]request: POST /json_proto HTTP/1.0 [08:05:19]Method: POST [08:05:19]URL: /json_proto [08:05:19]Method is POST - this is cgi request [08:05:19]url: /json_proto [08:05:19]query_string will be loaded in cgi processing [08:05:19]execute_cgi json_proto POST (null) [08:05:19]execute_cgi path=json_proto method=POST [08:05:19]POST find Content-Length [08:05:19]Host: 172.17.49.196:8080 [08:05:19]Content-Length: 943 [08:05:19]Content-Type: application/json [08:05:19] [08:05:19]POST finish read [08:05:19]Found Content-Length = 943 [08:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164438", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:19]execute_script... [08:05:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164438", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:19]POST & json_proto [08:05:19]process_json_proto [08:05:19]json parsed OK: [08:05:19]protocol is kg_v1.0 [08:05:19]action value=close_receipt [08:05:19]process_action close_receipt [08:05:19]cmd_close_receipt [08:05:19]MH_GetDate [08:05:19]Write to MH i2c: F0 00 00 4F 50 8E [08:05:19]Write i2c OK [08:05:19]MH_I2C_Read... [08:05:19]Read from MH i2c: F0 [08:05:19]MH_I2C_Read... [08:05:19]Read from MH i2c: F0 09 00 [08:05:19]MH_I2C_Read... [08:05:19]Read from MH i2c: F0 09 00 4F 50 00 4D 51 1B 67 BD 3B 11 67 27 [08:05:19]GetLastDocTimeStamp 1729843329 [08:05:19]current date 1729843533 [08:05:19]FM_GetShiftState [08:05:19]SAM_PROTO_GetShiftState [08:05:19]wFMCommunicate request_size=4 [08:05:19]MH_SAM_APDU [08:05:19]CAPDU: 80 13 01 00 [08:05:19]Write to MH i2c: E2 08 00 50 50 80 13 01 00 00 00 00 00 1D [08:05:20]Write i2c OK [08:05:20]MH_I2C_Read... [08:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:20]Read from MH i2c: E2 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 0E 00 [08:05:20]MH_I2C_Read... [08:05:20]Read from MH i2c: E2 0E 00 50 50 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 15 [08:05:20]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:05:20]wFMCommunicate OK [08:05:20]SAM_PROTO_GetShiftState done [08:05:20]FM_GetShiftState done [08:05:20]opened in 1729815177 [08:05:20]opened+sec_in_day 1729901577 [08:05:20]quantity*price = 6500 [08:05:20]sum+1 = 6501 [08:05:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.72 НДС 12% : 20.70 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 25 25.10.2024 08:05 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50525 ФПД: 190926340382420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080533&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50525&fm=190926340382420&tin=02508201610067®Number=0000000000097022&sum=19500 0 [08:05:21]StoreToDocumentArchive [08:05:21]shift 493 fd 50525 [08:05:21]save to /storage/0493/doc_00050525 [08:05:21]save last doc name /storage/0493/doc_00050525 to /storage/kkm_last_doc_name [08:05:21]save OK [08:05:21]Clear old archive folders... [08:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=411 [08:05:21]tlvbuf is 00273690 [08:05:21]SAM_PROTO_ClearQueue [08:05:21]wFMCommunicate request_size=4 [08:05:21]MH_SAM_APDU [08:05:21]CAPDU: 80 09 00 00 [08:05:21]Write to MH i2c: E2 08 00 5D 50 80 09 00 00 00 00 00 00 1F [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:21]Read from MH i2c: E2 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 03 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 03 00 5D 50 00 90 00 21 [08:05:21]RAPDU: 90 00 [08:05:21]wFMCommunicate OK [08:05:21]SAM_PROTO_ClearQueue done [08:05:21]KKMCreateOFDPacket [08:05:21]OFDProtocolAddRootSTLVToBuf [08:05:21]FM_MakeSignedData [08:05:21]FM_MakeSignedData [08:05:21]SAM_PROTO_SignData [08:05:21]wFMCommunicate request_size=4 [08:05:21]MH_SAM_APDU [08:05:21]CAPDU: 80 0D 01 02 [08:05:21]Write to MH i2c: E2 08 00 5E 50 80 0D 01 02 00 00 00 00 27 [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:21]Read from MH i2c: E2 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 03 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 03 00 5E 50 00 90 00 22 [08:05:21]RAPDU: 90 00 [08:05:21]wFMCommunicate OK [08:05:21]wFMCommunicate request_size=255 [08:05:21]MH_SAM_APDU [08:05:21]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [08:05:21]Write to MH i2c: E2 02 01 5F 50 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 1F [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:21]Read from MH i2c: E2 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 03 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 03 00 5F 50 00 90 00 23 [08:05:21]RAPDU: 90 00 [08:05:21]wFMCommunicate OK [08:05:21]wFMCommunicate request_size=170 [08:05:21]MH_SAM_APDU [08:05:21]CAPDU: 80 0D 02 02 A5 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 4D 51 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C5 00 00 35 04 06 00 AD A5 80 B2 5E D4 [08:05:21]Write to MH i2c: E2 AD 00 60 50 80 0D 02 02 A5 00 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 4D 51 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C5 00 00 35 04 06 00 AD A5 80 B2 5E D4 00 00 5E [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:21]Read from MH i2c: E2 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 03 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 03 00 60 50 00 90 00 24 [08:05:21]RAPDU: 90 00 [08:05:21]wFMCommunicate OK [08:05:21]wFMCommunicate request_size=4 [08:05:21]MH_SAM_APDU [08:05:21]CAPDU: 80 0D 03 02 [08:05:21]Write to MH i2c: E2 08 00 61 50 80 0D 03 02 00 00 00 00 2C [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:21]Read from MH i2c: E2 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 0B 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 0B 00 61 50 00 57 A6 57 ED 05 C2 D3 85 90 00 8D [08:05:21]RAPDU: 57 A6 57 ED 05 C2 D3 85 90 00 [08:05:21]wFMCommunicate OK [08:05:21]SAM_PROTO_SignData done [08:05:21]FM_MakeSignedData done [08:05:21]CreateOFDProtocolMessage [08:05:21]wFMCommunicate request_size=4 [08:05:21]MH_SAM_APDU [08:05:21]CAPDU: 80 11 00 00 [08:05:21]Write to MH i2c: E2 08 00 62 50 80 11 00 00 00 00 00 00 2C [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:21]Read from MH i2c: E2 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 17 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: E2 17 00 62 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 73 [08:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:05:21]wFMCommunicate OK [08:05:21]CreateOFDProtocolMessage done [08:05:21]OFDSenderStorePacket 50525 [08:05:21]StoreOFDPacket docnum=50525 [08:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 AF 01 00 00 BB 17 A7 01 DE BE 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 4D 51 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C5 00 00 35 04 06 00 AD A5 80 B2 5E D4 57 A6 57 ED 05 C2 D3 85 [08:05:21]CheckFolder [08:05:21]dirname=/storage/ofd_packets [08:05:21]CheckFolder done [08:05:21]ProducePacketName [08:05:21]name=ofd_packets/00050525 [08:05:21]NVStorageSaveData ofd_packets/00050525 [08:05:21]File name is /storage/ofd_packets/00050525 [08:05:21]Write 461 bytes [08:05:21]NVStorageSaveData done [08:05:21]OFDSenderStorePacket done [08:05:21]KKMCreateOFDPacket done [08:05:21]NVStorageSaveData kkm_last_timestamp [08:05:21]File name is /storage/kkm_last_timestamp [08:05:21]Write 4 bytes [08:05:21]NVStorageSaveData done [08:05:21]ExternCall_PrintAddStr [08:05:21]wPrintStart [08:05:21]Write to MH i2c: 01 00 00 63 50 B3 [08:05:21]Write i2c OK [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: 01 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: 01 07 00 [08:05:21]MH_I2C_Read... [08:05:21]Read from MH i2c: 01 07 00 63 50 00 00 00 00 00 FF 0F C8 [08:05:21]RasterBufferAndPrint [08:05:21]line Счет N : (3)164438 [08:05:22]line ИНН: 02508201610067 [08:05:22]line Контрольно-Кассовый Чек [08:05:22]line ПРОДАЖА [08:05:22]line Товар: 4620016300305 [08:05:22]line Салфетки Absolut classic вл а/бакт 20 шт [08:05:22]line 1.000 * 65.00 [08:05:22]line = 65.00 [08:05:22]line НДС 12% НСП 1% [08:05:22]line > о реализуемом товаре [08:05:22]line Товар: 2000036220012 [08:05:22]line Кофе Капучино XL(GABB TRADE) [08:05:22]line 1.000 * 130.00 [08:05:22]line = 130.00 [08:05:22]line НДС 12% НСП 1% [08:05:22]line > о реализуемом товаре [08:05:22]line ИТОГО: 195.00 [08:05:22]line НСП 1% : 1.72 [08:05:22]line НДС 12% : 20.70 [08:05:22]line Наличными: 195.00 [08:05:22]line Безнал.: 0.00 [08:05:22]line Место: АЗС № 80 "Партнер Нефть" [08:05:22]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:05:22]line СНО: Общий режим [08:05:22]line Чек 25 25.10.2024 08:05 [08:05:22]line Смена: 493 ФФД: 1.0 [08:05:22]line ЗНМ: 0300000090 [08:05:22]line РНМ: 0000000000097022 [08:05:22]line Версия ККМ: 001 [08:05:22]line ФМ: 0000000000875000 [08:05:22]line ФД: 50525 [08:05:22]line ФПД: 190926340382420 [08:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T080533&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50525&fm=190926340382420&tin=02508201610067®Number=0000000000097022&sum=19500 [08:05:22]line 0 [08:05:22]OFD Sender: Processing packet 50525 [packets to send 7, broken 6] [08:05:22]ProducePacketName [08:05:22]name=ofd_packets/00050525 [08:05:22]OFD Sender: To server: pG, [08:05:22]CommunicateWithHost lk.salyk.kg:30040 [08:05:22]ConnectInit lk.salyk.kg [08:05:22]written 0, free lines is 4095 [08:05:22]Connected sock=10 [08:05:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 AF 01 00 00 BB 17 A7 01 DE BE 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 4D 51 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C5 00 00 35 04 06 00 AD A5 80 B2 5E D4 57 A6 57 ED 05 C2 D3 85 [08:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D3 37 47 00 2E 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5D C5 00 00 F4 03 04 00 DE FC 1A 67 B6 04 01 00 00 F8 10 ED EC EC 34 37 26 [08:05:22]CommunicateWithHost err = 0 [08:05:22]CheckOFDResponse [08:05:22]1017 (14) - 77093643461234 [08:05:22]1041 (16) - 0000000000875000 [08:05:22]1040 (4) - 50525 [08:05:22]1012 (4) - 25.10.2024 02:05 [08:05:22]1206 (1) - 0 [08:05:22]OFD Sender: Remove packet 50525 [08:05:22]ProducePacketName [08:05:22]name=ofd_packets/00050525 [08:05:22]NVStorageDeleteData [08:05:22]Write to MH i2c: 01 00 00 93 50 E3 [08:05:22]Write i2c OK [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: 01 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: 01 07 00 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: 01 07 00 93 50 00 00 00 00 00 AC 0C A2 [08:05:22]RasterBufferAndPrint [08:05:22]line [08:05:22]line [08:05:22]line [08:05:22]line [08:05:22]line [08:05:22]written 0, free lines is 3250 [08:05:22]process_action close_receipt done [08:05:22]requested_data is exist [08:05:22]produce_requested_data [08:05:22]requested_item fm.sn is exist - process it [08:05:22]wFMCommunicate request_size=4 [08:05:22]MH_SAM_APDU [08:05:22]CAPDU: 80 11 00 00 [08:05:22]Write to MH i2c: E2 08 00 9A 50 80 11 00 00 00 00 00 00 64 [08:05:22]Write i2c OK [08:05:22]MH_I2C_Read... [08:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:22]Read from MH i2c: E2 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: E2 17 00 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: E2 17 00 9A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AB [08:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:05:22]wFMCommunicate OK [08:05:22]requested_item fd.num is exist - process it [08:05:22]SAM_PROTO_GetFieldsCounters [08:05:22]wFMCommunicate request_size=4 [08:05:22]MH_SAM_APDU [08:05:22]CAPDU: 80 13 00 00 [08:05:22]Write to MH i2c: E2 08 00 9B 50 80 13 00 00 00 00 00 00 67 [08:05:22]Write i2c OK [08:05:22]MH_I2C_Read... [08:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:22]Read from MH i2c: E2 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: E2 62 00 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: E2 62 00 9B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [08:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:22]wFMCommunicate OK [08:05:22]SAM_PROTO_GetFieldsCounters done [08:05:22]requested_item shift.num is exist - process it [08:05:22]requested_item shift.opened is exist - process it [08:05:22]req_shift_opened [08:05:22]FM_GetShiftState [08:05:22]SAM_PROTO_GetShiftState [08:05:22]wFMCommunicate request_size=4 [08:05:22]MH_SAM_APDU [08:05:22]CAPDU: 80 13 01 00 [08:05:22]Write to MH i2c: E2 08 00 9C 50 80 13 01 00 00 00 00 00 69 [08:05:22]Write i2c OK [08:05:22]MH_I2C_Read... [08:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:22]Read from MH i2c: E2 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: E2 0E 00 [08:05:22]MH_I2C_Read... [08:05:22]Read from MH i2c: E2 0E 00 9C 50 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 61 [08:05:22]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:05:22]wFMCommunicate OK [08:05:22]SAM_PROTO_GetShiftState done [08:05:22]FM_GetShiftState done [08:05:22]req_shift_opened done [08:05:22]requested_item shift.open_date is exist - process it [08:05:22]req_shift_open_date [08:05:22]req_shift_open_date done [08:05:22]produce_requested_data done [08:05:22]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50525,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:05:22]process_action_free close_receipt [08:05:22]json_value_free [08:05:22]json_value_free done [08:05:22]process_json_proto returns [08:05:22]Send response to host [08:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50525,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:05:22]free response buf [08:05:22]execute_script done [08:05:22]execute_script returns [08:05:22]free content buf [08:05:22]Sock 7.Close socket [08:05:22]Sock 7.Thread stoped [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:05]accept exits with 9 [08:14:05]New connection [08:14:05]New thread 3067305316 created [08:14:05]Thread 3067161956 joined [08:14:05]Waiting for new connection... [08:14:05] Sock 9.Parse request [08:14:05]Sock 9.Check first char [08:14:05]Sock 9.First char is OK [08:14:05]request: POST /json_proto HTTP/1.0 [08:14:05]Method: POST [08:14:05]URL: /json_proto [08:14:05]Method is POST - this is cgi request [08:14:05]url: /json_proto [08:14:05]query_string will be loaded in cgi processing [08:14:05]execute_cgi json_proto POST (null) [08:14:05]execute_cgi path=json_proto method=POST [08:14:05]POST find Content-Length [08:14:05]Host: 172.17.49.196:8080 [08:14:05]Content-Length: 633 [08:14:05]Content-Type: application/json [08:14:05] [08:14:05]POST finish read [08:14:05]Found Content-Length = 633 [08:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164439", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:05]execute_script... [08:14:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164439", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:05]POST & json_proto [08:14:05]process_json_proto [08:14:05]json parsed OK: [08:14:05]protocol is kg_v1.0 [08:14:05]action value=close_receipt [08:14:05]process_action close_receipt [08:14:05]cmd_close_receipt [08:14:05]MH_GetDate [08:14:05]Write to MH i2c: F0 00 00 9D 50 DC [08:14:05]Write i2c OK [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: F0 [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: F0 09 00 [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: F0 09 00 9D 50 00 5A 53 1B 67 BD 3B 11 67 84 [08:14:05]GetLastDocTimeStamp 1729843533 [08:14:05]current date 1729844058 [08:14:05]FM_GetShiftState [08:14:05]SAM_PROTO_GetShiftState [08:14:05]wFMCommunicate request_size=4 [08:14:05]MH_SAM_APDU [08:14:05]CAPDU: 80 13 01 00 [08:14:05]Write to MH i2c: E2 08 00 9E 50 80 13 01 00 00 00 00 00 6B [08:14:05]Write i2c OK [08:14:05]MH_I2C_Read... [08:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:05]Read from MH i2c: E2 [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: E2 0E 00 [08:14:05]MH_I2C_Read... [08:14:05]Read from MH i2c: E2 0E 00 9E 50 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 63 [08:14:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:14:05]wFMCommunicate OK [08:14:05]SAM_PROTO_GetShiftState done [08:14:05]FM_GetShiftState done [08:14:05]opened in 1729815177 [08:14:05]opened+sec_in_day 1729901577 [08:14:05]quantity*price = 13900 [08:14:05]sum+1 = 13901 [08:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 26 25.10.2024 08:14 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50526 ФПД: 6745768290141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081418&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50526&fm=6745768290141&tin=02508201610067®Number=0000000000097022&sum=13900 0 [08:14:07]StoreToDocumentArchive [08:14:07]shift 493 fd 50526 [08:14:07]save to /storage/0493/doc_00050526 [08:14:07]save last doc name /storage/0493/doc_00050526 to /storage/kkm_last_doc_name [08:14:07]save OK [08:14:07]Clear old archive folders... [08:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=285 [08:14:07]tlvbuf is 001A7B50 [08:14:07]SAM_PROTO_ClearQueue [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 09 00 00 [08:14:07]Write to MH i2c: E2 08 00 AB 50 80 09 00 00 00 00 00 00 6D [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 AB 50 00 90 00 6F [08:14:07]RAPDU: 90 00 [08:14:07]wFMCommunicate OK [08:14:07]SAM_PROTO_ClearQueue done [08:14:07]KKMCreateOFDPacket [08:14:07]OFDProtocolAddRootSTLVToBuf [08:14:07]FM_MakeSignedData [08:14:07]FM_MakeSignedData [08:14:07]SAM_PROTO_SignData [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 0D 01 02 [08:14:07]Write to MH i2c: E2 08 00 AC 50 80 0D 01 02 00 00 00 00 75 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 AC 50 00 90 00 70 [08:14:07]RAPDU: 90 00 [08:14:07]wFMCommunicate OK [08:14:07]wFMCommunicate request_size=255 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 1A 00 00 00 F4 03 04 00 5A 53 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 [08:14:07]Write to MH i2c: E2 02 01 AD 50 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 1A 00 00 00 F4 03 04 00 5A 53 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 00 00 F6 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 AD 50 00 90 00 71 [08:14:07]RAPDU: 90 00 [08:14:07]wFMCommunicate OK [08:14:07]wFMCommunicate request_size=44 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 0D 02 02 27 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5E C5 00 00 35 04 06 00 06 22 9F 1F 67 5D [08:14:07]Write to MH i2c: E2 2F 00 AE 50 80 0D 02 02 27 00 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5E C5 00 00 35 04 06 00 06 22 9F 1F 67 5D 00 00 55 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 AE 50 00 90 00 72 [08:14:07]RAPDU: 90 00 [08:14:07]wFMCommunicate OK [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 0D 03 02 [08:14:07]Write to MH i2c: E2 08 00 AF 50 80 0D 03 02 00 00 00 00 7A [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 0B 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 0B 00 AF 50 00 36 91 67 2F 85 76 9F 7C 90 00 EE [08:14:07]RAPDU: 36 91 67 2F 85 76 9F 7C 90 00 [08:14:07]wFMCommunicate OK [08:14:07]SAM_PROTO_SignData done [08:14:07]FM_MakeSignedData done [08:14:07]CreateOFDProtocolMessage [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 11 00 00 [08:14:07]Write to MH i2c: E2 08 00 B0 50 80 11 00 00 00 00 00 00 7A [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 17 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 17 00 B0 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C1 [08:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:14:07]wFMCommunicate OK [08:14:07]CreateOFDProtocolMessage done [08:14:07]OFDSenderStorePacket 50526 [08:14:07]StoreOFDPacket docnum=50526 [08:14:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 3E 09 29 01 3F 3F 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 1A 00 00 00 F4 03 04 00 5A 53 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5E C5 00 00 35 04 06 00 06 22 9F 1F 67 5D 36 91 67 2F 85 76 9F 7C [08:14:07]CheckFolder [08:14:07]dirname=/storage/ofd_packets [08:14:07]CheckFolder done [08:14:07]ProducePacketName [08:14:07]name=ofd_packets/00050526 [08:14:07]NVStorageSaveData ofd_packets/00050526 [08:14:07]File name is /storage/ofd_packets/00050526 [08:14:07]Write 335 bytes [08:14:07]NVStorageSaveData done [08:14:07]OFDSenderStorePacket done [08:14:07]KKMCreateOFDPacket done [08:14:07]NVStorageSaveData kkm_last_timestamp [08:14:07]File name is /storage/kkm_last_timestamp [08:14:07]Write 4 bytes [08:14:07]NVStorageSaveData done [08:14:07]ExternCall_PrintAddStr [08:14:07]wPrintStart [08:14:07]Write to MH i2c: 01 00 00 B1 50 01 [08:14:07]OFD Sender: Processing packet 50526 [packets to send 7, broken 6] [08:14:07]ProducePacketName [08:14:07]name=ofd_packets/00050526 [08:14:07]OFD Sender: To server: pG, [08:14:07]CommunicateWithHost lk.salyk.kg:30040 [08:14:07]ConnectInit lk.salyk.kg [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: 01 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: 01 07 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: 01 07 00 B1 50 00 00 00 00 00 FF 0F 16 [08:14:07]RasterBufferAndPrint [08:14:07]line Счет N : (3)164439 [08:14:07]line ИНН: 02508201610067 [08:14:07]line Контрольно-Кассовый Чек [08:14:07]line ПРОДАЖА [08:14:07]line Товар: 48745291 [08:14:07]line Сигареты Parliament SOHO NYC COMPACT BLU [08:14:07]line 1.000 * 139.00 [08:14:07]line = 139.00 [08:14:07]line НДС 12% НСП 1% [08:14:07]line > о реализуемом товаре [08:14:07]line ИТОГО: 139.00 [08:14:07]line НСП 1% : 1.23 [08:14:07]line НДС 12% : 14.76 [08:14:07]line Наличными: 139.00 [08:14:07]line Безнал.: 0.00 [08:14:07]line Место: АЗС № 80 "Партнер Нефть" [08:14:07]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:14:07]line СНО: Общий режим [08:14:07]line Чек 26 25.10.2024 08:14 [08:14:07]line Смена: 493 ФФД: 1.0 [08:14:07]line ЗНМ: 0300000090 [08:14:07]line РНМ: 0000000000097022 [08:14:07]line Версия ККМ: 001 [08:14:07]line ФМ: 0000000000875000 [08:14:07]line ФД: 50526 [08:14:07]line ФПД: 6745768290141 [08:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081418&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50526&fm=6745768290141&tin=02508201610067®Number=0000000000097022&sum=13900 [08:14:08]Connected sock=7 [08:14:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 3E 09 29 01 3F 3F 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 1A 00 00 00 F4 03 04 00 5A 53 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5E C5 00 00 35 04 06 00 06 22 9F 1F 67 5D 36 91 67 2F 85 76 9F 7C [08:14:08]line 0 [08:14:08]written 0, free lines is 4095 [08:14:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 26 F1 47 00 F9 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5E C5 00 00 F4 03 04 00 EC FE 1A 67 B6 04 01 00 00 8D 75 86 04 2F 3A 0D FD [08:14:08]CommunicateWithHost err = 0 [08:14:08]CheckOFDResponse [08:14:08]1017 (14) - 77093643461234 [08:14:08]1041 (16) - 0000000000875000 [08:14:08]1040 (4) - 50526 [08:14:08]1012 (4) - 25.10.2024 02:14 [08:14:08]1206 (1) - 0 [08:14:08]OFD Sender: Remove packet 50526 [08:14:08]ProducePacketName [08:14:08]name=ofd_packets/00050526 [08:14:08]NVStorageDeleteData [08:14:08]Write to MH i2c: 01 00 00 DA 50 2A [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 07 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 07 00 DA 50 00 00 00 00 00 0E 0D 4C [08:14:08]RasterBufferAndPrint [08:14:08]line [08:14:08]line [08:14:08]line [08:14:08]line [08:14:08]line [08:14:08]written 0, free lines is 3349 [08:14:08]process_action close_receipt done [08:14:08]requested_data is exist [08:14:08]produce_requested_data [08:14:08]requested_item fm.sn is exist - process it [08:14:08]wFMCommunicate request_size=4 [08:14:08]MH_SAM_APDU [08:14:08]CAPDU: 80 11 00 00 [08:14:08]Write to MH i2c: E2 08 00 E1 50 80 11 00 00 00 00 00 00 AB [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 17 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 17 00 E1 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F2 [08:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:14:08]wFMCommunicate OK [08:14:08]requested_item fd.num is exist - process it [08:14:08]SAM_PROTO_GetFieldsCounters [08:14:08]wFMCommunicate request_size=4 [08:14:08]MH_SAM_APDU [08:14:08]CAPDU: 80 13 00 00 [08:14:08]Write to MH i2c: E2 08 00 E2 50 80 13 00 00 00 00 00 00 AE [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 62 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 62 00 E2 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:08]wFMCommunicate OK [08:14:08]SAM_PROTO_GetFieldsCounters done [08:14:08]requested_item shift.num is exist - process it [08:14:08]requested_item shift.opened is exist - process it [08:14:08]req_shift_opened [08:14:08]FM_GetShiftState [08:14:08]SAM_PROTO_GetShiftState [08:14:08]wFMCommunicate request_size=4 [08:14:08]MH_SAM_APDU [08:14:08]CAPDU: 80 13 01 00 [08:14:08]Write to MH i2c: E2 08 00 E3 50 80 13 01 00 00 00 00 00 B0 [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]OFD Sender: No OFD packet to send [08:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 0E 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 0E 00 E3 50 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A8 [08:14:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:14:08]wFMCommunicate OK [08:14:08]SAM_PROTO_GetShiftState done [08:14:08]FM_GetShiftState done [08:14:08]req_shift_opened done [08:14:08]requested_item shift.open_date is exist - process it [08:14:08]req_shift_open_date [08:14:08]req_shift_open_date done [08:14:08]produce_requested_data done [08:14:08]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50526,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:14:08]process_action_free close_receipt [08:14:08]json_value_free [08:14:08]json_value_free done [08:14:08]process_json_proto returns [08:14:08]Send response to host [08:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50526,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:14:08]free response buf [08:14:08]execute_script done [08:14:08]execute_script returns [08:14:08]free content buf [08:14:08]Sock 9.Close socket [08:14:08]Sock 9.Thread stoped [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:24]accept exits with 10 [08:16:24]New connection [08:16:24]New thread 3067161956 created [08:16:24]Thread 3067305316 joined [08:16:24]Waiting for new connection... [08:16:24] Sock 10.Parse request [08:16:24]Sock 10.Check first char [08:16:24]Sock 10.First char is OK [08:16:24]request: POST /json_proto HTTP/1.0 [08:16:24]Method: POST [08:16:24]URL: /json_proto [08:16:24]Method is POST - this is cgi request [08:16:24]url: /json_proto [08:16:24]query_string will be loaded in cgi processing [08:16:24]execute_cgi json_proto POST (null) [08:16:24]execute_cgi path=json_proto method=POST [08:16:24]POST find Content-Length [08:16:24]Host: 172.17.49.196:8080 [08:16:24]Content-Length: 625 [08:16:24]Content-Type: application/json [08:16:24] [08:16:24]POST finish read [08:16:24]Found Content-Length = 625 [08:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164440", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:24]execute_script... [08:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164440", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:24]POST & json_proto [08:16:24]process_json_proto [08:16:24]json parsed OK: [08:16:24]protocol is kg_v1.0 [08:16:24]action value=close_receipt [08:16:24]process_action close_receipt [08:16:24]cmd_close_receipt [08:16:24]MH_GetDate [08:16:24]Write to MH i2c: F0 00 00 E4 50 23 [08:16:24]Write i2c OK [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: F0 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: F0 09 00 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: F0 09 00 E4 50 00 E6 53 1B 67 BD 3B 11 67 57 [08:16:24]GetLastDocTimeStamp 1729844058 [08:16:24]current date 1729844198 [08:16:24]FM_GetShiftState [08:16:24]SAM_PROTO_GetShiftState [08:16:24]wFMCommunicate request_size=4 [08:16:24]MH_SAM_APDU [08:16:24]CAPDU: 80 13 01 00 [08:16:24]Write to MH i2c: E2 08 00 E5 50 80 13 01 00 00 00 00 00 B2 [08:16:24]Write i2c OK [08:16:24]MH_I2C_Read... [08:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:25]Read from MH i2c: E2 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 0E 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 0E 00 E5 50 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 AA [08:16:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:16:25]wFMCommunicate OK [08:16:25]SAM_PROTO_GetShiftState done [08:16:25]FM_GetShiftState done [08:16:25]opened in 1729815177 [08:16:25]opened+sec_in_day 1729901577 [08:16:25]quantity*price = 15400 [08:16:25]sum+1 = 15401 [08:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 27 25.10.2024 08:16 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50527 ФПД: 2084470492041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081638&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50527&fm=2084470492041&tin=02508201610067®Number=0000000000097022&sum=15400 0 [08:16:26]StoreToDocumentArchive [08:16:26]shift 493 fd 50527 [08:16:26]save to /storage/0493/doc_00050527 [08:16:26]save last doc name /storage/0493/doc_00050527 to /storage/kkm_last_doc_name [08:16:26]save OK [08:16:26]Clear old archive folders... [08:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=277 [08:16:26]tlvbuf is B6FAB700 [08:16:26]SAM_PROTO_ClearQueue [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 09 00 00 [08:16:26]Write to MH i2c: E2 08 00 F2 50 80 09 00 00 00 00 00 00 B4 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 03 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 03 00 F2 50 00 90 00 B6 [08:16:26]RAPDU: 90 00 [08:16:26]wFMCommunicate OK [08:16:26]SAM_PROTO_ClearQueue done [08:16:26]KKMCreateOFDPacket [08:16:26]OFDProtocolAddRootSTLVToBuf [08:16:26]FM_MakeSignedData [08:16:26]FM_MakeSignedData [08:16:26]SAM_PROTO_SignData [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 0D 01 02 [08:16:26]Write to MH i2c: E2 08 00 F3 50 80 0D 01 02 00 00 00 00 BC [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 03 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 03 00 F3 50 00 90 00 B7 [08:16:26]RAPDU: 90 00 [08:16:26]wFMCommunicate OK [08:16:26]wFMCommunicate request_size=255 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E6 53 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 [08:16:26]Write to MH i2c: E2 02 01 F4 50 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E6 53 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 00 00 D8 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 03 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 03 00 F4 50 00 90 00 B8 [08:16:26]RAPDU: 90 00 [08:16:26]wFMCommunicate OK [08:16:26]wFMCommunicate request_size=36 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C5 00 00 35 04 06 00 01 E5 54 1F 8B 89 [08:16:26]Write to MH i2c: E2 27 00 F5 50 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C5 00 00 35 04 06 00 01 E5 54 1F 8B 89 00 00 69 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 03 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 03 00 F5 50 00 90 00 B9 [08:16:26]RAPDU: 90 00 [08:16:26]wFMCommunicate OK [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 0D 03 02 [08:16:26]Write to MH i2c: E2 08 00 F6 50 80 0D 03 02 00 00 00 00 C1 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 0B 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 0B 00 F6 50 00 C9 2A 2A 71 A1 52 5D FC 90 00 9C [08:16:26]RAPDU: C9 2A 2A 71 A1 52 5D FC 90 00 [08:16:26]wFMCommunicate OK [08:16:26]SAM_PROTO_SignData done [08:16:26]FM_MakeSignedData done [08:16:26]CreateOFDProtocolMessage [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 11 00 00 [08:16:26]Write to MH i2c: E2 08 00 F7 50 80 11 00 00 00 00 00 00 C1 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 17 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 17 00 F7 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 08 [08:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:16:26]wFMCommunicate OK [08:16:26]CreateOFDProtocolMessage done [08:16:26]OFDSenderStorePacket 50527 [08:16:26]StoreOFDPacket docnum=50527 [08:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 88 AD 21 01 3D 96 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E6 53 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C5 00 00 35 04 06 00 01 E5 54 1F 8B 89 C9 2A 2A 71 A1 52 5D FC [08:16:26]CheckFolder [08:16:26]dirname=/storage/ofd_packets [08:16:26]CheckFolder done [08:16:26]ProducePacketName [08:16:26]name=ofd_packets/00050527 [08:16:26]NVStorageSaveData ofd_packets/00050527 [08:16:26]File name is /storage/ofd_packets/00050527 [08:16:26]Write 327 bytes [08:16:26]NVStorageSaveData done [08:16:26]OFDSenderStorePacket done [08:16:26]KKMCreateOFDPacket done [08:16:26]NVStorageSaveData kkm_last_timestamp [08:16:26]File name is /storage/kkm_last_timestamp [08:16:26]Write 4 bytes [08:16:26]NVStorageSaveData done [08:16:26]ExternCall_PrintAddStr [08:16:26]wPrintStart [08:16:26]Write to MH i2c: 01 00 00 F8 50 48 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 07 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 07 00 F8 50 00 00 00 00 00 FF 0F 5D [08:16:26]RasterBufferAndPrint [08:16:26]line Счет N : (3)164440 [08:16:26]line ИНН: 02508201610067 [08:16:26]line Контрольно-Кассовый Чек [08:16:26]line ПРОДАЖА [08:16:26]line Товар: 46230607 [08:16:26]line Сигареты Richmond Bronze Edition [08:16:26]line 1.000 * 154.00 [08:16:26]line = 154.00 [08:16:26]line НДС 12% НСП 1% [08:16:26]line > о реализуемом товаре [08:16:26]line ИТОГО: 154.00 [08:16:26]line НСП 1% : 1.36 [08:16:26]line НДС 12% : 16.35 [08:16:26]line Наличными: 154.00 [08:16:26]line Безнал.: 0.00 [08:16:26]line Место: АЗС № 80 "Партнер Нефть" [08:16:26]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:16:26]line СНО: Общий режим [08:16:26]line Чек 27 25.10.2024 08:16 [08:16:26]line Смена: 493 ФФД: 1.0 [08:16:26]line ЗНМ: 0300000090 [08:16:26]line РНМ: 0000000000097022 [08:16:26]line Версия ККМ: 001 [08:16:26]line ФМ: 0000000000875000 [08:16:26]line ФД: 50527 [08:16:26]line ФПД: 2084470492041 [08:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T081638&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50527&fm=2084470492041&tin=02508201610067®Number=0000000000097022&sum=15400 [08:16:27]OFD Sender: Processing packet 50527 [packets to send 7, broken 6] [08:16:27]ProducePacketName [08:16:27]name=ofd_packets/00050527 [08:16:27]OFD Sender: To server: pG, [08:16:27]CommunicateWithHost lk.salyk.kg:30040 [08:16:27]ConnectInit lk.salyk.kg [08:16:27]line 0 [08:16:27]written 0, free lines is 4095 [08:16:27]Connected sock=9 [08:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 88 AD 21 01 3D 96 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E6 53 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C5 00 00 35 04 06 00 01 E5 54 1F 8B 89 C9 2A 2A 71 A1 52 5D FC [08:16:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 7E 22 47 00 47 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 5F C5 00 00 F4 03 04 00 77 FF 1A 67 B6 04 01 00 00 97 34 9F 36 F5 AD 3D 5C [08:16:27]CommunicateWithHost err = 0 [08:16:27]CheckOFDResponse [08:16:27]1017 (14) - 77093643461234 [08:16:27]1041 (16) - 0000000000875000 [08:16:27]1040 (4) - 50527 [08:16:27]1012 (4) - 25.10.2024 02:16 [08:16:27]1206 (1) - 0 [08:16:27]OFD Sender: Remove packet 50527 [08:16:27]ProducePacketName [08:16:27]name=ofd_packets/00050527 [08:16:27]NVStorageDeleteData [08:16:27]Write to MH i2c: 01 00 00 21 51 72 [08:16:27]Write i2c OK [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: 01 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: 01 07 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: 01 07 00 21 51 00 00 00 00 00 F5 0C 7A [08:16:27]RasterBufferAndPrint [08:16:27]line [08:16:27]line [08:16:27]line [08:16:27]line [08:16:27]line [08:16:27]written 0, free lines is 3326 [08:16:27]process_action close_receipt done [08:16:27]requested_data is exist [08:16:27]produce_requested_data [08:16:27]requested_item fm.sn is exist - process it [08:16:27]wFMCommunicate request_size=4 [08:16:27]MH_SAM_APDU [08:16:27]CAPDU: 80 11 00 00 [08:16:27]Write to MH i2c: E2 08 00 28 51 80 11 00 00 00 00 00 00 F3 [08:16:27]Write i2c OK [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 [08:16:27]MH_I2C_Read... [08:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:27]Read from MH i2c: E2 17 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 17 00 28 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3A [08:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:16:27]wFMCommunicate OK [08:16:27]requested_item fd.num is exist - process it [08:16:27]SAM_PROTO_GetFieldsCounters [08:16:27]wFMCommunicate request_size=4 [08:16:27]MH_SAM_APDU [08:16:27]CAPDU: 80 13 00 00 [08:16:27]Write to MH i2c: E2 08 00 29 51 80 13 00 00 00 00 00 00 F6 [08:16:27]Write i2c OK [08:16:27]MH_I2C_Read... [08:16:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:27]Read from MH i2c: E2 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 62 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 62 00 29 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [08:16:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 5F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:27]wFMCommunicate OK [08:16:27]SAM_PROTO_GetFieldsCounters done [08:16:27]requested_item shift.num is exist - process it [08:16:27]requested_item shift.opened is exist - process it [08:16:27]req_shift_opened [08:16:27]FM_GetShiftState [08:16:27]SAM_PROTO_GetShiftState [08:16:27]wFMCommunicate request_size=4 [08:16:27]MH_SAM_APDU [08:16:27]CAPDU: 80 13 01 00 [08:16:27]Write to MH i2c: E2 08 00 2A 51 80 13 01 00 00 00 00 00 F8 [08:16:27]Write i2c OK [08:16:27]MH_I2C_Read... [08:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:27]Read from MH i2c: E2 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 0E 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 0E 00 2A 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F0 [08:16:27]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:16:27]wFMCommunicate OK [08:16:27]SAM_PROTO_GetShiftState done [08:16:27]FM_GetShiftState done [08:16:27]req_shift_opened done [08:16:27]requested_item shift.open_date is exist - process it [08:16:27]req_shift_open_date [08:16:27]req_shift_open_date done [08:16:27]produce_requested_data done [08:16:27]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50527,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:16:27]process_action_free close_receipt [08:16:27]json_value_free [08:16:27]json_value_free done [08:16:27]process_json_proto returns [08:16:27]Send response to host [08:16:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50527,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:16:27]free response buf [08:16:27]execute_script done [08:16:27]execute_script returns [08:16:27]free content buf [08:16:27]Sock 10.Close socket [08:16:27]Sock 10.Thread stoped [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:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:09]accept exits with 7 [08:20:09]New connection [08:20:09]New thread 3067305316 created [08:20:09]Thread 3067161956 joined [08:20:09]Waiting for new connection... [08:20:09] Sock 7.Parse request [08:20:09]Sock 7.Check first char [08:20:09]Sock 7.First char is OK [08:20:09]request: POST /json_proto HTTP/1.0 [08:20:09]Method: POST [08:20:09]URL: /json_proto [08:20:09]Method is POST - this is cgi request [08:20:09]url: /json_proto [08:20:09]query_string will be loaded in cgi processing [08:20:09]execute_cgi json_proto POST (null) [08:20:09]execute_cgi path=json_proto method=POST [08:20:09]POST find Content-Length [08:20:09]Host: 172.17.49.196:8080 [08:20:09]Content-Length: 652 [08:20:09]Content-Type: application/json [08:20:09] [08:20:09]POST finish read [08:20:09]Found Content-Length = 652 [08:20:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164441", "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 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:09]execute_script... [08:20: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)164441", "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 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:09]POST & json_proto [08:20:09]process_json_proto [08:20:09]json parsed OK: [08:20:09]protocol is kg_v1.0 [08:20:09]action value=close_receipt [08:20:09]process_action close_receipt [08:20:09]cmd_close_receipt [08:20:09]MH_GetDate [08:20:09]Write to MH i2c: F0 00 00 2B 51 6B [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: F0 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: F0 09 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: F0 09 00 2B 51 00 C6 54 1B 67 BD 3B 11 67 80 [08:20:09]GetLastDocTimeStamp 1729844198 [08:20:09]current date 1729844422 [08:20:09]FM_GetShiftState [08:20:09]SAM_PROTO_GetShiftState [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 13 01 00 [08:20:09]Write to MH i2c: E2 08 00 2C 51 80 13 01 00 00 00 00 00 FA [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 0E 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 0E 00 2C 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F2 [08:20:09]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:20:09]wFMCommunicate OK [08:20:09]SAM_PROTO_GetShiftState done [08:20:09]FM_GetShiftState done [08:20:09]opened in 1729815177 [08:20:09]opened+sec_in_day 1729901577 [08:20:09]quantity*price = 12500 [08:20:09]sum+1 = 12501 [08:20:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 28 25.10.2024 08:20 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50528 ФПД: 187410761388074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T082022&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50528&fm=187410761388074&tin=02508201610067®Number=0000000000097022&sum=12500 0 [08:20:10]StoreToDocumentArchive [08:20:10]shift 493 fd 50528 [08:20:10]save to /storage/0493/doc_00050528 [08:20:10]save last doc name /storage/0493/doc_00050528 to /storage/kkm_last_doc_name [08:20:10]save OK [08:20:10]Clear old archive folders... [08:20:10]ProcessDocumentItem done err = 0, tmpTLVsize=284 [08:20:10]tlvbuf is 002D82F0 [08:20:10]SAM_PROTO_ClearQueue [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 09 00 00 [08:20:10]Write to MH i2c: E2 08 00 39 51 80 09 00 00 00 00 00 00 FC [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 39 51 00 90 00 FE [08:20:10]RAPDU: 90 00 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_ClearQueue done [08:20:10]KKMCreateOFDPacket [08:20:10]OFDProtocolAddRootSTLVToBuf [08:20:10]FM_MakeSignedData [08:20:10]FM_MakeSignedData [08:20:10]SAM_PROTO_SignData [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 0D 01 02 [08:20:10]Write to MH i2c: E2 08 00 3A 51 80 0D 01 02 00 00 00 00 04 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 3A 51 00 90 00 FF [08:20:10]RAPDU: 90 00 [08:20:10]wFMCommunicate OK [08:20:10]wFMCommunicate request_size=255 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 0D 02 02 FA 03 00 1C 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 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 1C 00 00 00 F4 03 04 00 C6 54 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [08:20:10]Write to MH i2c: E2 02 01 3B 51 80 0D 02 02 FA 00 03 00 1C 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 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 1C 00 00 00 F4 03 04 00 C6 54 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 47 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 3B 51 00 90 00 00 [08:20:10]RAPDU: 90 00 [08:20:10]wFMCommunicate OK [08:20:10]wFMCommunicate request_size=43 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C5 00 00 35 04 06 00 AA 72 F7 DC 10 2A [08:20:10]Write to MH i2c: E2 2E 00 3C 51 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C5 00 00 35 04 06 00 AA 72 F7 DC 10 2A 00 00 31 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 3C 51 00 90 00 01 [08:20:10]RAPDU: 90 00 [08:20:10]wFMCommunicate OK [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 0D 03 02 [08:20:10]Write to MH i2c: E2 08 00 3D 51 80 0D 03 02 00 00 00 00 09 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0B 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0B 00 3D 51 00 60 C2 46 3C F8 3C DD ED 90 00 AC [08:20:11]RAPDU: 60 C2 46 3C F8 3C DD ED 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_SignData done [08:20:11]FM_MakeSignedData done [08:20:11]CreateOFDProtocolMessage [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 11 00 00 [08:20:11]Write to MH i2c: E2 08 00 3E 51 80 11 00 00 00 00 00 00 09 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 17 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 17 00 3E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 50 [08:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:20:11]wFMCommunicate OK [08:20:11]CreateOFDProtocolMessage done [08:20:11]OFDSenderStorePacket 50528 [08:20:11]StoreOFDPacket docnum=50528 [08:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 0B 45 28 01 74 25 5A 03 01 00 03 00 1C 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 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 1C 00 00 00 F4 03 04 00 C6 54 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C5 00 00 35 04 06 00 AA 72 F7 DC 10 2A 60 C2 46 3C F8 3C DD ED [08:20:11]CheckFolder [08:20:11]dirname=/storage/ofd_packets [08:20:11]CheckFolder done [08:20:11]ProducePacketName [08:20:11]name=ofd_packets/00050528 [08:20:11]NVStorageSaveData ofd_packets/00050528 [08:20:11]File name is /storage/ofd_packets/00050528 [08:20:11]Write 334 bytes [08:20:11]NVStorageSaveData done [08:20:11]OFDSenderStorePacket done [08:20:11]KKMCreateOFDPacket done [08:20:11]NVStorageSaveData kkm_last_timestamp [08:20:11]File name is /storage/kkm_last_timestamp [08:20:11]Write 4 bytes [08:20:11]NVStorageSaveData done [08:20:11]ExternCall_PrintAddStr [08:20:11]wPrintStart [08:20:11]Write to MH i2c: 01 00 00 3F 51 90 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 07 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 07 00 3F 51 00 00 00 00 00 FF 0F A5 [08:20:11]RasterBufferAndPrint [08:20:11]line Счет N : (3)164441 [08:20:11]line ИНН: 02508201610067 [08:20:11]line Контрольно-Кассовый Чек [08:20:11]line ПРОДАЖА [08:20:11]line Товар: 2000036190018 [08:20:11]line Кофе Американо XL(GABB TRADE) [08:20:11]line 1.000 * 125.00 [08:20:11]line = 125.00 [08:20:11]line НДС 12% НСП 1% [08:20:11]line > о реализуемом товаре [08:20:11]line ИТОГО: 125.00 [08:20:11]line НСП 1% : 1.11 [08:20:11]line НДС 12% : 13.27 [08:20:11]line Наличными: 125.00 [08:20:11]line Безнал.: 0.00 [08:20:11]line Место: АЗС № 80 "Партнер Нефть" [08:20:11]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:20:11]line СНО: Общий режим [08:20:11]line Чек 28 25.10.2024 08:20 [08:20:11]line Смена: 493 ФФД: 1.0 [08:20:11]line ЗНМ: 0300000090 [08:20:11]line РНМ: 0000000000097022 [08:20:11]line Версия ККМ: 001 [08:20:11]line ФМ: 0000000000875000 [08:20:11]line ФД: 50528 [08:20:11]line ФПД: 187410761388074 [08:20:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T082022&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50528&fm=187410761388074&tin=02508201610067®Number=0000000000097022&sum=12500 [08:20:11]line 0 [08:20:11]OFD Sender: Processing packet 50528 [packets to send 7, broken 6] [08:20:11]ProducePacketName [08:20:11]name=ofd_packets/00050528 [08:20:11]OFD Sender: To server: pG, [08:20:11]CommunicateWithHost lk.salyk.kg:30040 [08:20:11]ConnectInit lk.salyk.kg [08:20:11]written 0, free lines is 4095 [08:20:11]Connected sock=10 [08:20:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 0B 45 28 01 74 25 5A 03 01 00 03 00 1C 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 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 1C 00 00 00 F4 03 04 00 C6 54 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C5 00 00 35 04 06 00 AA 72 F7 DC 10 2A 60 C2 46 3C F8 3C DD ED [08:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CA D7 47 00 1A ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 60 C5 00 00 F4 03 04 00 57 00 1B 67 B6 04 01 00 00 DF 27 3F FF 5F 07 65 2F [08:20:11]CommunicateWithHost err = 0 [08:20:11]CheckOFDResponse [08:20:11]1017 (14) - 77093643461234 [08:20:11]1041 (16) - 0000000000875000 [08:20:11]1040 (4) - 50528 [08:20:11]1012 (4) - 25.10.2024 02:20 [08:20:11]1206 (1) - 0 [08:20:11]OFD Sender: Remove packet 50528 [08:20:11]ProducePacketName [08:20:11]name=ofd_packets/00050528 [08:20:11]NVStorageDeleteData [08:20:11]Write to MH i2c: 01 00 00 68 51 B9 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 07 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 07 00 68 51 00 00 00 00 00 14 0D E1 [08:20:11]RasterBufferAndPrint [08:20:11]line [08:20:11]line [08:20:11]line [08:20:11]line [08:20:11]line [08:20:11]written 0, free lines is 3355 [08:20:11]process_action close_receipt done [08:20:11]requested_data is exist [08:20:11]produce_requested_data [08:20:11]requested_item fm.sn is exist - process it [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 11 00 00 [08:20:11]Write to MH i2c: E2 08 00 6F 51 80 11 00 00 00 00 00 00 3A [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 17 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 17 00 6F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 81 [08:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:20:11]wFMCommunicate OK [08:20:11]requested_item fd.num is exist - process it [08:20:11]SAM_PROTO_GetFieldsCounters [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 13 00 00 [08:20:11]Write to MH i2c: E2 08 00 70 51 80 13 00 00 00 00 00 00 3D [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:12]Read from MH i2c: E2 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 62 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 62 00 70 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [08:20:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:12]wFMCommunicate OK [08:20:12]SAM_PROTO_GetFieldsCounters done [08:20:12]requested_item shift.num is exist - process it [08:20:12]requested_item shift.opened is exist - process it [08:20:12]req_shift_opened [08:20:12]FM_GetShiftState [08:20:12]SAM_PROTO_GetShiftState [08:20:12]wFMCommunicate request_size=4 [08:20:12]MH_SAM_APDU [08:20:12]CAPDU: 80 13 01 00 [08:20:12]Write to MH i2c: E2 08 00 71 51 80 13 01 00 00 00 00 00 3F [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:12]Read from MH i2c: E2 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 0E 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 0E 00 71 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 37 [08:20:12]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:20:12]wFMCommunicate OK [08:20:12]SAM_PROTO_GetShiftState done [08:20:12]FM_GetShiftState done [08:20:12]req_shift_opened done [08:20:12]requested_item shift.open_date is exist - process it [08:20:12]req_shift_open_date [08:20:12]req_shift_open_date done [08:20:12]produce_requested_data done [08:20:12]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:20:12]process_action_free close_receipt [08:20:12]json_value_free [08:20:12]json_value_free done [08:20:12]process_json_proto returns [08:20:12]Send response to host [08:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:20:12]free response buf [08:20:12]execute_script done [08:20:12]execute_script returns [08:20:12]free content buf [08:20:12]Sock 7.Close socket [08:20:12]Sock 7.Thread stoped [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:17]int [08:20:17]Write to MH i2c: 01 00 00 72 51 C3 [08:20:17]*** FLAG_PRN_PAP1 set [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 72 51 00 01 00 00 00 FF 0F D9 [08:20:17]state=0 [08:20:17]No paper [08:20:17]int [08:20:17]Write to MH i2c: 01 00 00 73 51 C4 [08:20:17]*** FLAG_PRN_PAP2 set [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 73 51 00 03 00 00 00 FF 0F DC [08:20:17]state=0 [08:20:17]No paper [08:20:17]Cover opened [08:20:18]int [08:20:18]Write to MH i2c: 01 00 00 74 51 C5 [08:20:18]*** FLAG_PRN_PAP2 reset [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 74 51 00 01 00 00 00 FF 0F DB [08:20:18]state=3 [08:20:18]No paper [08:20:18]Cover closed [08:20:18]int [08:20:18]Write to MH i2c: 01 00 00 75 51 C6 [08:20:18]*** FLAG_PRN_PAP1 reset [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 75 51 00 00 00 00 00 FF 0F DB [08:20:18]state=0 [08:20:22]OFD Sender: No OFD packet to send [08:20:22]accept exits with 9 [08:20:22]New connection [08:20:22]New thread 3067161956 created [08:20:22]Thread 3067305316 joined [08:20:22]Waiting for new connection... [08:20:22] Sock 9.Parse request [08:20:22]Sock 9.Check first char [08:20:22]Sock 9.First char is OK [08:20:22]request: POST /json_proto HTTP/1.0 [08:20:22]Method: POST [08:20:22]URL: /json_proto [08:20:22]Method is POST - this is cgi request [08:20:22]url: /json_proto [08:20:22]query_string will be loaded in cgi processing [08:20:22]execute_cgi json_proto POST (null) [08:20:22]execute_cgi path=json_proto method=POST [08:20:22]POST find Content-Length [08:20:22]Host: 172.17.49.196:8080 [08:20:22]Content-Length: 215 [08:20:22]Content-Type: application/json [08:20:22] [08:20:22]POST finish read [08:20:22]Found Content-Length = 215 [08:20:22]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:20:22]execute_script... [08:20:22]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:20:22]POST & json_proto [08:20:22]process_json_proto [08:20:22]json parsed OK: [08:20:22]protocol is kg_v1.0 [08:20:22]action value=get_value [08:20:22]process_action get_value [08:20:22]cmd_get_value [08:20:22]process_action get_value done [08:20:22]requested_data is exist [08:20:22]produce_requested_data [08:20:22]requested_item kkm.sn is exist - process it [08:20:22]requested_item kkm.ver is exist - process it [08:20:22]requested_item fm.sn is exist - process it [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 11 00 00 [08:20:22]Write to MH i2c: E2 08 00 76 51 80 11 00 00 00 00 00 00 41 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 17 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 17 00 76 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 88 [08:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:20:22]wFMCommunicate OK [08:20:22]requested_item fd.num is exist - process it [08:20:22]SAM_PROTO_GetFieldsCounters [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 00 00 [08:20:22]Write to MH i2c: E2 08 00 77 51 80 13 00 00 00 00 00 00 44 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 62 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 62 00 77 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [08:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:22]wFMCommunicate OK [08:20:22]SAM_PROTO_GetFieldsCounters done [08:20:22]requested_item shift.num is exist - process it [08:20:22]requested_item shift.opened is exist - process it [08:20:22]req_shift_opened [08:20:22]FM_GetShiftState [08:20:22]SAM_PROTO_GetShiftState [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 01 00 [08:20:22]Write to MH i2c: E2 08 00 78 51 80 13 01 00 00 00 00 00 46 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 0E 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 0E 00 78 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 3E [08:20:22]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:20:22]wFMCommunicate OK [08:20:22]SAM_PROTO_GetShiftState done [08:20:22]FM_GetShiftState done [08:20:22]req_shift_opened done [08:20:22]requested_item shift.open_date is exist - process it [08:20:22]req_shift_open_date [08:20:22]req_shift_open_date done [08:20:22]produce_requested_data done [08:20:22]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:20:22]process_action_free get_value [08:20:22]json_value_free [08:20:22]json_value_free done [08:20:22]process_json_proto returns [08:20:22]Send response to host [08:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:20:22]free response buf [08:20:22]execute_script done [08:20:22]execute_script returns [08:20:22]free content buf [08:20:22]Sock 9.Close socket [08:20:22]Sock 9.Thread stoped [08:20:22]accept exits with 7 [08:20:22]New connection [08:20:22]New thread 3067305316 created [08:20:22]Thread 3067161956 joined [08:20:22]Waiting for new connection... [08:20:22] Sock 7.Parse request [08:20:22]Sock 7.Check first char [08:20:22]Sock 7.First char is OK [08:20:22]request: POST /json_proto HTTP/1.0 [08:20:22]Method: POST [08:20:22]URL: /json_proto [08:20:22]Method is POST - this is cgi request [08:20:22]url: /json_proto [08:20:22]query_string will be loaded in cgi processing [08:20:22]execute_cgi json_proto POST (null) [08:20:22]execute_cgi path=json_proto method=POST [08:20:22]POST find Content-Length [08:20:22]Host: 172.17.49.196:8080 [08:20:22]Content-Length: 331 [08:20:22]Content-Type: application/json [08:20:22] [08:20:22]POST finish read [08:20:22]Found Content-Length = 331 [08:20:22]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:20:22]execute_script... [08:20:22]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:20:22]POST & json_proto [08:20:22]process_json_proto [08:20:22]json parsed OK: [08:20:22]protocol is kg_v1.0 [08:20:22]action value=get_value [08:20:22]process_action get_value [08:20:22]cmd_get_value [08:20:22]process_action get_value done [08:20:22]requested_data is exist [08:20:22]produce_requested_data [08:20:22]requested_item fm.sale.total is exist - process it [08:20:22]SAM_PROTO_GetFMData [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 03 00 [08:20:22]Write to MH i2c: E2 08 00 79 51 80 13 03 00 00 00 00 00 49 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:20:23]Read from MH i2c: E2 [08:20:23]MH_I2C_Read... [08:20:23]Read from MH i2c: E2 FD 00 [08:20:23]MH_I2C_Read... [08:20:23]Read from MH i2c: E2 FD 00 79 51 00 C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 70 [08:20:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [08:20:23]wFMCommunicate OK [08:20:23]wFMCommunicate request_size=4 [08:20:23]MH_SAM_APDU [08:20:23]CAPDU: 80 17 00 00 [08:20:23]Write to MH i2c: E2 08 00 7A 51 80 17 00 00 00 00 00 00 4B [08:20:23]Write i2c OK [08:20:23]MH_I2C_Read... [08:20:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:23]Read from MH i2c: E2 [08:20:23]MH_I2C_Read... [08:20:23]Read from MH i2c: E2 FD 00 [08:20:23]MH_I2C_Read... [08:20:23]Read from MH i2c: E2 FD 00 7A 51 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [08:20:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:23]wFMCommunicate OK [08:20:23]wFMCommunicate request_size=4 [08:20:23]MH_SAM_APDU [08:20:23]CAPDU: 80 17 00 00 [08:20:23]Write to MH i2c: E2 08 00 7B 51 80 17 00 00 00 00 00 00 4C [08:20:23]Write i2c OK [08:20:23]MH_I2C_Read... [08:20:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:23]Read from MH i2c: E2 [08:20:23]MH_I2C_Read... [08:20:23]Read from MH i2c: E2 FD 00 [08:20:23]MH_I2C_Read... [08:20:23]Read from MH i2c: E2 FD 00 7B 51 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [08:20:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:23]wFMCommunicate OK [08:20:23]wFMCommunicate request_size=4 [08:20:23]MH_SAM_APDU [08:20:23]CAPDU: 80 17 00 00 [08:20:23]Write to MH i2c: E2 08 00 7C 51 80 17 00 00 00 00 00 00 4D [08:20:23]Write i2c OK [08:20:23]MH_I2C_Read... [08:20:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:24]Read from MH i2c: E2 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: E2 FD 00 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: E2 FD 00 7C 51 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [08:20:24]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:24]wFMCommunicate OK [08:20:24]wFMCommunicate request_size=4 [08:20:24]MH_SAM_APDU [08:20:24]CAPDU: 80 17 00 00 [08:20:24]Write to MH i2c: E2 08 00 7D 51 80 17 00 00 00 00 00 00 4E [08:20:24]Write i2c OK [08:20:24]MH_I2C_Read... [08:20:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:20:24]Read from MH i2c: E2 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: E2 E2 00 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: E2 E2 00 7D 51 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C [08:20:24]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:24]wFMCommunicate OK [08:20:24]SAM_PROTO_GetFMData done [08:20:24]requested_item fm.sale_refund.total is exist - process it [08:20:24]requested_item fm.buy.total is exist - process it [08:20:24]requested_item shift.sale.total is exist - process it [08:20:24]SAM_PROTO_GetShiftData [08:20:24]wFMCommunicate request_size=4 [08:20:24]MH_SAM_APDU [08:20:24]CAPDU: 80 13 02 00 [08:20:24]Write to MH i2c: E2 08 00 7E 51 80 13 02 00 00 00 00 00 4D [08:20:24]Write i2c OK [08:20:24]MH_I2C_Read... [08:20:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:20:24]Read from MH i2c: E2 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: E2 FD 00 [08:20:24]MH_I2C_Read... [08:20:24]Read from MH i2c: E2 FD 00 7E 51 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 58 [08:20:24]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:24]wFMCommunicate OK [08:20:24]wFMCommunicate request_size=4 [08:20:24]MH_SAM_APDU [08:20:24]CAPDU: 80 17 00 00 [08:20:24]Write to MH i2c: E2 08 00 7F 51 80 17 00 00 00 00 00 00 50 [08:20:24]Write i2c OK [08:20:24]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 FD 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 FD 00 7F 51 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 62 [08:20:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:25]wFMCommunicate OK [08:20:25]wFMCommunicate request_size=4 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 17 00 00 [08:20:25]Write to MH i2c: E2 08 00 80 51 80 17 00 00 00 00 00 00 51 [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 FD 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 FD 00 80 51 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [08:20:25]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:25]wFMCommunicate OK [08:20:25]wFMCommunicate request_size=4 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 17 00 00 [08:20:25]Write to MH i2c: E2 08 00 81 51 80 17 00 00 00 00 00 00 52 [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:25]Read from MH i2c: E2 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 FD 00 [08:20:25]MH_I2C_Read... [08:20:25]Read from MH i2c: E2 FD 00 81 51 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 90 00 C7 [08:20:25]RAPDU: 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 90 00 [08:20:25]wFMCommunicate OK [08:20:25]wFMCommunicate request_size=4 [08:20:25]MH_SAM_APDU [08:20:25]CAPDU: 80 17 00 00 [08:20:25]Write to MH i2c: E2 08 00 82 51 80 17 00 00 00 00 00 00 53 [08:20:25]Write i2c OK [08:20:25]MH_I2C_Read... [08:20:26]Read from MH i2c: E2 [08:20:26]MH_I2C_Read... [08:20:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:20:26]Read from MH i2c: E2 CA 00 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: E2 CA 00 82 51 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 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 38 [08:20:26]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 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:20:26]wFMCommunicate OK [08:20:26]SAM_PROTO_GetShiftData done [08:20:26]requested_item shift.sale.total_cash is exist - process it [08:20:26]requested_item shift.sale_refund.total is exist - process it [08:20:26]requested_item shift.sale_refund.total_cash is exist - process it [08:20:26]requested_item shift.buy.total is exist - process it [08:20:26]requested_item shift.buy.total_cash is exist - process it [08:20:26]produce_requested_data done [08:20:26]produce_requested_data return {"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:20:26]process_action_free get_value [08:20:26]json_value_free [08:20:26]json_value_free done [08:20:26]process_json_proto returns [08:20:26]Send response to host [08:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:20:26]free response buf [08:20:26]execute_script done [08:20:26]execute_script returns [08:20:26]free content buf [08:20:26]Sock 7.Close socket [08:20:26]Sock 7.Thread stoped [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:46]accept exits with 9 [08:20:46]New connection [08:20:46]New thread 3067161956 created [08:20:46]Thread 3067305316 joined [08:20:46]Waiting for new connection... [08:20:46] Sock 9.Parse request [08:20:46]Sock 9.Check first char [08:20:46]Sock 9.First char is OK [08:20:46]request: POST /json_proto HTTP/1.0 [08:20:46]Method: POST [08:20:46]URL: /json_proto [08:20:46]Method is POST - this is cgi request [08:20:46]url: /json_proto [08:20:46]query_string will be loaded in cgi processing [08:20:46]execute_cgi json_proto POST (null) [08:20:46]execute_cgi path=json_proto method=POST [08:20:46]POST find Content-Length [08:20:46]Host: 172.17.49.196:8080 [08:20:46]Content-Length: 215 [08:20:46]Content-Type: application/json [08:20:46] [08:20:46]POST finish read [08:20:46]Found Content-Length = 215 [08:20:46]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:20:46]execute_script... [08:20:46]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:20:46]POST & json_proto [08:20:46]process_json_proto [08:20:46]json parsed OK: [08:20:46]protocol is kg_v1.0 [08:20:46]action value=get_value [08:20:46]process_action get_value [08:20:46]cmd_get_value [08:20:46]process_action get_value done [08:20:46]requested_data is exist [08:20:46]produce_requested_data [08:20:46]requested_item kkm.sn is exist - process it [08:20:46]requested_item kkm.ver is exist - process it [08:20:46]requested_item fm.sn is exist - process it [08:20:46]wFMCommunicate request_size=4 [08:20:46]MH_SAM_APDU [08:20:46]CAPDU: 80 11 00 00 [08:20:46]Write to MH i2c: E2 08 00 83 51 80 11 00 00 00 00 00 00 4E [08:20:46]Write i2c OK [08:20:46]MH_I2C_Read... [08:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:46]Read from MH i2c: E2 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: E2 17 00 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: E2 17 00 83 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 95 [08:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:20:46]wFMCommunicate OK [08:20:46]requested_item fd.num is exist - process it [08:20:46]SAM_PROTO_GetFieldsCounters [08:20:46]wFMCommunicate request_size=4 [08:20:46]MH_SAM_APDU [08:20:46]CAPDU: 80 13 00 00 [08:20:46]Write to MH i2c: E2 08 00 84 51 80 13 00 00 00 00 00 00 51 [08:20:46]Write i2c OK [08:20:46]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 62 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 62 00 84 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [08:20:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:47]wFMCommunicate OK [08:20:47]SAM_PROTO_GetFieldsCounters done [08:20:47]requested_item shift.num is exist - process it [08:20:47]requested_item shift.opened is exist - process it [08:20:47]req_shift_opened [08:20:47]FM_GetShiftState [08:20:47]SAM_PROTO_GetShiftState [08:20:47]wFMCommunicate request_size=4 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 13 01 00 [08:20:47]Write to MH i2c: E2 08 00 85 51 80 13 01 00 00 00 00 00 53 [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 0E 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 0E 00 85 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4B [08:20:47]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:20:47]wFMCommunicate OK [08:20:47]SAM_PROTO_GetShiftState done [08:20:47]FM_GetShiftState done [08:20:47]req_shift_opened done [08:20:47]requested_item shift.open_date is exist - process it [08:20:47]req_shift_open_date [08:20:47]req_shift_open_date done [08:20:47]produce_requested_data done [08:20:47]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:20:47]process_action_free get_value [08:20:47]json_value_free [08:20:47]json_value_free done [08:20:47]process_json_proto returns [08:20:47]Send response to host [08:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:20:47]free response buf [08:20:47]execute_script done [08:20:47]execute_script returns [08:20:47]free content buf [08:20:47]Sock 9.Close socket [08:20:47]Sock 9.Thread stoped [08:20:47]accept exits with 7 [08:20:47]New connection [08:20:47]New thread 3067305316 created [08:20:47]Thread 3067161956 joined [08:20:47]Waiting for new connection... [08:20:47] Sock 7.Parse request [08:20:47]Sock 7.Check first char [08:20:47]Sock 7.First char is OK [08:20:47]request: POST /json_proto HTTP/1.0 [08:20:47]Method: POST [08:20:47]URL: /json_proto [08:20:47]Method is POST - this is cgi request [08:20:47]url: /json_proto [08:20:47]query_string will be loaded in cgi processing [08:20:47]execute_cgi json_proto POST (null) [08:20:47]execute_cgi path=json_proto method=POST [08:20:47]POST find Content-Length [08:20:47]Host: 172.17.49.196:8080 [08:20:47]Content-Length: 331 [08:20:47]Content-Type: application/json [08:20:47] [08:20:47]POST finish read [08:20:47]Found Content-Length = 331 [08:20:47]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:20:47]execute_script... [08:20:47]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:20:47]POST & json_proto [08:20:47]process_json_proto [08:20:47]json parsed OK: [08:20:47]protocol is kg_v1.0 [08:20:47]action value=get_value [08:20:47]process_action get_value [08:20:47]cmd_get_value [08:20:47]process_action get_value done [08:20:47]requested_data is exist [08:20:47]produce_requested_data [08:20:47]requested_item fm.sale.total is exist - process it [08:20:47]SAM_PROTO_GetFMData [08:20:47]wFMCommunicate request_size=4 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 13 03 00 [08:20:47]Write to MH i2c: E2 08 00 86 51 80 13 03 00 00 00 00 00 56 [08:20:47]OFD Sender: No OFD packet to send [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 FD 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 FD 00 86 51 00 C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 7D [08:20:47]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [08:20:47]wFMCommunicate OK [08:20:47]wFMCommunicate request_size=4 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 17 00 00 [08:20:47]Write to MH i2c: E2 08 00 87 51 80 17 00 00 00 00 00 00 58 [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:48]Read from MH i2c: E2 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 FD 00 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 FD 00 87 51 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [08:20:48]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:48]wFMCommunicate OK [08:20:48]wFMCommunicate request_size=4 [08:20:48]MH_SAM_APDU [08:20:48]CAPDU: 80 17 00 00 [08:20:48]Write to MH i2c: E2 08 00 88 51 80 17 00 00 00 00 00 00 59 [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:48]Read from MH i2c: E2 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 FD 00 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 FD 00 88 51 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [08:20:48]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:48]wFMCommunicate OK [08:20:48]wFMCommunicate request_size=4 [08:20:48]MH_SAM_APDU [08:20:48]CAPDU: 80 17 00 00 [08:20:48]Write to MH i2c: E2 08 00 89 51 80 17 00 00 00 00 00 00 5A [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:48]Read from MH i2c: E2 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 FD 00 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 FD 00 89 51 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [08:20:48]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:48]wFMCommunicate OK [08:20:48]wFMCommunicate request_size=4 [08:20:48]MH_SAM_APDU [08:20:48]CAPDU: 80 17 00 00 [08:20:48]Write to MH i2c: E2 08 00 8A 51 80 17 00 00 00 00 00 00 5B [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:20:48]Read from MH i2c: E2 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 E2 00 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 E2 00 8A 51 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 39 [08:20:48]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:48]wFMCommunicate OK [08:20:48]SAM_PROTO_GetFMData done [08:20:48]requested_item fm.sale_refund.total is exist - process it [08:20:48]requested_item fm.buy.total is exist - process it [08:20:48]requested_item shift.sale.total is exist - process it [08:20:48]SAM_PROTO_GetShiftData [08:20:48]wFMCommunicate request_size=4 [08:20:48]MH_SAM_APDU [08:20:48]CAPDU: 80 13 02 00 [08:20:48]Write to MH i2c: E2 08 00 8B 51 80 13 02 00 00 00 00 00 5A [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:20:49]Read from MH i2c: E2 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 FD 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 FD 00 8B 51 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [08:20:49]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:49]wFMCommunicate OK [08:20:49]wFMCommunicate request_size=4 [08:20:49]MH_SAM_APDU [08:20:49]CAPDU: 80 17 00 00 [08:20:49]Write to MH i2c: E2 08 00 8C 51 80 17 00 00 00 00 00 00 5D [08:20:49]Write i2c OK [08:20:49]MH_I2C_Read... [08:20:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:49]Read from MH i2c: E2 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 FD 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 FD 00 8C 51 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [08:20:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:49]wFMCommunicate OK [08:20:49]wFMCommunicate request_size=4 [08:20:49]MH_SAM_APDU [08:20:49]CAPDU: 80 17 00 00 [08:20:49]Write to MH i2c: E2 08 00 8D 51 80 17 00 00 00 00 00 00 5E [08:20:49]Write i2c OK [08:20:49]MH_I2C_Read... [08:20:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:49]Read from MH i2c: E2 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 FD 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 FD 00 8D 51 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [08:20:49]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:50]wFMCommunicate OK [08:20:50]wFMCommunicate request_size=4 [08:20:50]MH_SAM_APDU [08:20:50]CAPDU: 80 17 00 00 [08:20:50]Write to MH i2c: E2 08 00 8E 51 80 17 00 00 00 00 00 00 5F [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 FD 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 FD 00 8E 51 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 90 00 D4 [08:20:50]RAPDU: 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 90 00 [08:20:50]wFMCommunicate OK [08:20:50]wFMCommunicate request_size=4 [08:20:50]MH_SAM_APDU [08:20:50]CAPDU: 80 17 00 00 [08:20:50]Write to MH i2c: E2 08 00 8F 51 80 17 00 00 00 00 00 00 60 [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 CA 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 CA 00 8F 51 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 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 45 [08:20:50]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 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:20:50]wFMCommunicate OK [08:20:50]SAM_PROTO_GetShiftData done [08:20:50]requested_item shift.sale.total_cash is exist - process it [08:20:50]requested_item shift.sale_refund.total is exist - process it [08:20:50]requested_item shift.sale_refund.total_cash is exist - process it [08:20:50]requested_item shift.buy.total is exist - process it [08:20:50]requested_item shift.buy.total_cash is exist - process it [08:20:50]produce_requested_data done [08:20:50]produce_requested_data return {"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:20:50]process_action_free get_value [08:20:50]json_value_free [08:20:50]json_value_free done [08:20:50]process_json_proto returns [08:20:50]Send response to host [08:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:20:50]free response buf [08:20:50]execute_script done [08:20:50]execute_script returns [08:20:50]free content buf [08:20:50]Sock 7.Close socket [08:20:50]Sock 7.Thread stoped [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:18]accept exits with 9 [08:21:18]New connection [08:21:18]New thread 3067161956 created [08:21:18]Thread 3067305316 joined [08:21:18]Waiting for new connection... [08:21:18] Sock 9.Parse request [08:21:18]Sock 9.Check first char [08:21:18]Sock 9.First char is OK [08:21:18]request: POST /json_proto HTTP/1.0 [08:21:18]Method: POST [08:21:18]URL: /json_proto [08:21:18]Method is POST - this is cgi request [08:21:18]url: /json_proto [08:21:18]query_string will be loaded in cgi processing [08:21:18]execute_cgi json_proto POST (null) [08:21:18]execute_cgi path=json_proto method=POST [08:21:18]POST find Content-Length [08:21:18]Host: 172.17.49.196:8080 [08:21:18]Content-Length: 215 [08:21:18]Content-Type: application/json [08:21:18] [08:21:18]POST finish read [08:21:18]Found Content-Length = 215 [08:21:18]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:21:18]execute_script... [08:21:18]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:21:18]POST & json_proto [08:21:18]process_json_proto [08:21:18]json parsed OK: [08:21:18]protocol is kg_v1.0 [08:21:18]action value=get_value [08:21:18]process_action get_value [08:21:18]cmd_get_value [08:21:18]process_action get_value done [08:21:18]requested_data is exist [08:21:18]produce_requested_data [08:21:18]requested_item kkm.sn is exist - process it [08:21:18]requested_item kkm.ver is exist - process it [08:21:18]requested_item fm.sn is exist - process it [08:21:18]wFMCommunicate request_size=4 [08:21:18]MH_SAM_APDU [08:21:18]CAPDU: 80 11 00 00 [08:21:18]Write to MH i2c: E2 08 00 90 51 80 11 00 00 00 00 00 00 5B [08:21:18]Write i2c OK [08:21:18]MH_I2C_Read... [08:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:18]Read from MH i2c: E2 [08:21:18]MH_I2C_Read... [08:21:18]Read from MH i2c: E2 17 00 [08:21:18]MH_I2C_Read... [08:21:18]Read from MH i2c: E2 17 00 90 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A2 [08:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:21:18]wFMCommunicate OK [08:21:18]requested_item fd.num is exist - process it [08:21:18]SAM_PROTO_GetFieldsCounters [08:21:18]wFMCommunicate request_size=4 [08:21:18]MH_SAM_APDU [08:21:18]CAPDU: 80 13 00 00 [08:21:18]Write to MH i2c: E2 08 00 91 51 80 13 00 00 00 00 00 00 5E [08:21:18]Write i2c OK [08:21:18]MH_I2C_Read... [08:21:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:18]Read from MH i2c: E2 [08:21:18]MH_I2C_Read... [08:21:18]Read from MH i2c: E2 62 00 [08:21:18]MH_I2C_Read... [08:21:18]Read from MH i2c: E2 62 00 91 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [08:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:18]wFMCommunicate OK [08:21:18]SAM_PROTO_GetFieldsCounters done [08:21:18]requested_item shift.num is exist - process it [08:21:18]requested_item shift.opened is exist - process it [08:21:18]req_shift_opened [08:21:18]FM_GetShiftState [08:21:18]SAM_PROTO_GetShiftState [08:21:18]wFMCommunicate request_size=4 [08:21:18]MH_SAM_APDU [08:21:18]CAPDU: 80 13 01 00 [08:21:18]Write to MH i2c: E2 08 00 92 51 80 13 01 00 00 00 00 00 60 [08:21:18]Write i2c OK [08:21:18]MH_I2C_Read... [08:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:18]Read from MH i2c: E2 [08:21:18]MH_I2C_Read... [08:21:18]Read from MH i2c: E2 0E 00 [08:21:18]MH_I2C_Read... [08:21:18]Read from MH i2c: E2 0E 00 92 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 58 [08:21:18]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:21:18]wFMCommunicate OK [08:21:18]SAM_PROTO_GetShiftState done [08:21:18]FM_GetShiftState done [08:21:18]req_shift_opened done [08:21:18]requested_item shift.open_date is exist - process it [08:21:18]req_shift_open_date [08:21:18]req_shift_open_date done [08:21:18]produce_requested_data done [08:21:18]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:21:18]process_action_free get_value [08:21:18]json_value_free [08:21:18]json_value_free done [08:21:18]process_json_proto returns [08:21:18]Send response to host [08:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:21:18]free response buf [08:21:18]execute_script done [08:21:18]execute_script returns [08:21:18]free content buf [08:21:18]Sock 9.Close socket [08:21:18]Sock 9.Thread stoped [08:21:18]accept exits with 7 [08:21:18]New connection [08:21:18]New thread 3067305316 created [08:21:18]Thread 3067161956 joined [08:21:18]Waiting for new connection... [08:21:18] Sock 7.Parse request [08:21:18]Sock 7.Check first char [08:21:18]Sock 7.First char is OK [08:21:18]request: POST /json_proto HTTP/1.0 [08:21:18]Method: POST [08:21:18]URL: /json_proto [08:21:18]Method is POST - this is cgi request [08:21:18]url: /json_proto [08:21:18]query_string will be loaded in cgi processing [08:21:18]execute_cgi json_proto POST (null) [08:21:18]execute_cgi path=json_proto method=POST [08:21:18]POST find Content-Length [08:21:18]Host: 172.17.49.196:8080 [08:21:18]Content-Length: 331 [08:21:18]Content-Type: application/json [08:21:18] [08:21:18]POST finish read [08:21:18]Found Content-Length = 331 [08:21:18]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:21:18]execute_script... [08:21:18]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:21:18]POST & json_proto [08:21:18]process_json_proto [08:21:18]json parsed OK: [08:21:18]protocol is kg_v1.0 [08:21:18]action value=get_value [08:21:18]process_action get_value [08:21:18]cmd_get_value [08:21:18]process_action get_value done [08:21:18]requested_data is exist [08:21:18]produce_requested_data [08:21:18]requested_item fm.sale.total is exist - process it [08:21:18]SAM_PROTO_GetFMData [08:21:18]wFMCommunicate request_size=4 [08:21:18]MH_SAM_APDU [08:21:18]CAPDU: 80 13 03 00 [08:21:18]Write to MH i2c: E2 08 00 93 51 80 13 03 00 00 00 00 00 63 [08:21:18]Write i2c OK [08:21:18]MH_I2C_Read... [08:21:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:21:19]Read from MH i2c: E2 [08:21:19]MH_I2C_Read... [08:21:19]Read from MH i2c: E2 FD 00 [08:21:19]MH_I2C_Read... [08:21:19]Read from MH i2c: E2 FD 00 93 51 00 C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 8A [08:21:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [08:21:19]wFMCommunicate OK [08:21:19]wFMCommunicate request_size=4 [08:21:19]MH_SAM_APDU [08:21:19]CAPDU: 80 17 00 00 [08:21:19]Write to MH i2c: E2 08 00 94 51 80 17 00 00 00 00 00 00 65 [08:21:19]Write i2c OK [08:21:19]MH_I2C_Read... [08:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:19]Read from MH i2c: E2 [08:21:19]MH_I2C_Read... [08:21:19]Read from MH i2c: E2 FD 00 [08:21:19]MH_I2C_Read... [08:21:19]Read from MH i2c: E2 FD 00 94 51 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [08:21:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:19]wFMCommunicate OK [08:21:19]wFMCommunicate request_size=4 [08:21:19]MH_SAM_APDU [08:21:19]CAPDU: 80 17 00 00 [08:21:19]Write to MH i2c: E2 08 00 95 51 80 17 00 00 00 00 00 00 66 [08:21:19]Write i2c OK [08:21:19]MH_I2C_Read... [08:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:19]Read from MH i2c: E2 [08:21:19]MH_I2C_Read... [08:21:19]Read from MH i2c: E2 FD 00 [08:21:19]MH_I2C_Read... [08:21:19]Read from MH i2c: E2 FD 00 95 51 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 78 [08:21:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:19]wFMCommunicate OK [08:21:19]wFMCommunicate request_size=4 [08:21:19]MH_SAM_APDU [08:21:19]CAPDU: 80 17 00 00 [08:21:19]Write to MH i2c: E2 08 00 96 51 80 17 00 00 00 00 00 00 67 [08:21:19]Write i2c OK [08:21:19]MH_I2C_Read... [08:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:19]Read from MH i2c: E2 [08:21:19]MH_I2C_Read... [08:21:19]Read from MH i2c: E2 FD 00 [08:21:19]MH_I2C_Read... [08:21:19]Read from MH i2c: E2 FD 00 96 51 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F3 [08:21:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:19]wFMCommunicate OK [08:21:19]wFMCommunicate request_size=4 [08:21:19]MH_SAM_APDU [08:21:19]CAPDU: 80 17 00 00 [08:21:19]Write to MH i2c: E2 08 00 97 51 80 17 00 00 00 00 00 00 68 [08:21:19]Write i2c OK [08:21:19]MH_I2C_Read... [08:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:21:20]Read from MH i2c: E2 [08:21:20]MH_I2C_Read... [08:21:20]Read from MH i2c: E2 E2 00 [08:21:20]MH_I2C_Read... [08:21:20]Read from MH i2c: E2 E2 00 97 51 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [08:21:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:20]wFMCommunicate OK [08:21:20]SAM_PROTO_GetFMData done [08:21:20]requested_item fm.sale_refund.total is exist - process it [08:21:20]requested_item fm.buy.total is exist - process it [08:21:20]requested_item shift.sale.total is exist - process it [08:21:20]SAM_PROTO_GetShiftData [08:21:20]wFMCommunicate request_size=4 [08:21:20]MH_SAM_APDU [08:21:20]CAPDU: 80 13 02 00 [08:21:20]Write to MH i2c: E2 08 00 98 51 80 13 02 00 00 00 00 00 67 [08:21:20]Write i2c OK [08:21:20]MH_I2C_Read... [08:21:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:21:20]Read from MH i2c: E2 [08:21:20]MH_I2C_Read... [08:21:20]Read from MH i2c: E2 FD 00 [08:21:20]MH_I2C_Read... [08:21:20]Read from MH i2c: E2 FD 00 98 51 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [08:21:20]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:20]wFMCommunicate OK [08:21:20]wFMCommunicate request_size=4 [08:21:20]MH_SAM_APDU [08:21:20]CAPDU: 80 17 00 00 [08:21:20]Write to MH i2c: E2 08 00 99 51 80 17 00 00 00 00 00 00 6A [08:21:20]Write i2c OK [08:21:20]MH_I2C_Read... [08:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:20]Read from MH i2c: E2 [08:21:20]MH_I2C_Read... [08:21:20]Read from MH i2c: E2 FD 00 [08:21:20]MH_I2C_Read... [08:21:20]Read from MH i2c: E2 FD 00 99 51 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [08:21:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:20]wFMCommunicate OK [08:21:20]wFMCommunicate request_size=4 [08:21:20]MH_SAM_APDU [08:21:20]CAPDU: 80 17 00 00 [08:21:20]Write to MH i2c: E2 08 00 9A 51 80 17 00 00 00 00 00 00 6B [08:21:20]Write i2c OK [08:21:20]MH_I2C_Read... [08:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:21]Read from MH i2c: E2 [08:21:21]MH_I2C_Read... [08:21:21]Read from MH i2c: E2 FD 00 [08:21:21]MH_I2C_Read... [08:21:21]Read from MH i2c: E2 FD 00 9A 51 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [08:21:21]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:21]wFMCommunicate OK [08:21:21]wFMCommunicate request_size=4 [08:21:21]MH_SAM_APDU [08:21:21]CAPDU: 80 17 00 00 [08:21:21]Write to MH i2c: E2 08 00 9B 51 80 17 00 00 00 00 00 00 6C [08:21:21]Write i2c OK [08:21:21]MH_I2C_Read... [08:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:21]Read from MH i2c: E2 [08:21:21]MH_I2C_Read... [08:21:21]Read from MH i2c: E2 FD 00 [08:21:21]MH_I2C_Read... [08:21:21]Read from MH i2c: E2 FD 00 9B 51 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 90 00 E1 [08:21:21]RAPDU: 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 90 00 [08:21:21]wFMCommunicate OK [08:21:21]wFMCommunicate request_size=4 [08:21:21]MH_SAM_APDU [08:21:21]CAPDU: 80 17 00 00 [08:21:21]Write to MH i2c: E2 08 00 9C 51 80 17 00 00 00 00 00 00 6D [08:21:21]Write i2c OK [08:21:21]MH_I2C_Read... [08:21:21]Read from MH i2c: E2 [08:21:21]MH_I2C_Read... [08:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:21:21]Read from MH i2c: E2 CA 00 [08:21:21]MH_I2C_Read... [08:21:21]Read from MH i2c: E2 CA 00 9C 51 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 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 52 [08:21:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:21:21]wFMCommunicate OK [08:21:21]SAM_PROTO_GetShiftData done [08:21:21]requested_item shift.sale.total_cash is exist - process it [08:21:21]requested_item shift.sale_refund.total is exist - process it [08:21:21]requested_item shift.sale_refund.total_cash is exist - process it [08:21:21]requested_item shift.buy.total is exist - process it [08:21:21]requested_item shift.buy.total_cash is exist - process it [08:21:21]produce_requested_data done [08:21:21]produce_requested_data return {"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:21:21]process_action_free get_value [08:21:21]json_value_free [08:21:21]json_value_free done [08:21:21]process_json_proto returns [08:21:21]Send response to host [08:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:21:21]free response buf [08:21:21]execute_script done [08:21:21]execute_script returns [08:21:21]free content buf [08:21:21]Sock 7.Close socket [08:21:21]Sock 7.Thread stoped [08:21:22]OFD Sender: No OFD packet to send [08:21:25]accept exits with 9 [08:21:25]New connection [08:21:25]New thread 3067161956 created [08:21:25]Thread 3067305316 joined [08:21:25]Waiting for new connection... [08:21:25] Sock 9.Parse request [08:21:25]Sock 9.Check first char [08:21:25]Sock 9.First char is OK [08:21:25]request: POST /json_proto HTTP/1.0 [08:21:25]Method: POST [08:21:25]URL: /json_proto [08:21:25]Method is POST - this is cgi request [08:21:25]url: /json_proto [08:21:25]query_string will be loaded in cgi processing [08:21:25]execute_cgi json_proto POST (null) [08:21:25]execute_cgi path=json_proto method=POST [08:21:25]POST find Content-Length [08:21:25]Host: 172.17.49.196:8080 [08:21:25]Content-Length: 215 [08:21:25]Content-Type: application/json [08:21:25] [08:21:25]POST finish read [08:21:25]Found Content-Length = 215 [08:21: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:21:25]execute_script... [08:21: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:21:25]POST & json_proto [08:21:25]process_json_proto [08:21:25]json parsed OK: [08:21:25]protocol is kg_v1.0 [08:21:25]action value=get_value [08:21:25]process_action get_value [08:21:25]cmd_get_value [08:21:25]process_action get_value done [08:21:25]requested_data is exist [08:21:25]produce_requested_data [08:21:25]requested_item kkm.sn is exist - process it [08:21:25]requested_item kkm.ver is exist - process it [08:21:25]requested_item fm.sn is exist - process it [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 11 00 00 [08:21:25]Write to MH i2c: E2 08 00 9D 51 80 11 00 00 00 00 00 00 68 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 17 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 17 00 9D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AF [08:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:21:25]wFMCommunicate OK [08:21:25]requested_item fd.num is exist - process it [08:21:25]SAM_PROTO_GetFieldsCounters [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 13 00 00 [08:21:25]Write to MH i2c: E2 08 00 9E 51 80 13 00 00 00 00 00 00 6B [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 62 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 62 00 9E 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [08:21:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:25]wFMCommunicate OK [08:21:25]SAM_PROTO_GetFieldsCounters done [08:21:25]requested_item shift.num is exist - process it [08:21:25]requested_item shift.opened is exist - process it [08:21:25]req_shift_opened [08:21:25]FM_GetShiftState [08:21:25]SAM_PROTO_GetShiftState [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 13 01 00 [08:21:25]Write to MH i2c: E2 08 00 9F 51 80 13 01 00 00 00 00 00 6D [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 0E 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 0E 00 9F 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 65 [08:21:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:21:25]wFMCommunicate OK [08:21:25]SAM_PROTO_GetShiftState done [08:21:25]FM_GetShiftState done [08:21:25]req_shift_opened done [08:21:25]requested_item shift.open_date is exist - process it [08:21:25]req_shift_open_date [08:21:25]req_shift_open_date done [08:21:25]produce_requested_data done [08:21:25]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:21:25]process_action_free get_value [08:21:25]json_value_free [08:21:25]json_value_free done [08:21:25]process_json_proto returns [08:21:25]Send response to host [08:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:21:25]free response buf [08:21:25]execute_script done [08:21:25]execute_script returns [08:21:25]free content buf [08:21:25]Sock 9.Close socket [08:21:25]Sock 9.Thread stoped [08:21:25]accept exits with 7 [08:21:25]New connection [08:21:25]New thread 3067305316 created [08:21:25]Thread 3067161956 joined [08:21:25]Waiting for new connection... [08:21:25] Sock 7.Parse request [08:21:25]Sock 7.Check first char [08:21:25]Sock 7.First char is OK [08:21:25]request: POST /json_proto HTTP/1.0 [08:21:25]Method: POST [08:21:25]URL: /json_proto [08:21:25]Method is POST - this is cgi request [08:21:25]url: /json_proto [08:21:25]query_string will be loaded in cgi processing [08:21:25]execute_cgi json_proto POST (null) [08:21:25]execute_cgi path=json_proto method=POST [08:21:25]POST find Content-Length [08:21:25]Host: 172.17.49.196:8080 [08:21:25]Content-Length: 331 [08:21:25]Content-Type: application/json [08:21:25] [08:21:25]POST finish read [08:21:25]Found Content-Length = 331 [08:21: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:21:25]execute_script... [08:21:25]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:21:25]POST & json_proto [08:21:25]process_json_proto [08:21:25]json parsed OK: [08:21:25]protocol is kg_v1.0 [08:21:25]action value=get_value [08:21:25]process_action get_value [08:21:25]cmd_get_value [08:21:25]process_action get_value done [08:21:25]requested_data is exist [08:21:25]produce_requested_data [08:21:25]requested_item fm.sale.total is exist - process it [08:21:25]SAM_PROTO_GetFMData [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 13 03 00 [08:21:25]Write to MH i2c: E2 08 00 A0 51 80 13 03 00 00 00 00 00 70 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 FD 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 FD 00 A0 51 00 C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 97 [08:21:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [08:21:26]wFMCommunicate OK [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 17 00 00 [08:21:26]Write to MH i2c: E2 08 00 A1 51 80 17 00 00 00 00 00 00 72 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 FD 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 FD 00 A1 51 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [08:21:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:26]wFMCommunicate OK [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 17 00 00 [08:21:26]Write to MH i2c: E2 08 00 A2 51 80 17 00 00 00 00 00 00 73 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 FD 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 FD 00 A2 51 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [08:21:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:26]wFMCommunicate OK [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 17 00 00 [08:21:26]Write to MH i2c: E2 08 00 A3 51 80 17 00 00 00 00 00 00 74 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 FD 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 FD 00 A3 51 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [08:21:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:27]wFMCommunicate OK [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 17 00 00 [08:21:27]Write to MH i2c: E2 08 00 A4 51 80 17 00 00 00 00 00 00 75 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 E2 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 E2 00 A4 51 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [08:21:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:27]wFMCommunicate OK [08:21:27]SAM_PROTO_GetFMData done [08:21:27]requested_item fm.sale_refund.total is exist - process it [08:21:27]requested_item fm.buy.total is exist - process it [08:21:27]requested_item shift.sale.total is exist - process it [08:21:27]SAM_PROTO_GetShiftData [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 13 02 00 [08:21:27]Write to MH i2c: E2 08 00 A5 51 80 13 02 00 00 00 00 00 74 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]OFD Sender: No OFD packet to send [08:21:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 FD 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 FD 00 A5 51 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [08:21:27]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:27]wFMCommunicate OK [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 17 00 00 [08:21:27]Write to MH i2c: E2 08 00 A6 51 80 17 00 00 00 00 00 00 77 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:28]Read from MH i2c: E2 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 FD 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 FD 00 A6 51 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [08:21:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:28]wFMCommunicate OK [08:21:28]wFMCommunicate request_size=4 [08:21:28]MH_SAM_APDU [08:21:28]CAPDU: 80 17 00 00 [08:21:28]Write to MH i2c: E2 08 00 A7 51 80 17 00 00 00 00 00 00 78 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:28]Read from MH i2c: E2 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 FD 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 FD 00 A7 51 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [08:21:28]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:28]wFMCommunicate OK [08:21:28]wFMCommunicate request_size=4 [08:21:28]MH_SAM_APDU [08:21:28]CAPDU: 80 17 00 00 [08:21:28]Write to MH i2c: E2 08 00 A8 51 80 17 00 00 00 00 00 00 79 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:28]Read from MH i2c: E2 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 FD 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 FD 00 A8 51 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 90 00 EE [08:21:29]RAPDU: 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 90 00 [08:21:29]wFMCommunicate OK [08:21:29]wFMCommunicate request_size=4 [08:21:29]MH_SAM_APDU [08:21:29]CAPDU: 80 17 00 00 [08:21:29]Write to MH i2c: E2 08 00 A9 51 80 17 00 00 00 00 00 00 7A [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:21:29]Read from MH i2c: E2 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 CA 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 CA 00 A9 51 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 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 5F [08:21:29]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 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:21:29]wFMCommunicate OK [08:21:29]SAM_PROTO_GetShiftData done [08:21:29]requested_item shift.sale.total_cash is exist - process it [08:21:29]requested_item shift.sale_refund.total is exist - process it [08:21:29]requested_item shift.sale_refund.total_cash is exist - process it [08:21:29]requested_item shift.buy.total is exist - process it [08:21:29]requested_item shift.buy.total_cash is exist - process it [08:21:29]produce_requested_data done [08:21:29]produce_requested_data return {"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:21:29]process_action_free get_value [08:21:29]json_value_free [08:21:29]json_value_free done [08:21:29]process_json_proto returns [08:21:29]Send response to host [08:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:21:29]free response buf [08:21:29]execute_script done [08:21:29]execute_script returns [08:21:29]free content buf [08:21:29]Sock 7.Close socket [08:21:29]Sock 7.Thread stoped [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:43]accept exits with 9 [08:21:43]New connection [08:21:43]New thread 3067161956 created [08:21:43]Thread 3067305316 joined [08:21:43]Waiting for new connection... [08:21:43] Sock 9.Parse request [08:21:43]Sock 9.Check first char [08:21:43]Sock 9.First char is OK [08:21:43]request: POST /json_proto HTTP/1.0 [08:21:43]Method: POST [08:21:43]URL: /json_proto [08:21:43]Method is POST - this is cgi request [08:21:43]url: /json_proto [08:21:43]query_string will be loaded in cgi processing [08:21:43]execute_cgi json_proto POST (null) [08:21:43]execute_cgi path=json_proto method=POST [08:21:43]POST find Content-Length [08:21:43]Host: 172.17.49.196:8080 [08:21:43]Content-Length: 215 [08:21:43]Content-Type: application/json [08:21:43] [08:21:43]POST finish read [08:21:43]Found Content-Length = 215 [08:21:43]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:21:43]execute_script... [08:21:43]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:21:43]POST & json_proto [08:21:43]process_json_proto [08:21:43]json parsed OK: [08:21:43]protocol is kg_v1.0 [08:21:43]action value=get_value [08:21:43]process_action get_value [08:21:43]cmd_get_value [08:21:43]process_action get_value done [08:21:43]requested_data is exist [08:21:43]produce_requested_data [08:21:43]requested_item kkm.sn is exist - process it [08:21:43]requested_item kkm.ver is exist - process it [08:21:43]requested_item fm.sn is exist - process it [08:21:43]wFMCommunicate request_size=4 [08:21:43]MH_SAM_APDU [08:21:43]CAPDU: 80 11 00 00 [08:21:43]Write to MH i2c: E2 08 00 AA 51 80 11 00 00 00 00 00 00 75 [08:21:43]Write i2c OK [08:21:43]MH_I2C_Read... [08:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:43]Read from MH i2c: E2 [08:21:43]MH_I2C_Read... [08:21:43]Read from MH i2c: E2 17 00 [08:21:43]MH_I2C_Read... [08:21:43]Read from MH i2c: E2 17 00 AA 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BC [08:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:21:43]wFMCommunicate OK [08:21:43]requested_item fd.num is exist - process it [08:21:43]SAM_PROTO_GetFieldsCounters [08:21:43]wFMCommunicate request_size=4 [08:21:43]MH_SAM_APDU [08:21:43]CAPDU: 80 13 00 00 [08:21:43]Write to MH i2c: E2 08 00 AB 51 80 13 00 00 00 00 00 00 78 [08:21:43]Write i2c OK [08:21:43]MH_I2C_Read... [08:21:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:44]Read from MH i2c: E2 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: E2 62 00 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: E2 62 00 AB 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [08:21:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 60 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:44]wFMCommunicate OK [08:21:44]SAM_PROTO_GetFieldsCounters done [08:21:44]requested_item shift.num is exist - process it [08:21:44]requested_item shift.opened is exist - process it [08:21:44]req_shift_opened [08:21:44]FM_GetShiftState [08:21:44]SAM_PROTO_GetShiftState [08:21:44]wFMCommunicate request_size=4 [08:21:44]MH_SAM_APDU [08:21:44]CAPDU: 80 13 01 00 [08:21:44]Write to MH i2c: E2 08 00 AC 51 80 13 01 00 00 00 00 00 7A [08:21:44]Write i2c OK [08:21:44]MH_I2C_Read... [08:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:44]Read from MH i2c: E2 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: E2 0E 00 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: E2 0E 00 AC 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 72 [08:21:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:21:44]wFMCommunicate OK [08:21:44]SAM_PROTO_GetShiftState done [08:21:44]FM_GetShiftState done [08:21:44]req_shift_opened done [08:21:44]requested_item shift.open_date is exist - process it [08:21:44]req_shift_open_date [08:21:44]req_shift_open_date done [08:21:44]produce_requested_data done [08:21:44]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:21:44]process_action_free get_value [08:21:44]json_value_free [08:21:44]json_value_free done [08:21:44]process_json_proto returns [08:21:44]Send response to host [08:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50528,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:21:44]free response buf [08:21:44]execute_script done [08:21:44]execute_script returns [08:21:44]free content buf [08:21:44]Sock 9.Close socket [08:21:44]Sock 9.Thread stoped [08:21:44]accept exits with 7 [08:21:44]New connection [08:21:44]New thread 3067305316 created [08:21:44]Thread 3067161956 joined [08:21:44]Waiting for new connection... [08:21:44] Sock 7.Parse request [08:21:44]Sock 7.Check first char [08:21:44]Sock 7.First char is OK [08:21:44]request: POST /json_proto HTTP/1.0 [08:21:44]Method: POST [08:21:44]URL: /json_proto [08:21:44]Method is POST - this is cgi request [08:21:44]url: /json_proto [08:21:44]query_string will be loaded in cgi processing [08:21:44]execute_cgi json_proto POST (null) [08:21:44]execute_cgi path=json_proto method=POST [08:21:44]POST find Content-Length [08:21:44]Host: 172.17.49.196:8080 [08:21:44]Content-Length: 331 [08:21:44]Content-Type: application/json [08:21:44] [08:21:44]POST finish read [08:21:44]Found Content-Length = 331 [08:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:21:44]execute_script... [08:21:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:21:44]POST & json_proto [08:21:44]process_json_proto [08:21:44]json parsed OK: [08:21:44]protocol is kg_v1.0 [08:21:44]action value=get_value [08:21:44]process_action get_value [08:21:44]cmd_get_value [08:21:44]process_action get_value done [08:21:44]requested_data is exist [08:21:44]produce_requested_data [08:21:44]requested_item fm.sale.total is exist - process it [08:21:44]SAM_PROTO_GetFMData [08:21:44]wFMCommunicate request_size=4 [08:21:44]MH_SAM_APDU [08:21:44]CAPDU: 80 13 03 00 [08:21:44]Write to MH i2c: E2 08 00 AD 51 80 13 03 00 00 00 00 00 7D [08:21:44]Write i2c OK [08:21:44]MH_I2C_Read... [08:21:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:21:44]Read from MH i2c: E2 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: E2 FD 00 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: E2 FD 00 AD 51 00 C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 A4 [08:21:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 86 C1 00 00 69 04 A1 00 6F 04 04 00 86 C0 00 00 B1 04 04 00 25 BA AA 82 70 04 04 00 98 43 9A 61 72 04 04 00 8D 76 10 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 37 B9 E0 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BF FC 27 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [08:21:44]wFMCommunicate OK [08:21:44]wFMCommunicate request_size=4 [08:21:44]MH_SAM_APDU [08:21:44]CAPDU: 80 17 00 00 [08:21:44]Write to MH i2c: E2 08 00 AE 51 80 17 00 00 00 00 00 00 7F [08:21:44]Write i2c OK [08:21:44]MH_I2C_Read... [08:21:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:45]Read from MH i2c: E2 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 FD 00 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 FD 00 AE 51 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [08:21:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:45]wFMCommunicate OK [08:21:45]wFMCommunicate request_size=4 [08:21:45]MH_SAM_APDU [08:21:45]CAPDU: 80 17 00 00 [08:21:45]Write to MH i2c: E2 08 00 AF 51 80 17 00 00 00 00 00 00 80 [08:21:45]Write i2c OK [08:21:45]MH_I2C_Read... [08:21:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:45]Read from MH i2c: E2 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 FD 00 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 FD 00 AF 51 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 92 [08:21:45]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:45]wFMCommunicate OK [08:21:45]wFMCommunicate request_size=4 [08:21:45]MH_SAM_APDU [08:21:45]CAPDU: 80 17 00 00 [08:21:45]Write to MH i2c: E2 08 00 B0 51 80 17 00 00 00 00 00 00 81 [08:21:45]Write i2c OK [08:21:45]MH_I2C_Read... [08:21:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:45]Read from MH i2c: E2 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 FD 00 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 FD 00 B0 51 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0D [08:21:45]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:45]wFMCommunicate OK [08:21:45]wFMCommunicate request_size=4 [08:21:45]MH_SAM_APDU [08:21:45]CAPDU: 80 17 00 00 [08:21:45]Write to MH i2c: E2 08 00 B1 51 80 17 00 00 00 00 00 00 82 [08:21:45]Write i2c OK [08:21:45]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:21:46]Read from MH i2c: E2 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 E2 00 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 E2 00 B1 51 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 60 [08:21:46]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:46]wFMCommunicate OK [08:21:46]SAM_PROTO_GetFMData done [08:21:46]requested_item fm.sale_refund.total is exist - process it [08:21:46]requested_item fm.buy.total is exist - process it [08:21:46]requested_item shift.sale.total is exist - process it [08:21:46]SAM_PROTO_GetShiftData [08:21:46]wFMCommunicate request_size=4 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 13 02 00 [08:21:46]Write to MH i2c: E2 08 00 B2 51 80 13 02 00 00 00 00 00 81 [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:21:46]Read from MH i2c: E2 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 FD 00 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 FD 00 B2 51 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [08:21:46]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 10 8D 08 70 04 03 00 B8 83 05 72 04 03 00 58 09 03 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 71 E8 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 60 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:46]wFMCommunicate OK [08:21:46]wFMCommunicate request_size=4 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 17 00 00 [08:21:46]Write to MH i2c: E2 08 00 B3 51 80 17 00 00 00 00 00 00 84 [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:46]Read from MH i2c: E2 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 FD 00 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 FD 00 B3 51 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 96 [08:21:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:46]wFMCommunicate OK [08:21:46]wFMCommunicate request_size=4 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 17 00 00 [08:21:46]Write to MH i2c: E2 08 00 B4 51 80 17 00 00 00 00 00 00 85 [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 FD 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 FD 00 B4 51 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 49 [08:21:47]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:47]wFMCommunicate OK [08:21:47]wFMCommunicate request_size=4 [08:21:47]MH_SAM_APDU [08:21:47]CAPDU: 80 17 00 00 [08:21:47]Write to MH i2c: E2 08 00 B5 51 80 17 00 00 00 00 00 00 86 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 FD 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 FD 00 B5 51 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 90 00 FB [08:21:47]RAPDU: 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 90 00 [08:21:47]wFMCommunicate OK [08:21:47]wFMCommunicate request_size=4 [08:21:47]MH_SAM_APDU [08:21:47]CAPDU: 80 17 00 00 [08:21:47]Write to MH i2c: E2 08 00 B6 51 80 17 00 00 00 00 00 00 87 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]OFD Sender: No OFD packet to send [08:21:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 CA 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 CA 00 B6 51 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 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 6C [08:21:47]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 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:21:47]wFMCommunicate OK [08:21:47]SAM_PROTO_GetShiftData done [08:21:47]requested_item shift.sale.total_cash is exist - process it [08:21:47]requested_item shift.sale_refund.total is exist - process it [08:21:47]requested_item shift.sale_refund.total_cash is exist - process it [08:21:47]requested_item shift.buy.total is exist - process it [08:21:47]requested_item shift.buy.total_cash is exist - process it [08:21:47]produce_requested_data done [08:21:47]produce_requested_data return {"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:21:47]process_action_free get_value [08:21:47]json_value_free [08:21:47]json_value_free done [08:21:47]process_json_proto returns [08:21:47]Send response to host [08:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21922268.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":5604.00,"shift.sale.total_cash":3614.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:21:47]free response buf [08:21:47]execute_script done [08:21:47]execute_script returns [08:21:47]free content buf [08:21:47]Sock 7.Close socket [08:21:47]Sock 7.Thread stoped [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34: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:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:30]accept exits with 9 [08:40:30]New connection [08:40:30]New thread 3067161956 created [08:40:30]Thread 3067305316 joined [08:40:30]Waiting for new connection... [08:40:30] Sock 9.Parse request [08:40:30]Sock 9.Check first char [08:40:30]Sock 9.First char is OK [08:40:30]request: POST /json_proto HTTP/1.0 [08:40:30]Method: POST [08:40:30]URL: /json_proto [08:40:30]Method is POST - this is cgi request [08:40:30]url: /json_proto [08:40:30]query_string will be loaded in cgi processing [08:40:30]execute_cgi json_proto POST (null) [08:40:30]execute_cgi path=json_proto method=POST [08:40:30]POST find Content-Length [08:40:30]Host: 172.17.49.196:8080 [08:40:30]Content-Length: 894 [08:40:30]Content-Type: application/json [08:40:30] [08:40:30]POST finish read [08:40:30]Found Content-Length = 894 [08:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164442", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:30]execute_script... [08:40:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164442", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:30]POST & json_proto [08:40:30]process_json_proto [08:40:30]json parsed OK: [08:40:30]protocol is kg_v1.0 [08:40:30]action value=close_receipt [08:40:30]process_action close_receipt [08:40:30]cmd_close_receipt [08:40:30]MH_GetDate [08:40:30]Write to MH i2c: F0 00 00 B7 51 F7 [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: F0 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: F0 09 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: F0 09 00 B7 51 00 8C 59 1B 67 BD 3B 11 67 D7 [08:40:30]GetLastDocTimeStamp 1729844422 [08:40:30]current date 1729845644 [08:40:30]FM_GetShiftState [08:40:30]SAM_PROTO_GetShiftState [08:40:30]wFMCommunicate request_size=4 [08:40:30]MH_SAM_APDU [08:40:30]CAPDU: 80 13 01 00 [08:40:30]Write to MH i2c: E2 08 00 B8 51 80 13 01 00 00 00 00 00 86 [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:31]Read from MH i2c: E2 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 0E 00 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 0E 00 B8 51 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 7E [08:40:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:40:31]wFMCommunicate OK [08:40:31]SAM_PROTO_GetShiftState done [08:40:31]FM_GetShiftState done [08:40:31]opened in 1729815177 [08:40:31]opened+sec_in_day 1729901577 [08:40:31]quantity*price = 6900 [08:40:31]sum+1 = 6901 [08:40:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 229.00 НСП 1% : 2.03 НДС 12% : 24.32 Наличными: 229.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 29 25.10.2024 08:40 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50529 ФПД: 167486275348553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084044&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50529&fm=167486275348553&tin=02508201610067®Number=0000000000097022&sum=22900 0 [08:40:32]StoreToDocumentArchive [08:40:32]shift 493 fd 50529 [08:40:32]save to /storage/0493/doc_00050529 [08:40:32]save last doc name /storage/0493/doc_00050529 to /storage/kkm_last_doc_name [08:40:32]save OK [08:40:32]Clear old archive folders... [08:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=398 [08:40:32]tlvbuf is 00266930 [08:40:32]SAM_PROTO_ClearQueue [08:40:32]wFMCommunicate request_size=4 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 09 00 00 [08:40:32]Write to MH i2c: E2 08 00 C5 51 80 09 00 00 00 00 00 00 88 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 C5 51 00 90 00 8A [08:40:32]RAPDU: 90 00 [08:40:32]wFMCommunicate OK [08:40:32]SAM_PROTO_ClearQueue done [08:40:32]KKMCreateOFDPacket [08:40:32]OFDProtocolAddRootSTLVToBuf [08:40:32]FM_MakeSignedData [08:40:32]FM_MakeSignedData [08:40:32]SAM_PROTO_SignData [08:40:32]wFMCommunicate request_size=4 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 0D 01 02 [08:40:32]Write to MH i2c: E2 08 00 C6 51 80 0D 01 02 00 00 00 00 90 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 C6 51 00 90 00 8B [08:40:32]RAPDU: 90 00 [08:40:32]wFMCommunicate OK [08:40:32]wFMCommunicate request_size=255 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 [08:40:32]Write to MH i2c: E2 02 01 C7 51 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 00 8A [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 C7 51 00 90 00 8C [08:40:32]RAPDU: 90 00 [08:40:32]wFMCommunicate OK [08:40:32]wFMCommunicate request_size=157 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 0D 02 02 98 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 80 09 00 00 00 00 07 04 06 00 74 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 1D 00 00 00 F4 03 04 00 8C 59 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C5 00 00 35 04 06 00 98 53 EF F2 68 49 [08:40:32]Write to MH i2c: E2 A0 00 C8 51 80 0D 02 02 98 00 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 80 09 00 00 00 00 07 04 06 00 74 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 1D 00 00 00 F4 03 04 00 8C 59 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C5 00 00 35 04 06 00 98 53 EF F2 68 49 00 00 11 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 C8 51 00 90 00 8D [08:40:32]RAPDU: 90 00 [08:40:32]wFMCommunicate OK [08:40:32]wFMCommunicate request_size=4 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 0D 03 02 [08:40:32]Write to MH i2c: E2 08 00 C9 51 80 0D 03 02 00 00 00 00 95 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 0B 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 0B 00 C9 51 00 F2 E4 59 F0 74 E8 10 A0 90 00 C1 [08:40:32]RAPDU: F2 E4 59 F0 74 E8 10 A0 90 00 [08:40:32]wFMCommunicate OK [08:40:32]SAM_PROTO_SignData done [08:40:32]FM_MakeSignedData done [08:40:32]CreateOFDProtocolMessage [08:40:32]wFMCommunicate request_size=4 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 11 00 00 [08:40:32]Write to MH i2c: E2 08 00 CA 51 80 11 00 00 00 00 00 00 95 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 17 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 17 00 CA 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DC [08:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:40:32]wFMCommunicate OK [08:40:32]CreateOFDProtocolMessage done [08:40:32]OFDSenderStorePacket 50529 [08:40:32]StoreOFDPacket docnum=50529 [08:40:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A2 01 00 00 DC 5C 9A 01 10 E1 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 80 09 00 00 00 00 07 04 06 00 74 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 1D 00 00 00 F4 03 04 00 8C 59 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C5 00 00 35 04 06 00 98 53 EF F2 68 49 F2 E4 59 F0 74 E8 10 A0 [08:40:32]CheckFolder [08:40:32]dirname=/storage/ofd_packets [08:40:32]CheckFolder done [08:40:32]ProducePacketName [08:40:32]name=ofd_packets/00050529 [08:40:32]NVStorageSaveData ofd_packets/00050529 [08:40:32]File name is /storage/ofd_packets/00050529 [08:40:32]Write 448 bytes [08:40:32]NVStorageSaveData done [08:40:32]OFDSenderStorePacket done [08:40:32]KKMCreateOFDPacket done [08:40:32]NVStorageSaveData kkm_last_timestamp [08:40:32]File name is /storage/kkm_last_timestamp [08:40:32]Write 4 bytes [08:40:32]NVStorageSaveData done [08:40:32]ExternCall_PrintAddStr [08:40:32]wPrintStart [08:40:32]Write to MH i2c: 01 00 00 CB 51 1C [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 07 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 07 00 CB 51 00 00 00 00 00 FF 0F 31 [08:40:32]RasterBufferAndPrint [08:40:32]line Счет N : (3)164442 [08:40:32]line ИНН: 02508201610067 [08:40:32]line Контрольно-Кассовый Чек [08:40:32]line ПРОДАЖА [08:40:32]line Товар: 4600682557456 [08:40:33]line Напиток FLash up energy эн ж/б 0,5/0,45л [08:40:33]line 1.000 * 69.00 [08:40:33]line = 69.00 [08:40:33]line НДС 12% НСП 1% [08:40:33]line > о реализуемом товаре [08:40:33]line Товар: 48741958 [08:40:33]line Сигареты Parliament Aqua Blue [08:40:33]line 1.000 * 160.00 [08:40:33]line = 160.00 [08:40:33]line НДС 12% НСП 1% [08:40:33]line > о реализуемом товаре [08:40:33]line ИТОГО: 229.00 [08:40:33]line НСП 1% : 2.03 [08:40:33]line НДС 12% : 24.32 [08:40:33]line Наличными: 229.00 [08:40:33]line Безнал.: 0.00 [08:40:33]line Место: АЗС № 80 "Партнер Нефть" [08:40:33]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:40:33]line СНО: Общий режим [08:40:33]line Чек 29 25.10.2024 08:40 [08:40:33]line Смена: 493 ФФД: 1.0 [08:40:33]line ЗНМ: 0300000090 [08:40:33]line РНМ: 0000000000097022 [08:40:33]line Версия ККМ: 001 [08:40:33]line ФМ: 0000000000875000 [08:40:33]line ФД: 50529 [08:40:33]line ФПД: 167486275348553 [08:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084044&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50529&fm=167486275348553&tin=02508201610067®Number=0000000000097022&sum=22900 [08:40:33]line 0 [08:40:33]OFD Sender: Processing packet 50529 [packets to send 7, broken 6] [08:40:33]ProducePacketName [08:40:33]name=ofd_packets/00050529 [08:40:33]OFD Sender: To server: pG, [08:40:33]CommunicateWithHost lk.salyk.kg:30040 [08:40:33]ConnectInit lk.salyk.kg [08:40:33]written 0, free lines is 4095 [08:40:33]Connected sock=10 [08:40:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A2 01 00 00 DC 5C 9A 01 10 E1 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 80 09 00 00 00 00 07 04 06 00 74 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 1D 00 00 00 F4 03 04 00 8C 59 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C5 00 00 35 04 06 00 98 53 EF F2 68 49 F2 E4 59 F0 74 E8 10 A0 [08:40:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E3 62 47 00 9E C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 61 C5 00 00 F4 03 04 00 1D 05 1B 67 B6 04 01 00 00 9E BB A3 E7 38 4A 27 6A [08:40:33]CommunicateWithHost err = 0 [08:40:33]CheckOFDResponse [08:40:33]1017 (14) - 77093643461234 [08:40:33]1041 (16) - 0000000000875000 [08:40:33]1040 (4) - 50529 [08:40:33]1012 (4) - 25.10.2024 02:40 [08:40:33]1206 (1) - 0 [08:40:33]OFD Sender: Remove packet 50529 [08:40:33]ProducePacketName [08:40:33]name=ofd_packets/00050529 [08:40:33]NVStorageDeleteData [08:40:33]Write to MH i2c: 01 00 00 FB 51 4C [08:40:33]Write i2c OK [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: 01 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: 01 07 00 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: 01 07 00 FB 51 00 00 00 00 00 A4 0C 03 [08:40:33]RasterBufferAndPrint [08:40:33]line [08:40:33]line [08:40:33]line [08:40:33]line [08:40:33]line [08:40:33]written 0, free lines is 3245 [08:40:33]process_action close_receipt done [08:40:33]requested_data is exist [08:40:33]produce_requested_data [08:40:33]requested_item fm.sn is exist - process it [08:40:33]wFMCommunicate request_size=4 [08:40:33]MH_SAM_APDU [08:40:33]CAPDU: 80 11 00 00 [08:40:33]Write to MH i2c: E2 08 00 02 52 80 11 00 00 00 00 00 00 CE [08:40:33]Write i2c OK [08:40:33]MH_I2C_Read... [08:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:33]Read from MH i2c: E2 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 17 00 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 17 00 02 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 15 [08:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:40:33]wFMCommunicate OK [08:40:33]requested_item fd.num is exist - process it [08:40:33]SAM_PROTO_GetFieldsCounters [08:40:33]wFMCommunicate request_size=4 [08:40:33]MH_SAM_APDU [08:40:33]CAPDU: 80 13 00 00 [08:40:33]Write to MH i2c: E2 08 00 03 52 80 13 00 00 00 00 00 00 D1 [08:40:33]Write i2c OK [08:40:33]MH_I2C_Read... [08:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:33]Read from MH i2c: E2 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 62 00 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 62 00 03 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 61 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [08:40:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 61 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:33]wFMCommunicate OK [08:40:33]SAM_PROTO_GetFieldsCounters done [08:40:33]requested_item shift.num is exist - process it [08:40:33]requested_item shift.opened is exist - process it [08:40:33]req_shift_opened [08:40:33]FM_GetShiftState [08:40:33]SAM_PROTO_GetShiftState [08:40:33]wFMCommunicate request_size=4 [08:40:33]MH_SAM_APDU [08:40:33]CAPDU: 80 13 01 00 [08:40:33]Write to MH i2c: E2 08 00 04 52 80 13 01 00 00 00 00 00 D3 [08:40:33]Write i2c OK [08:40:33]MH_I2C_Read... [08:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:33]Read from MH i2c: E2 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 0E 00 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 0E 00 04 52 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 CB [08:40:33]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:40:33]wFMCommunicate OK [08:40:33]SAM_PROTO_GetShiftState done [08:40:33]FM_GetShiftState done [08:40:33]req_shift_opened done [08:40:33]requested_item shift.open_date is exist - process it [08:40:33]req_shift_open_date [08:40:33]req_shift_open_date done [08:40:33]produce_requested_data done [08:40:33]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50529,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:40:33]process_action_free close_receipt [08:40:33]json_value_free [08:40:33]json_value_free done [08:40:33]process_json_proto returns [08:40:33]Send response to host [08:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50529,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:40:33]free response buf [08:40:33]execute_script done [08:40:33]execute_script returns [08:40:33]free content buf [08:40:33]Sock 9.Close socket [08:40:33]Sock 9.Thread stoped [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:52]accept exits with 7 [08:41:52]New connection [08:41:52]New thread 3067305316 created [08:41:52]Thread 3067161956 joined [08:41:52]Waiting for new connection... [08:41:52] Sock 7.Parse request [08:41:52]Sock 7.Check first char [08:41:52]Sock 7.First char is OK [08:41:52]request: POST /json_proto HTTP/1.0 [08:41:52]Method: POST [08:41:52]URL: /json_proto [08:41:52]Method is POST - this is cgi request [08:41:52]url: /json_proto [08:41:52]query_string will be loaded in cgi processing [08:41:52]execute_cgi json_proto POST (null) [08:41:52]execute_cgi path=json_proto method=POST [08:41:52]POST find Content-Length [08:41:52]Host: 172.17.49.196:8080 [08:41:52]Content-Length: 1584 [08:41:52]Content-Type: application/json [08:41:52] [08:41:52]POST finish read [08:41:52]Found Content-Length = 1584 [08:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164443", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.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 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:52]execute_script... [08:41:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164443", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.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 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:52]POST & json_proto [08:41:52]process_json_proto [08:41:52]json parsed OK: [08:41:52]protocol is kg_v1.0 [08:41:52]action value=close_receipt [08:41:52]process_action close_receipt [08:41:52]cmd_close_receipt [08:41:52]MH_GetDate [08:41:52]Write to MH i2c: F0 00 00 05 52 46 [08:41:52]Write i2c OK [08:41:52]MH_I2C_Read... [08:41:52]Read from MH i2c: F0 [08:41:52]MH_I2C_Read... [08:41:52]Read from MH i2c: F0 09 00 [08:41:52]MH_I2C_Read... [08:41:52]Read from MH i2c: F0 09 00 05 52 00 DD 59 1B 67 BD 3B 11 67 77 [08:41:52]GetLastDocTimeStamp 1729845644 [08:41:52]current date 1729845725 [08:41:52]FM_GetShiftState [08:41:52]SAM_PROTO_GetShiftState [08:41:52]wFMCommunicate request_size=4 [08:41:52]MH_SAM_APDU [08:41:52]CAPDU: 80 13 01 00 [08:41:52]Write to MH i2c: E2 08 00 06 52 80 13 01 00 00 00 00 00 D5 [08:41:52]Write i2c OK [08:41:52]MH_I2C_Read... [08:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:52]Read from MH i2c: E2 [08:41:52]MH_I2C_Read... [08:41:52]Read from MH i2c: E2 0E 00 [08:41:52]MH_I2C_Read... [08:41:52]Read from MH i2c: E2 0E 00 06 52 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 CD [08:41:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:41:52]wFMCommunicate OK [08:41:52]SAM_PROTO_GetShiftState done [08:41:52]FM_GetShiftState done [08:41:52]opened in 1729815177 [08:41:52]opened+sec_in_day 1729901577 [08:41:52]quantity*price = 9900 [08:41:52]sum+1 = 9901 [08:41:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004848 Печ.зат.TONDI Сэнд.шок-сл.вк 1.000 * 86.00 = 86.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.61 НДС 12% : 31.32 Наличными: 0.00 Безнал.: 295.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 30 25.10.2024 08:42 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50530 ФПД: 236942320024626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084206&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50530&fm=236942320024626&tin=02508201610067®Number=0000000000097022&sum=29500 0 [08:41:53]StoreToDocumentArchive [08:41:53]shift 493 fd 50530 [08:41:53]save to /storage/0493/doc_00050530 [08:41:53]save last doc name /storage/0493/doc_00050530 to /storage/kkm_last_doc_name [08:41:53]save OK [08:41:53]Clear old archive folders... [08:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=611 [08:41:53]tlvbuf is 0020B0A0 [08:41:53]SAM_PROTO_ClearQueue [08:41:53]wFMCommunicate request_size=4 [08:41:53]MH_SAM_APDU [08:41:53]CAPDU: 80 09 00 00 [08:41:53]Write to MH i2c: E2 08 00 13 52 80 09 00 00 00 00 00 00 D7 [08:41:53]Write i2c OK [08:41:53]MH_I2C_Read... [08:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:54]Read from MH i2c: E2 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 13 52 00 90 00 D9 [08:41:54]RAPDU: 90 00 [08:41:54]wFMCommunicate OK [08:41:54]SAM_PROTO_ClearQueue done [08:41:54]KKMCreateOFDPacket [08:41:54]OFDProtocolAddRootSTLVToBuf [08:41:54]FM_MakeSignedData [08:41:54]FM_MakeSignedData [08:41:54]SAM_PROTO_SignData [08:41:54]wFMCommunicate request_size=4 [08:41:54]MH_SAM_APDU [08:41:54]CAPDU: 80 0D 01 02 [08:41:54]Write to MH i2c: E2 08 00 14 52 80 0D 01 02 00 00 00 00 DF [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]OFD Sender: No OFD packet to send [08:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:54]Read from MH i2c: E2 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 14 52 00 90 00 DA [08:41:54]RAPDU: 90 00 [08:41:54]wFMCommunicate OK [08:41:54]wFMCommunicate request_size=255 [08:41:54]MH_SAM_APDU [08:41:54]CAPDU: 80 0D 02 02 FA 03 00 63 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [08:41:54]Write to MH i2c: E2 02 01 15 52 80 0D 02 02 FA 00 03 00 63 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 46 [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:54]Read from MH i2c: E2 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 15 52 00 90 00 DB [08:41:54]RAPDU: 90 00 [08:41:54]wFMCommunicate OK [08:41:54]wFMCommunicate request_size=255 [08:41:54]MH_SAM_APDU [08:41:54]CAPDU: 80 0D 02 02 FA 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 [08:41:54]Write to MH i2c: E2 02 01 16 52 80 0D 02 02 FA 00 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 31 [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:54]Read from MH i2c: E2 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 16 52 00 90 00 DC [08:41:54]RAPDU: 90 00 [08:41:54]wFMCommunicate OK [08:41:54]wFMCommunicate request_size=120 [08:41:54]MH_SAM_APDU [08:41:54]CAPDU: 80 0D 02 02 73 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DE 59 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C5 00 00 35 04 06 00 D7 7F 6E D1 3C 32 [08:41:54]Write to MH i2c: E2 7B 00 17 52 80 0D 02 02 73 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DE 59 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C5 00 00 35 04 06 00 D7 7F 6E D1 3C 32 00 00 90 [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:54]Read from MH i2c: E2 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 03 00 17 52 00 90 00 DD [08:41:54]RAPDU: 90 00 [08:41:54]wFMCommunicate OK [08:41:54]wFMCommunicate request_size=4 [08:41:54]MH_SAM_APDU [08:41:54]CAPDU: 80 0D 03 02 [08:41:54]Write to MH i2c: E2 08 00 18 52 80 0D 03 02 00 00 00 00 E5 [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:54]Read from MH i2c: E2 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 0B 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 0B 00 18 52 00 86 6F 94 CD 5C 80 C8 9A 90 00 7A [08:41:54]RAPDU: 86 6F 94 CD 5C 80 C8 9A 90 00 [08:41:54]wFMCommunicate OK [08:41:54]SAM_PROTO_SignData done [08:41:54]FM_MakeSignedData done [08:41:54]CreateOFDProtocolMessage [08:41:54]wFMCommunicate request_size=4 [08:41:54]MH_SAM_APDU [08:41:54]CAPDU: 80 11 00 00 [08:41:54]Write to MH i2c: E2 08 00 19 52 80 11 00 00 00 00 00 00 E5 [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:54]Read from MH i2c: E2 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 17 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: E2 17 00 19 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2C [08:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:41:54]wFMCommunicate OK [08:41:54]CreateOFDProtocolMessage done [08:41:54]OFDSenderStorePacket 50530 [08:41:54]StoreOFDPacket docnum=50530 [08:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 77 02 00 00 ED BE 6F 02 B7 DE 5A 03 01 00 03 00 63 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DE 59 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C5 00 00 35 04 06 00 D7 7F 6E D1 3C 32 86 6F 94 CD 5C 80 C8 9A [08:41:54]CheckFolder [08:41:54]dirname=/storage/ofd_packets [08:41:54]CheckFolder done [08:41:54]ProducePacketName [08:41:54]name=ofd_packets/00050530 [08:41:54]NVStorageSaveData ofd_packets/00050530 [08:41:54]File name is /storage/ofd_packets/00050530 [08:41:54]Write 661 bytes [08:41:54]NVStorageSaveData done [08:41:54]OFDSenderStorePacket done [08:41:54]KKMCreateOFDPacket done [08:41:54]NVStorageSaveData kkm_last_timestamp [08:41:54]File name is /storage/kkm_last_timestamp [08:41:54]Write 4 bytes [08:41:54]NVStorageSaveData done [08:41:54]ExternCall_PrintAddStr [08:41:54]wPrintStart [08:41:54]Write to MH i2c: 01 00 00 1A 52 6C [08:41:54]Write i2c OK [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: 01 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: 01 07 00 [08:41:54]MH_I2C_Read... [08:41:54]Read from MH i2c: 01 07 00 1A 52 00 00 00 00 00 FF 0F 81 [08:41:54]RasterBufferAndPrint [08:41:54]line Счет N : (3)164443 [08:41:54]line ИНН: 02508201610067 [08:41:54]line Контрольно-Кассовый Чек [08:41:54]line ПРОДАЖА [08:41:54]line Товар: 4870022003312 [08:41:54]line Gorilla эн нап манго-кокос 0,45 ж/б [08:41:54]line 1.000 * 99.00 [08:41:54]line = 99.00 [08:41:54]line НДС 12% НСП 1% [08:41:54]line > о реализуемом товаре [08:41:54]line Товар: 4603290004848 [08:41:54]line Печ.зат.TONDI Сэнд.шок-сл.вк [08:41:55]line 1.000 * 86.00 [08:41:55]line = 86.00 [08:41:55]line НДС 12% НСП 1% [08:41:55]line > о реализуемом товаре [08:41:55]line Товар: 4700000160358 [08:41:55]line Вода Легенда 1л [08:41:55]line 1.000 * 50.00 [08:41:55]line = 50.00 [08:41:55]line НДС 12% НСП 1% [08:41:55]line > о реализуемом товаре [08:41:55]line Товар: 4700000160204 [08:41:55]line Вода Легенда 1,5л [08:41:55]line 1.000 * 60.00 [08:41:55]line = 60.00 [08:41:55]line НДС 12% НСП 1% [08:41:55]line > о реализуемом товаре [08:41:55]line ИТОГО: 295.00 [08:41:55]line НСП 1% : 2.61 [08:41:55]line НДС 12% : 31.32 [08:41:55]line Наличными: 0.00 [08:41:55]line Безнал.: 295.00 [08:41:55]line Место: АЗС № 80 "Партнер Нефть" [08:41:55]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:41:55]line СНО: Общий режим [08:41:55]line Чек 30 25.10.2024 08:42 [08:41:55]line Смена: 493 ФФД: 1.0 [08:41:55]line ЗНМ: 0300000090 [08:41:55]line РНМ: 0000000000097022 [08:41:55]line Версия ККМ: 001 [08:41:55]line Платежная система: Mbank [08:41:55]line ФМ: 0000000000875000 [08:41:55]line ФД: 50530 [08:41:55]line ФПД: 236942320024626 [08:41:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084206&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50530&fm=236942320024626&tin=02508201610067®Number=0000000000097022&sum=29500 [08:41:55]line 0 [08:41:55]OFD Sender: Processing packet 50530 [packets to send 7, broken 6] [08:41:55]ProducePacketName [08:41:55]name=ofd_packets/00050530 [08:41:55]OFD Sender: To server: pG, [08:41:55]CommunicateWithHost lk.salyk.kg:30040 [08:41:55]ConnectInit lk.salyk.kg [08:41:55]written 0, free lines is 4095 [08:41:55]Connected sock=10 [08:41:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 77 02 00 00 ED BE 6F 02 B7 DE 5A 03 01 00 03 00 63 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DE 59 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C5 00 00 35 04 06 00 D7 7F 6E D1 3C 32 86 6F 94 CD 5C 80 C8 9A [08:41:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CF BE 47 00 0A 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 62 C5 00 00 F4 03 04 00 6F 05 1B 67 B6 04 01 00 00 02 BC 44 60 E4 72 93 22 [08:41:55]CommunicateWithHost err = 0 [08:41:55]CheckOFDResponse [08:41:55]1017 (14) - 77093643461234 [08:41:55]1041 (16) - 0000000000875000 [08:41:55]1040 (4) - 50530 [08:41:55]1012 (4) - 25.10.2024 02:41 [08:41:55]1206 (1) - 0 [08:41:55]OFD Sender: Remove packet 50530 [08:41:55]ProducePacketName [08:41:55]name=ofd_packets/00050530 [08:41:55]NVStorageDeleteData [08:41:55]Write to MH i2c: 01 00 00 56 52 A8 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: 01 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: 01 07 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: 01 07 00 56 52 00 00 00 00 00 2F 0C EA [08:41:55]RasterBufferAndPrint [08:41:55]line [08:41:55]line [08:41:55]line [08:41:55]line [08:41:55]line [08:41:55]written 0, free lines is 3130 [08:41:55]process_action close_receipt done [08:41:55]requested_data is exist [08:41:55]produce_requested_data [08:41:55]requested_item fm.sn is exist - process it [08:41:55]wFMCommunicate request_size=4 [08:41:55]MH_SAM_APDU [08:41:55]CAPDU: 80 11 00 00 [08:41:55]Write to MH i2c: E2 08 00 5D 52 80 11 00 00 00 00 00 00 29 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:55]Read from MH i2c: E2 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 17 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 17 00 5D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 70 [08:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:41:55]wFMCommunicate OK [08:41:55]requested_item fd.num is exist - process it [08:41:55]SAM_PROTO_GetFieldsCounters [08:41:55]wFMCommunicate request_size=4 [08:41:55]MH_SAM_APDU [08:41:55]CAPDU: 80 13 00 00 [08:41:55]Write to MH i2c: E2 08 00 5E 52 80 13 00 00 00 00 00 00 2C [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:56]OFD Sender: No OFD packet to send [08:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:56]Read from MH i2c: E2 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 62 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 62 00 5E 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 62 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [08:41:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 62 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:56]wFMCommunicate OK [08:41:56]SAM_PROTO_GetFieldsCounters done [08:41:56]requested_item shift.num is exist - process it [08:41:56]requested_item shift.opened is exist - process it [08:41:56]req_shift_opened [08:41:56]FM_GetShiftState [08:41:56]SAM_PROTO_GetShiftState [08:41:56]wFMCommunicate request_size=4 [08:41:56]MH_SAM_APDU [08:41:56]CAPDU: 80 13 01 00 [08:41:56]Write to MH i2c: E2 08 00 5F 52 80 13 01 00 00 00 00 00 2E [08:41:56]Write i2c OK [08:41:56]MH_I2C_Read... [08:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:56]Read from MH i2c: E2 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 0E 00 [08:41:56]MH_I2C_Read... [08:41:56]Read from MH i2c: E2 0E 00 5F 52 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 26 [08:41:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:41:56]wFMCommunicate OK [08:41:56]SAM_PROTO_GetShiftState done [08:41:56]FM_GetShiftState done [08:41:56]req_shift_opened done [08:41:56]requested_item shift.open_date is exist - process it [08:41:56]req_shift_open_date [08:41:56]req_shift_open_date done [08:41:56]produce_requested_data done [08:41:56]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50530,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:41:56]process_action_free close_receipt [08:41:56]json_value_free [08:41:56]json_value_free done [08:41:56]process_json_proto returns [08:41:56]Send response to host [08:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50530,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:41:56]free response buf [08:41:56]execute_script done [08:41:56]execute_script returns [08:41:56]free content buf [08:41:56]Sock 7.Close socket [08:41:56]Sock 7.Thread stoped [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:48]accept exits with 9 [08:45:48]New connection [08:45:48]New thread 3067161956 created [08:45:48]Thread 3067305316 joined [08:45:48]Waiting for new connection... [08:45:48] Sock 9.Parse request [08:45:48]Sock 9.Check first char [08:45:48]Sock 9.First char is OK [08:45:48]request: POST /json_proto HTTP/1.0 [08:45:48]Method: POST [08:45:48]URL: /json_proto [08:45:48]Method is POST - this is cgi request [08:45:48]url: /json_proto [08:45:48]query_string will be loaded in cgi processing [08:45:48]execute_cgi json_proto POST (null) [08:45:48]execute_cgi path=json_proto method=POST [08:45:48]POST find Content-Length [08:45:48]Host: 172.17.49.196:8080 [08:45:48]Content-Length: 738 [08:45:48]Content-Type: application/json [08:45:48] [08:45:48]POST finish read [08:45:48]Found Content-Length = 738 [08:45:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164444", "tax_sys" : 0, "items" : [ { "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:48]execute_script... [08:45: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)164444", "tax_sys" : 0, "items" : [ { "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:48]POST & json_proto [08:45:48]process_json_proto [08:45:48]json parsed OK: [08:45:48]protocol is kg_v1.0 [08:45:48]action value=close_receipt [08:45:48]process_action close_receipt [08:45:48]cmd_close_receipt [08:45:48]MH_GetDate [08:45:48]Write to MH i2c: F0 00 00 60 52 A1 [08:45:48]Write i2c OK [08:45:48]MH_I2C_Read... [08:45:48]Read from MH i2c: F0 [08:45:48]MH_I2C_Read... [08:45:48]Read from MH i2c: F0 09 00 [08:45:48]MH_I2C_Read... [08:45:48]Read from MH i2c: F0 09 00 60 52 00 C9 5A 1B 67 BD 3B 11 67 BF [08:45:48]GetLastDocTimeStamp 1729845726 [08:45:48]current date 1729845961 [08:45:48]FM_GetShiftState [08:45:48]SAM_PROTO_GetShiftState [08:45:48]wFMCommunicate request_size=4 [08:45:48]MH_SAM_APDU [08:45:48]CAPDU: 80 13 01 00 [08:45:48]Write to MH i2c: E2 08 00 61 52 80 13 01 00 00 00 00 00 30 [08:45:48]Write i2c OK [08:45:48]MH_I2C_Read... [08:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:48]Read from MH i2c: E2 [08:45:48]MH_I2C_Read... [08:45:48]Read from MH i2c: E2 0E 00 [08:45:48]MH_I2C_Read... [08:45:48]Read from MH i2c: E2 0E 00 61 52 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 28 [08:45:48]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:45:48]wFMCommunicate OK [08:45:48]SAM_PROTO_GetShiftState done [08:45:48]FM_GetShiftState done [08:45:48]opened in 1729815177 [08:45:48]opened+sec_in_day 1729901577 [08:45:48]quantity*price = 13400 [08:45:48]sum+1 = 13401 [08:45:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 0.00 Безнал.: 134.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 31 25.10.2024 08:46 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50531 ФПД: 208508531562043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084601&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50531&fm=208508531562043&tin=02508201610067®Number=0000000000097022&sum=13400 0 [08:45:49]StoreToDocumentArchive [08:45:49]shift 493 fd 50531 [08:45:49]save to /storage/0493/doc_00050531 [08:45:49]save last doc name /storage/0493/doc_00050531 to /storage/kkm_last_doc_name [08:45:49]save OK [08:45:49]Clear old archive folders... [08:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=263 [08:45:49]tlvbuf is 002760C0 [08:45:49]SAM_PROTO_ClearQueue [08:45:49]wFMCommunicate request_size=4 [08:45:49]MH_SAM_APDU [08:45:49]CAPDU: 80 09 00 00 [08:45:49]Write to MH i2c: E2 08 00 6E 52 80 09 00 00 00 00 00 00 32 [08:45:49]Write i2c OK [08:45:49]MH_I2C_Read... [08:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:49]Read from MH i2c: E2 [08:45:49]MH_I2C_Read... [08:45:49]Read from MH i2c: E2 03 00 [08:45:49]MH_I2C_Read... [08:45:49]Read from MH i2c: E2 03 00 6E 52 00 90 00 34 [08:45:49]RAPDU: 90 00 [08:45:49]wFMCommunicate OK [08:45:49]SAM_PROTO_ClearQueue done [08:45:49]KKMCreateOFDPacket [08:45:49]OFDProtocolAddRootSTLVToBuf [08:45:49]FM_MakeSignedData [08:45:49]FM_MakeSignedData [08:45:49]SAM_PROTO_SignData [08:45:49]wFMCommunicate request_size=4 [08:45:49]MH_SAM_APDU [08:45:49]CAPDU: 80 0D 01 02 [08:45:49]Write to MH i2c: E2 08 00 6F 52 80 0D 01 02 00 00 00 00 3A [08:45:49]Write i2c OK [08:45:49]MH_I2C_Read... [08:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:49]Read from MH i2c: E2 [08:45:49]MH_I2C_Read... [08:45:49]Read from MH i2c: E2 03 00 [08:45:49]MH_I2C_Read... [08:45:49]Read from MH i2c: E2 03 00 6F 52 00 90 00 35 [08:45:49]RAPDU: 90 00 [08:45:49]wFMCommunicate OK [08:45:49]wFMCommunicate request_size=255 [08:45:49]MH_SAM_APDU [08:45:49]CAPDU: 80 0D 02 02 FA 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C9 5A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 [08:45:50]Write to MH i2c: E2 02 01 70 52 80 0D 02 02 FA 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C9 5A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 00 00 E9 [08:45:50]Write i2c OK [08:45:50]MH_I2C_Read... [08:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:50]Read from MH i2c: E2 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: E2 03 00 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: E2 03 00 70 52 00 90 00 36 [08:45:50]RAPDU: 90 00 [08:45:50]wFMCommunicate OK [08:45:50]wFMCommunicate request_size=22 [08:45:50]MH_SAM_APDU [08:45:50]CAPDU: 80 0D 02 02 11 04 04 00 63 C5 00 00 35 04 06 00 BD A3 2C F4 D6 3B [08:45:50]Write to MH i2c: E2 19 00 71 52 80 0D 02 02 11 00 04 04 00 63 C5 00 00 35 04 06 00 BD A3 2C F4 D6 3B 00 00 5F [08:45:50]Write i2c OK [08:45:50]MH_I2C_Read... [08:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:50]Read from MH i2c: E2 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: E2 03 00 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: E2 03 00 71 52 00 90 00 37 [08:45:50]RAPDU: 90 00 [08:45:50]wFMCommunicate OK [08:45:50]wFMCommunicate request_size=4 [08:45:50]MH_SAM_APDU [08:45:50]CAPDU: 80 0D 03 02 [08:45:50]Write to MH i2c: E2 08 00 72 52 80 0D 03 02 00 00 00 00 3F [08:45:50]Write i2c OK [08:45:50]MH_I2C_Read... [08:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:50]Read from MH i2c: E2 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: E2 0B 00 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: E2 0B 00 72 52 00 75 72 84 D7 99 B7 A1 03 90 00 76 [08:45:50]RAPDU: 75 72 84 D7 99 B7 A1 03 90 00 [08:45:50]wFMCommunicate OK [08:45:50]SAM_PROTO_SignData done [08:45:50]FM_MakeSignedData done [08:45:50]CreateOFDProtocolMessage [08:45:50]wFMCommunicate request_size=4 [08:45:50]MH_SAM_APDU [08:45:50]CAPDU: 80 11 00 00 [08:45:50]Write to MH i2c: E2 08 00 73 52 80 11 00 00 00 00 00 00 3F [08:45:50]Write i2c OK [08:45:50]MH_I2C_Read... [08:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:50]Read from MH i2c: E2 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: E2 17 00 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: E2 17 00 73 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 86 [08:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:45:50]wFMCommunicate OK [08:45:50]CreateOFDProtocolMessage done [08:45:50]OFDSenderStorePacket 50531 [08:45:50]StoreOFDPacket docnum=50531 [08:45:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1B 01 00 00 D0 19 13 01 5E E0 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C9 5A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 63 C5 00 00 35 04 06 00 BD A3 2C F4 D6 3B 75 72 84 D7 99 B7 A1 03 [08:45:50]CheckFolder [08:45:50]dirname=/storage/ofd_packets [08:45:50]CheckFolder done [08:45:50]ProducePacketName [08:45:50]name=ofd_packets/00050531 [08:45:50]NVStorageSaveData ofd_packets/00050531 [08:45:50]File name is /storage/ofd_packets/00050531 [08:45:50]Write 313 bytes [08:45:50]NVStorageSaveData done [08:45:50]OFDSenderStorePacket done [08:45:50]KKMCreateOFDPacket done [08:45:50]NVStorageSaveData kkm_last_timestamp [08:45:50]File name is /storage/kkm_last_timestamp [08:45:50]Write 4 bytes [08:45:50]NVStorageSaveData done [08:45:50]ExternCall_PrintAddStr [08:45:50]wPrintStart [08:45:50]Write to MH i2c: 01 00 00 74 52 C6 [08:45:50]Write i2c OK [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: 01 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: 01 07 00 [08:45:50]MH_I2C_Read... [08:45:50]Read from MH i2c: 01 07 00 74 52 00 00 00 00 00 FF 0F DB [08:45:50]RasterBufferAndPrint [08:45:50]line Счет N : (3)164444 [08:45:50]line ИНН: 02508201610067 [08:45:50]line Контрольно-Кассовый Чек [08:45:50]line ПРОДАЖА [08:45:50]line Товар: 48742078 [08:45:50]line Сигареты LD Silver [08:45:50]line 1.000 * 134.00 [08:45:50]line = 134.00 [08:45:50]line НДС 12% НСП 1% [08:45:50]line > о реализуемом товаре [08:45:50]line ИТОГО: 134.00 [08:45:50]line НСП 1% : 1.19 [08:45:50]line НДС 12% : 14.23 [08:45:50]line Наличными: 0.00 [08:45:50]line Безнал.: 134.00 [08:45:50]line Место: АЗС № 80 "Партнер Нефть" [08:45:50]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:45:50]line СНО: Общий режим [08:45:50]line Чек 31 25.10.2024 08:46 [08:45:50]line Смена: 493 ФФД: 1.0 [08:45:50]line ЗНМ: 0300000090 [08:45:50]line РНМ: 0000000000097022 [08:45:50]line Версия ККМ: 001 [08:45:50]line Платежная система: Mbank [08:45:50]line ФМ: 0000000000875000 [08:45:50]line ФД: 50531 [08:45:50]line ФПД: 208508531562043 [08:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084601&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50531&fm=208508531562043&tin=02508201610067®Number=0000000000097022&sum=13400 [08:45:50]line 0 [08:45:50]OFD Sender: Processing packet 50531 [packets to send 7, broken 6] [08:45:50]ProducePacketName [08:45:50]name=ofd_packets/00050531 [08:45:50]OFD Sender: To server: pG, [08:45:50]CommunicateWithHost lk.salyk.kg:30040 [08:45:50]ConnectInit lk.salyk.kg [08:45:50]written 0, free lines is 4095 [08:45:50]Connected sock=10 [08:45:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1B 01 00 00 D0 19 13 01 5E E0 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C9 5A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 63 C5 00 00 35 04 06 00 BD A3 2C F4 D6 3B 75 72 84 D7 99 B7 A1 03 [08:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 34 34 47 00 23 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 63 C5 00 00 F4 03 04 00 5B 06 1B 67 B6 04 01 00 00 EC 53 7B 27 26 D8 E5 8C [08:45:51]CommunicateWithHost err = 0 [08:45:51]CheckOFDResponse [08:45:51]1017 (14) - 77093643461234 [08:45:51]1041 (16) - 0000000000875000 [08:45:51]1040 (4) - 50531 [08:45:51]1012 (4) - 25.10.2024 02:45 [08:45:51]1206 (1) - 0 [08:45:51]OFD Sender: Remove packet 50531 [08:45:51]ProducePacketName [08:45:51]name=ofd_packets/00050531 [08:45:51]NVStorageDeleteData [08:45:51]Write to MH i2c: 01 00 00 9D 52 EF [08:45:51]Write i2c OK [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: 01 [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: 01 07 00 [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: 01 07 00 9D 52 00 00 00 00 00 10 0D 13 [08:45:51]RasterBufferAndPrint [08:45:51]line [08:45:51]line [08:45:51]line [08:45:51]line [08:45:51]line [08:45:51]written 0, free lines is 3351 [08:45:51]process_action close_receipt done [08:45:51]requested_data is exist [08:45:51]produce_requested_data [08:45:51]requested_item fm.sn is exist - process it [08:45:51]wFMCommunicate request_size=4 [08:45:51]MH_SAM_APDU [08:45:51]CAPDU: 80 11 00 00 [08:45:51]Write to MH i2c: E2 08 00 A4 52 80 11 00 00 00 00 00 00 70 [08:45:51]Write i2c OK [08:45:51]MH_I2C_Read... [08:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:51]Read from MH i2c: E2 [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: E2 17 00 [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: E2 17 00 A4 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B7 [08:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:45:51]wFMCommunicate OK [08:45:51]requested_item fd.num is exist - process it [08:45:51]SAM_PROTO_GetFieldsCounters [08:45:51]wFMCommunicate request_size=4 [08:45:51]MH_SAM_APDU [08:45:51]CAPDU: 80 13 00 00 [08:45:51]Write to MH i2c: E2 08 00 A5 52 80 13 00 00 00 00 00 00 73 [08:45:51]Write i2c OK [08:45:51]MH_I2C_Read... [08:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:51]Read from MH i2c: E2 [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: E2 62 00 [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: E2 62 00 A5 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 63 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [08:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 63 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:51]wFMCommunicate OK [08:45:51]SAM_PROTO_GetFieldsCounters done [08:45:51]requested_item shift.num is exist - process it [08:45:51]requested_item shift.opened is exist - process it [08:45:51]req_shift_opened [08:45:51]FM_GetShiftState [08:45:51]SAM_PROTO_GetShiftState [08:45:51]wFMCommunicate request_size=4 [08:45:51]MH_SAM_APDU [08:45:51]CAPDU: 80 13 01 00 [08:45:51]Write to MH i2c: E2 08 00 A6 52 80 13 01 00 00 00 00 00 75 [08:45:51]Write i2c OK [08:45:51]MH_I2C_Read... [08:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:51]Read from MH i2c: E2 [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: E2 0E 00 [08:45:51]MH_I2C_Read... [08:45:51]Read from MH i2c: E2 0E 00 A6 52 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6D [08:45:51]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:45:51]wFMCommunicate OK [08:45:51]SAM_PROTO_GetShiftState done [08:45:51]FM_GetShiftState done [08:45:51]req_shift_opened done [08:45:51]requested_item shift.open_date is exist - process it [08:45:51]req_shift_open_date [08:45:51]req_shift_open_date done [08:45:51]produce_requested_data done [08:45:51]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50531,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:45:51]process_action_free close_receipt [08:45:51]json_value_free [08:45:51]json_value_free done [08:45:51]process_json_proto returns [08:45:51]Send response to host [08:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50531,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:45:51]free response buf [08:45:51]execute_script done [08:45:51]execute_script returns [08:45:51]free content buf [08:45:51]Sock 9.Close socket [08:45:51]Sock 9.Thread stoped [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:41]accept exits with 7 [08:46:41]New connection [08:46:41]New thread 3067305316 created [08:46:41]Thread 3067161956 joined [08:46:41]Waiting for new connection... [08:46:41] Sock 7.Parse request [08:46:41]Sock 7.Check first char [08:46:41]Sock 7.First char is OK [08:46:41]request: POST /json_proto HTTP/1.0 [08:46:41]Method: POST [08:46:41]URL: /json_proto [08:46:41]Method is POST - this is cgi request [08:46:41]url: /json_proto [08:46:41]query_string will be loaded in cgi processing [08:46:41]execute_cgi json_proto POST (null) [08:46:41]execute_cgi path=json_proto method=POST [08:46:41]POST find Content-Length [08:46:41]Host: 172.17.49.196:8080 [08:46:41]Content-Length: 644 [08:46:41]Content-Type: application/json [08:46:41] [08:46:41]POST finish read [08:46:41]Found Content-Length = 644 [08:46:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164445", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:41]execute_script... [08:46: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)164445", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:41]POST & json_proto [08:46:41]process_json_proto [08:46:41]json parsed OK: [08:46:41]protocol is kg_v1.0 [08:46:41]action value=close_receipt [08:46:41]process_action close_receipt [08:46:41]cmd_close_receipt [08:46:41]MH_GetDate [08:46:41]Write to MH i2c: F0 00 00 A7 52 E8 [08:46:41]Write i2c OK [08:46:41]MH_I2C_Read... [08:46:41]Read from MH i2c: F0 [08:46:41]MH_I2C_Read... [08:46:41]Read from MH i2c: F0 09 00 [08:46:41]MH_I2C_Read... [08:46:41]Read from MH i2c: F0 09 00 A7 52 00 FF 5A 1B 67 BD 3B 11 67 3C [08:46:41]GetLastDocTimeStamp 1729845961 [08:46:41]current date 1729846015 [08:46:41]FM_GetShiftState [08:46:41]SAM_PROTO_GetShiftState [08:46:41]wFMCommunicate request_size=4 [08:46:41]MH_SAM_APDU [08:46:41]CAPDU: 80 13 01 00 [08:46:41]Write to MH i2c: E2 08 00 A8 52 80 13 01 00 00 00 00 00 77 [08:46:41]Write i2c OK [08:46:41]MH_I2C_Read... [08:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:41]Read from MH i2c: E2 [08:46:41]MH_I2C_Read... [08:46:41]Read from MH i2c: E2 0E 00 [08:46:41]MH_I2C_Read... [08:46:41]Read from MH i2c: E2 0E 00 A8 52 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6F [08:46:41]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:46:41]wFMCommunicate OK [08:46:41]SAM_PROTO_GetShiftState done [08:46:41]FM_GetShiftState done [08:46:41]opened in 1729815177 [08:46:41]opened+sec_in_day 1729901577 [08:46:41]quantity*price = 4900 [08:46:41]sum+1 = 4901 [08:46:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 32 25.10.2024 08:46 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50532 ФПД: 145505651276741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084655&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50532&fm=145505651276741&tin=02508201610067®Number=0000000000097022&sum=4900 0 [08:46:43]StoreToDocumentArchive [08:46:43]shift 493 fd 50532 [08:46:43]save to /storage/0493/doc_00050532 [08:46:43]save last doc name /storage/0493/doc_00050532 to /storage/kkm_last_doc_name [08:46:43]save OK [08:46:43]Clear old archive folders... [08:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:46:43]tlvbuf is 002B0A20 [08:46:43]SAM_PROTO_ClearQueue [08:46:43]wFMCommunicate request_size=4 [08:46:43]MH_SAM_APDU [08:46:43]CAPDU: 80 09 00 00 [08:46:43]Write to MH i2c: E2 08 00 B5 52 80 09 00 00 00 00 00 00 79 [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:43]Read from MH i2c: E2 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 03 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 03 00 B5 52 00 90 00 7B [08:46:43]RAPDU: 90 00 [08:46:43]wFMCommunicate OK [08:46:43]SAM_PROTO_ClearQueue done [08:46:43]KKMCreateOFDPacket [08:46:43]OFDProtocolAddRootSTLVToBuf [08:46:43]FM_MakeSignedData [08:46:43]FM_MakeSignedData [08:46:43]SAM_PROTO_SignData [08:46:43]wFMCommunicate request_size=4 [08:46:43]MH_SAM_APDU [08:46:43]CAPDU: 80 0D 01 02 [08:46:43]Write to MH i2c: E2 08 00 B6 52 80 0D 01 02 00 00 00 00 81 [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:43]Read from MH i2c: E2 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 03 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 03 00 B6 52 00 90 00 7C [08:46:43]RAPDU: 90 00 [08:46:43]wFMCommunicate OK [08:46:43]wFMCommunicate request_size=255 [08:46:43]MH_SAM_APDU [08:46:43]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 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 20 00 00 00 F4 03 04 00 FF 5A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [08:46:43]Write to MH i2c: E2 02 01 B7 52 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 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 20 00 00 00 F4 03 04 00 FF 5A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 E6 [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:43]Read from MH i2c: E2 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 03 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 03 00 B7 52 00 90 00 7D [08:46:43]RAPDU: 90 00 [08:46:43]wFMCommunicate OK [08:46:43]wFMCommunicate request_size=34 [08:46:43]MH_SAM_APDU [08:46:43]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C5 00 00 35 04 06 00 84 56 2C A8 3B C5 [08:46:43]Write to MH i2c: E2 25 00 B8 52 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C5 00 00 35 04 06 00 84 56 2C A8 3B C5 00 00 10 [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:43]Read from MH i2c: E2 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 03 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 03 00 B8 52 00 90 00 7E [08:46:43]RAPDU: 90 00 [08:46:43]wFMCommunicate OK [08:46:43]wFMCommunicate request_size=4 [08:46:43]MH_SAM_APDU [08:46:43]CAPDU: 80 0D 03 02 [08:46:43]Write to MH i2c: E2 08 00 B9 52 80 0D 03 02 00 00 00 00 86 [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:43]Read from MH i2c: E2 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 0B 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 0B 00 B9 52 00 AB 53 3A 50 7E C0 BE 7C 90 00 87 [08:46:43]RAPDU: AB 53 3A 50 7E C0 BE 7C 90 00 [08:46:43]wFMCommunicate OK [08:46:43]SAM_PROTO_SignData done [08:46:43]FM_MakeSignedData done [08:46:43]CreateOFDProtocolMessage [08:46:43]wFMCommunicate request_size=4 [08:46:43]MH_SAM_APDU [08:46:43]CAPDU: 80 11 00 00 [08:46:43]Write to MH i2c: E2 08 00 BA 52 80 11 00 00 00 00 00 00 86 [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:43]Read from MH i2c: E2 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 17 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 17 00 BA 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CD [08:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:46:43]wFMCommunicate OK [08:46:43]CreateOFDProtocolMessage done [08:46:43]OFDSenderStorePacket 50532 [08:46:43]StoreOFDPacket docnum=50532 [08:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 9E AD 1F 01 E6 FF 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 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 20 00 00 00 F4 03 04 00 FF 5A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C5 00 00 35 04 06 00 84 56 2C A8 3B C5 AB 53 3A 50 7E C0 BE 7C [08:46:43]CheckFolder [08:46:43]dirname=/storage/ofd_packets [08:46:43]CheckFolder done [08:46:43]ProducePacketName [08:46:43]name=ofd_packets/00050532 [08:46:43]NVStorageSaveData ofd_packets/00050532 [08:46:43]File name is /storage/ofd_packets/00050532 [08:46:43]Write 325 bytes [08:46:43]NVStorageSaveData done [08:46:43]OFDSenderStorePacket done [08:46:43]KKMCreateOFDPacket done [08:46:43]NVStorageSaveData kkm_last_timestamp [08:46:43]File name is /storage/kkm_last_timestamp [08:46:43]Write 4 bytes [08:46:43]NVStorageSaveData done [08:46:43]ExternCall_PrintAddStr [08:46:43]wPrintStart [08:46:43]Write to MH i2c: 01 00 00 BB 52 0D [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: 01 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: 01 07 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: 01 07 00 BB 52 00 00 00 00 00 FF 0F 22 [08:46:43]RasterBufferAndPrint [08:46:43]line Счет N : (3)164445 [08:46:43]line ИНН: 02508201610067 [08:46:43]line Контрольно-Кассовый Чек [08:46:43]line ПРОДАЖА [08:46:43]line Товар: 4700000310326 [08:46:43]line Вода Адыгене 1л б/г [08:46:43]line 1.000 * 49.00 [08:46:43]line = 49.00 [08:46:43]line НДС 12% НСП 1% [08:46:43]line > о реализуемом товаре [08:46:43]line ИТОГО: 49.00 [08:46:43]line НСП 1% : 0.43 [08:46:43]line НДС 12% : 5.20 [08:46:43]line Наличными: 49.00 [08:46:43]line Безнал.: 0.00 [08:46:43]line Место: АЗС № 80 "Партнер Нефть" [08:46:43]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:46:43]line СНО: Общий режим [08:46:43]line Чек 32 25.10.2024 08:46 [08:46:43]line Смена: 493 ФФД: 1.0 [08:46:43]line ЗНМ: 0300000090 [08:46:43]line РНМ: 0000000000097022 [08:46:43]line Версия ККМ: 001 [08:46:43]line ФМ: 0000000000875000 [08:46:43]line ФД: 50532 [08:46:43]line ФПД: 145505651276741 [08:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T084655&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50532&fm=145505651276741&tin=02508201610067®Number=0000000000097022&sum=4900 [08:46:43]line 0 [08:46:43]written 0, free lines is 4095 [08:46:43]OFD Sender: Processing packet 50532 [packets to send 7, broken 6] [08:46:43]ProducePacketName [08:46:43]name=ofd_packets/00050532 [08:46:43]OFD Sender: To server: pG, [08:46:43]CommunicateWithHost lk.salyk.kg:30040 [08:46:43]ConnectInit lk.salyk.kg [08:46:44]Connected sock=10 [08:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 9E AD 1F 01 E6 FF 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 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 20 00 00 00 F4 03 04 00 FF 5A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C5 00 00 35 04 06 00 84 56 2C A8 3B C5 AB 53 3A 50 7E C0 BE 7C [08:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 B3 6D 47 00 F7 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 64 C5 00 00 F4 03 04 00 90 06 1B 67 B6 04 01 00 00 2D 3F 5A 19 D5 CC 0D 9A [08:46:44]CommunicateWithHost err = 0 [08:46:44]CheckOFDResponse [08:46:44]1017 (14) - 77093643461234 [08:46:44]1041 (16) - 0000000000875000 [08:46:44]1040 (4) - 50532 [08:46:44]1012 (4) - 25.10.2024 02:46 [08:46:44]1206 (1) - 0 [08:46:44]OFD Sender: Remove packet 50532 [08:46:44]ProducePacketName [08:46:44]name=ofd_packets/00050532 [08:46:44]NVStorageDeleteData [08:46:44]Write to MH i2c: 01 00 00 E3 52 35 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 E3 52 00 00 00 00 00 26 0D 6F [08:46:44]RasterBufferAndPrint [08:46:44]line [08:46:44]line [08:46:44]line [08:46:44]line [08:46:44]line [08:46:44]written 0, free lines is 3375 [08:46:44]process_action close_receipt done [08:46:44]requested_data is exist [08:46:44]produce_requested_data [08:46:44]requested_item fm.sn is exist - process it [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 11 00 00 [08:46:44]Write to MH i2c: E2 08 00 EA 52 80 11 00 00 00 00 00 00 B6 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 17 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 17 00 EA 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FD [08:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:46:44]wFMCommunicate OK [08:46:44]requested_item fd.num is exist - process it [08:46:44]SAM_PROTO_GetFieldsCounters [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 13 00 00 [08:46:44]Write to MH i2c: E2 08 00 EB 52 80 13 00 00 00 00 00 00 B9 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 62 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 62 00 EB 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 64 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [08:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 64 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:44]wFMCommunicate OK [08:46:44]SAM_PROTO_GetFieldsCounters done [08:46:44]requested_item shift.num is exist - process it [08:46:44]requested_item shift.opened is exist - process it [08:46:44]req_shift_opened [08:46:44]FM_GetShiftState [08:46:44]SAM_PROTO_GetShiftState [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 13 01 00 [08:46:44]Write to MH i2c: E2 08 00 EC 52 80 13 01 00 00 00 00 00 BB [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 0E 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 0E 00 EC 52 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B3 [08:46:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:46:44]wFMCommunicate OK [08:46:44]SAM_PROTO_GetShiftState done [08:46:44]FM_GetShiftState done [08:46:44]req_shift_opened done [08:46:44]requested_item shift.open_date is exist - process it [08:46:44]req_shift_open_date [08:46:44]req_shift_open_date done [08:46:44]produce_requested_data done [08:46:44]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50532,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:46:44]process_action_free close_receipt [08:46:44]json_value_free [08:46:44]json_value_free done [08:46:44]process_json_proto returns [08:46:44]Send response to host [08:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50532,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:46:44]free response buf [08:46:44]execute_script done [08:46:44]execute_script returns [08:46:44]free content buf [08:46:44]Sock 7.Close socket [08:46:44]Sock 7.Thread stoped [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:04]accept exits with 9 [08:53:04]New connection [08:53:04]New thread 3067161956 created [08:53:04]Thread 3067305316 joined [08:53:04]Waiting for new connection... [08:53:04] Sock 9.Parse request [08:53:04]Sock 9.Check first char [08:53:04]Sock 9.First char is OK [08:53:04]request: POST /json_proto HTTP/1.0 [08:53:04]Method: POST [08:53:04]URL: /json_proto [08:53:04]Method is POST - this is cgi request [08:53:04]url: /json_proto [08:53:04]query_string will be loaded in cgi processing [08:53:04]execute_cgi json_proto POST (null) [08:53:04]execute_cgi path=json_proto method=POST [08:53:04]POST find Content-Length [08:53:04]Host: 172.17.49.196:8080 [08:53:04]Content-Length: 993 [08:53:04]Content-Type: application/json [08:53:04] [08:53:04]POST finish read [08:53:04]Found Content-Length = 993 [08:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164446", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:04]execute_script... [08:53:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164446", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:04]POST & json_proto [08:53:04]process_json_proto [08:53:04]json parsed OK: [08:53:04]protocol is kg_v1.0 [08:53:04]action value=close_receipt [08:53:04]process_action close_receipt [08:53:04]cmd_close_receipt [08:53:04]MH_GetDate [08:53:04]Write to MH i2c: F0 00 00 ED 52 2E [08:53:04]Write i2c OK [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: F0 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: F0 09 00 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: F0 09 00 ED 52 00 7E 5C 1B 67 BD 3B 11 67 03 [08:53:04]GetLastDocTimeStamp 1729846015 [08:53:04]current date 1729846398 [08:53:04]FM_GetShiftState [08:53:04]SAM_PROTO_GetShiftState [08:53:04]wFMCommunicate request_size=4 [08:53:04]MH_SAM_APDU [08:53:04]CAPDU: 80 13 01 00 [08:53:04]Write to MH i2c: E2 08 00 EE 52 80 13 01 00 00 00 00 00 BD [08:53:04]Write i2c OK [08:53:04]MH_I2C_Read... [08:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:04]Read from MH i2c: E2 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 0E 00 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 0E 00 EE 52 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B5 [08:53:04]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:53:04]wFMCommunicate OK [08:53:04]SAM_PROTO_GetShiftState done [08:53:04]FM_GetShiftState done [08:53:04]opened in 1729815177 [08:53:04]opened+sec_in_day 1729901577 [08:53:04]quantity*price = 16000 [08:53:04]sum+1 = 16001 [08:53:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039440011 Чай черный 200 мл 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.13 НДС 12% : 25.49 Наличными: 0.00 Безнал.: 240.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 33 25.10.2024 08:53 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50533 ФПД: 211370665954914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T085318&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50533&fm=211370665954914&tin=02508201610067®Number=0000000000097022&sum=24000 0 [08:53:06]StoreToDocumentArchive [08:53:06]shift 493 fd 50533 [08:53:06]save to /storage/0493/doc_00050533 [08:53:06]save last doc name /storage/0493/doc_00050533 to /storage/kkm_last_doc_name [08:53:06]save OK [08:53:06]Clear old archive folders... [08:53:06]ProcessDocumentItem done err = 0, tmpTLVsize=374 [08:53:06]tlvbuf is 001F8F70 [08:53:06]SAM_PROTO_ClearQueue [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 09 00 00 [08:53:06]Write to MH i2c: E2 08 00 FB 52 80 09 00 00 00 00 00 00 BF [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 03 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 03 00 FB 52 00 90 00 C1 [08:53:06]RAPDU: 90 00 [08:53:06]wFMCommunicate OK [08:53:06]SAM_PROTO_ClearQueue done [08:53:06]KKMCreateOFDPacket [08:53:06]OFDProtocolAddRootSTLVToBuf [08:53:06]FM_MakeSignedData [08:53:06]FM_MakeSignedData [08:53:06]SAM_PROTO_SignData [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 0D 01 02 [08:53:06]Write to MH i2c: E2 08 00 FC 52 80 0D 01 02 00 00 00 00 C7 [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 03 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 03 00 FC 52 00 90 00 C2 [08:53:06]RAPDU: 90 00 [08:53:06]wFMCommunicate OK [08:53:06]wFMCommunicate request_size=255 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 0D 02 02 FA 03 00 76 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 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 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 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 [08:53:06]Write to MH i2c: E2 02 01 FD 52 80 0D 02 02 FA 00 03 00 76 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 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 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 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 00 00 E2 [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 03 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 03 00 FD 52 00 90 00 C3 [08:53:06]RAPDU: 90 00 [08:53:06]wFMCommunicate OK [08:53:06]wFMCommunicate request_size=133 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 7E 5C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C5 00 00 35 04 06 00 C0 3D 91 75 CE 62 [08:53:06]Write to MH i2c: E2 88 00 FE 52 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 7E 5C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C5 00 00 35 04 06 00 C0 3D 91 75 CE 62 00 00 C9 [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 03 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 03 00 FE 52 00 90 00 C4 [08:53:06]RAPDU: 90 00 [08:53:06]wFMCommunicate OK [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 0D 03 02 [08:53:06]Write to MH i2c: E2 08 00 FF 52 80 0D 03 02 00 00 00 00 CC [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0B 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0B 00 FF 52 00 5E F6 C8 C4 A3 1F DE B3 90 00 00 [08:53:06]RAPDU: 5E F6 C8 C4 A3 1F DE B3 90 00 [08:53:06]wFMCommunicate OK [08:53:06]SAM_PROTO_SignData done [08:53:06]FM_MakeSignedData done [08:53:06]CreateOFDProtocolMessage [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 11 00 00 [08:53:06]Write to MH i2c: E2 08 00 00 53 80 11 00 00 00 00 00 00 CD [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 17 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 17 00 00 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 14 [08:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:53:06]wFMCommunicate OK [08:53:06]CreateOFDProtocolMessage done [08:53:06]OFDSenderStorePacket 50533 [08:53:06]StoreOFDPacket docnum=50533 [08:53:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8A 01 00 00 58 5C 82 01 FF 9E 5A 03 01 00 03 00 76 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 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 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 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 7E 5C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C5 00 00 35 04 06 00 C0 3D 91 75 CE 62 5E F6 C8 C4 A3 1F DE B3 [08:53:06]CheckFolder [08:53:06]dirname=/storage/ofd_packets [08:53:06]CheckFolder done [08:53:06]ProducePacketName [08:53:06]name=ofd_packets/00050533 [08:53:06]NVStorageSaveData ofd_packets/00050533 [08:53:06]File name is /storage/ofd_packets/00050533 [08:53:06]Write 424 bytes [08:53:06]NVStorageSaveData done [08:53:06]OFDSenderStorePacket done [08:53:06]KKMCreateOFDPacket done [08:53:06]NVStorageSaveData kkm_last_timestamp [08:53:06]File name is /storage/kkm_last_timestamp [08:53:06]Write 4 bytes [08:53:06]NVStorageSaveData done [08:53:06]ExternCall_PrintAddStr [08:53:06]wPrintStart [08:53:06]Write to MH i2c: 01 00 00 01 53 54 [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: 01 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: 01 07 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: 01 07 00 01 53 00 00 00 00 00 FF 0F 69 [08:53:06]RasterBufferAndPrint [08:53:06]line Счет N : (3)164446 [08:53:06]line ИНН: 02508201610067 [08:53:06]line Контрольно-Кассовый Чек [08:53:06]line ПРОДАЖА [08:53:07]line Товар: 48741958 [08:53:07]line Сигареты Parliament Aqua Blue [08:53:07]line 1.000 * 160.00 [08:53:07]line = 160.00 [08:53:07]line НДС 12% НСП 1% [08:53:07]line > о реализуемом товаре [08:53:07]line Товар: 2000039440011 [08:53:07]line Чай черный 200 мл [08:53:07]line 2.000 * 40.00 [08:53:07]line = 80.00 [08:53:07]line НДС 12% НСП 1% [08:53:07]line > о реализуемом товаре [08:53:07]line ИТОГО: 240.00 [08:53:07]line НСП 1% : 2.13 [08:53:07]line НДС 12% : 25.49 [08:53:07]line Наличными: 0.00 [08:53:07]line Безнал.: 240.00 [08:53:07]line Место: АЗС № 80 "Партнер Нефть" [08:53:07]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [08:53:07]line СНО: Общий режим [08:53:07]line Чек 33 25.10.2024 08:53 [08:53:07]line Смена: 493 ФФД: 1.0 [08:53:07]line ЗНМ: 0300000090 [08:53:07]line РНМ: 0000000000097022 [08:53:07]line Версия ККМ: 001 [08:53:07]line Платежная система: Mbank [08:53:07]line ФМ: 0000000000875000 [08:53:07]line ФД: 50533 [08:53:07]line ФПД: 211370665954914 [08:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T085318&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50533&fm=211370665954914&tin=02508201610067®Number=0000000000097022&sum=24000 [08:53:07]line 0 [08:53:07]OFD Sender: Processing packet 50533 [packets to send 7, broken 6] [08:53:07]ProducePacketName [08:53:07]name=ofd_packets/00050533 [08:53:07]OFD Sender: To server: pG, [08:53:07]CommunicateWithHost lk.salyk.kg:30040 [08:53:07]ConnectInit lk.salyk.kg [08:53:07]written 0, free lines is 4095 [08:53:07]Connected sock=10 [08:53:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8A 01 00 00 58 5C 82 01 FF 9E 5A 03 01 00 03 00 76 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 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 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 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 7E 5C 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C5 00 00 35 04 06 00 C0 3D 91 75 CE 62 5E F6 C8 C4 A3 1F DE B3 [08:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 09 E4 47 00 5D 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 65 C5 00 00 F4 03 04 00 0F 08 1B 67 B6 04 01 00 00 77 1D D1 F7 F3 73 2A CB [08:53:07]CommunicateWithHost err = 0 [08:53:07]CheckOFDResponse [08:53:07]1017 (14) - 77093643461234 [08:53:07]1041 (16) - 0000000000875000 [08:53:07]1040 (4) - 50533 [08:53:07]1012 (4) - 25.10.2024 02:53 [08:53:07]1206 (1) - 0 [08:53:07]OFD Sender: Remove packet 50533 [08:53:07]ProducePacketName [08:53:07]name=ofd_packets/00050533 [08:53:07]NVStorageDeleteData [08:53:07]Write to MH i2c: 01 00 00 31 53 84 [08:53:07]Write i2c OK [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: 01 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: 01 07 00 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: 01 07 00 31 53 00 00 00 00 00 C5 0C 5C [08:53:07]RasterBufferAndPrint [08:53:07]line [08:53:07]line [08:53:07]line [08:53:07]line [08:53:07]line [08:53:07]written 0, free lines is 3275 [08:53:07]process_action close_receipt done [08:53:07]requested_data is exist [08:53:07]produce_requested_data [08:53:07]requested_item fm.sn is exist - process it [08:53:07]wFMCommunicate request_size=4 [08:53:07]MH_SAM_APDU [08:53:07]CAPDU: 80 11 00 00 [08:53:07]Write to MH i2c: E2 08 00 38 53 80 11 00 00 00 00 00 00 05 [08:53:07]Write i2c OK [08:53:07]MH_I2C_Read... [08:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:07]Read from MH i2c: E2 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 17 00 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 17 00 38 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4C [08:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [08:53:07]wFMCommunicate OK [08:53:07]requested_item fd.num is exist - process it [08:53:07]SAM_PROTO_GetFieldsCounters [08:53:07]wFMCommunicate request_size=4 [08:53:07]MH_SAM_APDU [08:53:07]CAPDU: 80 13 00 00 [08:53:07]Write to MH i2c: E2 08 00 39 53 80 13 00 00 00 00 00 00 08 [08:53:07]Write i2c OK [08:53:07]MH_I2C_Read... [08:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:07]Read from MH i2c: E2 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 62 00 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 62 00 39 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 65 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [08:53:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 65 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:07]wFMCommunicate OK [08:53:07]SAM_PROTO_GetFieldsCounters done [08:53:07]requested_item shift.num is exist - process it [08:53:07]requested_item shift.opened is exist - process it [08:53:07]req_shift_opened [08:53:07]FM_GetShiftState [08:53:07]SAM_PROTO_GetShiftState [08:53:07]wFMCommunicate request_size=4 [08:53:07]MH_SAM_APDU [08:53:07]CAPDU: 80 13 01 00 [08:53:07]Write to MH i2c: E2 08 00 3A 53 80 13 01 00 00 00 00 00 0A [08:53:07]Write i2c OK [08:53:07]MH_I2C_Read... [08:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:07]Read from MH i2c: E2 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 0E 00 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 0E 00 3A 53 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 02 [08:53:07]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [08:53:07]wFMCommunicate OK [08:53:07]SAM_PROTO_GetShiftState done [08:53:07]FM_GetShiftState done [08:53:07]req_shift_opened done [08:53:07]requested_item shift.open_date is exist - process it [08:53:07]req_shift_open_date [08:53:07]req_shift_open_date done [08:53:07]produce_requested_data done [08:53:07]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50533,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [08:53:07]process_action_free close_receipt [08:53:07]json_value_free [08:53:07]json_value_free done [08:53:07]process_json_proto returns [08:53:07]Send response to host [08:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50533,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [08:53:07]free response buf [08:53:07]execute_script done [08:53:07]execute_script returns [08:53:07]free content buf [08:53:07]Sock 9.Close socket [08:53:07]Sock 9.Thread stoped [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:51]accept exits with 7 [09:08:51]New connection [09:08:51]New thread 3067305316 created [09:08:51]Thread 3067161956 joined [09:08:51]Waiting for new connection... [09:08:51] Sock 7.Parse request [09:08:51]Sock 7.Check first char [09:08:51]Sock 7.First char is OK [09:08:51]request: POST /json_proto HTTP/1.0 [09:08:51]Method: POST [09:08:51]URL: /json_proto [09:08:51]Method is POST - this is cgi request [09:08:51]url: /json_proto [09:08:51]query_string will be loaded in cgi processing [09:08:51]execute_cgi json_proto POST (null) [09:08:51]execute_cgi path=json_proto method=POST [09:08:51]POST find Content-Length [09:08:51]Host: 172.17.49.196:8080 [09:08:51]Content-Length: 630 [09:08:51]Content-Type: application/json [09:08:51] [09:08:51]POST finish read [09:08:51]Found Content-Length = 630 [09:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164447", "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" ] } } [09:08:51]execute_script... [09:08:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164447", "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" ] } } [09:08:51]POST & json_proto [09:08:51]process_json_proto [09:08:51]json parsed OK: [09:08:51]protocol is kg_v1.0 [09:08:51]action value=close_receipt [09:08:51]process_action close_receipt [09:08:51]cmd_close_receipt [09:08:51]MH_GetDate [09:08:51]Write to MH i2c: F0 00 00 3B 53 7D [09:08:51]Write i2c OK [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 09 00 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: F0 09 00 3B 53 00 30 60 1B 67 BD 3B 11 67 08 [09:08:51]GetLastDocTimeStamp 1729846398 [09:08:51]current date 1729847344 [09:08:51]FM_GetShiftState [09:08:51]SAM_PROTO_GetShiftState [09:08:51]wFMCommunicate request_size=4 [09:08:51]MH_SAM_APDU [09:08:51]CAPDU: 80 13 01 00 [09:08:51]Write to MH i2c: E2 08 00 3C 53 80 13 01 00 00 00 00 00 0C [09:08:51]Write i2c OK [09:08:51]MH_I2C_Read... [09:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:51]Read from MH i2c: E2 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: E2 0E 00 [09:08:51]MH_I2C_Read... [09:08:51]Read from MH i2c: E2 0E 00 3C 53 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 04 [09:08:51]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:08:51]wFMCommunicate OK [09:08:51]SAM_PROTO_GetShiftState done [09:08:51]FM_GetShiftState done [09:08:51]opened in 1729815177 [09:08:51]opened+sec_in_day 1729901577 [09:08:51]quantity*price = 5000 [09:08:51]sum+1 = 5001 [09:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 34 25.10.2024 09:09 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50534 ФПД: 1513030302394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T090905&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50534&fm=1513030302394&tin=02508201610067®Number=0000000000097022&sum=5000 0 [09:08:52]StoreToDocumentArchive [09:08:52]shift 493 fd 50534 [09:08:52]save to /storage/0493/doc_00050534 [09:08:52]save last doc name /storage/0493/doc_00050534 to /storage/kkm_last_doc_name [09:08:52]save OK [09:08:52]Clear old archive folders... [09:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=269 [09:08:52]tlvbuf is 00236490 [09:08:52]SAM_PROTO_ClearQueue [09:08:52]wFMCommunicate request_size=4 [09:08:52]MH_SAM_APDU [09:08:52]CAPDU: 80 09 00 00 [09:08:52]Write to MH i2c: E2 08 00 49 53 80 09 00 00 00 00 00 00 0E [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:52]Read from MH i2c: E2 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 03 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 03 00 49 53 00 90 00 10 [09:08:52]RAPDU: 90 00 [09:08:52]wFMCommunicate OK [09:08:52]SAM_PROTO_ClearQueue done [09:08:52]KKMCreateOFDPacket [09:08:52]OFDProtocolAddRootSTLVToBuf [09:08:52]FM_MakeSignedData [09:08:52]FM_MakeSignedData [09:08:52]SAM_PROTO_SignData [09:08:52]wFMCommunicate request_size=4 [09:08:52]MH_SAM_APDU [09:08:52]CAPDU: 80 0D 01 02 [09:08:52]Write to MH i2c: E2 08 00 4A 53 80 0D 01 02 00 00 00 00 16 [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 4A 53 00 90 00 11 [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=255 [09:08:53]MH_SAM_APDU [09:08:53]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 31 60 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [09:08:53]Write to MH i2c: E2 02 01 4B 53 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 31 60 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 4B [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 4B 53 00 90 00 12 [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=28 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 02 02 17 37 35 30 30 30 10 04 04 00 66 C5 00 00 35 04 06 00 01 60 47 A2 3A BA [09:08:53]Write to MH i2c: E2 1F 00 4C 53 80 0D 02 02 17 00 37 35 30 30 30 10 04 04 00 66 C5 00 00 35 04 06 00 01 60 47 A2 3A BA 00 00 03 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 4C 53 00 90 00 13 [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 03 02 [09:08:53]Write to MH i2c: E2 08 00 4D 53 80 0D 03 02 00 00 00 00 1B [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0B 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0B 00 4D 53 00 65 CB 39 C8 F5 91 F8 82 90 00 4D [09:08:53]RAPDU: 65 CB 39 C8 F5 91 F8 82 90 00 [09:08:53]wFMCommunicate OK [09:08:53]SAM_PROTO_SignData done [09:08:53]FM_MakeSignedData done [09:08:53]CreateOFDProtocolMessage [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 11 00 00 [09:08:53]Write to MH i2c: E2 08 00 4E 53 80 11 00 00 00 00 00 00 1B [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 4E 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 62 [09:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:08:53]wFMCommunicate OK [09:08:53]CreateOFDProtocolMessage done [09:08:53]OFDSenderStorePacket 50534 [09:08:53]StoreOFDPacket docnum=50534 [09:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 21 01 00 00 A8 57 19 01 B5 77 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 31 60 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 66 C5 00 00 35 04 06 00 01 60 47 A2 3A BA 65 CB 39 C8 F5 91 F8 82 [09:08:53]CheckFolder [09:08:53]dirname=/storage/ofd_packets [09:08:53]CheckFolder done [09:08:53]ProducePacketName [09:08:53]name=ofd_packets/00050534 [09:08:53]NVStorageSaveData ofd_packets/00050534 [09:08:53]File name is /storage/ofd_packets/00050534 [09:08:53]Write 319 bytes [09:08:53]NVStorageSaveData done [09:08:53]OFDSenderStorePacket done [09:08:53]KKMCreateOFDPacket done [09:08:53]NVStorageSaveData kkm_last_timestamp [09:08:53]File name is /storage/kkm_last_timestamp [09:08:53]Write 4 bytes [09:08:53]NVStorageSaveData done [09:08:53]ExternCall_PrintAddStr [09:08:53]wPrintStart [09:08:53]Write to MH i2c: 01 00 00 4F 53 A2 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 4F 53 00 00 00 00 00 FF 0F B7 [09:08:53]RasterBufferAndPrint [09:08:53]line Счет N : (3)164447 [09:08:53]line ИНН: 02508201610067 [09:08:53]line Контрольно-Кассовый Чек [09:08:53]line ПРОДАЖА [09:08:53]line Товар: 4700000160358 [09:08:53]line Вода Легенда 1л [09:08:53]line 1.000 * 50.00 [09:08:53]line = 50.00 [09:08:53]line НДС 12% НСП 1% [09:08:53]line > о реализуемом товаре [09:08:53]line ИТОГО: 50.00 [09:08:53]line НСП 1% : 0.44 [09:08:53]line НДС 12% : 5.31 [09:08:53]line Наличными: 50.00 [09:08:53]line Безнал.: 0.00 [09:08:53]line Место: АЗС № 80 "Партнер Нефть" [09:08:53]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:08:53]line СНО: Общий режим [09:08:53]line Чек 34 25.10.2024 09:09 [09:08:53]line Смена: 493 ФФД: 1.0 [09:08:53]line ЗНМ: 0300000090 [09:08:53]line РНМ: 0000000000097022 [09:08:53]line Версия ККМ: 001 [09:08:53]line ФМ: 0000000000875000 [09:08:53]line ФД: 50534 [09:08:53]line ФПД: 1513030302394 [09:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T090905&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50534&fm=1513030302394&tin=02508201610067®Number=0000000000097022&sum=5000 [09:08:53]line 0 [09:08:53]written 0, free lines is 4095 [09:08:53]OFD Sender: Processing packet 50534 [packets to send 7, broken 6] [09:08:53]ProducePacketName [09:08:53]name=ofd_packets/00050534 [09:08:53]OFD Sender: To server: pG, [09:08:53]CommunicateWithHost lk.salyk.kg:30040 [09:08:53]ConnectInit lk.salyk.kg [09:08:53]Write to MH i2c: 01 00 00 77 53 CA [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 77 53 00 00 00 00 00 10 0D EE [09:08:53]RasterBufferAndPrint [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]written 0, free lines is 3351 [09:08:53]Connected sock=10 [09:08:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 21 01 00 00 A8 57 19 01 B5 77 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 31 60 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 66 C5 00 00 35 04 06 00 01 60 47 A2 3A BA 65 CB 39 C8 F5 91 F8 82 [09:08:53]process_action close_receipt done [09:08:53]requested_data is exist [09:08:53]produce_requested_data [09:08:53]requested_item fm.sn is exist - process it [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 11 00 00 [09:08:53]Write to MH i2c: E2 08 00 7E 53 80 11 00 00 00 00 00 00 4B [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 7E 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 92 [09:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:08:53]wFMCommunicate OK [09:08:53]requested_item fd.num is exist - process it [09:08:53]SAM_PROTO_GetFieldsCounters [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 13 00 00 [09:08:53]Write to MH i2c: E2 08 00 7F 53 80 13 00 00 00 00 00 00 4E [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 62 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 62 00 7F 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 66 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [09:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 66 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_GetFieldsCounters done [09:08:54]requested_item shift.num is exist - process it [09:08:54]requested_item shift.opened is exist - process it [09:08:54]req_shift_opened [09:08:54]FM_GetShiftState [09:08:54]SAM_PROTO_GetShiftState [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 13 01 00 [09:08:54]Write to MH i2c: E2 08 00 80 53 80 13 01 00 00 00 00 00 50 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 80 53 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 48 [09:08:54]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_GetShiftState done [09:08:54]FM_GetShiftState done [09:08:54]req_shift_opened done [09:08:54]requested_item shift.open_date is exist - process it [09:08:54]req_shift_open_date [09:08:54]req_shift_open_date done [09:08:54]produce_requested_data done [09:08:54]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50534,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:08:54]process_action_free close_receipt [09:08:54]json_value_free [09:08:54]json_value_free done [09:08:54]process_json_proto returns [09:08:54]Send response to host [09:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50534,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:08:54]free response buf [09:08:54]execute_script done [09:08:54]execute_script returns [09:08:54]free content buf [09:08:54]Sock 7.Close socket [09:08:54]Sock 7.Thread stoped [09:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 1F 31 47 00 2C E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 66 C5 00 00 F4 03 04 00 C2 0B 1B 67 B6 04 01 00 00 3E ED BE 24 88 06 69 17 [09:08:54]CommunicateWithHost err = 0 [09:08:54]CheckOFDResponse [09:08:54]1017 (14) - 77093643461234 [09:08:54]1041 (16) - 0000000000875000 [09:08:54]1040 (4) - 50534 [09:08:54]1012 (4) - 25.10.2024 03:08 [09:08:54]1206 (1) - 0 [09:08:54]OFD Sender: Remove packet 50534 [09:08:54]ProducePacketName [09:08:54]name=ofd_packets/00050534 [09:08:54]NVStorageDeleteData [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:23]accept exits with 9 [09:11:23]New connection [09:11:23]New thread 3067161956 created [09:11:23]Thread 3067305316 joined [09:11:23]Waiting for new connection... [09:11:23] Sock 9.Parse request [09:11:23]Sock 9.Check first char [09:11:23]Sock 9.First char is OK [09:11:23]request: POST /json_proto HTTP/1.0 [09:11:23]Method: POST [09:11:23]URL: /json_proto [09:11:23]Method is POST - this is cgi request [09:11:23]url: /json_proto [09:11:23]query_string will be loaded in cgi processing [09:11:23]execute_cgi json_proto POST (null) [09:11:23]execute_cgi path=json_proto method=POST [09:11:23]POST find Content-Length [09:11:23]Host: 172.17.49.196:8080 [09:11:23]Content-Length: 568 [09:11:23]Content-Type: application/json [09:11:23] [09:11:23]POST finish read [09:11:23]Found Content-Length = 568 [09:11:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164448", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:23]execute_script... [09:11: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)164448", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:23]POST & json_proto [09:11:23]process_json_proto [09:11:23]json parsed OK: [09:11:23]protocol is kg_v1.0 [09:11:23]action value=close_receipt [09:11:23]process_action close_receipt [09:11:23]cmd_close_receipt [09:11:23]MH_GetDate [09:11:23]Write to MH i2c: F0 00 00 81 53 C3 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: F0 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: F0 09 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: F0 09 00 81 53 00 C9 60 1B 67 BD 3B 11 67 E7 [09:11:23]GetLastDocTimeStamp 1729847345 [09:11:23]current date 1729847497 [09:11:23]FM_GetShiftState [09:11:23]SAM_PROTO_GetShiftState [09:11:23]wFMCommunicate request_size=4 [09:11:23]MH_SAM_APDU [09:11:23]CAPDU: 80 13 01 00 [09:11:23]Write to MH i2c: E2 08 00 82 53 80 13 01 00 00 00 00 00 52 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:23]Read from MH i2c: E2 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 0E 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 0E 00 82 53 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4A [09:11:23]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:11:23]wFMCommunicate OK [09:11:23]SAM_PROTO_GetShiftState done [09:11:23]FM_GetShiftState done [09:11:23]opened in 1729815177 [09:11:23]opened+sec_in_day 1729901577 [09:11:23]quantity*price = 13400 [09:11:23]sum+1 = 13401 [09:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 35 25.10.2024 09:11 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50535 ФПД: 21291745987917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091137&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50535&fm=21291745987917&tin=02508201610067®Number=0000000000097022&sum=13400 0 [09:11:24]StoreToDocumentArchive [09:11:24]shift 493 fd 50535 [09:11:24]save to /storage/0493/doc_00050535 [09:11:24]save last doc name /storage/0493/doc_00050535 to /storage/kkm_last_doc_name [09:11:25]save OK [09:11:25]Clear old archive folders... [09:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:11:25]tlvbuf is 00288B50 [09:11:25]SAM_PROTO_ClearQueue [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 09 00 00 [09:11:25]Write to MH i2c: E2 08 00 8F 53 80 09 00 00 00 00 00 00 54 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 03 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 03 00 8F 53 00 90 00 56 [09:11:25]RAPDU: 90 00 [09:11:25]wFMCommunicate OK [09:11:25]SAM_PROTO_ClearQueue done [09:11:25]KKMCreateOFDPacket [09:11:25]OFDProtocolAddRootSTLVToBuf [09:11:25]FM_MakeSignedData [09:11:25]FM_MakeSignedData [09:11:25]SAM_PROTO_SignData [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 0D 01 02 [09:11:25]Write to MH i2c: E2 08 00 90 53 80 0D 01 02 00 00 00 00 5C [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 03 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 03 00 90 53 00 90 00 57 [09:11:25]RAPDU: 90 00 [09:11:25]wFMCommunicate OK [09:11:25]wFMCommunicate request_size=255 [09:11:25]MH_SAM_APDU [09:11:25]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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 23 00 00 00 F4 03 04 00 C9 60 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C5 00 00 35 04 06 00 [09:11:25]Write to MH i2c: E2 02 01 91 53 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 23 00 00 00 F4 03 04 00 C9 60 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C5 00 00 35 04 06 00 00 00 C3 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:25]Read from MH i2c: E2 03 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 03 00 91 53 00 90 00 58 [09:11:25]RAPDU: 90 00 [09:11:25]wFMCommunicate OK [09:11:25]wFMCommunicate request_size=11 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 0D 02 02 06 13 5D 5E F4 CD 4D [09:11:25]Write to MH i2c: E2 0E 00 92 53 80 0D 02 02 06 00 13 5D 5E F4 CD 4D 00 00 47 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 03 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 03 00 92 53 00 90 00 59 [09:11:25]RAPDU: 90 00 [09:11:25]wFMCommunicate OK [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 0D 03 02 [09:11:25]Write to MH i2c: E2 08 00 93 53 80 0D 03 02 00 00 00 00 61 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0B 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0B 00 93 53 00 29 83 07 D9 89 E3 98 DB 90 00 CD [09:11:25]RAPDU: 29 83 07 D9 89 E3 98 DB 90 00 [09:11:25]wFMCommunicate OK [09:11:25]SAM_PROTO_SignData done [09:11:25]FM_MakeSignedData done [09:11:25]CreateOFDProtocolMessage [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 11 00 00 [09:11:25]Write to MH i2c: E2 08 00 94 53 80 11 00 00 00 00 00 00 61 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 17 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 17 00 94 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A8 [09:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:11:25]wFMCommunicate OK [09:11:25]CreateOFDProtocolMessage done [09:11:25]OFDSenderStorePacket 50535 [09:11:25]StoreOFDPacket docnum=50535 [09:11:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 01 00 00 24 9E 08 01 D2 63 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 23 00 00 00 F4 03 04 00 C9 60 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C5 00 00 35 04 06 00 13 5D 5E F4 CD 4D 29 83 07 D9 89 E3 98 DB [09:11:25]CheckFolder [09:11:25]dirname=/storage/ofd_packets [09:11:25]CheckFolder done [09:11:25]ProducePacketName [09:11:25]name=ofd_packets/00050535 [09:11:25]NVStorageSaveData ofd_packets/00050535 [09:11:25]File name is /storage/ofd_packets/00050535 [09:11:25]Write 302 bytes [09:11:25]NVStorageSaveData done [09:11:25]OFDSenderStorePacket done [09:11:25]KKMCreateOFDPacket done [09:11:25]NVStorageSaveData kkm_last_timestamp [09:11:25]File name is /storage/kkm_last_timestamp [09:11:25]Write 4 bytes [09:11:25]NVStorageSaveData done [09:11:25]ExternCall_PrintAddStr [09:11:25]wPrintStart [09:11:25]Write to MH i2c: 01 00 00 95 53 E8 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 07 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 07 00 95 53 00 00 00 00 00 FF 0F FD [09:11:25]RasterBufferAndPrint [09:11:25]line Счет N : (3)164448 [09:11:25]line ИНН: 02508201610067 [09:11:25]line Контрольно-Кассовый Чек [09:11:25]line ПРОДАЖА [09:11:25]line Товар: 48744539 [09:11:25]line LD Compact Blue [09:11:25]line 1.000 * 134.00 [09:11:25]line = 134.00 [09:11:25]line НДС 12% НСП 1% [09:11:25]line > о реализуемом товаре [09:11:25]line ИТОГО: 134.00 [09:11:25]line НСП 1% : 1.19 [09:11:25]line НДС 12% : 14.23 [09:11:25]line Наличными: 134.00 [09:11:25]line Безнал.: 0.00 [09:11:25]line Место: АЗС № 80 "Партнер Нефть" [09:11:25]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:11:25]line СНО: Общий режим [09:11:25]line Чек 35 25.10.2024 09:11 [09:11:25]line Смена: 493 ФФД: 1.0 [09:11:25]line ЗНМ: 0300000090 [09:11:25]line РНМ: 0000000000097022 [09:11:25]line Версия ККМ: 001 [09:11:25]line ФМ: 0000000000875000 [09:11:25]line ФД: 50535 [09:11:25]line ФПД: 21291745987917 [09:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T091137&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50535&fm=21291745987917&tin=02508201610067®Number=0000000000097022&sum=13400 [09:11:25]line 0 [09:11:25]written 0, free lines is 4095 [09:11:25]OFD Sender: Processing packet 50535 [packets to send 7, broken 6] [09:11:25]ProducePacketName [09:11:25]name=ofd_packets/00050535 [09:11:25]OFD Sender: To server: pG, [09:11:25]CommunicateWithHost lk.salyk.kg:30040 [09:11:25]ConnectInit lk.salyk.kg [09:11:25]Connected sock=10 [09:11:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 01 00 00 24 9E 08 01 D2 63 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 23 00 00 00 F4 03 04 00 C9 60 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C5 00 00 35 04 06 00 13 5D 5E F4 CD 4D 29 83 07 D9 89 E3 98 DB [09:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 9B 89 47 00 D4 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 67 C5 00 00 F4 03 04 00 5A 0C 1B 67 B6 04 01 00 00 91 C6 10 53 61 94 5A 9C [09:11:25]CommunicateWithHost err = 0 [09:11:25]CheckOFDResponse [09:11:25]1017 (14) - 77093643461234 [09:11:25]1041 (16) - 0000000000875000 [09:11:25]1040 (4) - 50535 [09:11:25]1012 (4) - 25.10.2024 03:11 [09:11:25]1206 (1) - 0 [09:11:25]OFD Sender: Remove packet 50535 [09:11:25]ProducePacketName [09:11:25]name=ofd_packets/00050535 [09:11:25]NVStorageDeleteData [09:11:25]Write to MH i2c: 01 00 00 BD 53 10 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 07 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 07 00 BD 53 00 00 00 00 00 10 0D 34 [09:11:25]RasterBufferAndPrint [09:11:25]line [09:11:25]line [09:11:25]line [09:11:25]line [09:11:25]line [09:11:25]written 0, free lines is 3350 [09:11:25]process_action close_receipt done [09:11:25]requested_data is exist [09:11:25]produce_requested_data [09:11:25]requested_item fm.sn is exist - process it [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 11 00 00 [09:11:25]Write to MH i2c: E2 08 00 C4 53 80 11 00 00 00 00 00 00 91 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 17 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 17 00 C4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D8 [09:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:11:26]wFMCommunicate OK [09:11:26]requested_item fd.num is exist - process it [09:11:26]SAM_PROTO_GetFieldsCounters [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 13 00 00 [09:11:26]Write to MH i2c: E2 08 00 C5 53 80 13 00 00 00 00 00 00 94 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 62 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 62 00 C5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 67 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [09:11:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 67 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_GetFieldsCounters done [09:11:26]requested_item shift.num is exist - process it [09:11:26]requested_item shift.opened is exist - process it [09:11:26]req_shift_opened [09:11:26]FM_GetShiftState [09:11:26]SAM_PROTO_GetShiftState [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 13 01 00 [09:11:26]Write to MH i2c: E2 08 00 C6 53 80 13 01 00 00 00 00 00 96 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0E 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0E 00 C6 53 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8E [09:11:26]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_GetShiftState done [09:11:26]FM_GetShiftState done [09:11:26]req_shift_opened done [09:11:26]requested_item shift.open_date is exist - process it [09:11:26]req_shift_open_date [09:11:26]req_shift_open_date done [09:11:26]produce_requested_data done [09:11:26]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50535,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:11:26]process_action_free close_receipt [09:11:26]json_value_free [09:11:26]json_value_free done [09:11:26]process_json_proto returns [09:11:26]Send response to host [09:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50535,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:11:26]free response buf [09:11:26]execute_script done [09:11:26]execute_script returns [09:11:26]free content buf [09:11:26]Sock 9.Close socket [09:11:26]Sock 9.Thread stoped [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:18]accept exits with 7 [09:23:18]New connection [09:23:18]New thread 3067305316 created [09:23:18]Thread 3067161956 joined [09:23:18]Waiting for new connection... [09:23:18] Sock 7.Parse request [09:23:18]Sock 7.Check first char [09:23:18]Sock 7.First char is OK [09:23:18]request: POST /json_proto HTTP/1.0 [09:23:18]Method: POST [09:23:18]URL: /json_proto [09:23:18]Method is POST - this is cgi request [09:23:18]url: /json_proto [09:23:18]query_string will be loaded in cgi processing [09:23:18]execute_cgi json_proto POST (null) [09:23:18]execute_cgi path=json_proto method=POST [09:23:18]POST find Content-Length [09:23:18]Host: 172.17.49.196:8080 [09:23:18]Content-Length: 740 [09:23:18]Content-Type: application/json [09:23:18] [09:23:18]POST finish read [09:23:18]Found Content-Length = 740 [09:23:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164449", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:18]execute_script... [09:23:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164449", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:18]POST & json_proto [09:23:18]process_json_proto [09:23:18]json parsed OK: [09:23:18]protocol is kg_v1.0 [09:23:18]action value=close_receipt [09:23:18]process_action close_receipt [09:23:18]cmd_close_receipt [09:23:18]MH_GetDate [09:23:18]Write to MH i2c: F0 00 00 C7 53 09 [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: F0 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: F0 09 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: F0 09 00 C7 53 00 94 63 1B 67 BD 3B 11 67 FB [09:23:18]GetLastDocTimeStamp 1729847497 [09:23:18]current date 1729848212 [09:23:18]FM_GetShiftState [09:23:18]SAM_PROTO_GetShiftState [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 13 01 00 [09:23:18]Write to MH i2c: E2 08 00 C8 53 80 13 01 00 00 00 00 00 98 [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 0E 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 0E 00 C8 53 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 90 [09:23:18]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:23:18]wFMCommunicate OK [09:23:18]SAM_PROTO_GetShiftState done [09:23:18]FM_GetShiftState done [09:23:18]opened in 1729815177 [09:23:18]opened+sec_in_day 1729901577 [09:23:18]quantity*price = 15900 [09:23:18]sum+1 = 15901 [09:23:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 36 25.10.2024 09:23 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50536 ФПД: 168144370891718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092332&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50536&fm=168144370891718&tin=02508201610067®Number=0000000000097022&sum=15900 0 [09:23:19]StoreToDocumentArchive [09:23:19]shift 493 fd 50536 [09:23:19]save to /storage/0493/doc_00050536 [09:23:19]save last doc name /storage/0493/doc_00050536 to /storage/kkm_last_doc_name [09:23:19]save OK [09:23:19]Clear old archive folders... [09:23:19]ProcessDocumentItem done err = 0, tmpTLVsize=265 [09:23:19]tlvbuf is 0012CC40 [09:23:19]SAM_PROTO_ClearQueue [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 09 00 00 [09:23:19]Write to MH i2c: E2 08 00 D5 53 80 09 00 00 00 00 00 00 9A [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 03 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 03 00 D5 53 00 90 00 9C [09:23:19]RAPDU: 90 00 [09:23:19]wFMCommunicate OK [09:23:19]SAM_PROTO_ClearQueue done [09:23:19]KKMCreateOFDPacket [09:23:19]OFDProtocolAddRootSTLVToBuf [09:23:19]FM_MakeSignedData [09:23:19]FM_MakeSignedData [09:23:19]SAM_PROTO_SignData [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 0D 01 02 [09:23:19]Write to MH i2c: E2 08 00 D6 53 80 0D 01 02 00 00 00 00 A2 [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 03 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 03 00 D6 53 00 90 00 9D [09:23:19]RAPDU: 90 00 [09:23:19]wFMCommunicate OK [09:23:19]wFMCommunicate request_size=255 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 94 63 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 [09:23:19]Write to MH i2c: E2 02 01 D7 53 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 94 63 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 00 00 4E [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 D7 53 00 90 00 9E [09:23:20]RAPDU: 90 00 [09:23:20]wFMCommunicate OK [09:23:20]wFMCommunicate request_size=24 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 0D 02 02 13 30 10 04 04 00 68 C5 00 00 35 04 06 00 98 ED 29 7F 7B C6 [09:23:20]Write to MH i2c: E2 1B 00 D8 53 80 0D 02 02 13 00 30 10 04 04 00 68 C5 00 00 35 04 06 00 98 ED 29 7F 7B C6 00 00 ED [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 D8 53 00 90 00 9F [09:23:20]RAPDU: 90 00 [09:23:20]wFMCommunicate OK [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 0D 03 02 [09:23:20]Write to MH i2c: E2 08 00 D9 53 80 0D 03 02 00 00 00 00 A7 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 0B 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 0B 00 D9 53 00 81 CB BB C2 65 C1 6F 28 90 00 2E [09:23:20]RAPDU: 81 CB BB C2 65 C1 6F 28 90 00 [09:23:20]wFMCommunicate OK [09:23:20]SAM_PROTO_SignData done [09:23:20]FM_MakeSignedData done [09:23:20]CreateOFDProtocolMessage [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 11 00 00 [09:23:20]Write to MH i2c: E2 08 00 DA 53 80 11 00 00 00 00 00 00 A7 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 17 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 17 00 DA 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EE [09:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:23:20]wFMCommunicate OK [09:23:20]CreateOFDProtocolMessage done [09:23:20]OFDSenderStorePacket 50536 [09:23:20]StoreOFDPacket docnum=50536 [09:23:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1D 01 00 00 AC 03 15 01 7B EB 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 94 63 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 68 C5 00 00 35 04 06 00 98 ED 29 7F 7B C6 81 CB BB C2 65 C1 6F 28 [09:23:20]CheckFolder [09:23:20]dirname=/storage/ofd_packets [09:23:20]CheckFolder done [09:23:20]ProducePacketName [09:23:20]name=ofd_packets/00050536 [09:23:20]NVStorageSaveData ofd_packets/00050536 [09:23:20]File name is /storage/ofd_packets/00050536 [09:23:20]Write 315 bytes [09:23:20]NVStorageSaveData done [09:23:20]OFDSenderStorePacket done [09:23:20]KKMCreateOFDPacket done [09:23:20]NVStorageSaveData kkm_last_timestamp [09:23:20]File name is /storage/kkm_last_timestamp [09:23:20]Write 4 bytes [09:23:20]NVStorageSaveData done [09:23:20]ExternCall_PrintAddStr [09:23:20]wPrintStart [09:23:20]Write to MH i2c: 01 00 00 DB 53 2E [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: 01 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: 01 07 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: 01 07 00 DB 53 00 00 00 00 00 FF 0F 43 [09:23:20]RasterBufferAndPrint [09:23:20]line Счет N : (3)164449 [09:23:20]line ИНН: 02508201610067 [09:23:20]line Контрольно-Кассовый Чек [09:23:20]line ПРОДАЖА [09:23:20]line Товар: 47803152 [09:23:20]line Сигареты Mevius Revo [09:23:20]line 1.000 * 159.00 [09:23:20]line = 159.00 [09:23:20]line НДС 12% НСП 1% [09:23:20]line > о реализуемом товаре [09:23:20]line ИТОГО: 159.00 [09:23:20]line НСП 1% : 1.41 [09:23:20]line НДС 12% : 16.88 [09:23:20]line Наличными: 0.00 [09:23:20]line Безнал.: 159.00 [09:23:20]line Место: АЗС № 80 "Партнер Нефть" [09:23:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:23:20]line СНО: Общий режим [09:23:20]line Чек 36 25.10.2024 09:23 [09:23:20]line Смена: 493 ФФД: 1.0 [09:23:20]line ЗНМ: 0300000090 [09:23:20]line РНМ: 0000000000097022 [09:23:20]line Версия ККМ: 001 [09:23:20]line Платежная система: Mbank [09:23:20]line ФМ: 0000000000875000 [09:23:20]line ФД: 50536 [09:23:20]line ФПД: 168144370891718 [09:23:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092332&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50536&fm=168144370891718&tin=02508201610067®Number=0000000000097022&sum=15900 [09:23:20]line 0 [09:23:20]OFD Sender: Processing packet 50536 [packets to send 7, broken 6] [09:23:20]ProducePacketName [09:23:20]name=ofd_packets/00050536 [09:23:20]OFD Sender: To server: pG, [09:23:20]CommunicateWithHost lk.salyk.kg:30040 [09:23:20]ConnectInit lk.salyk.kg [09:23:20]written 0, free lines is 4095 [09:23:20]Connected sock=10 [09:23:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1D 01 00 00 AC 03 15 01 7B EB 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 94 63 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 68 C5 00 00 35 04 06 00 98 ED 29 7F 7B C6 81 CB BB C2 65 C1 6F 28 [09:23:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AE 8A 47 00 F7 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 68 C5 00 00 F4 03 04 00 25 0F 1B 67 B6 04 01 00 00 F0 50 65 6B 00 7B 1B AE [09:23:21]CommunicateWithHost err = 0 [09:23:21]CheckOFDResponse [09:23:21]1017 (14) - 77093643461234 [09:23:21]1041 (16) - 0000000000875000 [09:23:21]1040 (4) - 50536 [09:23:21]1012 (4) - 25.10.2024 03:23 [09:23:21]1206 (1) - 0 [09:23:21]OFD Sender: Remove packet 50536 [09:23:21]ProducePacketName [09:23:21]name=ofd_packets/00050536 [09:23:21]NVStorageDeleteData [09:23:21]Write to MH i2c: 01 00 00 04 54 58 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 04 54 00 00 00 00 00 25 0D 91 [09:23:21]RasterBufferAndPrint [09:23:21]line [09:23:21]line [09:23:21]line [09:23:21]line [09:23:21]line [09:23:21]written 0, free lines is 3371 [09:23:21]process_action close_receipt done [09:23:21]requested_data is exist [09:23:21]produce_requested_data [09:23:21]requested_item fm.sn is exist - process it [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 11 00 00 [09:23:21]Write to MH i2c: E2 08 00 0B 54 80 11 00 00 00 00 00 00 D9 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 17 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 17 00 0B 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 20 [09:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:23:21]wFMCommunicate OK [09:23:21]requested_item fd.num is exist - process it [09:23:21]SAM_PROTO_GetFieldsCounters [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 13 00 00 [09:23:21]Write to MH i2c: E2 08 00 0C 54 80 13 00 00 00 00 00 00 DC [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 62 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 62 00 0C 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 68 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [09:23:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 68 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:21]wFMCommunicate OK [09:23:21]SAM_PROTO_GetFieldsCounters done [09:23:21]requested_item shift.num is exist - process it [09:23:21]requested_item shift.opened is exist - process it [09:23:21]req_shift_opened [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 0D 54 80 13 01 00 00 00 00 00 DE [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 0D 54 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D6 [09:23:21]RAPDU: 09 00 01 89 E2 1A 67 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]req_shift_opened done [09:23:21]requested_item shift.open_date is exist - process it [09:23:21]req_shift_open_date [09:23:21]req_shift_open_date done [09:23:21]produce_requested_data done [09:23:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50536,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:23:21]process_action_free close_receipt [09:23:21]json_value_free [09:23:21]json_value_free done [09:23:21]process_json_proto returns [09:23:21]Send response to host [09:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50536,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:23:21]free response buf [09:23:21]execute_script done [09:23:21]execute_script returns [09:23:21]free content buf [09:23:21]Sock 7.Close socket [09:23:21]Sock 7.Thread stoped [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:22]accept exits with 9 [09:25:22]New connection [09:25:22]New thread 3067161956 created [09:25:22]Thread 3067305316 joined [09:25:22]Waiting for new connection... [09:25:22] Sock 9.Parse request [09:25:22]Sock 9.Check first char [09:25:22]Sock 9.First char is OK [09:25:22]request: POST /json_proto HTTP/1.0 [09:25:22]Method: POST [09:25:22]URL: /json_proto [09:25:22]Method is POST - this is cgi request [09:25:22]url: /json_proto [09:25:22]query_string will be loaded in cgi processing [09:25:22]execute_cgi json_proto POST (null) [09:25:22]execute_cgi path=json_proto method=POST [09:25:22]POST find Content-Length [09:25:22]Host: 172.17.49.196:8080 [09:25:22]Content-Length: 687 [09:25:22]Content-Type: application/json [09:25:22] [09:25:22]POST finish read [09:25:22]Found Content-Length = 687 [09:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:22]execute_script... [09:25:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:22]POST & json_proto [09:25:22]process_json_proto [09:25:22]json parsed OK: [09:25:22]protocol is kg_v1.0 [09:25:22]action value=close_receipt [09:25:22]process_action close_receipt [09:25:22]cmd_close_receipt [09:25:22]MH_GetDate [09:25:22]Write to MH i2c: F0 00 00 0E 54 51 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: F0 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: F0 09 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: F0 09 00 0E 54 00 0F 64 1B 67 BD 3B 11 67 BF [09:25:22]GetLastDocTimeStamp 1729848212 [09:25:22]current date 1729848335 [09:25:22]FM_GetShiftState [09:25:22]SAM_PROTO_GetShiftState [09:25:22]wFMCommunicate request_size=4 [09:25:22]MH_SAM_APDU [09:25:22]CAPDU: 80 13 01 00 [09:25:22]Write to MH i2c: E2 08 00 0F 54 80 13 01 00 00 00 00 00 E0 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:22]Read from MH i2c: E2 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 0E 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: E2 0E 00 0F 54 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D8 [09:25:22]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:25:22]wFMCommunicate OK [09:25:22]SAM_PROTO_GetShiftState done [09:25:22]FM_GetShiftState done [09:25:22]opened in 1729815177 [09:25:22]opened+sec_in_day 1729901577 [09:25:22]quantity*price = 100011 [09:25:22]sum+1 = 100013 [09:25:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 37 25.10.2024 09:25 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50537 ФПД: 278096742133135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092535&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50537&fm=278096742133135&tin=02508201610067®Number=0000000000097022&sum=100000 [09:25:23]StoreToDocumentArchive [09:25:23]shift 493 fd 50537 [09:25:23]save to /storage/0493/doc_00050537 [09:25:23]save last doc name /storage/0493/doc_00050537 to /storage/kkm_last_doc_name [09:25:23]save OK [09:25:23]Clear old archive folders... [09:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:25:23]tlvbuf is 002D7DA0 [09:25:23]SAM_PROTO_ClearQueue [09:25:23]wFMCommunicate request_size=4 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 09 00 00 [09:25:23]Write to MH i2c: E2 08 00 1C 54 80 09 00 00 00 00 00 00 E2 [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 1C 54 00 90 00 E4 [09:25:23]RAPDU: 90 00 [09:25:23]wFMCommunicate OK [09:25:23]SAM_PROTO_ClearQueue done [09:25:23]KKMCreateOFDPacket [09:25:23]OFDProtocolAddRootSTLVToBuf [09:25:23]FM_MakeSignedData [09:25:23]FM_MakeSignedData [09:25:23]SAM_PROTO_SignData [09:25:23]wFMCommunicate request_size=4 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 0D 01 02 [09:25:23]Write to MH i2c: E2 08 00 1D 54 80 0D 01 02 00 00 00 00 EA [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 1D 54 00 90 00 E5 [09:25:23]RAPDU: 90 00 [09:25:23]wFMCommunicate OK [09:25:23]wFMCommunicate request_size=255 [09:25:23]MH_SAM_APDU [09:25:23]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 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 0F 64 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C5 00 00 35 04 06 00 FC ED [09:25:23]Write to MH i2c: E2 02 01 1E 54 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 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 0F 64 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C5 00 00 35 04 06 00 FC ED 00 00 5B [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 1E 54 00 90 00 E6 [09:25:23]RAPDU: 90 00 [09:25:23]wFMCommunicate OK [09:25:23]wFMCommunicate request_size=9 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 0D 02 02 04 71 87 2D 8F [09:25:23]Write to MH i2c: E2 0C 00 1F 54 80 0D 02 02 04 00 71 87 2D 8F 00 00 A9 [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 03 00 1F 54 00 90 00 E7 [09:25:23]RAPDU: 90 00 [09:25:23]wFMCommunicate OK [09:25:23]wFMCommunicate request_size=4 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 0D 03 02 [09:25:23]Write to MH i2c: E2 08 00 20 54 80 0D 03 02 00 00 00 00 EF [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:24]Read from MH i2c: E2 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: E2 0B 00 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: E2 0B 00 20 54 00 58 66 5E BF 11 E6 B5 7B 90 00 F2 [09:25:24]RAPDU: 58 66 5E BF 11 E6 B5 7B 90 00 [09:25:24]wFMCommunicate OK [09:25:24]SAM_PROTO_SignData done [09:25:24]FM_MakeSignedData done [09:25:24]CreateOFDProtocolMessage [09:25:24]wFMCommunicate request_size=4 [09:25:24]MH_SAM_APDU [09:25:24]CAPDU: 80 11 00 00 [09:25:24]Write to MH i2c: E2 08 00 21 54 80 11 00 00 00 00 00 00 EF [09:25:24]Write i2c OK [09:25:24]MH_I2C_Read... [09:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:24]Read from MH i2c: E2 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: E2 17 00 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: E2 17 00 21 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 36 [09:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:25:24]wFMCommunicate OK [09:25:24]CreateOFDProtocolMessage done [09:25:24]OFDSenderStorePacket 50537 [09:25:24]StoreOFDPacket docnum=50537 [09:25:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0E 01 00 00 5A D6 06 01 4A 24 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 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 0F 64 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C5 00 00 35 04 06 00 FC ED 71 87 2D 8F 58 66 5E BF 11 E6 B5 7B [09:25:24]CheckFolder [09:25:24]dirname=/storage/ofd_packets [09:25:24]CheckFolder done [09:25:24]ProducePacketName [09:25:24]name=ofd_packets/00050537 [09:25:24]NVStorageSaveData ofd_packets/00050537 [09:25:24]File name is /storage/ofd_packets/00050537 [09:25:24]Write 300 bytes [09:25:24]NVStorageSaveData done [09:25:24]OFDSenderStorePacket done [09:25:24]KKMCreateOFDPacket done [09:25:24]NVStorageSaveData kkm_last_timestamp [09:25:24]File name is /storage/kkm_last_timestamp [09:25:24]Write 4 bytes [09:25:24]NVStorageSaveData done [09:25:24]ExternCall_PrintAddStr [09:25:24]wPrintStart [09:25:24]Write to MH i2c: 01 00 00 22 54 76 [09:25:24]Write i2c OK [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 07 00 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 07 00 22 54 00 00 00 00 00 FF 0F 8B [09:25:24]RasterBufferAndPrint [09:25:24]line Счет N : (1)15442325 [09:25:24]line ИНН: 02508201610067 [09:25:24]line Контрольно-Кассовый Чек [09:25:24]line ПРОДАЖА [09:25:24]line ТРК (МРК, ГНК) : 71 [09:25:24]line Товар: 2711190000 [09:25:24]line ГАЗ-К-5 [09:25:24]line 25.710 * 38.90 [09:25:24]line = 1000.12 [09:25:24]line НДС 12% НСП 1% [09:25:24]line > о реализуемом товаре [09:25:24]line ОКРУГЛЕНИЕ: -0.12 [09:25:24]line ИТОГО: 1000.00 [09:25:24]line Внесено: 1000.00 [09:25:24]line СДАЧА: 0.00 [09:25:24]line НСП 1% : 8.85 [09:25:24]line НДС 12% : 106.21 [09:25:24]line Наличными: 1000.00 [09:25:24]line Безнал.: 0.00 [09:25:24]line Место: АЗС № 80 "Партнер Нефть" [09:25:24]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:25:24]line СНО: Общий режим [09:25:24]line Чек 37 25.10.2024 09:25 [09:25:24]line Смена: 493 ФФД: 1.0 [09:25:24]line ЗНМ: 0300000090 [09:25:24]line РНМ: 0000000000097022 [09:25:24]line Версия ККМ: 001 [09:25:24]line ФМ: 0000000000875000 [09:25:24]line ФД: 50537 [09:25:24]line ФПД: 278096742133135 [09:25:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092535&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50537&fm=278096742133135&tin=02508201610067®Number=0000000000097022&sum=100000 [09:25:24]OFD Sender: Processing packet 50537 [packets to send 7, broken 6] [09:25:24]ProducePacketName [09:25:24]name=ofd_packets/00050537 [09:25:24]OFD Sender: To server: pG, [09:25:24]CommunicateWithHost lk.salyk.kg:30040 [09:25:24]ConnectInit lk.salyk.kg [09:25:24]written 0, free lines is 4095 [09:25:24]Connected sock=11 [09:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0E 01 00 00 5A D6 06 01 4A 24 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 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 0F 64 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C5 00 00 35 04 06 00 FC ED 71 87 2D 8F 58 66 5E BF 11 E6 B5 7B [09:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 27 7E 47 00 13 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 69 C5 00 00 F4 03 04 00 A1 0F 1B 67 B6 04 01 00 00 CD 84 92 93 24 76 44 A7 [09:25:24]CommunicateWithHost err = 0 [09:25:24]CheckOFDResponse [09:25:24]1017 (14) - 77093643461234 [09:25:24]1041 (16) - 0000000000875000 [09:25:24]1040 (4) - 50537 [09:25:24]1012 (4) - 25.10.2024 03:25 [09:25:24]1206 (1) - 0 [09:25:24]OFD Sender: Remove packet 50537 [09:25:24]ProducePacketName [09:25:24]name=ofd_packets/00050537 [09:25:24]NVStorageDeleteData [09:25:24]Write to MH i2c: 01 00 00 4D 54 A1 [09:25:24]Write i2c OK [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 07 00 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: 01 07 00 4D 54 00 00 00 00 00 FB 0C AF [09:25:24]RasterBufferAndPrint [09:25:24]line [09:25:24]line [09:25:24]line [09:25:24]line [09:25:24]line [09:25:24]written 0, free lines is 3332 [09:25:24]process_action close_receipt done [09:25:24]requested_data is exist [09:25:24]produce_requested_data [09:25:24]requested_item fm.sn is exist - process it [09:25:24]wFMCommunicate request_size=4 [09:25:24]MH_SAM_APDU [09:25:24]CAPDU: 80 11 00 00 [09:25:24]Write to MH i2c: E2 08 00 54 54 80 11 00 00 00 00 00 00 22 [09:25:24]Write i2c OK [09:25:24]MH_I2C_Read... [09:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:24]Read from MH i2c: E2 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: E2 17 00 [09:25:24]MH_I2C_Read... [09:25:24]Read from MH i2c: E2 17 00 54 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 69 [09:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:25:24]wFMCommunicate OK [09:25:24]requested_item fd.num is exist - process it [09:25:24]SAM_PROTO_GetFieldsCounters [09:25:24]wFMCommunicate request_size=4 [09:25:24]MH_SAM_APDU [09:25:24]CAPDU: 80 13 00 00 [09:25:24]Write to MH i2c: E2 08 00 55 54 80 13 00 00 00 00 00 00 25 [09:25:24]Write i2c OK [09:25:24]MH_I2C_Read... [09:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:25]Read from MH i2c: E2 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 62 00 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 62 00 55 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 69 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [09:25:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 69 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:25]wFMCommunicate OK [09:25:25]SAM_PROTO_GetFieldsCounters done [09:25:25]requested_item shift.num is exist - process it [09:25:25]requested_item shift.opened is exist - process it [09:25:25]req_shift_opened [09:25:25]FM_GetShiftState [09:25:25]SAM_PROTO_GetShiftState [09:25:25]wFMCommunicate request_size=4 [09:25:25]MH_SAM_APDU [09:25:25]CAPDU: 80 13 01 00 [09:25:25]Write to MH i2c: E2 08 00 56 54 80 13 01 00 00 00 00 00 27 [09:25:25]Write i2c OK [09:25:25]MH_I2C_Read... [09:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:25]Read from MH i2c: E2 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 0E 00 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 0E 00 56 54 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 1F [09:25:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:25:25]wFMCommunicate OK [09:25:25]SAM_PROTO_GetShiftState done [09:25:25]FM_GetShiftState done [09:25:25]req_shift_opened done [09:25:25]requested_item shift.open_date is exist - process it [09:25:25]req_shift_open_date [09:25:25]req_shift_open_date done [09:25:25]produce_requested_data done [09:25:25]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50537,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:25:25]process_action_free close_receipt [09:25:25]json_value_free [09:25:25]json_value_free done [09:25:25]process_json_proto returns [09:25:25]Send response to host [09:25:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50537,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:25:25]free response buf [09:25:25]execute_script done [09:25:25]execute_script returns [09:25:25]free content buf [09:25:25]Sock 9.Close socket [09:25:25]Sock 9.Thread stoped [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:07]accept exits with 10 [09:26:07]New connection [09:26:07]New thread 3067305316 created [09:26:07]Thread 3067161956 joined [09:26:07]Waiting for new connection... [09:26:07] Sock 10.Parse request [09:26:07]Sock 10.Check first char [09:26:07]Sock 10.First char is OK [09:26:07]request: POST /json_proto HTTP/1.0 [09:26:07]Method: POST [09:26:07]URL: /json_proto [09:26:07]Method is POST - this is cgi request [09:26:07]url: /json_proto [09:26:07]query_string will be loaded in cgi processing [09:26:07]execute_cgi json_proto POST (null) [09:26:07]execute_cgi path=json_proto method=POST [09:26:07]POST find Content-Length [09:26:07]Host: 172.17.49.196:8080 [09:26:07]Content-Length: 773 [09:26:07]Content-Type: application/json [09:26:07] [09:26:07]POST finish read [09:26:07]Found Content-Length = 773 [09:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164450", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:07]execute_script... [09:26: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)164450", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:07]POST & json_proto [09:26:07]process_json_proto [09:26:07]json parsed OK: [09:26:07]protocol is kg_v1.0 [09:26:07]action value=close_receipt [09:26:07]process_action close_receipt [09:26:07]cmd_close_receipt [09:26:07]MH_GetDate [09:26:07]Write to MH i2c: F0 00 00 57 54 9A [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: F0 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: F0 09 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: F0 09 00 57 54 00 3D 64 1B 67 BD 3B 11 67 36 [09:26:07]GetLastDocTimeStamp 1729848335 [09:26:07]current date 1729848381 [09:26:07]FM_GetShiftState [09:26:07]SAM_PROTO_GetShiftState [09:26:07]wFMCommunicate request_size=4 [09:26:07]MH_SAM_APDU [09:26:07]CAPDU: 80 13 01 00 [09:26:07]Write to MH i2c: E2 08 00 58 54 80 13 01 00 00 00 00 00 29 [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:07]Read from MH i2c: E2 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 0E 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 0E 00 58 54 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 21 [09:26:07]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:26:07]wFMCommunicate OK [09:26:07]SAM_PROTO_GetShiftState done [09:26:07]FM_GetShiftState done [09:26:07]opened in 1729815177 [09:26:07]opened+sec_in_day 1729901577 [09:26:07]quantity*price = 13000 [09:26:07]sum+1 = 13001 [09:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 38 25.10.2024 09:26 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50538 ФПД: 261065576187631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092621&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50538&fm=261065576187631&tin=02508201610067®Number=0000000000097022&sum=13000 0 [09:26:08]StoreToDocumentArchive [09:26:08]shift 493 fd 50538 [09:26:08]save to /storage/0493/doc_00050538 [09:26:08]save last doc name /storage/0493/doc_00050538 to /storage/kkm_last_doc_name [09:26:08]save OK [09:26:08]Clear old archive folders... [09:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:26:08]tlvbuf is 00220400 [09:26:08]SAM_PROTO_ClearQueue [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 09 00 00 [09:26:08]Write to MH i2c: E2 08 00 65 54 80 09 00 00 00 00 00 00 2B [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 65 54 00 90 00 2D [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]SAM_PROTO_ClearQueue done [09:26:09]KKMCreateOFDPacket [09:26:09]OFDProtocolAddRootSTLVToBuf [09:26:09]FM_MakeSignedData [09:26:09]FM_MakeSignedData [09:26:09]SAM_PROTO_SignData [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 0D 01 02 [09:26:09]Write to MH i2c: E2 08 00 66 54 80 0D 01 02 00 00 00 00 33 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 66 54 00 90 00 2E [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]wFMCommunicate request_size=255 [09:26:09]MH_SAM_APDU [09:26:09]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 26 00 00 00 F4 03 04 00 3D 64 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [09:26:09]Write to MH i2c: E2 02 01 67 54 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 26 00 00 00 F4 03 04 00 3D 64 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 74 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 67 54 00 90 00 2F [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]wFMCommunicate request_size=41 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C5 00 00 35 04 06 00 ED 70 10 EE 86 EF [09:26:09]Write to MH i2c: E2 2C 00 68 54 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C5 00 00 35 04 06 00 ED 70 10 EE 86 EF 00 00 F8 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 68 54 00 90 00 30 [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 0D 03 02 [09:26:09]Write to MH i2c: E2 08 00 69 54 80 0D 03 02 00 00 00 00 38 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 0B 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 0B 00 69 54 00 E7 1F 0A 0E CD 37 C2 C7 90 00 E4 [09:26:09]RAPDU: E7 1F 0A 0E CD 37 C2 C7 90 00 [09:26:09]wFMCommunicate OK [09:26:09]SAM_PROTO_SignData done [09:26:09]FM_MakeSignedData done [09:26:09]CreateOFDProtocolMessage [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 11 00 00 [09:26:09]Write to MH i2c: E2 08 00 6A 54 80 11 00 00 00 00 00 00 38 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 17 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 17 00 6A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7F [09:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:26:09]wFMCommunicate OK [09:26:09]CreateOFDProtocolMessage done [09:26:09]OFDSenderStorePacket 50538 [09:26:09]StoreOFDPacket docnum=50538 [09:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 7A 3D 26 01 E4 5A 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 26 00 00 00 F4 03 04 00 3D 64 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C5 00 00 35 04 06 00 ED 70 10 EE 86 EF E7 1F 0A 0E CD 37 C2 C7 [09:26:09]CheckFolder [09:26:09]dirname=/storage/ofd_packets [09:26:09]CheckFolder done [09:26:09]ProducePacketName [09:26:09]name=ofd_packets/00050538 [09:26:09]NVStorageSaveData ofd_packets/00050538 [09:26:09]File name is /storage/ofd_packets/00050538 [09:26:09]Write 332 bytes [09:26:09]NVStorageSaveData done [09:26:09]OFDSenderStorePacket done [09:26:09]KKMCreateOFDPacket done [09:26:09]NVStorageSaveData kkm_last_timestamp [09:26:09]File name is /storage/kkm_last_timestamp [09:26:09]Write 4 bytes [09:26:09]NVStorageSaveData done [09:26:09]ExternCall_PrintAddStr [09:26:09]wPrintStart [09:26:09]Write to MH i2c: 01 00 00 6B 54 BF [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 07 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 07 00 6B 54 00 00 00 00 00 FF 0F D4 [09:26:09]RasterBufferAndPrint [09:26:09]line Счет N : (3)164450 [09:26:09]line ИНН: 02508201610067 [09:26:09]line Контрольно-Кассовый Чек [09:26:09]line ПРОДАЖА [09:26:09]line Товар: 2000036220012 [09:26:09]line Кофе Капучино XL(GABB TRADE) [09:26:09]line 1.000 * 130.00 [09:26:09]line = 130.00 [09:26:09]line НДС 12% НСП 1% [09:26:09]line > о реализуемом товаре [09:26:09]line ИТОГО: 130.00 [09:26:09]line НСП 1% : 1.15 [09:26:09]line НДС 12% : 13.80 [09:26:09]line Наличными: 0.00 [09:26:09]line Безнал.: 130.00 [09:26:09]line Место: АЗС № 80 "Партнер Нефть" [09:26:09]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:26:09]line СНО: Общий режим [09:26:09]line Чек 38 25.10.2024 09:26 [09:26:09]line Смена: 493 ФФД: 1.0 [09:26:09]line ЗНМ: 0300000090 [09:26:09]line РНМ: 0000000000097022 [09:26:09]line Версия ККМ: 001 [09:26:09]line Платежная система: Mbank [09:26:09]line ФМ: 0000000000875000 [09:26:09]line ФД: 50538 [09:26:09]line ФПД: 261065576187631 [09:26:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T092621&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50538&fm=261065576187631&tin=02508201610067®Number=0000000000097022&sum=13000 [09:26:09]line 0 [09:26:09]OFD Sender: Processing packet 50538 [packets to send 7, broken 6] [09:26:09]ProducePacketName [09:26:09]name=ofd_packets/00050538 [09:26:09]OFD Sender: To server: pG, [09:26:09]CommunicateWithHost lk.salyk.kg:30040 [09:26:09]ConnectInit lk.salyk.kg [09:26:09]written 0, free lines is 4095 [09:26:09]Connected sock=9 [09:26:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 7A 3D 26 01 E4 5A 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 26 00 00 00 F4 03 04 00 3D 64 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C5 00 00 35 04 06 00 ED 70 10 EE 86 EF E7 1F 0A 0E CD 37 C2 C7 [09:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 0C F5 47 00 A3 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6A C5 00 00 F4 03 04 00 CE 0F 1B 67 B6 04 01 00 00 1C 05 45 48 5E C1 70 96 [09:26:10]CommunicateWithHost err = 0 [09:26:10]CheckOFDResponse [09:26:10]1017 (14) - 77093643461234 [09:26:10]1041 (16) - 0000000000875000 [09:26:10]1040 (4) - 50538 [09:26:10]1012 (4) - 25.10.2024 03:26 [09:26:10]1206 (1) - 0 [09:26:10]OFD Sender: Remove packet 50538 [09:26:10]ProducePacketName [09:26:10]name=ofd_packets/00050538 [09:26:10]NVStorageDeleteData [09:26:10]Write to MH i2c: 01 00 00 95 54 E9 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 95 54 00 00 00 00 00 07 0D 04 [09:26:10]RasterBufferAndPrint [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]written 0, free lines is 3341 [09:26:10]process_action close_receipt done [09:26:10]requested_data is exist [09:26:10]produce_requested_data [09:26:10]requested_item fm.sn is exist - process it [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 11 00 00 [09:26:10]Write to MH i2c: E2 08 00 9C 54 80 11 00 00 00 00 00 00 6A [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 17 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 17 00 9C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B1 [09:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:26:10]wFMCommunicate OK [09:26:10]requested_item fd.num is exist - process it [09:26:10]SAM_PROTO_GetFieldsCounters [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 13 00 00 [09:26:10]Write to MH i2c: E2 08 00 9D 54 80 13 00 00 00 00 00 00 6D [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 62 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 62 00 9D 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [09:26:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:10]wFMCommunicate OK [09:26:10]SAM_PROTO_GetFieldsCounters done [09:26:10]requested_item shift.num is exist - process it [09:26:10]requested_item shift.opened is exist - process it [09:26:10]req_shift_opened [09:26:10]FM_GetShiftState [09:26:10]SAM_PROTO_GetShiftState [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 13 01 00 [09:26:10]Write to MH i2c: E2 08 00 9E 54 80 13 01 00 00 00 00 00 6F [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 0E 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 0E 00 9E 54 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 67 [09:26:10]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:26:10]wFMCommunicate OK [09:26:10]SAM_PROTO_GetShiftState done [09:26:10]FM_GetShiftState done [09:26:10]req_shift_opened done [09:26:10]requested_item shift.open_date is exist - process it [09:26:10]req_shift_open_date [09:26:10]req_shift_open_date done [09:26:10]produce_requested_data done [09:26:10]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50538,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:26:10]process_action_free close_receipt [09:26:10]json_value_free [09:26:10]json_value_free done [09:26:10]process_json_proto returns [09:26:10]Send response to host [09:26:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50538,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:26:10]free response buf [09:26:10]execute_script done [09:26:10]execute_script returns [09:26:10]free content buf [09:26:10]Sock 10.Close socket [09:26:10]Sock 10.Thread stoped [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:24]accept exits with 7 [09:30:24]New connection [09:30:24]New thread 3067161956 created [09:30:24]Thread 3067305316 joined [09:30:24]Waiting for new connection... [09:30:24] Sock 7.Parse request [09:30:24]Sock 7.Check first char [09:30:24]Sock 7.First char is OK [09:30:24]request: POST /json_proto HTTP/1.0 [09:30:24]Method: POST [09:30:24]URL: /json_proto [09:30:24]Method is POST - this is cgi request [09:30:24]url: /json_proto [09:30:24]query_string will be loaded in cgi processing [09:30:24]execute_cgi json_proto POST (null) [09:30:24]execute_cgi path=json_proto method=POST [09:30:24]POST find Content-Length [09:30:24]Host: 172.17.49.196:8080 [09:30:24]Content-Length: 690 [09:30:24]Content-Type: application/json [09:30:24] [09:30:24]POST finish read [09:30:24]Found Content-Length = 690 [09:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:24]execute_script... [09:30:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:24]POST & json_proto [09:30:24]process_json_proto [09:30:24]json parsed OK: [09:30:24]protocol is kg_v1.0 [09:30:24]action value=close_receipt [09:30:24]process_action close_receipt [09:30:24]cmd_close_receipt [09:30:24]MH_GetDate [09:30:24]Write to MH i2c: F0 00 00 9F 54 E2 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: F0 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: F0 09 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: F0 09 00 9F 54 00 3D 65 1B 67 BD 3B 11 67 7F [09:30:24]GetLastDocTimeStamp 1729848381 [09:30:24]current date 1729848637 [09:30:24]FM_GetShiftState [09:30:24]SAM_PROTO_GetShiftState [09:30:24]wFMCommunicate request_size=4 [09:30:24]MH_SAM_APDU [09:30:24]CAPDU: 80 13 01 00 [09:30:24]Write to MH i2c: E2 08 00 A0 54 80 13 01 00 00 00 00 00 71 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:24]Read from MH i2c: E2 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 0E 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 0E 00 A0 54 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 69 [09:30:24]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:30:24]wFMCommunicate OK [09:30:24]SAM_PROTO_GetShiftState done [09:30:24]FM_GetShiftState done [09:30:24]opened in 1729815177 [09:30:24]opened+sec_in_day 1729901577 [09:30:24]quantity*price = 100051 [09:30:24]sum+1 = 100052 [09:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 39 25.10.2024 09:30 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50539 ФПД: 151875420477009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093037&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50539&fm=151875420477009&tin=02508201610067®Number=0000000000097022&sum=100000 [09:30:25]StoreToDocumentArchive [09:30:25]shift 493 fd 50539 [09:30:25]save to /storage/0493/doc_00050539 [09:30:25]save last doc name /storage/0493/doc_00050539 to /storage/kkm_last_doc_name [09:30:25]save OK [09:30:25]Clear old archive folders... [09:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:30:25]tlvbuf is 001CEE30 [09:30:25]SAM_PROTO_ClearQueue [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 09 00 00 [09:30:25]Write to MH i2c: E2 08 00 AD 54 80 09 00 00 00 00 00 00 73 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 AD 54 00 90 00 75 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]SAM_PROTO_ClearQueue done [09:30:25]KKMCreateOFDPacket [09:30:25]OFDProtocolAddRootSTLVToBuf [09:30:25]FM_MakeSignedData [09:30:25]FM_MakeSignedData [09:30:25]SAM_PROTO_SignData [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 01 02 [09:30:25]Write to MH i2c: E2 08 00 AE 54 80 0D 01 02 00 00 00 00 7B [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 AE 54 00 90 00 76 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]wFMCommunicate request_size=255 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 3D 65 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C5 00 [09:30:25]Write to MH i2c: E2 02 01 AF 54 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 3D 65 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C5 00 00 00 47 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 AF 54 00 90 00 77 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]wFMCommunicate request_size=16 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8A 21 40 7C D6 51 [09:30:25]Write to MH i2c: E2 13 00 B0 54 80 0D 02 02 0B 00 00 35 04 06 00 8A 21 40 7C D6 51 00 00 61 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 B0 54 00 90 00 78 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 03 02 [09:30:25]Write to MH i2c: E2 08 00 B1 54 80 0D 03 02 00 00 00 00 80 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0B 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0B 00 B1 54 00 5D B6 BD D0 D0 70 85 71 90 00 57 [09:30:25]RAPDU: 5D B6 BD D0 D0 70 85 71 90 00 [09:30:25]wFMCommunicate OK [09:30:25]SAM_PROTO_SignData done [09:30:25]FM_MakeSignedData done [09:30:25]CreateOFDProtocolMessage [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 11 00 00 [09:30:25]Write to MH i2c: E2 08 00 B2 54 80 11 00 00 00 00 00 00 80 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 17 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 17 00 B2 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C7 [09:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:30:25]wFMCommunicate OK [09:30:25]CreateOFDProtocolMessage done [09:30:25]OFDSenderStorePacket 50539 [09:30:25]StoreOFDPacket docnum=50539 [09:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 92 53 0D 01 13 60 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 3D 65 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C5 00 00 35 04 06 00 8A 21 40 7C D6 51 5D B6 BD D0 D0 70 85 71 [09:30:25]CheckFolder [09:30:25]dirname=/storage/ofd_packets [09:30:25]CheckFolder done [09:30:25]ProducePacketName [09:30:25]name=ofd_packets/00050539 [09:30:25]NVStorageSaveData ofd_packets/00050539 [09:30:25]File name is /storage/ofd_packets/00050539 [09:30:25]Write 307 bytes [09:30:25]NVStorageSaveData done [09:30:25]OFDSenderStorePacket done [09:30:25]KKMCreateOFDPacket done [09:30:25]NVStorageSaveData kkm_last_timestamp [09:30:25]File name is /storage/kkm_last_timestamp [09:30:25]Write 4 bytes [09:30:25]NVStorageSaveData done [09:30:25]ExternCall_PrintAddStr [09:30:25]wPrintStart [09:30:25]Write to MH i2c: 01 00 00 B3 54 07 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 07 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 07 00 B3 54 00 00 00 00 00 FF 0F 1C [09:30:25]RasterBufferAndPrint [09:30:25]line Счет N : (1)15442329 [09:30:25]line ИНН: 02508201610067 [09:30:25]line Контрольно-Кассовый Чек [09:30:25]line ПРОДАЖА [09:30:25]line ТРК (МРК, ГНК) : 31 [09:30:25]line Товар: 2710194210 [09:30:25]line D-ENERGY ДТ-К-2 [09:30:25]line 12.960 * 77.20 [09:30:25]line = 1000.51 [09:30:25]line НДС 12% НСП 1% [09:30:25]line > о реализуемом товаре [09:30:25]line ОКРУГЛЕНИЕ: -0.51 [09:30:25]line ИТОГО: 1000.00 [09:30:25]line Внесено: 1000.00 [09:30:25]line СДАЧА: 0.00 [09:30:25]line НСП 1% : 8.85 [09:30:25]line НДС 12% : 106.25 [09:30:25]line Наличными: 1000.00 [09:30:25]line Безнал.: 0.00 [09:30:25]line Место: АЗС № 80 "Партнер Нефть" [09:30:25]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:30:25]line СНО: Общий режим [09:30:25]line Чек 39 25.10.2024 09:30 [09:30:25]line Смена: 493 ФФД: 1.0 [09:30:25]line ЗНМ: 0300000090 [09:30:25]line РНМ: 0000000000097022 [09:30:25]line Версия ККМ: 001 [09:30:25]line ФМ: 0000000000875000 [09:30:25]line ФД: 50539 [09:30:25]line ФПД: 151875420477009 [09:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T093037&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50539&fm=151875420477009&tin=02508201610067®Number=0000000000097022&sum=100000 [09:30:26]OFD Sender: Processing packet 50539 [packets to send 7, broken 6] [09:30:26]ProducePacketName [09:30:26]name=ofd_packets/00050539 [09:30:26]OFD Sender: To server: pG, [09:30:26]CommunicateWithHost lk.salyk.kg:30040 [09:30:26]ConnectInit lk.salyk.kg [09:30:26]written 0, free lines is 4095 [09:30:26]Connected sock=10 [09:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 92 53 0D 01 13 60 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 3D 65 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6B C5 00 00 35 04 06 00 8A 21 40 7C D6 51 5D B6 BD D0 D0 70 85 71 [09:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 79 EC 47 00 05 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 38 37 35 30 30 30 10 04 04 00 6B C5 00 00 F4 03 04 00 CE 10 1B 67 B6 04 01 00 00 90 C4 31 09 31 9E 3C 7E [09:30:26]CommunicateWithHost err = 0 [09:30:26]CheckOFDResponse [09:30:26]1017 (14) - 77093643461234 [09:30:26]1041 (16) - 0000000000875000 [09:30:26]1040 (4) - 50539 [09:30:26]1012 (4) - 25.10.2024 03:30 [09:30:26]1206 (1) - 0 [09:30:26]OFD Sender: Remove packet 50539 [09:30:26]ProducePacketName [09:30:26]name=ofd_packets/00050539 [09:30:26]NVStorageDeleteData [09:30:26]Write to MH i2c: 01 00 00 DE 54 32 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 DE 54 00 00 00 00 00 01 0D 47 [09:30:26]RasterBufferAndPrint [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]written 0, free lines is 3338 [09:30:26]process_action close_receipt done [09:30:26]requested_data is exist [09:30:26]produce_requested_data [09:30:26]requested_item fm.sn is exist - process it [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 11 00 00 [09:30:26]Write to MH i2c: E2 08 00 E5 54 80 11 00 00 00 00 00 00 B3 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 17 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 17 00 E5 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FA [09:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:30:26]wFMCommunicate OK [09:30:26]requested_item fd.num is exist - process it [09:30:26]SAM_PROTO_GetFieldsCounters [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 13 00 00 [09:30:26]Write to MH i2c: E2 08 00 E6 54 80 13 00 00 00 00 00 00 B6 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 62 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 62 00 E6 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [09:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:26]wFMCommunicate OK [09:30:26]SAM_PROTO_GetFieldsCounters done [09:30:26]requested_item shift.num is exist - process it [09:30:26]requested_item shift.opened is exist - process it [09:30:26]req_shift_opened [09:30:26]FM_GetShiftState [09:30:26]SAM_PROTO_GetShiftState [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 13 01 00 [09:30:26]Write to MH i2c: E2 08 00 E7 54 80 13 01 00 00 00 00 00 B8 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0E 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0E 00 E7 54 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B0 [09:30:26]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:30:26]wFMCommunicate OK [09:30:26]SAM_PROTO_GetShiftState done [09:30:26]FM_GetShiftState done [09:30:26]req_shift_opened done [09:30:26]requested_item shift.open_date is exist - process it [09:30:26]req_shift_open_date [09:30:26]req_shift_open_date done [09:30:26]produce_requested_data done [09:30:26]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50539,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:30:26]process_action_free close_receipt [09:30:26]json_value_free [09:30:26]json_value_free done [09:30:26]process_json_proto returns [09:30:26]Send response to host [09:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50539,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:30:26]free response buf [09:30:26]execute_script done [09:30:26]execute_script returns [09:30:26]free content buf [09:30:26]Sock 7.Close socket [09:30:26]Sock 7.Thread stoped [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:41]accept exits with 9 [09:42:41]New connection [09:42:41]New thread 3067305316 created [09:42:41]Thread 3067161956 joined [09:42:41]Waiting for new connection... [09:42:41] Sock 9.Parse request [09:42:41]Sock 9.Check first char [09:42:41]Sock 9.First char is OK [09:42:41]request: POST /json_proto HTTP/1.0 [09:42:41]Method: POST [09:42:41]URL: /json_proto [09:42:41]Method is POST - this is cgi request [09:42:41]url: /json_proto [09:42:41]query_string will be loaded in cgi processing [09:42:41]execute_cgi json_proto POST (null) [09:42:41]execute_cgi path=json_proto method=POST [09:42:41]POST find Content-Length [09:42:41]Host: 172.17.49.196:8080 [09:42:41]Content-Length: 771 [09:42:41]Content-Type: application/json [09:42:41] [09:42:41]POST finish read [09:42:41]Found Content-Length = 771 [09:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164451", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:41]execute_script... [09:42:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164451", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:41]POST & json_proto [09:42:41]process_json_proto [09:42:41]json parsed OK: [09:42:41]protocol is kg_v1.0 [09:42:41]action value=close_receipt [09:42:41]process_action close_receipt [09:42:41]cmd_close_receipt [09:42:41]MH_GetDate [09:42:41]Write to MH i2c: F0 00 00 E8 54 2B [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: F0 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: F0 09 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: F0 09 00 E8 54 00 1F 68 1B 67 BD 3B 11 67 AD [09:42:41]GetLastDocTimeStamp 1729848637 [09:42:41]current date 1729849375 [09:42:41]FM_GetShiftState [09:42:41]SAM_PROTO_GetShiftState [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 13 01 00 [09:42:41]Write to MH i2c: E2 08 00 E9 54 80 13 01 00 00 00 00 00 BA [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 E9 54 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B2 [09:42:41]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_GetShiftState done [09:42:41]FM_GetShiftState done [09:42:41]opened in 1729815177 [09:42:41]opened+sec_in_day 1729901577 [09:42:41]quantity*price = 23000 [09:42:41]sum+1 = 23001 [09:42:41]Check (price>sum+1) || (price+1 о реализуемом товаре [09:42:43]line ИТОГО: 230.00 [09:42:43]line НСП 1% : 2.03 [09:42:43]line НДС 12% : 24.42 [09:42:43]line Наличными: 0.00 [09:42:43]line Безнал.: 230.00 [09:42:43]line Место: АЗС № 80 "Партнер Нефть" [09:42:43]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:42:43]line СНО: Общий режим [09:42:43]line Чек 40 25.10.2024 09:42 [09:42:43]line Смена: 493 ФФД: 1.0 [09:42:43]line ЗНМ: 0300000090 [09:42:43]line РНМ: 0000000000097022 [09:42:43]line Версия ККМ: 001 [09:42:43]line Платежная система: Mbank [09:42:43]line ФМ: 0000000000875000 [09:42:43]line ФД: 50540 [09:42:43]line ФПД: 252108527134160 [09:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094255&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50540&fm=252108527134160&tin=02508201610067®Number=0000000000097022&sum=23000 [09:42:43]line 0 [09:42:43]OFD Sender: Processing packet 50540 [packets to send 7, broken 6] [09:42:43]ProducePacketName [09:42:43]name=ofd_packets/00050540 [09:42:43]OFD Sender: To server: pG, [09:42:43]CommunicateWithHost lk.salyk.kg:30040 [09:42:43]ConnectInit lk.salyk.kg [09:42:43]written 0, free lines is 4095 [09:42:43]Connected sock=11 [09:42:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 91 99 24 01 61 3E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1F 68 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6C C5 00 00 35 04 06 00 E5 4A 97 34 65 D0 5F C3 E9 3D 56 11 41 05 [09:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 48 B4 47 00 D8 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6C C5 00 00 F4 03 04 00 B0 13 1B 67 B6 04 01 00 00 C6 F3 16 2E 25 9B 4F D1 [09:42:44]CommunicateWithHost err = 0 [09:42:44]CheckOFDResponse [09:42:44]1017 (14) - 77093643461234 [09:42:44]1041 (16) - 0000000000875000 [09:42:44]1040 (4) - 50540 [09:42:44]1012 (4) - 25.10.2024 03:42 [09:42:44]1206 (1) - 0 [09:42:44]OFD Sender: Remove packet 50540 [09:42:44]ProducePacketName [09:42:44]name=ofd_packets/00050540 [09:42:44]NVStorageDeleteData [09:42:44]Write to MH i2c: 01 00 00 25 55 7A [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: 01 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: 01 07 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: 01 07 00 25 55 00 00 00 00 00 21 0D AF [09:42:44]RasterBufferAndPrint [09:42:44]line [09:42:44]line [09:42:44]line [09:42:44]line [09:42:44]line [09:42:44]written 0, free lines is 3367 [09:42:44]process_action close_receipt done [09:42:44]requested_data is exist [09:42:44]produce_requested_data [09:42:44]requested_item fm.sn is exist - process it [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 11 00 00 [09:42:44]Write to MH i2c: E2 08 00 2C 55 80 11 00 00 00 00 00 00 FB [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 2C 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 42 [09:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:42:44]wFMCommunicate OK [09:42:44]requested_item fd.num is exist - process it [09:42:44]SAM_PROTO_GetFieldsCounters [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 13 00 00 [09:42:44]Write to MH i2c: E2 08 00 2D 55 80 13 00 00 00 00 00 00 FE [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 62 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 62 00 2D 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [09:42:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_GetFieldsCounters done [09:42:44]requested_item shift.num is exist - process it [09:42:44]requested_item shift.opened is exist - process it [09:42:44]req_shift_opened [09:42:44]FM_GetShiftState [09:42:44]SAM_PROTO_GetShiftState [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 13 01 00 [09:42:44]Write to MH i2c: E2 08 00 2E 55 80 13 01 00 00 00 00 00 00 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0E 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0E 00 2E 55 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F8 [09:42:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_GetShiftState done [09:42:44]FM_GetShiftState done [09:42:44]req_shift_opened done [09:42:44]requested_item shift.open_date is exist - process it [09:42:44]req_shift_open_date [09:42:44]req_shift_open_date done [09:42:44]produce_requested_data done [09:42:44]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50540,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:42:44]process_action_free close_receipt [09:42:44]json_value_free [09:42:44]json_value_free done [09:42:44]process_json_proto returns [09:42:44]Send response to host [09:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50540,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:42:44]free response buf [09:42:44]execute_script done [09:42:44]execute_script returns [09:42:44]free content buf [09:42:44]Sock 9.Close socket [09:42:44]Sock 9.Thread stoped [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:00]int [09:43:00]Write to MH i2c: 01 00 00 2F 55 84 [09:45:16]receipt_add_items: quantity [09:45:16]03 E8 03 00 00 00 00 00 KKMCreateReceiptItemDocument [09:45:16]Load OK [09:45:16]KKMSetReceiptItemData [09:45:16]KKMSetReceiptItemData [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]KKMSetReceiptItemData err=0 [09:45:16]KKMAddReceiptItem [09:45:16]LoadAmountFromDocumentTag total=0 [09:45:16]LoadAmountFromDocumentTag cost=13000 [09:45:16]SetAmountToDocument total=13000 [09:45:16]Malloc new data [09:45:16]cost*persent_nds=1560000 [09:45:16]+500=1560500 [09:45:16]tax_nds_amount=1380 [09:45:16]cost*persent_nds=130000 [09:45:16]+500=130500 [09:45:16]tax_nsp_amount=115 [09:45:16]Load OK [09:45:16]Load OK [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]Load OK [09:45:16]Load OK [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]free (receipt_item_data.pre_item_text) [09:45:16]free (receipt_item_data.post_item_text) [09:45:16]done [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]Malloc new data [09:45:16]KKMSetReceiptData OK [09:45:16]ProcessDocumentItem done err = 0, tmpTLVsize=111 [09:45:16]tlvbuf is 00288EF0 [09:45:16]KKMLoadAndSignReceiptData [09:45:16]SAM_PROTO_ProcessDocument [09:45:16]wFMCommunicate request_size=9 [09:45:16]MH_SAM_APDU [09:45:16]CAPDU: 80 15 01 00 04 03 00 6F 00 [09:45:16]Write to MH i2c: E2 0C 00 3E 55 80 15 01 00 04 00 03 00 6F 00 00 00 8C [09:45:16]Write i2c OK [09:45:16]MH_I2C_Read... [09:45:16]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [09:45:16]Read from MH i2c: E2 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: E2 03 00 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: E2 03 00 3E 55 00 90 00 07 [09:45:16]RAPDU: 90 00 [09:45:16]wFMCommunicate OK [09:45:16]wFMCommunicate request_size=10 [09:45:16]MH_SAM_APDU [09:45:16]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [09:45:16]Write to MH i2c: E2 0D 00 3F 55 80 15 02 00 05 00 1E 04 01 00 01 00 00 42 [09:45:16]Write i2c OK [09:45:16]MH_I2C_Read... [09:45:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:45:16]Read from MH i2c: E2 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: E2 03 00 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: E2 03 00 3F 55 00 90 00 08 [09:45:16]RAPDU: 90 00 [09:45:16]wFMCommunicate OK [09:45:16]wFMCommunicate request_size=15 [09:45:16]MH_SAM_APDU [09:45:16]CAPDU: 80 15 02 00 0A FC 03 06 00 C8 32 00 00 00 00 [09:45:16]Write to MH i2c: E2 12 00 40 55 80 15 02 00 0A 00 FC 03 06 00 C8 32 00 00 00 00 00 00 28 [09:45:16]Write i2c OK [09:45:16]MH_I2C_Read... [09:45:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:45:16]Read from MH i2c: E2 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: E2 03 00 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: E2 03 00 40 55 00 90 00 09 [09:45:16]RAPDU: 90 00 [09:45:16]wFMCommunicate OK [09:45:16]wFMCommunicate request_size=47 [09:45:16]MH_SAM_APDU [09:45:16]CAPDU: 80 15 02 00 2A 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 [09:45:16]Write to MH i2c: E2 32 00 41 55 80 15 02 00 2A 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 00 00 49 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 41 55 00 90 00 0A [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=15 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 15 02 00 0A 07 04 06 00 C8 32 00 00 00 00 [09:45:17]Write to MH i2c: E2 12 00 42 55 80 15 02 00 0A 00 07 04 06 00 C8 32 00 00 00 00 00 00 36 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 42 55 00 90 00 0B [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=15 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [09:45:17]Write to MH i2c: E2 12 00 43 55 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 6F [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 43 55 00 90 00 0C [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=11 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [09:45:17]Write to MH i2c: E2 0E 00 44 55 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 4B [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 44 55 00 90 00 0D [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=13 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 15 02 00 08 F4 03 04 00 BA 68 1B 67 [09:45:17]Write to MH i2c: E2 10 00 45 55 80 15 02 00 08 00 F4 03 04 00 BA 68 1B 67 00 00 C9 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 45 55 00 90 00 0E [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=25 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [09:45:17]Write to MH i2c: E2 1C 00 46 55 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 78 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 46 55 00 90 00 0F [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 15 03 00 [09:45:17]Write to MH i2c: E2 08 00 47 55 80 15 03 00 00 00 00 00 1D [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 40 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 40 00 47 55 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 29 00 00 00 35 04 06 00 97 8C 1B 28 B9 C6 90 00 35 [09:45:17]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 29 00 00 00 35 04 06 00 97 8C 1B 28 B9 C6 90 00 [09:45:17]wFMCommunicate OK [09:45:17]SAM_PROTO_ProcessDocument answer len = 59 [09:45:17]SAM_PROTO_ProcessDocument done [09:45:17]SetTLVBufToDocument [09:45:17]Processing tag 1209 (04B9) [09:45:17]Malloc new data [09:45:17]Processing tag 1041 (0411) [09:45:17]Processing tag 1040 (0410) [09:45:17]Malloc new data [09:45:17]Processing tag 1038 (040E) [09:45:17]Malloc new data [09:45:17]Processing tag 1042 (0412) [09:45:17]Malloc new data [09:45:17]Processing tag 1077 (0435) [09:45:17]Malloc new data [09:45:17]SetTLVBufToDocument err=0 [09:45:17]KKMLoadAndSignReceiptData store KKM data [09:45:17]KKMLoadAndSignReceiptData err=0 [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 11 00 00 [09:45:17]Write to MH i2c: E2 08 00 48 55 80 11 00 00 00 00 00 00 17 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 17 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 17 00 48 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 5E [09:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:45:17]wFMCommunicate OK [09:45:17]Счет N : (3)164452 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 41 25.10.2024 09:45 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50541 ФПД: 166628006869446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094530&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50541&fm=166628006869446&tin=02508201610067®Number=0000000000097022&sum=13000 0 [09:45:17]StoreToDocumentArchive [09:45:17]shift 493 fd 50541 [09:45:17]save to /storage/0493/doc_00050541 [09:45:17]save last doc name /storage/0493/doc_00050541 to /storage/kkm_last_doc_name [09:45:17]save OK [09:45:17]Clear old archive folders... [09:45:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:45:17]tlvbuf is 0025CA30 [09:45:17]SAM_PROTO_ClearQueue [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 09 00 00 [09:45:17]Write to MH i2c: E2 08 00 49 55 80 09 00 00 00 00 00 00 10 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 49 55 00 90 00 12 [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]SAM_PROTO_ClearQueue done [09:45:17]KKMCreateOFDPacket [09:45:17]OFDProtocolAddRootSTLVToBuf [09:45:17]FM_MakeSignedData [09:45:17]FM_MakeSignedData [09:45:17]SAM_PROTO_SignData [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 0D 01 02 [09:45:17]Write to MH i2c: E2 08 00 4A 55 80 0D 01 02 00 00 00 00 18 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:18]Read from MH i2c: E2 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 03 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 03 00 4A 55 00 90 00 13 [09:45:18]RAPDU: 90 00 [09:45:18]wFMCommunicate OK [09:45:18]wFMCommunicate request_size=255 [09:45:18]MH_SAM_APDU [09:45:18]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 29 00 00 00 F4 03 04 00 BA 68 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [09:45:18]Write to MH i2c: E2 02 01 4B 55 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 29 00 00 00 F4 03 04 00 BA 68 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 DD [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:18]Read from MH i2c: E2 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 03 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 03 00 4B 55 00 90 00 14 [09:45:18]RAPDU: 90 00 [09:45:18]wFMCommunicate OK [09:45:18]wFMCommunicate request_size=41 [09:45:18]MH_SAM_APDU [09:45:18]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C5 00 00 35 04 06 00 97 8C 1B 28 B9 C6 [09:45:18]Write to MH i2c: E2 2C 00 4C 55 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C5 00 00 35 04 06 00 97 8C 1B 28 B9 C6 00 00 F5 [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:18]Read from MH i2c: E2 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 03 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 03 00 4C 55 00 90 00 15 [09:45:18]RAPDU: 90 00 [09:45:18]wFMCommunicate OK [09:45:18]wFMCommunicate request_size=4 [09:45:18]MH_SAM_APDU [09:45:18]CAPDU: 80 0D 03 02 [09:45:18]Write to MH i2c: E2 08 00 4D 55 80 0D 03 02 00 00 00 00 1D [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:18]Read from MH i2c: E2 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 0B 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 0B 00 4D 55 00 99 80 33 92 25 22 5B 3A 90 00 D8 [09:45:18]RAPDU: 99 80 33 92 25 22 5B 3A 90 00 [09:45:18]wFMCommunicate OK [09:45:18]SAM_PROTO_SignData done [09:45:18]FM_MakeSignedData done [09:45:18]CreateOFDProtocolMessage [09:45:18]wFMCommunicate request_size=4 [09:45:18]MH_SAM_APDU [09:45:18]CAPDU: 80 11 00 00 [09:45:18]Write to MH i2c: E2 08 00 4E 55 80 11 00 00 00 00 00 00 1D [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:18]Read from MH i2c: E2 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 17 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: E2 17 00 4E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 64 [09:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:45:18]wFMCommunicate OK [09:45:18]CreateOFDProtocolMessage done [09:45:18]OFDSenderStorePacket 50541 [09:45:18]StoreOFDPacket docnum=50541 [09:45:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 47 9A 26 01 4D 8D 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 29 00 00 00 F4 03 04 00 BA 68 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C5 00 00 35 04 06 00 97 8C 1B 28 B9 C6 99 80 33 92 25 22 5B 3A [09:45:18]CheckFolder [09:45:18]dirname=/storage/ofd_packets [09:45:18]CheckFolder done [09:45:18]ProducePacketName [09:45:18]name=ofd_packets/00050541 [09:45:18]NVStorageSaveData ofd_packets/00050541 [09:45:18]File name is /storage/ofd_packets/00050541 [09:45:18]Write 332 bytes [09:45:18]NVStorageSaveData done [09:45:18]OFDSenderStorePacket done [09:45:18]KKMCreateOFDPacket done [09:45:18]NVStorageSaveData kkm_last_timestamp [09:45:18]File name is /storage/kkm_last_timestamp [09:45:18]Write 4 bytes [09:45:18]NVStorageSaveData done [09:45:18]ExternCall_PrintAddStr [09:45:18]wPrintStart [09:45:18]Write to MH i2c: 01 00 00 4F 55 A4 [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 4F 55 00 00 00 00 00 FF 0F B9 [09:45:18]RasterBufferAndPrint [09:45:18]line Счет N : (3)164452 [09:45:18]line ИНН: 02508201610067 [09:45:18]line Контрольно-Кассовый Чек [09:45:18]line ПРОДАЖА [09:45:18]line Товар: 2000036220012 [09:45:18]line Кофе Капучино XL(GABB TRADE) [09:45:18]line 1.000 * 130.00 [09:45:18]line = 130.00 [09:45:18]line НДС 12% НСП 1% [09:45:18]line > о реализуемом товаре [09:45:18]line ИТОГО: 130.00 [09:45:18]line НСП 1% : 1.15 [09:45:18]line НДС 12% : 13.80 [09:45:18]line Наличными: 130.00 [09:45:18]line Безнал.: 0.00 [09:45:18]line Место: АЗС № 80 "Партнер Нефть" [09:45:18]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:45:18]line СНО: Общий режим [09:45:18]line Чек 41 25.10.2024 09:45 [09:45:18]line Смена: 493 ФФД: 1.0 [09:45:18]line ЗНМ: 0300000090 [09:45:18]line РНМ: 0000000000097022 [09:45:18]line Версия ККМ: 001 [09:45:18]line ФМ: 0000000000875000 [09:45:18]line ФД: 50541 [09:45:18]line ФПД: 166628006869446 [09:45:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T094530&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50541&fm=166628006869446&tin=02508201610067®Number=0000000000097022&sum=13000 [09:45:18]line 0 [09:45:18]written 0, free lines is 4095 [09:45:18]OFD Sender: Processing packet 50541 [packets to send 7, broken 6] [09:45:18]ProducePacketName [09:45:18]name=ofd_packets/00050541 [09:45:18]OFD Sender: To server: pG, [09:45:18]CommunicateWithHost lk.salyk.kg:30040 [09:45:18]ConnectInit lk.salyk.kg [09:45:18]Connected sock=11 [09:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 47 9A 26 01 4D 8D 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 29 00 00 00 F4 03 04 00 BA 68 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C5 00 00 35 04 06 00 97 8C 1B 28 B9 C6 99 80 33 92 25 22 5B 3A [09:45:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 EE DB 47 00 61 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6D C5 00 00 F4 03 04 00 4B 14 1B 67 B6 04 01 00 00 80 4D A6 1D 70 30 35 23 [09:45:18]CommunicateWithHost err = 0 [09:45:18]CheckOFDResponse [09:45:18]1017 (14) - 77093643461234 [09:45:18]1041 (16) - 0000000000875000 [09:45:18]1040 (4) - 50541 [09:45:18]1012 (4) - 25.10.2024 03:45 [09:45:18]1206 (1) - 0 [09:45:18]OFD Sender: Remove packet 50541 [09:45:18]ProducePacketName [09:45:18]name=ofd_packets/00050541 [09:45:18]NVStorageDeleteData [09:45:18]Write to MH i2c: 01 00 00 78 55 CD [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 78 55 00 00 00 00 00 24 0D 05 [09:45:18]RasterBufferAndPrint [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]written 0, free lines is 3377 [09:45:18]process_action close_receipt done [09:45:18]requested_data is exist [09:45:18]produce_requested_data [09:45:19]requested_item fm.sn is exist - process it [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 11 00 00 [09:45:19]Write to MH i2c: E2 08 00 7F 55 80 11 00 00 00 00 00 00 4E [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 17 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 17 00 7F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 95 [09:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:45:19]wFMCommunicate OK [09:45:19]requested_item fd.num is exist - process it [09:45:19]SAM_PROTO_GetFieldsCounters [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 13 00 00 [09:45:19]Write to MH i2c: E2 08 00 80 55 80 13 00 00 00 00 00 00 51 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 62 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 62 00 80 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [09:45:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:19]wFMCommunicate OK [09:45:19]SAM_PROTO_GetFieldsCounters done [09:45:19]requested_item shift.num is exist - process it [09:45:19]requested_item shift.opened is exist - process it [09:45:19]req_shift_opened [09:45:19]FM_GetShiftState [09:45:19]SAM_PROTO_GetShiftState [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 13 01 00 [09:45:19]Write to MH i2c: E2 08 00 81 55 80 13 01 00 00 00 00 00 53 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 0E 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 0E 00 81 55 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4B [09:45:19]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:45:19]wFMCommunicate OK [09:45:19]SAM_PROTO_GetShiftState done [09:45:19]FM_GetShiftState done [09:45:19]req_shift_opened done [09:45:19]requested_item shift.open_date is exist - process it [09:45:19]req_shift_open_date [09:45:19]req_shift_open_date done [09:45:19]produce_requested_data done [09:45:19]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50541,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:45:19]process_action_free close_receipt [09:45:19]json_value_free [09:45:19]json_value_free done [09:45:19]process_json_proto returns [09:45:19]Send response to host [09:45:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50541,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:45:19]free response buf [09:45:19]execute_script done [09:45:19]execute_script returns [09:45:19]free content buf [09:45:19]Sock 7.Close socket [09:45:19]Sock 7.Thread stoped [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:25]int [09:45:25]Write to MH i2c: 01 00 00 82 55 D7 [09:45:25]*** FLAG_PRN_PAP1 set [09:45:25]Write i2c OK [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: 01 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: 01 07 00 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: 01 07 00 82 55 00 01 00 00 00 FF 0F ED [09:45:25]state=0 [09:45:25]No paper [09:45:25]int [09:45:25]Write to MH i2c: 01 00 00 83 55 D8 [09:45:25]*** FLAG_PRN_PAP2 set [09:45:25]Write i2c OK [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: 01 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: 01 07 00 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: 01 07 00 83 55 00 03 00 00 00 FF 0F F0 [09:45:25]state=0 [09:45:25]No paper [09:45:25]Cover opened [09:45:26]int [09:45:26]Write to MH i2c: 01 00 00 84 55 D9 [09:45:26]*** FLAG_PRN_PAP2 reset [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 84 55 00 01 00 00 00 FF 0F EF [09:45:26]state=3 [09:45:26]No paper [09:45:26]Cover closed [09:45:26]int line is 0 - check status [09:45:26]Write to MH i2c: 01 00 00 85 55 DA [09:45:26]*** FLAG_PRN_PAP1 reset [09:45:26]*** FLAG_PRN_PAP1 set [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 85 55 00 01 00 00 00 FF 0F F0 [09:45:26]state=0 [09:45:26]No paper [09:45:26]int [09:45:26]Write to MH i2c: 01 00 00 86 55 DB [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 86 55 00 01 00 00 00 FF 0F F1 [09:45:26]state=0 [09:45:26]No paper [09:45:27]int [09:45:27]Write to MH i2c: 01 00 00 87 55 DC [09:45:27]*** FLAG_PRN_PAP2 set [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 87 55 00 03 00 00 00 FF 0F F4 [09:45:27]state=0 [09:45:27]No paper [09:45:27]Cover opened [09:45:28]int [09:45:28]Write to MH i2c: 01 00 00 88 55 DD [09:45:28]*** FLAG_PRN_PAP2 reset [09:45:28]*** FLAG_PRN_PAP1 reset [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 07 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 07 00 88 55 00 00 00 00 00 FF 0F F2 [09:45:28]state=3 [09:45:28]Cover closed [09:45:29]OFD Sender: No OFD packet to send [09:45:32]accept exits with 10 [09:45:32]New connection [09:45:32]New thread 3067305316 created [09:45:32]Thread 3067161956 joined [09:45:32]Waiting for new connection... [09:45:32] Sock 10.Parse request [09:45:32]Sock 10.Check first char [09:45:32]Sock 10.First char is OK [09:45:32]request: POST /json_proto HTTP/1.0 [09:45:32]Method: POST [09:45:32]URL: /json_proto [09:45:32]Method is POST - this is cgi request [09:45:32]url: /json_proto [09:45:32]query_string will be loaded in cgi processing [09:45:32]execute_cgi json_proto POST (null) [09:45:32]execute_cgi path=json_proto method=POST [09:45:32]POST find Content-Length [09:45:32]Host: 172.17.49.196:8080 [09:45:32]Content-Length: 215 [09:45:32]Content-Type: application/json [09:45:32] [09:45:32]POST finish read [09:45:32]Found Content-Length = 215 [09:45:32]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" ] } } [09:45:32]execute_script... [09:45:32]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" ] } } [09:45:32]POST & json_proto [09:45:32]process_json_proto [09:45:32]json parsed OK: [09:45:32]protocol is kg_v1.0 [09:45:32]action value=get_value [09:45:32]process_action get_value [09:45:32]cmd_get_value [09:45:32]process_action get_value done [09:45:32]requested_data is exist [09:45:32]produce_requested_data [09:45:32]requested_item kkm.sn is exist - process it [09:45:32]requested_item kkm.ver is exist - process it [09:45:32]requested_item fm.sn is exist - process it [09:45:32]wFMCommunicate request_size=4 [09:45:32]MH_SAM_APDU [09:45:32]CAPDU: 80 11 00 00 [09:45:32]Write to MH i2c: E2 08 00 89 55 80 11 00 00 00 00 00 00 58 [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:32]Read from MH i2c: E2 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 17 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 17 00 89 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9F [09:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:45:32]wFMCommunicate OK [09:45:32]requested_item fd.num is exist - process it [09:45:32]SAM_PROTO_GetFieldsCounters [09:45:32]wFMCommunicate request_size=4 [09:45:32]MH_SAM_APDU [09:45:32]CAPDU: 80 13 00 00 [09:45:32]Write to MH i2c: E2 08 00 8A 55 80 13 00 00 00 00 00 00 5B [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:32]Read from MH i2c: E2 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 62 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 62 00 8A 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [09:45:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:32]wFMCommunicate OK [09:45:32]SAM_PROTO_GetFieldsCounters done [09:45:32]requested_item shift.num is exist - process it [09:45:32]requested_item shift.opened is exist - process it [09:45:32]req_shift_opened [09:45:32]FM_GetShiftState [09:45:32]SAM_PROTO_GetShiftState [09:45:32]wFMCommunicate request_size=4 [09:45:32]MH_SAM_APDU [09:45:32]CAPDU: 80 13 01 00 [09:45:32]Write to MH i2c: E2 08 00 8B 55 80 13 01 00 00 00 00 00 5D [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:32]Read from MH i2c: E2 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 0E 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 0E 00 8B 55 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 55 [09:45:32]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:45:32]wFMCommunicate OK [09:45:32]SAM_PROTO_GetShiftState done [09:45:32]FM_GetShiftState done [09:45:32]req_shift_opened done [09:45:32]requested_item shift.open_date is exist - process it [09:45:32]req_shift_open_date [09:45:32]req_shift_open_date done [09:45:32]produce_requested_data done [09:45:32]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50541,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:45:32]process_action_free get_value [09:45:32]json_value_free [09:45:32]json_value_free done [09:45:32]process_json_proto returns [09:45:32]Send response to host [09:45:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50541,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:45:32]free response buf [09:45:32]execute_script done [09:45:32]execute_script returns [09:45:32]free content buf [09:45:32]Sock 10.Close socket [09:45:32]Sock 10.Thread stoped [09:45:32]accept exits with 7 [09:45:32]New connection [09:45:32]New thread 3067161956 created [09:45:32]Thread 3067305316 joined [09:45:32]Waiting for new connection... [09:45:32] Sock 7.Parse request [09:45:32]Sock 7.Check first char [09:45:32]Sock 7.First char is OK [09:45:32]request: POST /json_proto HTTP/1.0 [09:45:32]Method: POST [09:45:32]URL: /json_proto [09:45:32]Method is POST - this is cgi request [09:45:32]url: /json_proto [09:45:32]query_string will be loaded in cgi processing [09:45:32]execute_cgi json_proto POST (null) [09:45:32]execute_cgi path=json_proto method=POST [09:45:32]POST find Content-Length [09:45:32]Host: 172.17.49.196:8080 [09:45:32]Content-Length: 331 [09:45:32]Content-Type: application/json [09:45:32] [09:45:32]POST finish read [09:45:32]Found Content-Length = 331 [09:45:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:45:32]execute_script... [09:45: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" ] } } [09:45:32]POST & json_proto [09:45:32]process_json_proto [09:45:32]json parsed OK: [09:45:32]protocol is kg_v1.0 [09:45:32]action value=get_value [09:45:32]process_action get_value [09:45:32]cmd_get_value [09:45:32]process_action get_value done [09:45:32]requested_data is exist [09:45:32]produce_requested_data [09:45:32]requested_item fm.sale.total is exist - process it [09:45:32]SAM_PROTO_GetFMData [09:45:32]wFMCommunicate request_size=4 [09:45:32]MH_SAM_APDU [09:45:32]CAPDU: 80 13 03 00 [09:45:32]Write to MH i2c: E2 08 00 8C 55 80 13 03 00 00 00 00 00 60 [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:45:33]Read from MH i2c: E2 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 FD 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 FD 00 8C 55 00 C5 04 85 04 C1 04 6E 04 04 00 93 C1 00 00 69 04 A1 00 6F 04 04 00 93 C0 00 00 B1 04 04 00 B5 7E B0 82 70 04 04 00 18 38 9E 61 72 04 04 00 9D 46 12 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 56 E1 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D1 09 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 E6 [09:45:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 93 C1 00 00 69 04 A1 00 6F 04 04 00 93 C0 00 00 B1 04 04 00 B5 7E B0 82 70 04 04 00 18 38 9E 61 72 04 04 00 9D 46 12 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 56 E1 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D1 09 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [09:45:33]wFMCommunicate OK [09:45:33]wFMCommunicate request_size=4 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 17 00 00 [09:45:33]Write to MH i2c: E2 08 00 8D 55 80 17 00 00 00 00 00 00 62 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:45:33]Read from MH i2c: E2 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 FD 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 FD 00 8D 55 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [09:45:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:45:33]wFMCommunicate OK [09:45:33]wFMCommunicate request_size=4 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 17 00 00 [09:45:33]Write to MH i2c: E2 08 00 8E 55 80 17 00 00 00 00 00 00 63 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:45:33]Read from MH i2c: E2 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 FD 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 FD 00 8E 55 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [09:45:33]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:45:34]wFMCommunicate OK [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 17 00 00 [09:45:34]Write to MH i2c: E2 08 00 8F 55 80 17 00 00 00 00 00 00 64 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 FD 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 FD 00 8F 55 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F0 [09:45:34]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:45:34]wFMCommunicate OK [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 17 00 00 [09:45:34]Write to MH i2c: E2 08 00 90 55 80 17 00 00 00 00 00 00 65 [09:45:34]OFD Sender: No OFD packet to send [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 E2 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 E2 00 90 55 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 43 [09:45:34]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:45:34]wFMCommunicate OK [09:45:34]SAM_PROTO_GetFMData done [09:45:34]requested_item fm.sale_refund.total is exist - process it [09:45:34]requested_item fm.buy.total is exist - process it [09:45:34]requested_item shift.sale.total is exist - process it [09:45:34]SAM_PROTO_GetShiftData [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 13 02 00 [09:45:34]Write to MH i2c: E2 08 00 91 55 80 13 02 00 00 00 00 00 64 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 FD 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 FD 00 91 55 00 AE 04 AA 04 AA 04 6E 04 04 00 29 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 A0 51 0E 70 04 03 00 38 78 09 72 04 03 00 68 D9 04 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 43 85 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 72 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CF [09:45:35]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 29 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 A0 51 0E 70 04 03 00 38 78 09 72 04 03 00 68 D9 04 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 43 85 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 72 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 17 00 00 [09:45:35]Write to MH i2c: E2 08 00 92 55 80 17 00 00 00 00 00 00 67 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 FD 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 FD 00 92 55 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 89 [09:45:36]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 [09:45:36]wFMCommunicate OK [09:45:36]wFMCommunicate request_size=4 [09:45:36]MH_SAM_APDU [09:45:36]CAPDU: 80 17 00 00 [09:45:36]Write to MH i2c: E2 08 00 93 55 80 17 00 00 00 00 00 00 68 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:45:36]Read from MH i2c: E2 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 FD 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 FD 00 93 55 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1F [09:45:36]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 [09:45:36]wFMCommunicate OK [09:45:36]wFMCommunicate request_size=4 [09:45:36]MH_SAM_APDU [09:45:36]CAPDU: 80 17 00 00 [09:45:36]Write to MH i2c: E2 08 00 94 55 80 17 00 00 00 00 00 00 69 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:45:36]Read from MH i2c: E2 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 FD 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 FD 00 94 55 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 DB [09:45:36]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 [09:45:37]wFMCommunicate OK [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 17 00 00 [09:45:37]Write to MH i2c: E2 08 00 95 55 80 17 00 00 00 00 00 00 6A [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 CB 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 CB 00 95 55 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 53 [09:45:37]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 [09:45:37]wFMCommunicate OK [09:45:37]SAM_PROTO_GetShiftData done [09:45:37]requested_item shift.sale.total_cash is exist - process it [09:45:37]requested_item shift.sale_refund.total is exist - process it [09:45:37]requested_item shift.sale_refund.total_cash is exist - process it [09:45:37]requested_item shift.buy.total is exist - process it [09:45:37]requested_item shift.buy.total_cash is exist - process it [09:45:37]produce_requested_data done [09:45:37]produce_requested_data return {"fm.sale.total":21926048.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":9384.00,"shift.sale.total_cash":6206.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} [09:45:37]process_action_free get_value [09:45:37]json_value_free [09:45:37]json_value_free done [09:45:37]process_json_proto returns [09:45:37]Send response to host [09:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21926048.53,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":9384.00,"shift.sale.total_cash":6206.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}}} [09:45:37]free response buf [09:45:37]execute_script done [09:45:37]execute_script returns [09:45:37]free content buf [09:45:37]Sock 7.Close socket [09:45:37]Sock 7.Thread stoped [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:06]ConnectInit Can't connect to host [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:31]ConnectInit Can't connect to host [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:51]accept exits with 10 [09:51:51]New connection [09:51:51]New thread 3067305316 created [09:51:51]Thread 3067161956 joined [09:51:51]Waiting for new connection... [09:51:51] Sock 10.Parse request [09:51:51]Sock 10.Check first char [09:51:51]Sock 10.First char is OK [09:51:51]request: POST /json_proto HTTP/1.0 [09:51:51]Method: POST [09:51:51]URL: /json_proto [09:51:51]Method is POST - this is cgi request [09:51:51]url: /json_proto [09:51:51]query_string will be loaded in cgi processing [09:51:51]execute_cgi json_proto POST (null) [09:51:51]execute_cgi path=json_proto method=POST [09:51:51]POST find Content-Length [09:51:51]Host: 172.17.49.196:8080 [09:51:51]Content-Length: 665 [09:51:51]Content-Type: application/json [09:51:51] [09:51:51]POST finish read [09:51:51]Found Content-Length = 665 [09:51:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164453", "tax_sys" : 0, "items" : [ { "code": "46254931", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:51]execute_script... [09:51:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164453", "tax_sys" : 0, "items" : [ { "code": "46254931", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:51]POST & json_proto [09:51:51]process_json_proto [09:51:51]json parsed OK: [09:51:51]protocol is kg_v1.0 [09:51:51]action value=close_receipt [09:51:51]process_action close_receipt [09:51:51]cmd_close_receipt [09:51:51]MH_GetDate [09:51:51]Write to MH i2c: F0 00 00 96 55 DA [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: F0 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: F0 09 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: F0 09 00 96 55 00 45 6A 1B 67 BD 3B 11 67 84 [09:51:51]GetLastDocTimeStamp 1729849530 [09:51:51]current date 1729849925 [09:51:51]FM_GetShiftState [09:51:51]SAM_PROTO_GetShiftState [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 13 01 00 [09:51:51]Write to MH i2c: E2 08 00 97 55 80 13 01 00 00 00 00 00 69 [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 0E 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 0E 00 97 55 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 61 [09:51:51]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:51:51]wFMCommunicate OK [09:51:51]SAM_PROTO_GetShiftState done [09:51:51]FM_GetShiftState done [09:51:51]opened in 1729815177 [09:51:51]opened+sec_in_day 1729901577 [09:51:51]quantity*price = 7500 [09:51:51]sum+1 = 7501 [09:51:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 69.00 = 69.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741224 Сигареты Winston Super Slims Blue 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.46 Наличными: 268.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 43 25.10.2024 09:56 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50543 ФПД: 98446966445314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095610&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50543&fm=98446966445314&tin=02508201610067®Number=0000000000097022&sum=26800 0 [09:56:11]StoreToDocumentArchive [09:56:11]shift 493 fd 50543 [09:56:11]save to /storage/0493/doc_00050543 [09:56:11]save last doc name /storage/0493/doc_00050543 to /storage/kkm_last_doc_name [09:56:11]save OK [09:56:11]Clear old archive folders... [09:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=503 [09:56:11]tlvbuf is 01E934F0 [09:56:11]SAM_PROTO_ClearQueue [09:56:11]wFMCommunicate request_size=4 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 09 00 00 [09:56:11]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]SAM_PROTO_ClearQueue done [09:56:11]KKMCreateOFDPacket [09:56:11]OFDProtocolAddRootSTLVToBuf [09:56:11]FM_MakeSignedData [09:56:11]FM_MakeSignedData [09:56:11]SAM_PROTO_SignData [09:56:11]wFMCommunicate request_size=4 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 0D 01 02 [09:56:11]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=255 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 0D 02 02 FA 03 00 F7 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 [09:56:11]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F7 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 00 00 29 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=255 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 0D 02 02 FA 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 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 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 1E 0B 00 00 00 00 07 04 06 00 B0 68 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 3A 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C5 00 00 35 04 06 [09:56:11]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 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 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 1E 0B 00 00 00 00 07 04 06 00 B0 68 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 3A 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C5 00 00 35 04 06 00 00 5B [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=12 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 0D 02 02 07 00 59 89 78 76 D5 02 [09:56:11]Write to MH i2c: E2 0F 00 2F 00 80 0D 02 02 07 00 00 59 89 78 76 D5 02 00 00 5E [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:12]Read from MH i2c: E2 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 03 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [09:56:12]RAPDU: 90 00 [09:56:12]wFMCommunicate OK [09:56:12]wFMCommunicate request_size=4 [09:56:12]MH_SAM_APDU [09:56:12]CAPDU: 80 0D 03 02 [09:56:12]Write to MH i2c: E2 08 00 30 00 80 0D 03 02 00 00 00 00 AB [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:12]Read from MH i2c: E2 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 0B 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 0B 00 30 00 00 E3 BF 96 79 2E C0 B8 8E 90 00 91 [09:56:12]RAPDU: E3 BF 96 79 2E C0 B8 8E 90 00 [09:56:12]wFMCommunicate OK [09:56:12]SAM_PROTO_SignData done [09:56:12]FM_MakeSignedData done [09:56:12]CreateOFDProtocolMessage [09:56:12]wFMCommunicate request_size=4 [09:56:12]MH_SAM_APDU [09:56:12]CAPDU: 80 11 00 00 [09:56:12]Write to MH i2c: E2 08 00 31 00 80 11 00 00 00 00 00 00 AB [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:12]Read from MH i2c: E2 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 17 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 17 00 31 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F2 [09:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:56:12]wFMCommunicate OK [09:56:12]CreateOFDProtocolMessage done [09:56:12]OFDSenderStorePacket 50543 [09:56:12]StoreOFDPacket docnum=50543 [09:56:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0B 02 00 00 02 EB 03 02 BD 33 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 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 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 1E 0B 00 00 00 00 07 04 06 00 B0 68 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 3A 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C5 00 00 35 04 06 00 59 89 78 76 D5 02 E3 BF 96 79 2E C0 B8 8E [09:56:12]CheckFolder [09:56:12]dirname=/storage/ofd_packets [09:56:12]CheckFolder done [09:56:12]ProducePacketName [09:56:12]name=ofd_packets/00050543 [09:56:12]NVStorageSaveData ofd_packets/00050543 [09:56:12]File name is /storage/ofd_packets/00050543 [09:56:12]Write 553 bytes [09:56:12]NVStorageSaveData done [09:56:12]OFDSenderStorePacket done [09:56:12]KKMCreateOFDPacket done [09:56:12]NVStorageSaveData kkm_last_timestamp [09:56:12]File name is /storage/kkm_last_timestamp [09:56:12]Write 4 bytes [09:56:12]NVStorageSaveData done [09:56:12]ExternCall_PrintAddStr [09:56:12]wPrintStart [09:56:12]Write to MH i2c: 01 00 00 32 00 32 [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]OFD Sender: Processing packet 50543 [packets to send 7, broken 6] [09:56:12]ProducePacketName [09:56:12]name=ofd_packets/00050543 [09:56:12]OFD Sender: To server: pG, [09:56:12]CommunicateWithHost lk.salyk.kg:30040 [09:56:12]ConnectInit lk.salyk.kg [09:56:12]Read from MH i2c: 01 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: 01 07 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: 01 07 00 32 00 00 00 00 00 00 FF 0F 47 [09:56:12]RasterBufferAndPrint [09:56:12]line Счет N : (3)164454 [09:56:12]line ИНН: 02508201610067 [09:56:12]line Контрольно-Кассовый Чек [09:56:12]line ПРОДАЖА [09:56:12]line Товар: 4700000160204 [09:56:12]line Вода Легенда 1,5л [09:56:12]line 1.000 * 60.00 [09:56:12]line = 60.00 [09:56:12]line НДС 12% НСП 1% [09:56:12]line > о реализуемом товаре [09:56:12]line Товар: 4600682557456 [09:56:12]line Напиток FLash up energy эн ж/б 0,5/0,45л [09:56:12]line 1.000 * 69.00 [09:56:12]line = 69.00 [09:56:12]line НДС 12% НСП 1% [09:56:12]line > о реализуемом товаре [09:56:12]line Товар: 48741224 [09:56:12]line Сигареты Winston Super Slims Blue [09:56:12]line 1.000 * 139.00 [09:56:12]line = 139.00 [09:56:12]line НДС 12% НСП 1% [09:56:12]line > о реализуемом товаре [09:56:12]line ИТОГО: 268.00 [09:56:12]line НСП 1% : 2.37 [09:56:12]line НДС 12% : 28.46 [09:56:12]line Наличными: 268.00 [09:56:12]line Безнал.: 0.00 [09:56:12]line Место: АЗС № 80 "Партнер Нефть" [09:56:12]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:56:12]line СНО: Общий режим [09:56:12]line Чек 43 25.10.2024 09:56 [09:56:12]line Смена: 493 ФФД: 1.0 [09:56:12]line ЗНМ: 0300000090 [09:56:12]line РНМ: 0000000000097022 [09:56:12]line Версия ККМ: 001 [09:56:12]line ФМ: 0000000000875000 [09:56:12]line ФД: 50543 [09:56:12]line ФПД: 98446966445314 [09:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095610&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50543&fm=98446966445314&tin=02508201610067®Number=0000000000097022&sum=26800 [09:56:12]line 0 [09:56:12]written 0, free lines is 4095 [09:56:12]Connected sock=11 [09:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0B 02 00 00 02 EB 03 02 BD 33 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 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 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 1E 0B 00 00 00 00 07 04 06 00 B0 68 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 3A 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C5 00 00 35 04 06 00 59 89 78 76 D5 02 E3 BF 96 79 2E C0 B8 8E [09:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C9 87 47 00 4C 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 6F C5 00 00 F4 03 04 00 CC 16 1B 67 B6 04 01 00 00 FE F2 68 EE C6 B0 9E C6 [09:56:12]CommunicateWithHost err = 0 [09:56:12]CheckOFDResponse [09:56:12]1017 (14) - 77093643461234 [09:56:12]1041 (16) - 0000000000875000 [09:56:12]1040 (4) - 50543 [09:56:12]1012 (4) - 25.10.2024 03:55 [09:56:12]1206 (1) - 0 [09:56:12]OFD Sender: Remove packet 50543 [09:56:12]ProducePacketName [09:56:12]name=ofd_packets/00050543 [09:56:12]NVStorageDeleteData [09:56:12]Write to MH i2c: 01 00 00 68 00 68 [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: 01 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: 01 07 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 59 0C D4 [09:56:12]RasterBufferAndPrint [09:56:12]line [09:56:12]line [09:56:12]line [09:56:12]line [09:56:12]line [09:56:12]written 0, free lines is 3182 [09:56:12]process_action close_receipt done [09:56:12]requested_data is exist [09:56:12]produce_requested_data [09:56:12]requested_item fm.sn is exist - process it [09:56:12]wFMCommunicate request_size=4 [09:56:12]MH_SAM_APDU [09:56:12]CAPDU: 80 11 00 00 [09:56:12]Write to MH i2c: E2 08 00 6F 00 80 11 00 00 00 00 00 00 E9 [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:12]Read from MH i2c: E2 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 17 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 17 00 6F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 30 [09:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:56:12]wFMCommunicate OK [09:56:12]requested_item fd.num is exist - process it [09:56:12]SAM_PROTO_GetFieldsCounters [09:56:12]wFMCommunicate request_size=4 [09:56:12]MH_SAM_APDU [09:56:12]CAPDU: 80 13 00 00 [09:56:12]Write to MH i2c: E2 08 00 70 00 80 13 00 00 00 00 00 00 EC [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 62 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 62 00 70 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [09:56:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 6F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:13]wFMCommunicate OK [09:56:13]SAM_PROTO_GetFieldsCounters done [09:56:13]requested_item shift.num is exist - process it [09:56:13]requested_item shift.opened is exist - process it [09:56:13]req_shift_opened [09:56:13]FM_GetShiftState [09:56:13]SAM_PROTO_GetShiftState [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 13 01 00 [09:56:13]Write to MH i2c: E2 08 00 71 00 80 13 01 00 00 00 00 00 EE [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 0E 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 0E 00 71 00 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E6 [09:56:13]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:56:13]wFMCommunicate OK [09:56:13]SAM_PROTO_GetShiftState done [09:56:13]FM_GetShiftState done [09:56:13]req_shift_opened done [09:56:13]requested_item shift.open_date is exist - process it [09:56:13]req_shift_open_date [09:56:13]req_shift_open_date done [09:56:13]produce_requested_data done [09:56:13]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50543,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:56:13]process_action_free close_receipt [09:56:13]json_value_free [09:56:13]json_value_free done [09:56:13]process_json_proto returns [09:56:13]Send response to host [09:56:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50543,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:56:13]free response buf [09:56:13]execute_script done [09:56:13]execute_script returns [09:56:13]free content buf [09:56:13]Sock 9.Close socket [09:56:13]Sock 9.Thread stoped [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:01]accept exits with 7 [09:58:01]New connection [09:58:01]New thread 3066645860 created [09:58:01]Thread 3066789220 joined [09:58:01]Waiting for new connection... [09:58:01] Sock 7.Parse request [09:58:01]Sock 7.Check first char [09:58:01]Sock 7.First char is OK [09:58:01]request: POST /json_proto HTTP/1.0 [09:58:01]Method: POST [09:58:01]URL: /json_proto [09:58:01]Method is POST - this is cgi request [09:58:01]url: /json_proto [09:58:01]query_string will be loaded in cgi processing [09:58:01]execute_cgi json_proto POST (null) [09:58:01]execute_cgi path=json_proto method=POST [09:58:01]POST find Content-Length [09:58:01]Host: 172.17.49.196:8080 [09:58:01]Content-Length: 646 [09:58:01]Content-Type: application/json [09:58:01] [09:58:01]POST finish read [09:58:01]Found Content-Length = 646 [09:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164455", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:01]execute_script... [09:58: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)164455", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:01]POST & json_proto [09:58:01]process_json_proto [09:58:01]json parsed OK: [09:58:01]protocol is kg_v1.0 [09:58:01]action value=close_receipt [09:58:01]process_action close_receipt [09:58:01]cmd_close_receipt [09:58:01]MH_GetDate [09:58:01]Write to MH i2c: F0 00 00 72 00 61 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: F0 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: F0 09 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: F0 09 00 72 00 00 AA 6B 1B 67 BD 3B 11 67 71 [09:58:01]GetLastDocTimeStamp 1729850170 [09:58:01]current date 1729850282 [09:58:01]FM_GetShiftState [09:58:01]SAM_PROTO_GetShiftState [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 13 01 00 [09:58:01]Write to MH i2c: E2 08 00 73 00 80 13 01 00 00 00 00 00 F0 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 0E 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 0E 00 73 00 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E8 [09:58:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:58:01]wFMCommunicate OK [09:58:01]SAM_PROTO_GetShiftState done [09:58:01]FM_GetShiftState done [09:58:01]opened in 1729815177 [09:58:01]opened+sec_in_day 1729901577 [09:58:01]quantity*price = 26000 [09:58:01]sum+1 = 26001 [09:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 44 25.10.2024 09:58 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50544 ФПД: 250813035925842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095802&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50544&fm=250813035925842&tin=02508201610067®Number=0000000000097022&sum=26000 0 [09:58:03]StoreToDocumentArchive [09:58:03]shift 493 fd 50544 [09:58:03]save to /storage/0493/doc_00050544 [09:58:03]save last doc name /storage/0493/doc_00050544 to /storage/kkm_last_doc_name [09:58:03]save OK [09:58:03]Clear old archive folders... [09:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:58:03]tlvbuf is 01E3ECF0 [09:58:03]SAM_PROTO_ClearQueue [09:58:03]wFMCommunicate request_size=4 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 09 00 00 [09:58:03]Write to MH i2c: E2 08 00 80 00 80 09 00 00 00 00 00 00 F2 [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 03 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [09:58:03]RAPDU: 90 00 [09:58:03]wFMCommunicate OK [09:58:03]SAM_PROTO_ClearQueue done [09:58:03]KKMCreateOFDPacket [09:58:03]OFDProtocolAddRootSTLVToBuf [09:58:03]FM_MakeSignedData [09:58:03]FM_MakeSignedData [09:58:03]SAM_PROTO_SignData [09:58:03]wFMCommunicate request_size=4 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 0D 01 02 [09:58:03]Write to MH i2c: E2 08 00 81 00 80 0D 01 02 00 00 00 00 FA [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 03 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [09:58:03]RAPDU: 90 00 [09:58:03]wFMCommunicate OK [09:58:03]wFMCommunicate request_size=255 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AA 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [09:58:03]Write to MH i2c: E2 02 01 82 00 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AA 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 6F [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]OFD Sender: No OFD packet to send [09:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 03 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [09:58:03]RAPDU: 90 00 [09:58:03]wFMCommunicate OK [09:58:03]wFMCommunicate request_size=41 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C5 00 00 35 04 06 00 E4 1C F5 E9 51 52 [09:58:03]Write to MH i2c: E2 2C 00 83 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C5 00 00 35 04 06 00 E4 1C F5 E9 51 52 00 00 76 [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 03 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [09:58:03]RAPDU: 90 00 [09:58:03]wFMCommunicate OK [09:58:03]wFMCommunicate request_size=4 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 0D 03 02 [09:58:03]Write to MH i2c: E2 08 00 84 00 80 0D 03 02 00 00 00 00 FF [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 0B 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 0B 00 84 00 00 56 63 42 EB 36 2C 21 0E 90 00 77 [09:58:03]RAPDU: 56 63 42 EB 36 2C 21 0E 90 00 [09:58:03]wFMCommunicate OK [09:58:03]SAM_PROTO_SignData done [09:58:03]FM_MakeSignedData done [09:58:03]CreateOFDProtocolMessage [09:58:03]wFMCommunicate request_size=4 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 11 00 00 [09:58:03]Write to MH i2c: E2 08 00 85 00 80 11 00 00 00 00 00 00 FF [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 17 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 17 00 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 46 [09:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:58:03]wFMCommunicate OK [09:58:03]CreateOFDProtocolMessage done [09:58:03]OFDSenderStorePacket 50544 [09:58:03]StoreOFDPacket docnum=50544 [09:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 2A 19 26 01 8E 9E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AA 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C5 00 00 35 04 06 00 E4 1C F5 E9 51 52 56 63 42 EB 36 2C 21 0E [09:58:03]CheckFolder [09:58:03]dirname=/storage/ofd_packets [09:58:03]CheckFolder done [09:58:03]ProducePacketName [09:58:03]name=ofd_packets/00050544 [09:58:03]NVStorageSaveData ofd_packets/00050544 [09:58:03]File name is /storage/ofd_packets/00050544 [09:58:03]Write 332 bytes [09:58:03]NVStorageSaveData done [09:58:03]OFDSenderStorePacket done [09:58:03]KKMCreateOFDPacket done [09:58:03]NVStorageSaveData kkm_last_timestamp [09:58:03]File name is /storage/kkm_last_timestamp [09:58:03]Write 4 bytes [09:58:03]NVStorageSaveData done [09:58:03]ExternCall_PrintAddStr [09:58:03]wPrintStart [09:58:03]Write to MH i2c: 01 00 00 86 00 86 [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: 01 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: 01 07 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: 01 07 00 86 00 00 00 00 00 00 FF 0F 9B [09:58:03]RasterBufferAndPrint [09:58:03]line Счет N : (3)164455 [09:58:03]line ИНН: 02508201610067 [09:58:03]line Контрольно-Кассовый Чек [09:58:03]line ПРОДАЖА [09:58:03]line Товар: 2000036220012 [09:58:03]line Кофе Капучино XL(GABB TRADE) [09:58:03]line 2.000 * 130.00 [09:58:03]line = 260.00 [09:58:03]line НДС 12% НСП 1% [09:58:03]line > о реализуемом товаре [09:58:03]line ИТОГО: 260.00 [09:58:03]line НСП 1% : 2.30 [09:58:03]line НДС 12% : 27.61 [09:58:03]line Наличными: 260.00 [09:58:03]line Безнал.: 0.00 [09:58:03]line Место: АЗС № 80 "Партнер Нефть" [09:58:03]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:58:03]line СНО: Общий режим [09:58:03]line Чек 44 25.10.2024 09:58 [09:58:03]line Смена: 493 ФФД: 1.0 [09:58:03]line ЗНМ: 0300000090 [09:58:03]line РНМ: 0000000000097022 [09:58:03]line Версия ККМ: 001 [09:58:03]line ФМ: 0000000000875000 [09:58:03]line ФД: 50544 [09:58:03]line ФПД: 250813035925842 [09:58:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095802&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50544&fm=250813035925842&tin=02508201610067®Number=0000000000097022&sum=26000 [09:58:03]line 0 [09:58:03]OFD Sender: Processing packet 50544 [packets to send 7, broken 6] [09:58:03]ProducePacketName [09:58:03]name=ofd_packets/00050544 [09:58:03]OFD Sender: To server: pG, [09:58:03]CommunicateWithHost lk.salyk.kg:30040 [09:58:03]ConnectInit lk.salyk.kg [09:58:03]written 0, free lines is 4095 [09:58:04]Write to MH i2c: 01 00 00 AF 00 AF [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: 01 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: 01 07 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 14 0D D7 [09:58:04]RasterBufferAndPrint [09:58:04]line [09:58:04]line [09:58:04]line [09:58:04]line [09:58:04]line [09:58:04]written 0, free lines is 3354 [09:58:04]process_action close_receipt done [09:58:04]requested_data is exist [09:58:04]produce_requested_data [09:58:04]requested_item fm.sn is exist - process it [09:58:04]wFMCommunicate request_size=4 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 11 00 00 [09:58:04]Write to MH i2c: E2 08 00 B6 00 80 11 00 00 00 00 00 00 30 [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 17 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 17 00 B6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 77 [09:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:58:04]wFMCommunicate OK [09:58:04]requested_item fd.num is exist - process it [09:58:04]SAM_PROTO_GetFieldsCounters [09:58:04]wFMCommunicate request_size=4 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 13 00 00 [09:58:04]Write to MH i2c: E2 08 00 B7 00 80 13 00 00 00 00 00 00 33 [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 62 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 62 00 B7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 70 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [09:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 70 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:04]wFMCommunicate OK [09:58:04]SAM_PROTO_GetFieldsCounters done [09:58:04]requested_item shift.num is exist - process it [09:58:04]requested_item shift.opened is exist - process it [09:58:04]req_shift_opened [09:58:04]FM_GetShiftState [09:58:04]SAM_PROTO_GetShiftState [09:58:04]wFMCommunicate request_size=4 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 13 01 00 [09:58:04]Write to MH i2c: E2 08 00 B8 00 80 13 01 00 00 00 00 00 35 [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 0E 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 0E 00 B8 00 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2D [09:58:04]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:58:04]wFMCommunicate OK [09:58:04]SAM_PROTO_GetShiftState done [09:58:04]FM_GetShiftState done [09:58:04]req_shift_opened done [09:58:04]requested_item shift.open_date is exist - process it [09:58:04]req_shift_open_date [09:58:04]req_shift_open_date done [09:58:04]produce_requested_data done [09:58:04]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50544,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:58:04]process_action_free close_receipt [09:58:04]json_value_free [09:58:04]json_value_free done [09:58:04]process_json_proto returns [09:58:04]Send response to host [09:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50544,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:58:04]free response buf [09:58:04]execute_script done [09:58:04]execute_script returns [09:58:04]free content buf [09:58:04]Sock 7.Close socket [09:58:04]Sock 7.Thread stoped [09:58:09]accept exits with 9 [09:58:09]New connection [09:58:09]New thread 3066789220 created [09:58:09]Thread 3066645860 joined [09:58:09]Waiting for new connection... [09:58:09] Sock 9.Parse request [09:58:09]Sock 9.Check first char [09:58:09]Sock 9.First char is OK [09:58:09]request: POST /json_proto HTTP/1.0 [09:58:09]Method: POST [09:58:09]URL: /json_proto [09:58:09]Method is POST - this is cgi request [09:58:09]url: /json_proto [09:58:09]query_string will be loaded in cgi processing [09:58:09]execute_cgi json_proto POST (null) [09:58:09]execute_cgi path=json_proto method=POST [09:58:09]POST find Content-Length [09:58:09]Host: 172.17.49.196:8080 [09:58:09]Content-Length: 708 [09:58:09]Content-Type: application/json [09:58:09] [09:58:09]POST finish read [09:58:09]Found Content-Length = 708 [09:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164456", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:09]execute_script... [09:58: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)164456", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:09]POST & json_proto [09:58:09]process_json_proto [09:58:09]json parsed OK: [09:58:09]protocol is kg_v1.0 [09:58:09]action value=close_receipt [09:58:09]process_action close_receipt [09:58:09]cmd_close_receipt [09:58:09]MH_GetDate [09:58:09]Write to MH i2c: F0 00 00 B9 00 A8 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: F0 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: F0 09 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: F0 09 00 B9 00 00 B2 6B 1B 67 BD 3B 11 67 C0 [09:58:09]GetLastDocTimeStamp 1729850282 [09:58:09]current date 1729850290 [09:58:09]FM_GetShiftState [09:58:09]SAM_PROTO_GetShiftState [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 13 01 00 [09:58:09]Write to MH i2c: E2 08 00 BA 00 80 13 01 00 00 00 00 00 37 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0E 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0E 00 BA 00 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2F [09:58:09]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_GetShiftState done [09:58:09]FM_GetShiftState done [09:58:09]opened in 1729815177 [09:58:09]opened+sec_in_day 1729901577 [09:58:09]quantity*price = 9000 [09:58:09]sum+1 = 9001 [09:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 45 25.10.2024 09:58 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50545 ФПД: 220737692231475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095810&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50545&fm=220737692231475&tin=02508201610067®Number=0000000000097022&sum=9000 0 [09:58:10]StoreToDocumentArchive [09:58:10]shift 493 fd 50545 [09:58:10]save to /storage/0493/doc_00050545 [09:58:10]save last doc name /storage/0493/doc_00050545 to /storage/kkm_last_doc_name [09:58:10]save OK [09:58:10]Clear old archive folders... [09:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=299 [09:58:10]tlvbuf is 01E4B9F0 [09:58:10]SAM_PROTO_ClearQueue [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 09 00 00 [09:58:10]Write to MH i2c: E2 08 00 C7 00 80 09 00 00 00 00 00 00 39 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [09:58:10]RAPDU: 90 00 [09:58:10]wFMCommunicate OK [09:58:10]SAM_PROTO_ClearQueue done [09:58:10]KKMCreateOFDPacket [09:58:10]OFDProtocolAddRootSTLVToBuf [09:58:10]FM_MakeSignedData [09:58:10]FM_MakeSignedData [09:58:10]SAM_PROTO_SignData [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 0D 01 02 [09:58:10]Write to MH i2c: E2 08 00 C8 00 80 0D 01 02 00 00 00 00 41 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [09:58:10]RAPDU: 90 00 [09:58:10]wFMCommunicate OK [09:58:10]wFMCommunicate request_size=255 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B2 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [09:58:10]Write to MH i2c: E2 02 01 C9 00 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B2 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 FF [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [09:58:10]RAPDU: 90 00 [09:58:10]wFMCommunicate OK [09:58:10]wFMCommunicate request_size=58 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 71 C5 00 00 35 04 06 00 C8 C2 7F BB E7 33 [09:58:10]Write to MH i2c: E2 3D 00 CA 00 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 71 C5 00 00 35 04 06 00 C8 C2 7F BB E7 33 00 00 36 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [09:58:10]RAPDU: 90 00 [09:58:10]wFMCommunicate OK [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 0D 03 02 [09:58:10]Write to MH i2c: E2 08 00 CB 00 80 0D 03 02 00 00 00 00 46 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 0B 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 0B 00 CB 00 00 2E FD 79 8C 1E 1C 81 BA 90 00 EC [09:58:10]RAPDU: 2E FD 79 8C 1E 1C 81 BA 90 00 [09:58:10]wFMCommunicate OK [09:58:10]SAM_PROTO_SignData done [09:58:10]FM_MakeSignedData done [09:58:10]CreateOFDProtocolMessage [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 11 00 00 [09:58:10]Write to MH i2c: E2 08 00 CC 00 80 11 00 00 00 00 00 00 46 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:11]Read from MH i2c: E2 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 17 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 17 00 CC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8D [09:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:58:11]wFMCommunicate OK [09:58:11]CreateOFDProtocolMessage done [09:58:11]OFDSenderStorePacket 50545 [09:58:11]StoreOFDPacket docnum=50545 [09:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3F 01 00 00 3E 8F 37 01 9F B2 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B2 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 71 C5 00 00 35 04 06 00 C8 C2 7F BB E7 33 2E FD 79 8C 1E 1C 81 BA [09:58:11]CheckFolder [09:58:11]dirname=/storage/ofd_packets [09:58:11]CheckFolder done [09:58:11]ProducePacketName [09:58:11]name=ofd_packets/00050545 [09:58:11]NVStorageSaveData ofd_packets/00050545 [09:58:11]File name is /storage/ofd_packets/00050545 [09:58:11]Write 349 bytes [09:58:11]NVStorageSaveData done [09:58:11]OFDSenderStorePacket done [09:58:11]KKMCreateOFDPacket done [09:58:11]NVStorageSaveData kkm_last_timestamp [09:58:11]File name is /storage/kkm_last_timestamp [09:58:11]Write 4 bytes [09:58:11]NVStorageSaveData done [09:58:11]ExternCall_PrintAddStr [09:58:11]wPrintStart [09:58:11]Write to MH i2c: 01 00 00 CD 00 CD [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 07 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 07 00 CD 00 00 00 00 00 00 FF 0F E2 [09:58:11]RasterBufferAndPrint [09:58:11]line Счет N : (3)164456 [09:58:11]line ИНН: 02508201610067 [09:58:11]line Контрольно-Кассовый Чек [09:58:11]line ПРОДАЖА [09:58:11]line Товар: 4660085515163 [09:58:11]line Шок Батончик Сникерс супер 95/80г [09:58:11]line 1.000 * 90.00 [09:58:11]line = 90.00 [09:58:11]line НДС 12% НСП 1% [09:58:11]line > о реализуемом товаре [09:58:11]line ИТОГО: 90.00 [09:58:11]line НСП 1% : 0.80 [09:58:11]line НДС 12% : 9.56 [09:58:11]line Наличными: 90.00 [09:58:11]line Безнал.: 0.00 [09:58:11]line Место: АЗС № 80 "Партнер Нефть" [09:58:11]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [09:58:11]line СНО: Общий режим [09:58:11]line Чек 45 25.10.2024 09:58 [09:58:11]line Смена: 493 ФФД: 1.0 [09:58:11]line ЗНМ: 0300000090 [09:58:11]line РНМ: 0000000000097022 [09:58:11]line Версия ККМ: 001 [09:58:11]line ФМ: 0000000000875000 [09:58:11]line ФД: 50545 [09:58:11]line ФПД: 220737692231475 [09:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T095810&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50545&fm=220737692231475&tin=02508201610067®Number=0000000000097022&sum=9000 [09:58:11]line 0 [09:58:11]written 0, free lines is 4095 [09:58:11]Write to MH i2c: 01 00 00 F6 00 F6 [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 07 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 01 0D 0B [09:58:11]RasterBufferAndPrint [09:58:11]line [09:58:11]line [09:58:11]line [09:58:11]line [09:58:11]line [09:58:11]written 0, free lines is 3335 [09:58:11]process_action close_receipt done [09:58:11]requested_data is exist [09:58:11]produce_requested_data [09:58:11]requested_item fm.sn is exist - process it [09:58:11]wFMCommunicate request_size=4 [09:58:11]MH_SAM_APDU [09:58:11]CAPDU: 80 11 00 00 [09:58:11]Write to MH i2c: E2 08 00 FD 00 80 11 00 00 00 00 00 00 77 [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:11]Read from MH i2c: E2 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 17 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 17 00 FD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BE [09:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [09:58:11]wFMCommunicate OK [09:58:11]requested_item fd.num is exist - process it [09:58:11]SAM_PROTO_GetFieldsCounters [09:58:11]wFMCommunicate request_size=4 [09:58:11]MH_SAM_APDU [09:58:11]CAPDU: 80 13 00 00 [09:58:11]Write to MH i2c: E2 08 00 FE 00 80 13 00 00 00 00 00 00 7A [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 62 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 62 00 FE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 71 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [09:58:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 71 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_GetFieldsCounters done [09:58:12]requested_item shift.num is exist - process it [09:58:12]requested_item shift.opened is exist - process it [09:58:12]req_shift_opened [09:58:12]FM_GetShiftState [09:58:12]SAM_PROTO_GetShiftState [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 13 01 00 [09:58:12]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 0E 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 74 [09:58:12]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_GetShiftState done [09:58:12]FM_GetShiftState done [09:58:12]req_shift_opened done [09:58:12]requested_item shift.open_date is exist - process it [09:58:12]req_shift_open_date [09:58:12]req_shift_open_date done [09:58:12]produce_requested_data done [09:58:12]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50545,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [09:58:12]process_action_free close_receipt [09:58:12]json_value_free [09:58:12]json_value_free done [09:58:12]process_json_proto returns [09:58:12]Send response to host [09:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50545,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [09:58:12]free response buf [09:58:12]execute_script done [09:58:12]execute_script returns [09:58:12]free content buf [09:58:12]Sock 9.Close socket [09:58:12]Sock 9.Thread stoped [10:00:17]ConnectInit Can't connect to host [10:00:17]CommunicateWithHost connect error [10:00:17]CommunicateWithHost err = -1 [10:00:17]OFD Sender: Server communicate error [10:00:17]OFD Sender: Processing packet 50544 [packets to send 8, broken 6] [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00050544 [10:00:17]OFD Sender: To server: pG, [10:00:17]CommunicateWithHost lk.salyk.kg:30040 [10:00:17]ConnectInit lk.salyk.kg [10:00:17]Connected sock=9 [10:00:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 2A 19 26 01 8E 9E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 AA 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C5 00 00 35 04 06 00 E4 1C F5 E9 51 52 56 63 42 EB 36 2C 21 0E [10:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 48 FC 47 00 79 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 70 C5 00 00 F4 03 04 00 C1 17 1B 67 B6 04 01 00 00 83 38 9A 67 5A 0D 6B 79 [10:00:17]CommunicateWithHost err = 0 [10:00:17]CheckOFDResponse [10:00:17]1017 (14) - 77093643461234 [10:00:17]1041 (16) - 0000000000875000 [10:00:17]1040 (4) - 50544 [10:00:17]1012 (4) - 25.10.2024 04:00 [10:00:17]1206 (1) - 0 [10:00:17]OFD Sender: Remove packet 50544 [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00050544 [10:00:17]NVStorageDeleteData [10:00:18]OFD Sender: Processing packet 50545 [packets to send 7, broken 6] [10:00:18]ProducePacketName [10:00:18]name=ofd_packets/00050545 [10:00:18]OFD Sender: To server: pG, [10:00:18]CommunicateWithHost lk.salyk.kg:30040 [10:00:18]ConnectInit lk.salyk.kg [10:00:18]Connected sock=9 [10:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3F 01 00 00 3E 8F 37 01 9F B2 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B2 6B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 71 C5 00 00 35 04 06 00 C8 C2 7F BB E7 33 2E FD 79 8C 1E 1C 81 BA [10:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 8E 30 47 00 A7 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 71 C5 00 00 F4 03 04 00 C2 17 1B 67 B6 04 01 00 00 7F 8F 29 E1 01 52 A9 84 [10:00:18]CommunicateWithHost err = 0 [10:00:18]CheckOFDResponse [10:00:18]1017 (14) - 77093643461234 [10:00:18]1041 (16) - 0000000000875000 [10:00:18]1040 (4) - 50545 [10:00:18]1012 (4) - 25.10.2024 04:00 [10:00:18]1206 (1) - 0 [10:00:18]OFD Sender: Remove packet 50545 [10:00:18]ProducePacketName [10:00:18]name=ofd_packets/00050545 [10:00:18]NVStorageDeleteData [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:10]accept exits with 7 [10:05:10]New connection [10:05:10]New thread 3066645860 created [10:05:10]Thread 3066789220 joined [10:05:10]Waiting for new connection... [10:05:10] Sock 7.Parse request [10:05:10]Sock 7.Check first char [10:05:10]Sock 7.First char is OK [10:05:10]request: POST /json_proto HTTP/1.0 [10:05:10]Method: POST [10:05:10]URL: /json_proto [10:05:10]Method is POST - this is cgi request [10:05:10]url: /json_proto [10:05:10]query_string will be loaded in cgi processing [10:05:10]execute_cgi json_proto POST (null) [10:05:10]execute_cgi path=json_proto method=POST [10:05:10]POST find Content-Length [10:05:10]Host: 172.17.49.196:8080 [10:05:10]Content-Length: 629 [10:05:10]Content-Type: application/json [10:05:10] [10:05:10]POST finish read [10:05:10]Found Content-Length = 629 [10:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164457", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:10]execute_script... [10:05: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)164457", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:10]POST & json_proto [10:05:10]process_json_proto [10:05:10]json parsed OK: [10:05:10]protocol is kg_v1.0 [10:05:10]action value=close_receipt [10:05:10]process_action close_receipt [10:05:10]cmd_close_receipt [10:05:10]MH_GetDate [10:05:10]Write to MH i2c: F0 00 00 00 01 F0 [10:05:10]Write i2c OK [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: F0 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: F0 09 00 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: F0 09 00 00 01 00 57 6D 1B 67 BD 3B 11 67 AF [10:05:10]GetLastDocTimeStamp 1729850290 [10:05:10]current date 1729850711 [10:05:10]FM_GetShiftState [10:05:10]SAM_PROTO_GetShiftState [10:05:10]wFMCommunicate request_size=4 [10:05:10]MH_SAM_APDU [10:05:10]CAPDU: 80 13 01 00 [10:05:10]Write to MH i2c: E2 08 00 01 01 80 13 01 00 00 00 00 00 7F [10:05:10]Write i2c OK [10:05:10]MH_I2C_Read... [10:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:10]Read from MH i2c: E2 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: E2 0E 00 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: E2 0E 00 01 01 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 77 [10:05:10]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:05:10]wFMCommunicate OK [10:05:10]SAM_PROTO_GetShiftState done [10:05:10]FM_GetShiftState done [10:05:10]opened in 1729815177 [10:05:10]opened+sec_in_day 1729901577 [10:05:10]quantity*price = 26000 [10:05:10]sum+1 = 26001 [10:05:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 46 25.10.2024 10:05 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50546 ФПД: 198156452691057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T100511&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50546&fm=198156452691057&tin=02508201610067®Number=0000000000097022&sum=26000 0 [10:05:11]StoreToDocumentArchive [10:05:11]shift 493 fd 50546 [10:05:11]save to /storage/0493/doc_00050546 [10:05:11]save last doc name /storage/0493/doc_00050546 to /storage/kkm_last_doc_name [10:05:11]save OK [10:05:11]Clear old archive folders... [10:05:11]ProcessDocumentItem done err = 0, tmpTLVsize=269 [10:05:11]tlvbuf is 01E34B80 [10:05:11]SAM_PROTO_ClearQueue [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 09 00 00 [10:05:11]Write to MH i2c: E2 08 00 0E 01 80 09 00 00 00 00 00 00 81 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [10:05:11]RAPDU: 90 00 [10:05:11]wFMCommunicate OK [10:05:11]SAM_PROTO_ClearQueue done [10:05:11]KKMCreateOFDPacket [10:05:11]OFDProtocolAddRootSTLVToBuf [10:05:11]FM_MakeSignedData [10:05:11]FM_MakeSignedData [10:05:11]SAM_PROTO_SignData [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 0D 01 02 [10:05:11]Write to MH i2c: E2 08 00 0F 01 80 0D 01 02 00 00 00 00 89 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [10:05:11]RAPDU: 90 00 [10:05:11]wFMCommunicate OK [10:05:11]wFMCommunicate request_size=255 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 57 6D 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [10:05:11]Write to MH i2c: E2 02 01 10 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 57 6D 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 C8 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [10:05:11]RAPDU: 90 00 [10:05:11]wFMCommunicate OK [10:05:11]wFMCommunicate request_size=28 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 0D 02 02 17 37 35 30 30 30 10 04 04 00 72 C5 00 00 35 04 06 00 B4 38 E4 F8 FC 71 [10:05:11]Write to MH i2c: E2 1F 00 11 01 80 0D 02 02 17 00 37 35 30 30 30 10 04 04 00 72 C5 00 00 35 04 06 00 B4 38 E4 F8 FC 71 00 00 79 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [10:05:11]RAPDU: 90 00 [10:05:11]wFMCommunicate OK [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 0D 03 02 [10:05:11]Write to MH i2c: E2 08 00 12 01 80 0D 03 02 00 00 00 00 8E [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 0B 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 0B 00 12 01 00 EE EB 20 8D 77 79 84 83 90 00 0C [10:05:11]RAPDU: EE EB 20 8D 77 79 84 83 90 00 [10:05:11]wFMCommunicate OK [10:05:11]SAM_PROTO_SignData done [10:05:11]FM_MakeSignedData done [10:05:11]CreateOFDProtocolMessage [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 11 00 00 [10:05:11]Write to MH i2c: E2 08 00 13 01 80 11 00 00 00 00 00 00 8E [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 17 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 17 00 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D5 [10:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:05:11]wFMCommunicate OK [10:05:11]CreateOFDProtocolMessage done [10:05:11]OFDSenderStorePacket 50546 [10:05:11]StoreOFDPacket docnum=50546 [10:05:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 21 01 00 00 3D 83 19 01 24 81 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 57 6D 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 72 C5 00 00 35 04 06 00 B4 38 E4 F8 FC 71 EE EB 20 8D 77 79 84 83 [10:05:11]CheckFolder [10:05:11]dirname=/storage/ofd_packets [10:05:11]CheckFolder done [10:05:11]ProducePacketName [10:05:11]name=ofd_packets/00050546 [10:05:11]NVStorageSaveData ofd_packets/00050546 [10:05:11]File name is /storage/ofd_packets/00050546 [10:05:11]Write 319 bytes [10:05:11]NVStorageSaveData done [10:05:11]OFDSenderStorePacket done [10:05:11]KKMCreateOFDPacket done [10:05:11]NVStorageSaveData kkm_last_timestamp [10:05:11]File name is /storage/kkm_last_timestamp [10:05:11]Write 4 bytes [10:05:11]NVStorageSaveData done [10:05:11]ExternCall_PrintAddStr [10:05:11]wPrintStart [10:05:11]Write to MH i2c: 01 00 00 14 01 15 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: 01 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: 01 07 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: 01 07 00 14 01 00 00 00 00 00 FF 0F 2A [10:05:11]RasterBufferAndPrint [10:05:11]line Счет N : (3)164457 [10:05:11]line ИНН: 02508201610067 [10:05:11]line Контрольно-Кассовый Чек [10:05:11]line ПРОДАЖА [10:05:11]line Товар: 4620006996716 [10:05:11]line Водка Талка 0,1л [10:05:11]line 2.000 * 130.00 [10:05:11]line = 260.00 [10:05:11]line НДС 12% НСП 1% [10:05:11]line > о реализуемом товаре [10:05:11]line ИТОГО: 260.00 [10:05:11]line НСП 1% : 2.30 [10:05:11]line НДС 12% : 27.61 [10:05:11]line Наличными: 260.00 [10:05:11]line Безнал.: 0.00 [10:05:11]line Место: АЗС № 80 "Партнер Нефть" [10:05:11]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:05:11]line СНО: Общий режим [10:05:11]line Чек 46 25.10.2024 10:05 [10:05:11]line Смена: 493 ФФД: 1.0 [10:05:11]line ЗНМ: 0300000090 [10:05:11]line РНМ: 0000000000097022 [10:05:11]line Версия ККМ: 001 [10:05:11]line ФМ: 0000000000875000 [10:05:11]line ФД: 50546 [10:05:11]line ФПД: 198156452691057 [10:05:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T100511&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50546&fm=198156452691057&tin=02508201610067®Number=0000000000097022&sum=26000 [10:05:12]line 0 [10:05:12]OFD Sender: Processing packet 50546 [packets to send 7, broken 6] [10:05:12]ProducePacketName [10:05:12]name=ofd_packets/00050546 [10:05:12]OFD Sender: To server: pG, [10:05:12]CommunicateWithHost lk.salyk.kg:30040 [10:05:12]ConnectInit lk.salyk.kg [10:05:12]written 0, free lines is 4095 [10:05:12]Connected sock=10 [10:05:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 21 01 00 00 3D 83 19 01 24 81 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 57 6D 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 72 C5 00 00 35 04 06 00 B4 38 E4 F8 FC 71 EE EB 20 8D 77 79 84 83 [10:05:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 86 A4 47 00 F2 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 72 C5 00 00 F4 03 04 00 E8 18 1B 67 B6 04 01 00 00 EE 1A 12 EC 81 A0 95 A6 [10:05:12]CommunicateWithHost err = 0 [10:05:12]CheckOFDResponse [10:05:12]1017 (14) - 77093643461234 [10:05:12]1041 (16) - 0000000000875000 [10:05:12]1040 (4) - 50546 [10:05:12]1012 (4) - 25.10.2024 04:04 [10:05:12]1206 (1) - 0 [10:05:12]OFD Sender: Remove packet 50546 [10:05:12]ProducePacketName [10:05:12]name=ofd_packets/00050546 [10:05:12]NVStorageDeleteData [10:05:12]Write to MH i2c: 01 00 00 3C 01 3D [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: 01 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: 01 07 00 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 1A 0D 6B [10:05:12]RasterBufferAndPrint [10:05:12]line [10:05:12]line [10:05:12]line [10:05:12]line [10:05:12]line [10:05:12]written 0, free lines is 3362 [10:05:12]process_action close_receipt done [10:05:12]requested_data is exist [10:05:12]produce_requested_data [10:05:12]requested_item fm.sn is exist - process it [10:05:12]wFMCommunicate request_size=4 [10:05:12]MH_SAM_APDU [10:05:12]CAPDU: 80 11 00 00 [10:05:12]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:12]Read from MH i2c: E2 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: E2 17 00 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 05 [10:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:05:12]wFMCommunicate OK [10:05:12]requested_item fd.num is exist - process it [10:05:12]SAM_PROTO_GetFieldsCounters [10:05:12]wFMCommunicate request_size=4 [10:05:12]MH_SAM_APDU [10:05:12]CAPDU: 80 13 00 00 [10:05:12]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:12]Read from MH i2c: E2 [10:05:12]MH_I2C_Read... [10:05:12]Read from MH i2c: E2 62 00 [10:05:12]MH_I2C_Read... [10:05:12]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 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 72 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [10:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 72 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:12]wFMCommunicate OK [10:05:12]SAM_PROTO_GetFieldsCounters done [10:05:12]requested_item shift.num is exist - process it [10:05:12]requested_item shift.opened is exist - process it [10:05:12]req_shift_opened [10:05:12]FM_GetShiftState [10:05:12]SAM_PROTO_GetShiftState [10:05:12]wFMCommunicate request_size=4 [10:05:12]MH_SAM_APDU [10:05:12]CAPDU: 80 13 01 00 [10:05:12]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [10:05:12]Write i2c OK [10:05:12]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 0E 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 BB [10:05:13]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:05:13]wFMCommunicate OK [10:05:13]SAM_PROTO_GetShiftState done [10:05:13]FM_GetShiftState done [10:05:13]req_shift_opened done [10:05:13]requested_item shift.open_date is exist - process it [10:05:13]req_shift_open_date [10:05:13]req_shift_open_date done [10:05:13]produce_requested_data done [10:05:13]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50546,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:05:13]process_action_free close_receipt [10:05:13]json_value_free [10:05:13]json_value_free done [10:05:13]process_json_proto returns [10:05:13]Send response to host [10:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50546,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:05:13]free response buf [10:05:13]execute_script done [10:05:13]execute_script returns [10:05:13]free content buf [10:05:13]Sock 7.Close socket [10:05:13]Sock 7.Thread stoped [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:44]accept exits with 9 [10:09:44]New connection [10:09:44]New thread 3066789220 created [10:09:44]Thread 3066645860 joined [10:09:44]Waiting for new connection... [10:09:44] Sock 9.Parse request [10:09:44]Sock 9.Check first char [10:09:44]Sock 9.First char is OK [10:09:44]request: POST /json_proto HTTP/1.0 [10:09:44]Method: POST [10:09:44]URL: /json_proto [10:09:44]Method is POST - this is cgi request [10:09:44]url: /json_proto [10:09:44]query_string will be loaded in cgi processing [10:09:44]execute_cgi json_proto POST (null) [10:09:44]execute_cgi path=json_proto method=POST [10:09:44]POST find Content-Length [10:09:44]Host: 172.17.49.196:8080 [10:09:44]Content-Length: 753 [10:09:44]Content-Type: application/json [10:09:44] [10:09:44]POST finish read [10:09:44]Found Content-Length = 753 [10:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164458", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:44]execute_script... [10:09: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)164458", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:44]POST & json_proto [10:09:44]process_json_proto [10:09:44]json parsed OK: [10:09:44]protocol is kg_v1.0 [10:09:44]action value=close_receipt [10:09:44]process_action close_receipt [10:09:44]cmd_close_receipt [10:09:44]MH_GetDate [10:09:44]Write to MH i2c: F0 00 00 46 01 36 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 09 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 09 00 46 01 00 69 6E 1B 67 BD 3B 11 67 08 [10:09:44]GetLastDocTimeStamp 1729850711 [10:09:44]current date 1729850985 [10:09:44]FM_GetShiftState [10:09:44]SAM_PROTO_GetShiftState [10:09:44]wFMCommunicate request_size=4 [10:09:44]MH_SAM_APDU [10:09:44]CAPDU: 80 13 01 00 [10:09:44]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:44]Read from MH i2c: E2 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: E2 0E 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 BD [10:09:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:09:44]wFMCommunicate OK [10:09:44]SAM_PROTO_GetShiftState done [10:09:44]FM_GetShiftState done [10:09:44]opened in 1729815177 [10:09:44]opened+sec_in_day 1729901577 [10:09:44]quantity*price = 11500 [10:09:44]sum+1 = 11501 [10:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 47 25.10.2024 10:09 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50547 ФПД: 240986749515292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T100945&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50547&fm=240986749515292&tin=02508201610067®Number=0000000000097022&sum=11500 0 [10:09:45]StoreToDocumentArchive [10:09:45]shift 493 fd 50547 [10:09:45]save to /storage/0493/doc_00050547 [10:09:45]save last doc name /storage/0493/doc_00050547 to /storage/kkm_last_doc_name [10:09:45]save OK [10:09:45]Clear old archive folders... [10:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=274 [10:09:45]tlvbuf is 01E344C0 [10:09:45]SAM_PROTO_ClearQueue [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 09 00 00 [10:09:45]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_ClearQueue done [10:09:45]KKMCreateOFDPacket [10:09:45]OFDProtocolAddRootSTLVToBuf [10:09:45]FM_MakeSignedData [10:09:45]FM_MakeSignedData [10:09:45]SAM_PROTO_SignData [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 01 02 [10:09:45]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=255 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 69 6E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [10:09:45]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 69 6E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 DC [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=33 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C5 00 00 35 04 06 00 DB 2D 19 99 B6 1C [10:09:45]Write to MH i2c: E2 24 00 57 01 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C5 00 00 35 04 06 00 DB 2D 19 99 B6 1C 00 00 19 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 03 02 [10:09:45]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0B 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0B 00 58 01 00 F4 4F 83 8D 45 B6 CE 93 90 00 84 [10:09:45]RAPDU: F4 4F 83 8D 45 B6 CE 93 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_SignData done [10:09:45]FM_MakeSignedData done [10:09:45]CreateOFDProtocolMessage [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 11 00 00 [10:09:45]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 17 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1B [10:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:09:46]wFMCommunicate OK [10:09:46]CreateOFDProtocolMessage done [10:09:46]OFDSenderStorePacket 50547 [10:09:46]StoreOFDPacket docnum=50547 [10:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 C0 C8 1E 01 06 53 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 69 6E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C5 00 00 35 04 06 00 DB 2D 19 99 B6 1C F4 4F 83 8D 45 B6 CE 93 [10:09:46]CheckFolder [10:09:46]dirname=/storage/ofd_packets [10:09:46]CheckFolder done [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00050547 [10:09:46]NVStorageSaveData ofd_packets/00050547 [10:09:46]File name is /storage/ofd_packets/00050547 [10:09:46]Write 324 bytes [10:09:46]NVStorageSaveData done [10:09:46]OFDSenderStorePacket done [10:09:46]KKMCreateOFDPacket done [10:09:46]NVStorageSaveData kkm_last_timestamp [10:09:46]File name is /storage/kkm_last_timestamp [10:09:46]Write 4 bytes [10:09:46]NVStorageSaveData done [10:09:46]ExternCall_PrintAddStr [10:09:46]wPrintStart [10:09:46]Write to MH i2c: 01 00 00 5A 01 5B [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [10:09:46]RasterBufferAndPrint [10:09:46]line Счет N : (3)164458 [10:09:46]line ИНН: 02508201610067 [10:09:46]line Контрольно-Кассовый Чек [10:09:46]line ПРОДАЖА [10:09:46]line Товар: 2000036240010 [10:09:46]line Кофе Латте (GABB TRADE) [10:09:46]line 1.000 * 115.00 [10:09:46]line = 115.00 [10:09:46]line НДС 12% НСП 1% [10:09:46]line > о реализуемом товаре [10:09:46]line ИТОГО: 115.00 [10:09:46]line НСП 1% : 1.02 [10:09:46]line НДС 12% : 12.21 [10:09:46]line Наличными: 0.00 [10:09:46]line Безнал.: 115.00 [10:09:46]line Место: АЗС № 80 "Партнер Нефть" [10:09:46]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:09:46]line СНО: Общий режим [10:09:46]line Чек 47 25.10.2024 10:09 [10:09:46]line Смена: 493 ФФД: 1.0 [10:09:46]line ЗНМ: 0300000090 [10:09:46]line РНМ: 0000000000097022 [10:09:46]line Версия ККМ: 001 [10:09:46]line Платежная система: Mbank [10:09:46]line ФМ: 0000000000875000 [10:09:46]line ФД: 50547 [10:09:46]line ФПД: 240986749515292 [10:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T100945&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50547&fm=240986749515292&tin=02508201610067®Number=0000000000097022&sum=11500 [10:09:46]OFD Sender: Processing packet 50547 [packets to send 7, broken 6] [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00050547 [10:09:46]OFD Sender: To server: pG, [10:09:46]CommunicateWithHost lk.salyk.kg:30040 [10:09:46]ConnectInit lk.salyk.kg [10:09:46]line 0 [10:09:46]written 0, free lines is 4095 [10:09:46]Connected sock=10 [10:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 C0 C8 1E 01 06 53 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 69 6E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C5 00 00 35 04 06 00 DB 2D 19 99 B6 1C F4 4F 83 8D 45 B6 CE 93 [10:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F9 5C 47 00 05 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 73 C5 00 00 F4 03 04 00 FA 19 1B 67 B6 04 01 00 00 B1 6C 45 03 5E D0 B9 64 [10:09:46]CommunicateWithHost err = 0 [10:09:46]CheckOFDResponse [10:09:46]1017 (14) - 77093643461234 [10:09:46]1041 (16) - 0000000000875000 [10:09:46]1040 (4) - 50547 [10:09:46]1012 (4) - 25.10.2024 04:09 [10:09:46]1206 (1) - 0 [10:09:46]OFD Sender: Remove packet 50547 [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00050547 [10:09:46]NVStorageDeleteData [10:09:46]Write to MH i2c: 01 00 00 83 01 84 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 15 0D AD [10:09:46]RasterBufferAndPrint [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]written 0, free lines is 3355 [10:09:46]process_action close_receipt done [10:09:46]requested_data is exist [10:09:46]produce_requested_data [10:09:46]requested_item fm.sn is exist - process it [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 11 00 00 [10:09:46]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 17 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4C [10:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:09:46]wFMCommunicate OK [10:09:46]requested_item fd.num is exist - process it [10:09:46]SAM_PROTO_GetFieldsCounters [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 13 00 00 [10:09:46]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 62 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 62 00 8B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 73 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [10:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 73 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_GetFieldsCounters done [10:09:47]requested_item shift.num is exist - process it [10:09:47]requested_item shift.opened is exist - process it [10:09:47]req_shift_opened [10:09:47]FM_GetShiftState [10:09:47]SAM_PROTO_GetShiftState [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 13 01 00 [10:09:47]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0E 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 02 [10:09:47]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_GetShiftState done [10:09:47]FM_GetShiftState done [10:09:47]req_shift_opened done [10:09:47]requested_item shift.open_date is exist - process it [10:09:47]req_shift_open_date [10:09:47]req_shift_open_date done [10:09:47]produce_requested_data done [10:09:47]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50547,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:09:47]process_action_free close_receipt [10:09:47]json_value_free [10:09:47]json_value_free done [10:09:47]process_json_proto returns [10:09:47]Send response to host [10:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50547,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:09:47]free response buf [10:09:47]execute_script done [10:09:47]execute_script returns [10:09:47]free content buf [10:09:47]Sock 9.Close socket [10:09:47]Sock 9.Thread stoped [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:11]accept exits with 7 [10:12:11]New connection [10:12:11]New thread 3066645860 created [10:12:11]Thread 3066789220 joined [10:12:11]Waiting for new connection... [10:12:11] Sock 7.Parse request [10:12:11]Sock 7.Check first char [10:12:11]Sock 7.First char is OK [10:12:11]request: POST /json_proto HTTP/1.0 [10:12:11]Method: POST [10:12:11]URL: /json_proto [10:12:11]Method is POST - this is cgi request [10:12:11]url: /json_proto [10:12:11]query_string will be loaded in cgi processing [10:12:11]execute_cgi json_proto POST (null) [10:12:11]execute_cgi path=json_proto method=POST [10:12:11]POST find Content-Length [10:12:11]Host: 172.17.49.196:8080 [10:12:11]Content-Length: 909 [10:12:11]Content-Type: application/json [10:12:11] [10:12:11]POST finish read [10:12:11]Found Content-Length = 909 [10:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164459", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:11]execute_script... [10:12:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164459", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:11]POST & json_proto [10:12:11]process_json_proto [10:12:11]json parsed OK: [10:12:11]protocol is kg_v1.0 [10:12:11]action value=close_receipt [10:12:11]process_action close_receipt [10:12:11]cmd_close_receipt [10:12:11]MH_GetDate [10:12:11]Write to MH i2c: F0 00 00 8D 01 7D [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 09 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 09 00 8D 01 00 FC 6E 1B 67 BD 3B 11 67 E2 [10:12:11]GetLastDocTimeStamp 1729850985 [10:12:11]current date 1729851132 [10:12:11]FM_GetShiftState [10:12:11]SAM_PROTO_GetShiftState [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 01 00 [10:12:11]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 04 [10:12:11]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetShiftState done [10:12:11]FM_GetShiftState done [10:12:11]opened in 1729815177 [10:12:11]opened+sec_in_day 1729901577 [10:12:11]quantity*price = 11000 [10:12:11]sum+1 = 11001 [10:12:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 48 25.10.2024 10:12 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50548 ФПД: 136734559058554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101212&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50548&fm=136734559058554&tin=02508201610067®Number=0000000000097022&sum=22500 0 [10:12:12]StoreToDocumentArchive [10:12:12]shift 493 fd 50548 [10:12:12]save to /storage/0493/doc_00050548 [10:12:12]save last doc name /storage/0493/doc_00050548 to /storage/kkm_last_doc_name [10:12:12]save OK [10:12:12]Clear old archive folders... [10:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=387 [10:12:12]tlvbuf is 01E3CF90 [10:12:12]SAM_PROTO_ClearQueue [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 09 00 00 [10:12:12]Write to MH i2c: E2 08 00 9B 01 80 09 00 00 00 00 00 00 0E [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 03 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [10:12:12]RAPDU: 90 00 [10:12:12]wFMCommunicate OK [10:12:12]SAM_PROTO_ClearQueue done [10:12:12]KKMCreateOFDPacket [10:12:12]OFDProtocolAddRootSTLVToBuf [10:12:12]FM_MakeSignedData [10:12:12]FM_MakeSignedData [10:12:12]SAM_PROTO_SignData [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 0D 01 02 [10:12:12]Write to MH i2c: E2 08 00 9C 01 80 0D 01 02 00 00 00 00 16 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 03 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [10:12:12]RAPDU: 90 00 [10:12:12]wFMCommunicate OK [10:12:12]wFMCommunicate request_size=255 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [10:12:12]Write to MH i2c: E2 02 01 9D 01 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 CC [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]wFMCommunicate request_size=146 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 02 02 8D 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FC 6E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C5 00 00 35 04 06 00 7C 5B FE D2 3A 7A [10:12:13]Write to MH i2c: E2 95 00 9E 01 80 0D 02 02 8D 00 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FC 6E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C5 00 00 35 04 06 00 7C 5B FE D2 3A 7A 00 00 56 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 03 02 [10:12:13]Write to MH i2c: E2 08 00 9F 01 80 0D 03 02 00 00 00 00 1B [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0B 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0B 00 9F 01 00 F0 EF 53 33 0D 98 10 10 90 00 46 [10:12:13]RAPDU: F0 EF 53 33 0D 98 10 10 90 00 [10:12:13]wFMCommunicate OK [10:12:13]SAM_PROTO_SignData done [10:12:13]FM_MakeSignedData done [10:12:13]CreateOFDProtocolMessage [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 11 00 00 [10:12:13]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 17 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 62 [10:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:12:13]wFMCommunicate OK [10:12:13]CreateOFDProtocolMessage done [10:12:13]OFDSenderStorePacket 50548 [10:12:13]StoreOFDPacket docnum=50548 [10:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 97 01 00 00 C7 69 8F 01 3C 37 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FC 6E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C5 00 00 35 04 06 00 7C 5B FE D2 3A 7A F0 EF 53 33 0D 98 10 10 [10:12:13]CheckFolder [10:12:13]dirname=/storage/ofd_packets [10:12:13]CheckFolder done [10:12:13]ProducePacketName [10:12:13]name=ofd_packets/00050548 [10:12:13]NVStorageSaveData ofd_packets/00050548 [10:12:13]File name is /storage/ofd_packets/00050548 [10:12:13]Write 437 bytes [10:12:13]NVStorageSaveData done [10:12:13]OFDSenderStorePacket done [10:12:13]KKMCreateOFDPacket done [10:12:13]NVStorageSaveData kkm_last_timestamp [10:12:13]File name is /storage/kkm_last_timestamp [10:12:13]Write 4 bytes [10:12:13]NVStorageSaveData done [10:12:13]ExternCall_PrintAddStr [10:12:13]wPrintStart [10:12:13]Write to MH i2c: 01 00 00 A1 01 A2 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [10:12:13]RasterBufferAndPrint [10:12:13]line Счет N : (3)164459 [10:12:13]line ИНН: 02508201610067 [10:12:13]line Контрольно-Кассовый Чек [10:12:13]line ПРОДАЖА [10:12:13]line Товар: 4860019001339 [10:12:13]line Вода Боржоми 0,33л ст [10:12:13]line 1.000 * 110.00 [10:12:13]line = 110.00 [10:12:13]line НДС 12% НСП 1% [10:12:13]line > о реализуемом товаре [10:12:13]line Товар: 2000036210013 [10:12:13]line Кофе Капучино (GABB TRADE) [10:12:13]line 1.000 * 115.00 [10:12:13]line = 115.00 [10:12:13]line НДС 12% НСП 1% [10:12:13]line > о реализуемом товаре [10:12:13]line ИТОГО: 225.00 [10:12:13]line НСП 1% : 1.99 [10:12:13]line НДС 12% : 23.89 [10:12:13]line Наличными: 225.00 [10:12:13]line Безнал.: 0.00 [10:12:13]line Место: АЗС № 80 "Партнер Нефть" [10:12:13]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:12:13]line СНО: Общий режим [10:12:13]line Чек 48 25.10.2024 10:12 [10:12:13]line Смена: 493 ФФД: 1.0 [10:12:13]line ЗНМ: 0300000090 [10:12:13]line РНМ: 0000000000097022 [10:12:13]line Версия ККМ: 001 [10:12:13]line ФМ: 0000000000875000 [10:12:13]line ФД: 50548 [10:12:13]line ФПД: 136734559058554 [10:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101212&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50548&fm=136734559058554&tin=02508201610067®Number=0000000000097022&sum=22500 [10:12:13]line 0 [10:12:13]OFD Sender: Processing packet 50548 [packets to send 7, broken 6] [10:12:13]ProducePacketName [10:12:13]name=ofd_packets/00050548 [10:12:13]OFD Sender: To server: pG, [10:12:13]CommunicateWithHost lk.salyk.kg:30040 [10:12:13]ConnectInit lk.salyk.kg [10:12:13]written 0, free lines is 4095 [10:12:13]Connected sock=10 [10:12:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 97 01 00 00 C7 69 8F 01 3C 37 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FC 6E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C5 00 00 35 04 06 00 7C 5B FE D2 3A 7A F0 EF 53 33 0D 98 10 10 [10:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C3 A0 47 00 03 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 74 C5 00 00 F4 03 04 00 8D 1A 1B 67 B6 04 01 00 00 AA 57 97 AF 3E CC 70 9A [10:12:14]CommunicateWithHost err = 0 [10:12:14]CheckOFDResponse [10:12:14]1017 (14) - 77093643461234 [10:12:14]1041 (16) - 0000000000875000 [10:12:14]1040 (4) - 50548 [10:12:14]1012 (4) - 25.10.2024 04:11 [10:12:14]1206 (1) - 0 [10:12:14]OFD Sender: Remove packet 50548 [10:12:14]ProducePacketName [10:12:14]name=ofd_packets/00050548 [10:12:14]NVStorageDeleteData [10:12:14]Write to MH i2c: 01 00 00 CF 01 D0 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 EC 0C CF [10:12:14]RasterBufferAndPrint [10:12:14]line [10:12:14]line [10:12:14]line [10:12:14]line [10:12:14]line [10:12:14]written 0, free lines is 3317 [10:12:14]process_action close_receipt done [10:12:14]requested_data is exist [10:12:14]produce_requested_data [10:12:14]requested_item fm.sn is exist - process it [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 11 00 00 [10:12:14]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 17 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 98 [10:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:12:14]wFMCommunicate OK [10:12:14]requested_item fd.num is exist - process it [10:12:14]SAM_PROTO_GetFieldsCounters [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 13 00 00 [10:12:14]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 62 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 74 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [10:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 74 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:14]wFMCommunicate OK [10:12:14]SAM_PROTO_GetFieldsCounters done [10:12:14]requested_item shift.num is exist - process it [10:12:14]requested_item shift.opened is exist - process it [10:12:14]req_shift_opened [10:12:14]FM_GetShiftState [10:12:14]SAM_PROTO_GetShiftState [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 13 01 00 [10:12:14]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 0E 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4E [10:12:14]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:12:14]wFMCommunicate OK [10:12:14]SAM_PROTO_GetShiftState done [10:12:14]FM_GetShiftState done [10:12:14]req_shift_opened done [10:12:14]requested_item shift.open_date is exist - process it [10:12:14]req_shift_open_date [10:12:14]req_shift_open_date done [10:12:14]produce_requested_data done [10:12:14]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50548,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:12:14]process_action_free close_receipt [10:12:14]json_value_free [10:12:14]json_value_free done [10:12:14]process_json_proto returns [10:12:14]Send response to host [10:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50548,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:12:14]free response buf [10:12:14]execute_script done [10:12:14]execute_script returns [10:12:14]free content buf [10:12:14]Sock 7.Close socket [10:12:14]Sock 7.Thread stoped [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [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:13]accept exits with 9 [10:18:13]New connection [10:18:13]New thread 3066789220 created [10:18:13]Thread 3066645860 joined [10:18:13]Waiting for new connection... [10:18:13] Sock 9.Parse request [10:18:13]Sock 9.Check first char [10:18:13]Sock 9.First char is OK [10:18:13]request: POST /json_proto HTTP/1.0 [10:18:13]Method: POST [10:18:13]URL: /json_proto [10:18:13]Method is POST - this is cgi request [10:18:13]url: /json_proto [10:18:13]query_string will be loaded in cgi processing [10:18:13]execute_cgi json_proto POST (null) [10:18:13]execute_cgi path=json_proto method=POST [10:18:13]POST find Content-Length [10:18:13]Host: 172.17.49.196:8080 [10:18:13]Content-Length: 650 [10:18:13]Content-Type: application/json [10:18:13] [10:18:13]POST finish read [10:18:13]Found Content-Length = 650 [10:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164460", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\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" ] } } [10:18:13]execute_script... [10:18:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164460", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\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" ] } } [10:18:13]POST & json_proto [10:18:13]process_json_proto [10:18:13]json parsed OK: [10:18:13]protocol is kg_v1.0 [10:18:13]action value=close_receipt [10:18:13]process_action close_receipt [10:18:13]cmd_close_receipt [10:18:13]MH_GetDate [10:18:13]Write to MH i2c: F0 00 00 D9 01 C9 [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 09 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 09 00 D9 01 00 66 70 1B 67 BD 3B 11 67 9A [10:18:13]GetLastDocTimeStamp 1729851132 [10:18:13]current date 1729851494 [10:18:13]FM_GetShiftState [10:18:13]SAM_PROTO_GetShiftState [10:18:13]wFMCommunicate request_size=4 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 13 01 00 [10:18:13]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 0E 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 50 [10:18:13]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:18:13]wFMCommunicate OK [10:18:13]SAM_PROTO_GetShiftState done [10:18:13]FM_GetShiftState done [10:18:13]opened in 1729815177 [10:18:13]opened+sec_in_day 1729901577 [10:18:13]quantity*price = 10500 [10:18:13]sum+1 = 10501 [10:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 49 25.10.2024 10:18 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50549 ФПД: 278443254395198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101814&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50549&fm=278443254395198&tin=02508201610067®Number=0000000000097022&sum=10500 0 [10:18:14]StoreToDocumentArchive [10:18:14]shift 493 fd 50549 [10:18:14]save to /storage/0493/doc_00050549 [10:18:14]save last doc name /storage/0493/doc_00050549 to /storage/kkm_last_doc_name [10:18:14]save OK [10:18:14]Clear old archive folders... [10:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:18:14]tlvbuf is 01E35FB0 [10:18:14]SAM_PROTO_ClearQueue [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 09 00 00 [10:18:14]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_ClearQueue done [10:18:14]KKMCreateOFDPacket [10:18:14]OFDProtocolAddRootSTLVToBuf [10:18:14]FM_MakeSignedData [10:18:14]FM_MakeSignedData [10:18:14]SAM_PROTO_SignData [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 01 02 [10:18:14]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=255 [10:18:14]MH_SAM_APDU [10:18:14]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 34 37 33 30 30 31 38 06 04 28 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 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 31 00 00 00 F4 03 04 00 66 70 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [10:18:14]Write to MH i2c: E2 02 01 E9 01 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 34 37 33 30 30 31 38 06 04 28 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 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 31 00 00 00 F4 03 04 00 66 70 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 9C [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=41 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C5 00 00 35 04 06 00 FD 3E 1F 44 B1 3E [10:18:14]Write to MH i2c: E2 2C 00 EA 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C5 00 00 35 04 06 00 FD 3E 1F 44 B1 3E 00 00 EF [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 03 02 [10:18:14]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0B 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0B 00 EB 01 00 DF 2C D7 6F 8F 8C F5 6E 90 00 37 [10:18:14]RAPDU: DF 2C D7 6F 8F 8C F5 6E 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_SignData done [10:18:14]FM_MakeSignedData done [10:18:14]CreateOFDProtocolMessage [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 11 00 00 [10:18:14]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AE [10:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:18:14]wFMCommunicate OK [10:18:14]CreateOFDProtocolMessage done [10:18:14]OFDSenderStorePacket 50549 [10:18:14]StoreOFDPacket docnum=50549 [10:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 66 22 26 01 4A 73 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 34 37 33 30 30 31 38 06 04 28 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 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 31 00 00 00 F4 03 04 00 66 70 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C5 00 00 35 04 06 00 FD 3E 1F 44 B1 3E DF 2C D7 6F 8F 8C F5 6E [10:18:14]CheckFolder [10:18:14]dirname=/storage/ofd_packets [10:18:14]CheckFolder done [10:18:14]ProducePacketName [10:18:14]name=ofd_packets/00050549 [10:18:14]NVStorageSaveData ofd_packets/00050549 [10:18:14]File name is /storage/ofd_packets/00050549 [10:18:14]Write 332 bytes [10:18:14]NVStorageSaveData done [10:18:14]OFDSenderStorePacket done [10:18:14]KKMCreateOFDPacket done [10:18:14]NVStorageSaveData kkm_last_timestamp [10:18:14]File name is /storage/kkm_last_timestamp [10:18:14]Write 4 bytes [10:18:14]NVStorageSaveData done [10:18:14]ExternCall_PrintAddStr [10:18:14]wPrintStart [10:18:14]Write to MH i2c: 01 00 00 ED 01 EE [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [10:18:14]RasterBufferAndPrint [10:18:14]line Счет N : (3)164460 [10:18:14]line ИНН: 02508201610067 [10:18:14]line Контрольно-Кассовый Чек [10:18:14]line ПРОДАЖА [10:18:14]line Товар: 2000034730018 [10:18:14]line Кофе Американо (GABB TRADE) [10:18:14]line 1.000 * 105.00 [10:18:14]line = 105.00 [10:18:14]line НДС 12% НСП 1% [10:18:14]line > о реализуемом товаре [10:18:14]line ИТОГО: 105.00 [10:18:14]line НСП 1% : 0.93 [10:18:14]line НДС 12% : 11.15 [10:18:14]line Наличными: 105.00 [10:18:14]line Безнал.: 0.00 [10:18:14]line Место: АЗС № 80 "Партнер Нефть" [10:18:14]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:18:14]line СНО: Общий режим [10:18:14]line Чек 49 25.10.2024 10:18 [10:18:14]line Смена: 493 ФФД: 1.0 [10:18:14]line ЗНМ: 0300000090 [10:18:14]line РНМ: 0000000000097022 [10:18:14]line Версия ККМ: 001 [10:18:14]line ФМ: 0000000000875000 [10:18:14]line ФД: 50549 [10:18:14]line ФПД: 278443254395198 [10:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T101814&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50549&fm=278443254395198&tin=02508201610067®Number=0000000000097022&sum=10500 [10:18:15]line 0 [10:18:15]OFD Sender: Processing packet 50549 [packets to send 7, broken 6] [10:18:15]ProducePacketName [10:18:15]name=ofd_packets/00050549 [10:18:15]OFD Sender: To server: pG, [10:18:15]CommunicateWithHost lk.salyk.kg:30040 [10:18:15]ConnectInit lk.salyk.kg [10:18:15]written 0, free lines is 4095 [10:18:15]Write to MH i2c: 01 00 00 16 02 18 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 0F 0D 3B [10:18:15]RasterBufferAndPrint [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]written 0, free lines is 3349 [10:18:15]process_action close_receipt done [10:18:15]requested_data is exist [10:18:15]produce_requested_data [10:18:15]requested_item fm.sn is exist - process it [10:18:15]wFMCommunicate request_size=4 [10:18:15]MH_SAM_APDU [10:18:15]CAPDU: 80 11 00 00 [10:18:15]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:15]Read from MH i2c: E2 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 17 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E0 [10:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:18:15]wFMCommunicate OK [10:18:15]requested_item fd.num is exist - process it [10:18:15]SAM_PROTO_GetFieldsCounters [10:18:15]wFMCommunicate request_size=4 [10:18:15]MH_SAM_APDU [10:18:15]CAPDU: 80 13 00 00 [10:18:15]Write to MH i2c: E2 08 00 1E 02 80 13 00 00 00 00 00 00 9C [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:15]Read from MH i2c: E2 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 62 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 62 00 1E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 75 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:18:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 75 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:15]wFMCommunicate OK [10:18:15]SAM_PROTO_GetFieldsCounters done [10:18:15]requested_item shift.num is exist - process it [10:18:15]requested_item shift.opened is exist - process it [10:18:15]req_shift_opened [10:18:15]FM_GetShiftState [10:18:15]SAM_PROTO_GetShiftState [10:18:15]wFMCommunicate request_size=4 [10:18:15]MH_SAM_APDU [10:18:15]CAPDU: 80 13 01 00 [10:18:15]Write to MH i2c: E2 08 00 1F 02 80 13 01 00 00 00 00 00 9E [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:15]Read from MH i2c: E2 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 0E 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 0E 00 1F 02 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 96 [10:18:15]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:18:15]wFMCommunicate OK [10:18:15]SAM_PROTO_GetShiftState done [10:18:15]FM_GetShiftState done [10:18:15]req_shift_opened done [10:18:15]requested_item shift.open_date is exist - process it [10:18:15]req_shift_open_date [10:18:15]req_shift_open_date done [10:18:15]produce_requested_data done [10:18:15]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50549,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:18:15]process_action_free close_receipt [10:18:15]json_value_free [10:18:15]json_value_free done [10:18:15]process_json_proto returns [10:18:15]Send response to host [10:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50549,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:18:15]free response buf [10:18:15]execute_script done [10:18:15]execute_script returns [10:18:15]free content buf [10:18:15]Sock 9.Close socket [10:18:15]Sock 9.Thread stoped [10:20:17]int [10:20:17]Write to MH i2c: 01 00 00 20 02 22 [10:20:17]*** FLAG_PRN_PAP1 set [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 20 02 00 01 00 00 00 FF 0F 38 [10:20:17]state=0 [10:20:17]No paper [10:20:17]int [10:20:17]Write to MH i2c: 01 00 00 21 02 23 [10:20:17]*** FLAG_PRN_PAP2 set [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 21 02 00 03 00 00 00 FF 0F 3B [10:20:17]state=0 [10:20:17]No paper [10:20:17]Cover opened [10:20:18]int [10:20:18]Write to MH i2c: 01 00 00 22 02 24 [10:20:18]*** FLAG_PRN_PAP2 reset [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 22 02 00 01 00 00 00 FF 0F 3A [10:20:18]state=3 [10:20:18]No paper [10:20:18]Cover closed [10:20:18]int [10:20:18]Write to MH i2c: 01 00 00 23 02 25 [10:20:18]*** FLAG_PRN_PAP1 reset [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [10:20:18]state=0 [10:20:25]ConnectInit Can't connect to host [10:20:25]CommunicateWithHost connect error [10:20:25]CommunicateWithHost err = -1 [10:20:25]OFD Sender: Server communicate error [10:20:30]OFD Sender: Processing packet 50549 [packets to send 7, broken 6] [10:20:30]ProducePacketName [10:20:30]name=ofd_packets/00050549 [10:20:30]OFD Sender: To server: pG, [10:20:30]CommunicateWithHost lk.salyk.kg:30040 [10:20:30]ConnectInit lk.salyk.kg [10:20:30]Connected sock=9 [10:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 66 22 26 01 4A 73 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 34 37 33 30 30 31 38 06 04 28 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 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 31 00 00 00 F4 03 04 00 66 70 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C5 00 00 35 04 06 00 FD 3E 1F 44 B1 3E DF 2C D7 6F 8F 8C F5 6E [10:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 59 12 47 00 8A DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 75 C5 00 00 F4 03 04 00 7E 1C 1B 67 B6 04 01 00 00 E7 3E DD FE 36 87 81 22 [10:20:31]CommunicateWithHost err = 0 [10:20:31]CheckOFDResponse [10:20:31]1017 (14) - 77093643461234 [10:20:31]1041 (16) - 0000000000875000 [10:20:31]1040 (4) - 50549 [10:20:31]1012 (4) - 25.10.2024 04:20 [10:20:31]1206 (1) - 0 [10:20:31]OFD Sender: Remove packet 50549 [10:20:31]ProducePacketName [10:20:31]name=ofd_packets/00050549 [10:20:31]NVStorageDeleteData [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:15]accept exits with 7 [10:22:15]New connection [10:22:15]New thread 3066645860 created [10:22:15]Thread 3066789220 joined [10:22:15]Waiting for new connection... [10:22:15] Sock 7.Parse request [10:22:15]Sock 7.Check first char [10:22:15]Sock 7.First char is OK [10:22:15]request: POST /json_proto HTTP/1.0 [10:22:15]Method: POST [10:22:15]URL: /json_proto [10:22:15]Method is POST - this is cgi request [10:22:15]url: /json_proto [10:22:15]query_string will be loaded in cgi processing [10:22:15]execute_cgi json_proto POST (null) [10:22:15]execute_cgi path=json_proto method=POST [10:22:15]POST find Content-Length [10:22:15]Host: 172.17.49.196:8080 [10:22:15]Content-Length: 886 [10:22:15]Content-Type: application/json [10:22:15] [10:22:15]POST finish read [10:22:15]Found Content-Length = 886 [10:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164461", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.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" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 348.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:15]execute_script... [10:22:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164461", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.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" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 348.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:15]POST & json_proto [10:22:15]process_json_proto [10:22:15]json parsed OK: [10:22:15]protocol is kg_v1.0 [10:22:15]action value=close_receipt [10:22:15]process_action close_receipt [10:22:15]cmd_close_receipt [10:22:15]MH_GetDate [10:22:15]Write to MH i2c: F0 00 00 24 02 15 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: F0 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: F0 09 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: F0 09 00 24 02 00 58 71 1B 67 BD 3B 11 67 D9 [10:22:15]GetLastDocTimeStamp 1729851494 [10:22:15]current date 1729851736 [10:22:15]FM_GetShiftState [10:22:15]SAM_PROTO_GetShiftState [10:22:15]wFMCommunicate request_size=4 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 13 01 00 [10:22:15]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 0E 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 9C [10:22:15]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:22:15]wFMCommunicate OK [10:22:15]SAM_PROTO_GetShiftState done [10:22:15]FM_GetShiftState done [10:22:15]opened in 1729815177 [10:22:15]opened+sec_in_day 1729901577 [10:22:15]quantity*price = 23000 [10:22:15]sum+1 = 23001 [10:22:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 2.000 * 59.00 = 118.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 348.00 НСП 1% : 3.07 НДС 12% : 36.95 Наличными: 348.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 50 25.10.2024 10:22 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50550 ФПД: 165250063902772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102216&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50550&fm=165250063902772&tin=02508201610067®Number=0000000000097022&sum=34800 0 [10:22:16]StoreToDocumentArchive [10:22:16]shift 493 fd 50550 [10:22:16]save to /storage/0493/doc_00050550 [10:22:16]save last doc name /storage/0493/doc_00050550 to /storage/kkm_last_doc_name [10:22:16]save OK [10:22:16]Clear old archive folders... [10:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=385 [10:22:16]tlvbuf is 01E3CB00 [10:22:16]SAM_PROTO_ClearQueue [10:22:16]wFMCommunicate request_size=4 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 09 00 00 [10:22:16]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:16]OFD Sender: No OFD packet to send [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 03 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [10:22:16]RAPDU: 90 00 [10:22:16]wFMCommunicate OK [10:22:16]SAM_PROTO_ClearQueue done [10:22:16]KKMCreateOFDPacket [10:22:16]OFDProtocolAddRootSTLVToBuf [10:22:16]FM_MakeSignedData [10:22:16]FM_MakeSignedData [10:22:16]SAM_PROTO_SignData [10:22:16]wFMCommunicate request_size=4 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 0D 01 02 [10:22:16]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 03 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [10:22:16]RAPDU: 90 00 [10:22:16]wFMCommunicate OK [10:22:16]wFMCommunicate request_size=255 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [10:22:16]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 AB [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [10:22:17]RAPDU: 90 00 [10:22:17]wFMCommunicate OK [10:22:17]wFMCommunicate request_size=144 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 0D 02 02 8B 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 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 58 71 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C5 00 00 35 04 06 00 96 4B 47 5B A8 34 [10:22:17]Write to MH i2c: E2 93 00 35 02 80 0D 02 02 8B 00 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 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 58 71 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C5 00 00 35 04 06 00 96 4B 47 5B A8 34 00 00 10 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [10:22:17]RAPDU: 90 00 [10:22:17]wFMCommunicate OK [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 0D 03 02 [10:22:17]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0B 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0B 00 36 02 00 03 81 C2 87 05 58 A6 74 90 00 F8 [10:22:17]RAPDU: 03 81 C2 87 05 58 A6 74 90 00 [10:22:17]wFMCommunicate OK [10:22:17]SAM_PROTO_SignData done [10:22:17]FM_MakeSignedData done [10:22:17]CreateOFDProtocolMessage [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 11 00 00 [10:22:17]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 17 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FA [10:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:22:17]wFMCommunicate OK [10:22:17]CreateOFDProtocolMessage done [10:22:17]OFDSenderStorePacket 50550 [10:22:17]StoreOFDPacket docnum=50550 [10:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 95 01 00 00 D4 A6 8D 01 FB FC 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 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 58 71 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C5 00 00 35 04 06 00 96 4B 47 5B A8 34 03 81 C2 87 05 58 A6 74 [10:22:17]CheckFolder [10:22:17]dirname=/storage/ofd_packets [10:22:17]CheckFolder done [10:22:17]ProducePacketName [10:22:17]name=ofd_packets/00050550 [10:22:17]NVStorageSaveData ofd_packets/00050550 [10:22:17]File name is /storage/ofd_packets/00050550 [10:22:17]Write 435 bytes [10:22:17]NVStorageSaveData done [10:22:17]OFDSenderStorePacket done [10:22:17]KKMCreateOFDPacket done [10:22:17]NVStorageSaveData kkm_last_timestamp [10:22:17]File name is /storage/kkm_last_timestamp [10:22:17]Write 4 bytes [10:22:17]NVStorageSaveData done [10:22:17]ExternCall_PrintAddStr [10:22:17]wPrintStart [10:22:17]Write to MH i2c: 01 00 00 38 02 3A [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 07 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [10:22:17]RasterBufferAndPrint [10:22:17]line Счет N : (3)164461 [10:22:17]line ИНН: 02508201610067 [10:22:17]line Контрольно-Кассовый Чек [10:22:17]line ПРОДАЖА [10:22:17]line Товар: 2000036240010 [10:22:17]line Кофе Латте (GABB TRADE) [10:22:17]line 2.000 * 115.00 [10:22:17]line = 230.00 [10:22:17]line НДС 12% НСП 1% [10:22:17]line > о реализуемом товаре [10:22:17]line Товар: 4607065001445 [10:22:17]line Шок батончик Snickers 50,5г [10:22:17]line 2.000 * 59.00 [10:22:17]line = 118.00 [10:22:17]line НДС 12% НСП 1% [10:22:17]line > о реализуемом товаре [10:22:17]line ИТОГО: 348.00 [10:22:17]line НСП 1% : 3.07 [10:22:17]line НДС 12% : 36.95 [10:22:17]line Наличными: 348.00 [10:22:17]line Безнал.: 0.00 [10:22:17]line Место: АЗС № 80 "Партнер Нефть" [10:22:17]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:22:17]line СНО: Общий режим [10:22:17]line Чек 50 25.10.2024 10:22 [10:22:17]line Смена: 493 ФФД: 1.0 [10:22:17]line ЗНМ: 0300000090 [10:22:17]line РНМ: 0000000000097022 [10:22:17]line Версия ККМ: 001 [10:22:17]line ФМ: 0000000000875000 [10:22:17]line ФД: 50550 [10:22:17]line ФПД: 165250063902772 [10:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102216&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50550&fm=165250063902772&tin=02508201610067®Number=0000000000097022&sum=34800 [10:22:17]line 0 [10:22:17]OFD Sender: Processing packet 50550 [packets to send 7, broken 6] [10:22:17]ProducePacketName [10:22:17]name=ofd_packets/00050550 [10:22:17]OFD Sender: To server: pG, [10:22:17]CommunicateWithHost lk.salyk.kg:30040 [10:22:17]ConnectInit lk.salyk.kg [10:22:17]written 0, free lines is 4095 [10:22:17]Connected sock=11 [10:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 95 01 00 00 D4 A6 8D 01 FB FC 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 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 58 71 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C5 00 00 35 04 06 00 96 4B 47 5B A8 34 03 81 C2 87 05 58 A6 74 [10:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A3 4B 47 00 E6 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 76 C5 00 00 F4 03 04 00 E9 1C 1B 67 B6 04 01 00 00 0A 7C 86 BC C5 4E D1 FF [10:22:17]CommunicateWithHost err = 0 [10:22:17]CheckOFDResponse [10:22:17]1017 (14) - 77093643461234 [10:22:17]1041 (16) - 0000000000875000 [10:22:17]1040 (4) - 50550 [10:22:17]1012 (4) - 25.10.2024 04:22 [10:22:17]1206 (1) - 0 [10:22:17]OFD Sender: Remove packet 50550 [10:22:17]ProducePacketName [10:22:17]name=ofd_packets/00050550 [10:22:17]NVStorageDeleteData [10:22:18]Write to MH i2c: 01 00 00 66 02 68 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 07 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FE 0C 79 [10:22:18]RasterBufferAndPrint [10:22:18]line [10:22:18]line [10:22:18]line [10:22:18]line [10:22:18]line [10:22:18]written 0, free lines is 3332 [10:22:18]process_action close_receipt done [10:22:18]requested_data is exist [10:22:18]produce_requested_data [10:22:18]requested_item fm.sn is exist - process it [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 11 00 00 [10:22:18]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 17 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 30 [10:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:22:18]wFMCommunicate OK [10:22:18]requested_item fd.num is exist - process it [10:22:18]SAM_PROTO_GetFieldsCounters [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 13 00 00 [10:22:18]Write to MH i2c: E2 08 00 6E 02 80 13 00 00 00 00 00 00 EC [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 62 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 62 00 6E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 76 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [10:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 76 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_GetFieldsCounters done [10:22:18]requested_item shift.num is exist - process it [10:22:18]requested_item shift.opened is exist - process it [10:22:18]req_shift_opened [10:22:18]FM_GetShiftState [10:22:18]SAM_PROTO_GetShiftState [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 13 01 00 [10:22:18]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E6 [10:22:18]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_GetShiftState done [10:22:18]FM_GetShiftState done [10:22:18]req_shift_opened done [10:22:18]requested_item shift.open_date is exist - process it [10:22:18]req_shift_open_date [10:22:18]req_shift_open_date done [10:22:18]produce_requested_data done [10:22:18]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50550,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:22:18]process_action_free close_receipt [10:22:18]json_value_free [10:22:18]json_value_free done [10:22:18]process_json_proto returns [10:22:18]Send response to host [10:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50550,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:22:18]free response buf [10:22:18]execute_script done [10:22:18]execute_script returns [10:22:18]free content buf [10:22:18]Sock 7.Close socket [10:22:18]Sock 7.Thread stoped [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:35]accept exits with 9 [10:23:35]New connection [10:23:35]New thread 3066789220 created [10:23:35]Thread 3066645860 joined [10:23:35]Waiting for new connection... [10:23:35] Sock 9.Parse request [10:23:35]Sock 9.Check first char [10:23:35]Sock 9.First char is OK [10:23:35]request: POST /json_proto HTTP/1.0 [10:23:35]Method: POST [10:23:35]URL: /json_proto [10:23:35]Method is POST - this is cgi request [10:23:35]url: /json_proto [10:23:35]query_string will be loaded in cgi processing [10:23:35]execute_cgi json_proto POST (null) [10:23:35]execute_cgi path=json_proto method=POST [10:23:35]POST find Content-Length [10:23:35]Host: 172.17.49.196:8080 [10:23:35]Content-Length: 684 [10:23:35]Content-Type: application/json [10:23:35] [10:23:35]POST finish read [10:23:35]Found Content-Length = 684 [10:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 28.410, "sum" : 1900.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:35]execute_script... [10:23:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 28.410, "sum" : 1900.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:35]POST & json_proto [10:23:35]process_json_proto [10:23:35]json parsed OK: [10:23:35]protocol is kg_v1.0 [10:23:35]action value=close_receipt [10:23:35]process_action close_receipt [10:23:35]cmd_close_receipt [10:23:35]MH_GetDate [10:23:35]Write to MH i2c: F0 00 00 70 02 61 [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 09 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 09 00 70 02 00 A8 71 1B 67 BD 3B 11 67 75 [10:23:35]GetLastDocTimeStamp 1729851736 [10:23:35]current date 1729851816 [10:23:35]FM_GetShiftState [10:23:35]SAM_PROTO_GetShiftState [10:23:35]wFMCommunicate request_size=4 [10:23:35]MH_SAM_APDU [10:23:35]CAPDU: 80 13 01 00 [10:23:35]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:35]Read from MH i2c: E2 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: E2 0E 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E8 [10:23:35]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:23:35]wFMCommunicate OK [10:23:35]SAM_PROTO_GetShiftState done [10:23:35]FM_GetShiftState done [10:23:35]opened in 1729815177 [10:23:35]opened+sec_in_day 1729901577 [10:23:35]quantity*price = 190062 [10:23:35]sum+1 = 190064 [10:23:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1900.00 Внесено: 2000.00 СДАЧА: 100.00 НСП 1% : 16.82 НДС 12% : 201.84 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 51 25.10.2024 10:23 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50551 ФПД: 184427828505660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102336&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50551&fm=184427828505660&tin=02508201610067®Number=0000000000097022&sum=190000 [10:23:36]StoreToDocumentArchive [10:23:36]shift 493 fd 50551 [10:23:36]save to /storage/0493/doc_00050551 [10:23:36]save last doc name /storage/0493/doc_00050551 to /storage/kkm_last_doc_name [10:23:36]save OK [10:23:36]Clear old archive folders... [10:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:36]tlvbuf is B6E80590 [10:23:36]SAM_PROTO_ClearQueue [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 09 00 00 [10:23:36]Write to MH i2c: E2 08 00 7E 02 80 09 00 00 00 00 00 00 F2 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [10:23:36]RAPDU: 90 00 [10:23:36]wFMCommunicate OK [10:23:36]SAM_PROTO_ClearQueue done [10:23:36]KKMCreateOFDPacket [10:23:36]OFDProtocolAddRootSTLVToBuf [10:23:36]FM_MakeSignedData [10:23:36]FM_MakeSignedData [10:23:36]SAM_PROTO_SignData [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 0D 01 02 [10:23:36]Write to MH i2c: E2 08 00 7F 02 80 0D 01 02 00 00 00 00 FA [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [10:23:36]RAPDU: 90 00 [10:23:36]wFMCommunicate OK [10:23:36]wFMCommunicate request_size=255 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 71 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C5 00 00 35 04 06 00 A7 [10:23:37]Write to MH i2c: E2 02 01 80 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 71 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C5 00 00 35 04 06 00 A7 00 00 7A [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]wFMCommunicate request_size=10 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 02 02 05 BC 73 34 6C 3C [10:23:37]Write to MH i2c: E2 0D 00 81 02 80 0D 02 02 05 00 BC 73 34 6C 3C 00 00 12 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 03 02 [10:23:37]Write to MH i2c: E2 08 00 82 02 80 0D 03 02 00 00 00 00 FF [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0B 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0B 00 82 02 00 73 BA 8D FC 81 27 FA 59 90 00 B1 [10:23:37]RAPDU: 73 BA 8D FC 81 27 FA 59 90 00 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_SignData done [10:23:37]FM_MakeSignedData done [10:23:37]CreateOFDProtocolMessage [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 11 00 00 [10:23:37]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 46 [10:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:23:37]wFMCommunicate OK [10:23:37]CreateOFDProtocolMessage done [10:23:37]OFDSenderStorePacket 50551 [10:23:37]StoreOFDPacket docnum=50551 [10:23:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 8D 69 07 01 C1 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 71 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C5 00 00 35 04 06 00 A7 BC 73 34 6C 3C 73 BA 8D FC 81 27 FA 59 [10:23:37]CheckFolder [10:23:37]dirname=/storage/ofd_packets [10:23:37]CheckFolder done [10:23:37]ProducePacketName [10:23:37]name=ofd_packets/00050551 [10:23:37]NVStorageSaveData ofd_packets/00050551 [10:23:37]File name is /storage/ofd_packets/00050551 [10:23:37]Write 301 bytes [10:23:37]NVStorageSaveData done [10:23:37]OFDSenderStorePacket done [10:23:37]KKMCreateOFDPacket done [10:23:37]NVStorageSaveData kkm_last_timestamp [10:23:37]File name is /storage/kkm_last_timestamp [10:23:37]Write 4 bytes [10:23:37]NVStorageSaveData done [10:23:37]ExternCall_PrintAddStr [10:23:37]wPrintStart [10:23:37]Write to MH i2c: 01 00 00 84 02 86 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 FF 0F 9B [10:23:37]RasterBufferAndPrint [10:23:37]line Счет N : (1)15442361 [10:23:37]line ИНН: 02508201610067 [10:23:37]line Контрольно-Кассовый Чек [10:23:37]line ПРОДАЖА [10:23:37]line ТРК (МРК, ГНК) : 13 [10:23:37]line Товар: 2710124130 [10:23:37]line Аи-92-К-4 [10:23:37]line 28.410 * 66.90 [10:23:37]line = 1900.63 [10:23:37]line НДС 12% НСП 1% [10:23:37]line > о реализуемом товаре [10:23:37]line ОКРУГЛЕНИЕ: -0.63 [10:23:37]line ИТОГО: 1900.00 [10:23:37]line Внесено: 2000.00 [10:23:37]line СДАЧА: 100.00 [10:23:37]line НСП 1% : 16.82 [10:23:37]line НДС 12% : 201.84 [10:23:37]line Наличными: 1900.00 [10:23:37]line Безнал.: 0.00 [10:23:37]line Место: АЗС № 80 "Партнер Нефть" [10:23:37]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:23:37]line СНО: Общий режим [10:23:37]line Чек 51 25.10.2024 10:23 [10:23:37]line Смена: 493 ФФД: 1.0 [10:23:37]line ЗНМ: 0300000090 [10:23:37]line РНМ: 0000000000097022 [10:23:37]line Версия ККМ: 001 [10:23:37]line ФМ: 0000000000875000 [10:23:37]line ФД: 50551 [10:23:37]line ФПД: 184427828505660 [10:23:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102336&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50551&fm=184427828505660&tin=02508201610067®Number=0000000000097022&sum=190000 [10:23:37]OFD Sender: Processing packet 50551 [packets to send 7, broken 6] [10:23:37]ProducePacketName [10:23:37]name=ofd_packets/00050551 [10:23:37]OFD Sender: To server: pG, [10:23:37]CommunicateWithHost lk.salyk.kg:30040 [10:23:37]ConnectInit lk.salyk.kg [10:23:37]written 0, free lines is 4095 [10:23:37]Connected sock=10 [10:23:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 8D 69 07 01 C1 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 71 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C5 00 00 35 04 06 00 A7 BC 73 34 6C 3C 73 BA 8D FC 81 27 FA 59 [10:23:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A4 D5 47 00 75 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 77 C5 00 00 F4 03 04 00 39 1D 1B 67 B6 04 01 00 00 20 6D 07 EC BA C9 EF A3 [10:23:38]CommunicateWithHost err = 0 [10:23:38]CheckOFDResponse [10:23:38]1017 (14) - 77093643461234 [10:23:38]1041 (16) - 0000000000875000 [10:23:38]1040 (4) - 50551 [10:23:38]1012 (4) - 25.10.2024 04:23 [10:23:38]1206 (1) - 0 [10:23:38]OFD Sender: Remove packet 50551 [10:23:38]ProducePacketName [10:23:38]name=ofd_packets/00050551 [10:23:38]NVStorageDeleteData [10:23:38]Write to MH i2c: 01 00 00 AF 02 B1 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 09 0D CE [10:23:38]RasterBufferAndPrint [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]written 0, free lines is 3343 [10:23:38]process_action close_receipt done [10:23:38]requested_data is exist [10:23:38]produce_requested_data [10:23:38]requested_item fm.sn is exist - process it [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 11 00 00 [10:23:38]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 17 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 79 [10:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:23:38]wFMCommunicate OK [10:23:38]requested_item fd.num is exist - process it [10:23:38]SAM_PROTO_GetFieldsCounters [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 13 00 00 [10:23:38]Write to MH i2c: E2 08 00 B7 02 80 13 00 00 00 00 00 00 35 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 62 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 62 00 B7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 77 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [10:23:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 77 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:38]wFMCommunicate OK [10:23:38]SAM_PROTO_GetFieldsCounters done [10:23:38]requested_item shift.num is exist - process it [10:23:38]requested_item shift.opened is exist - process it [10:23:38]req_shift_opened [10:23:38]FM_GetShiftState [10:23:38]SAM_PROTO_GetShiftState [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 13 01 00 [10:23:38]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 0E 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2F [10:23:38]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:23:38]wFMCommunicate OK [10:23:38]SAM_PROTO_GetShiftState done [10:23:38]FM_GetShiftState done [10:23:38]req_shift_opened done [10:23:38]requested_item shift.open_date is exist - process it [10:23:38]req_shift_open_date [10:23:38]req_shift_open_date done [10:23:38]produce_requested_data done [10:23:38]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50551,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:23:38]process_action_free close_receipt [10:23:38]json_value_free [10:23:38]json_value_free done [10:23:38]process_json_proto returns [10:23:38]Send response to host [10:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50551,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:23:38]free response buf [10:23:38]execute_script done [10:23:38]execute_script returns [10:23:38]free content buf [10:23:38]Sock 9.Close socket [10:23:38]Sock 9.Thread stoped [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]accept exits with 7 [10:27:58]New connection [10:27:58]New thread 3066645860 created [10:27:58]Thread 3066789220 joined [10:27:58]Waiting for new connection... [10:27:58] Sock 7.Parse request [10:27:58]Sock 7.Check first char [10:27:58]Sock 7.First char is OK [10:27:58]request: POST /json_proto HTTP/1.0 [10:27:58]Method: POST [10:27:58]URL: /json_proto [10:27:58]Method is POST - this is cgi request [10:27:58]url: /json_proto [10:27:58]query_string will be loaded in cgi processing [10:27:58]execute_cgi json_proto POST (null) [10:27:58]execute_cgi path=json_proto method=POST [10:27:58]POST find Content-Length [10:27:58]Host: 172.17.49.196:8080 [10:27:58]Content-Length: 936 [10:27:58]Content-Type: application/json [10:27:58] [10:27:58]POST finish read [10:27:58]Found Content-Length = 936 [10:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164462", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 254.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:58]execute_script... [10:27: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)164462", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 254.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:58]POST & json_proto [10:27:58]process_json_proto [10:27:58]json parsed OK: [10:27:58]protocol is kg_v1.0 [10:27:58]action value=close_receipt [10:27:58]process_action close_receipt [10:27:58]cmd_close_receipt [10:27:58]MH_GetDate [10:27:58]Write to MH i2c: F0 00 00 B9 02 AA [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: F0 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: F0 09 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: F0 09 00 B9 02 00 AF 72 1B 67 BD 3B 11 67 C6 [10:27:58]GetLastDocTimeStamp 1729851816 [10:27:58]current date 1729852079 [10:27:58]FM_GetShiftState [10:27:58]SAM_PROTO_GetShiftState [10:27:58]wFMCommunicate request_size=4 [10:27:58]MH_SAM_APDU [10:27:58]CAPDU: 80 13 01 00 [10:27:58]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:58]Read from MH i2c: E2 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 0E 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 31 [10:27:58]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:27:58]wFMCommunicate OK [10:27:58]SAM_PROTO_GetShiftState done [10:27:58]FM_GetShiftState done [10:27:58]opened in 1729815177 [10:27:58]opened+sec_in_day 1729901577 [10:27:58]quantity*price = 15400 [10:27:58]sum+1 = 15401 [10:27:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 254.00 НСП 1% : 2.24 НДС 12% : 26.97 Наличными: 254.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 52 25.10.2024 10:27 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50552 ФПД: 24593296534557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102759&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50552&fm=24593296534557&tin=02508201610067®Number=0000000000097022&sum=25400 0 [10:27:59]StoreToDocumentArchive [10:27:59]shift 493 fd 50552 [10:27:59]save to /storage/0493/doc_00050552 [10:27:59]save last doc name /storage/0493/doc_00050552 to /storage/kkm_last_doc_name [10:27:59]save OK [10:27:59]Clear old archive folders... [10:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=402 [10:27:59]tlvbuf is 01E40570 [10:27:59]SAM_PROTO_ClearQueue [10:27:59]wFMCommunicate request_size=4 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 09 00 00 [10:27:59]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 03 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [10:27:59]RAPDU: 90 00 [10:27:59]wFMCommunicate OK [10:27:59]SAM_PROTO_ClearQueue done [10:27:59]KKMCreateOFDPacket [10:27:59]OFDProtocolAddRootSTLVToBuf [10:27:59]FM_MakeSignedData [10:27:59]FM_MakeSignedData [10:27:59]SAM_PROTO_SignData [10:27:59]wFMCommunicate request_size=4 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 0D 01 02 [10:27:59]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 03 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [10:27:59]RAPDU: 90 00 [10:27:59]wFMCommunicate OK [10:27:59]wFMCommunicate request_size=255 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 [10:27:59]Write to MH i2c: E2 02 01 C9 02 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 00 8F [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 03 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [10:27:59]RAPDU: 90 00 [10:27:59]wFMCommunicate OK [10:27:59]wFMCommunicate request_size=161 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0A 00 00 00 00 07 04 06 00 38 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 34 00 00 00 F4 03 04 00 AF 72 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C5 00 00 35 04 06 00 16 5E 12 B4 2C 1D [10:27:59]Write to MH i2c: E2 A4 00 CA 02 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0A 00 00 00 00 07 04 06 00 38 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 34 00 00 00 F4 03 04 00 AF 72 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C5 00 00 35 04 06 00 16 5E 12 B4 2C 1D 00 00 3D [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [10:28:00]RAPDU: 90 00 [10:28:00]wFMCommunicate OK [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 0D 03 02 [10:28:00]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 0B 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 0B 00 CB 02 00 C7 4C 3C A9 F6 1D 95 F5 90 00 DE [10:28:00]RAPDU: C7 4C 3C A9 F6 1D 95 F5 90 00 [10:28:00]wFMCommunicate OK [10:28:00]SAM_PROTO_SignData done [10:28:00]FM_MakeSignedData done [10:28:00]CreateOFDProtocolMessage [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 11 00 00 [10:28:00]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 17 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8F [10:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:28:00]wFMCommunicate OK [10:28:00]CreateOFDProtocolMessage done [10:28:00]OFDSenderStorePacket 50552 [10:28:00]StoreOFDPacket docnum=50552 [10:28:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A6 01 00 00 32 7C 9E 01 11 0B 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0A 00 00 00 00 07 04 06 00 38 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 34 00 00 00 F4 03 04 00 AF 72 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C5 00 00 35 04 06 00 16 5E 12 B4 2C 1D C7 4C 3C A9 F6 1D 95 F5 [10:28:00]CheckFolder [10:28:00]dirname=/storage/ofd_packets [10:28:00]CheckFolder done [10:28:00]ProducePacketName [10:28:00]name=ofd_packets/00050552 [10:28:00]NVStorageSaveData ofd_packets/00050552 [10:28:00]File name is /storage/ofd_packets/00050552 [10:28:00]Write 452 bytes [10:28:00]NVStorageSaveData done [10:28:00]OFDSenderStorePacket done [10:28:00]KKMCreateOFDPacket done [10:28:00]NVStorageSaveData kkm_last_timestamp [10:28:00]File name is /storage/kkm_last_timestamp [10:28:00]Write 4 bytes [10:28:00]NVStorageSaveData done [10:28:00]ExternCall_PrintAddStr [10:28:00]wPrintStart [10:28:00]Write to MH i2c: 01 00 00 CD 02 CF [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: 01 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: 01 07 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [10:28:00]RasterBufferAndPrint [10:28:00]line Счет N : (3)164462 [10:28:00]line ИНН: 02508201610067 [10:28:00]line Контрольно-Кассовый Чек [10:28:00]line ПРОДАЖА [10:28:00]line Товар: 46230614 [10:28:00]line Сигареты Richmond Red Edition [10:28:00]line 1.000 * 154.00 [10:28:00]line = 154.00 [10:28:00]line НДС 12% НСП 1% [10:28:00]line > о реализуемом товаре [10:28:00]line Товар: 4870001571528 [10:28:00]line Вода ASU пит н.газ персик ПЭТ 1,0 л [10:28:00]line 1.000 * 100.00 [10:28:00]line = 100.00 [10:28:00]line НДС 12% НСП 1% [10:28:00]line > о реализуемом товаре [10:28:00]line ИТОГО: 254.00 [10:28:00]line НСП 1% : 2.24 [10:28:00]line НДС 12% : 26.97 [10:28:00]line Наличными: 254.00 [10:28:00]line Безнал.: 0.00 [10:28:00]line Место: АЗС № 80 "Партнер Нефть" [10:28:00]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:28:00]line СНО: Общий режим [10:28:00]line Чек 52 25.10.2024 10:27 [10:28:00]line Смена: 493 ФФД: 1.0 [10:28:00]line ЗНМ: 0300000090 [10:28:00]line РНМ: 0000000000097022 [10:28:00]line Версия ККМ: 001 [10:28:00]line ФМ: 0000000000875000 [10:28:00]line ФД: 50552 [10:28:00]line ФПД: 24593296534557 [10:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T102759&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50552&fm=24593296534557&tin=02508201610067®Number=0000000000097022&sum=25400 [10:28:00]line 0 [10:28:00]OFD Sender: Processing packet 50552 [packets to send 7, broken 6] [10:28:00]ProducePacketName [10:28:00]name=ofd_packets/00050552 [10:28:00]OFD Sender: To server: pG, [10:28:00]CommunicateWithHost lk.salyk.kg:30040 [10:28:00]ConnectInit lk.salyk.kg [10:28:00]written 0, free lines is 4095 [10:28:00]Connected sock=10 [10:28:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A6 01 00 00 32 7C 9E 01 11 0B 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0A 00 00 00 00 07 04 06 00 38 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 34 00 00 00 F4 03 04 00 AF 72 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C5 00 00 35 04 06 00 16 5E 12 B4 2C 1D C7 4C 3C A9 F6 1D 95 F5 [10:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 30 3F 47 00 4A BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 78 C5 00 00 F4 03 04 00 40 1E 1B 67 B6 04 01 00 00 C1 D3 8E 76 A0 4B C2 1C [10:28:00]CommunicateWithHost err = 0 [10:28:00]CheckOFDResponse [10:28:00]1017 (14) - 77093643461234 [10:28:00]1041 (16) - 0000000000875000 [10:28:00]1040 (4) - 50552 [10:28:00]1012 (4) - 25.10.2024 04:27 [10:28:00]1206 (1) - 0 [10:28:00]OFD Sender: Remove packet 50552 [10:28:00]ProducePacketName [10:28:00]name=ofd_packets/00050552 [10:28:00]NVStorageDeleteData [10:28:01]Write to MH i2c: 01 00 00 FD 02 FF [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: 01 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: 01 07 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 9E 0C B0 [10:28:01]RasterBufferAndPrint [10:28:01]line [10:28:01]line [10:28:01]line [10:28:01]line [10:28:01]line [10:28:01]written 0, free lines is 3241 [10:28:01]process_action close_receipt done [10:28:01]requested_data is exist [10:28:01]produce_requested_data [10:28:01]requested_item fm.sn is exist - process it [10:28:01]wFMCommunicate request_size=4 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 11 00 00 [10:28:01]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 17 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C8 [10:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:28:01]wFMCommunicate OK [10:28:01]requested_item fd.num is exist - process it [10:28:01]SAM_PROTO_GetFieldsCounters [10:28:01]wFMCommunicate request_size=4 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 13 00 00 [10:28:01]Write to MH i2c: E2 08 00 05 03 80 13 00 00 00 00 00 00 84 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 62 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 62 00 05 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 78 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 78 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:01]wFMCommunicate OK [10:28:01]SAM_PROTO_GetFieldsCounters done [10:28:01]requested_item shift.num is exist - process it [10:28:01]requested_item shift.opened is exist - process it [10:28:01]req_shift_opened [10:28:01]FM_GetShiftState [10:28:01]SAM_PROTO_GetShiftState [10:28:01]wFMCommunicate request_size=4 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 13 01 00 [10:28:01]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 0E 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 7E [10:28:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:28:01]wFMCommunicate OK [10:28:01]SAM_PROTO_GetShiftState done [10:28:01]FM_GetShiftState done [10:28:01]req_shift_opened done [10:28:01]requested_item shift.open_date is exist - process it [10:28:01]req_shift_open_date [10:28:01]req_shift_open_date done [10:28:01]produce_requested_data done [10:28:01]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50552,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:28:01]process_action_free close_receipt [10:28:01]json_value_free [10:28:01]json_value_free done [10:28:01]process_json_proto returns [10:28:01]Send response to host [10:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50552,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:28:01]free response buf [10:28:01]execute_script done [10:28:01]execute_script returns [10:28:01]free content buf [10:28:01]Sock 7.Close socket [10:28:01]Sock 7.Thread stoped [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:47]accept exits with 9 [10:46:47]New connection [10:46:47]New thread 3066789220 created [10:46:47]Thread 3066645860 joined [10:46:47]Waiting for new connection... [10:46:47] Sock 9.Parse request [10:46:47]Sock 9.Check first char [10:46:47]Sock 9.First char is OK [10:46:47]request: POST /json_proto HTTP/1.0 [10:46:47]Method: POST [10:46:47]URL: /json_proto [10:46:47]Method is POST - this is cgi request [10:46:47]url: /json_proto [10:46:47]query_string will be loaded in cgi processing [10:46:47]execute_cgi json_proto POST (null) [10:46:47]execute_cgi path=json_proto method=POST [10:46:47]POST find Content-Length [10:46:47]Host: 172.17.49.196:8080 [10:46:47]Content-Length: 1259 [10:46:47]Content-Type: application/json [10:46:47] [10:46:47]POST finish read [10:46:47]Found Content-Length = 1259 [10:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164463", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 454.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:47]execute_script... [10:46: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)164463", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 454.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:47]POST & json_proto [10:46:47]process_json_proto [10:46:47]json parsed OK: [10:46:47]protocol is kg_v1.0 [10:46:47]action value=close_receipt [10:46:47]process_action close_receipt [10:46:47]cmd_close_receipt [10:46:47]MH_GetDate [10:46:47]Write to MH i2c: F0 00 00 07 03 F9 [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: F0 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: F0 09 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: F0 09 00 07 03 00 18 77 1B 67 BD 3B 11 67 83 [10:46:47]GetLastDocTimeStamp 1729852079 [10:46:47]current date 1729853208 [10:46:47]FM_GetShiftState [10:46:47]SAM_PROTO_GetShiftState [10:46:47]wFMCommunicate request_size=4 [10:46:47]MH_SAM_APDU [10:46:47]CAPDU: 80 13 01 00 [10:46:47]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 80 [10:46:47]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:46:47]wFMCommunicate OK [10:46:47]SAM_PROTO_GetShiftState done [10:46:47]FM_GetShiftState done [10:46:47]opened in 1729815177 [10:46:47]opened+sec_in_day 1729901577 [10:46:47]quantity*price = 26000 [10:46:47]sum+1 = 26001 [10:46:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 454.00 НСП 1% : 4.01 НДС 12% : 48.21 Наличными: 0.00 Безнал.: 454.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 53 25.10.2024 10:46 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50553 ФПД: 71074036238467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104649&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50553&fm=71074036238467&tin=02508201610067®Number=0000000000097022&sum=45400 0 [10:46:48]StoreToDocumentArchive [10:46:48]shift 493 fd 50553 [10:46:48]save to /storage/0493/doc_00050553 [10:46:48]save last doc name /storage/0493/doc_00050553 to /storage/kkm_last_doc_name [10:46:48]save OK [10:46:48]Clear old archive folders... [10:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=486 [10:46:48]tlvbuf is 01E18970 [10:46:48]SAM_PROTO_ClearQueue [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 09 00 00 [10:46:48]Write to MH i2c: E2 08 00 15 03 80 09 00 00 00 00 00 00 8A [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 03 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [10:46:48]RAPDU: 90 00 [10:46:48]wFMCommunicate OK [10:46:48]SAM_PROTO_ClearQueue done [10:46:48]KKMCreateOFDPacket [10:46:48]OFDProtocolAddRootSTLVToBuf [10:46:48]FM_MakeSignedData [10:46:48]FM_MakeSignedData [10:46:48]SAM_PROTO_SignData [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 0D 01 02 [10:46:48]Write to MH i2c: E2 08 00 16 03 80 0D 01 02 00 00 00 00 92 [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 03 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [10:46:48]RAPDU: 90 00 [10:46:48]wFMCommunicate OK [10:46:48]wFMCommunicate request_size=255 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 0D 02 02 FA 03 00 E6 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [10:46:49]Write to MH i2c: E2 02 01 17 03 80 0D 02 02 FA 00 03 00 E6 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 A7 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [10:46:49]RAPDU: 90 00 [10:46:49]wFMCommunicate OK [10:46:49]wFMCommunicate request_size=245 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 0D 02 02 F0 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 B1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 19 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C5 00 00 35 04 06 00 40 A4 36 AE C8 83 [10:46:49]Write to MH i2c: E2 F8 00 18 03 80 0D 02 02 F0 00 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 B1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 19 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C5 00 00 35 04 06 00 40 A4 36 AE C8 83 00 00 15 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [10:46:49]RAPDU: 90 00 [10:46:49]wFMCommunicate OK [10:46:49]wFMCommunicate request_size=4 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 0D 03 02 [10:46:49]Write to MH i2c: E2 08 00 19 03 80 0D 03 02 00 00 00 00 97 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 0B 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 0B 00 19 03 00 9A F8 D2 C2 06 E2 D6 EF 90 00 6B [10:46:49]RAPDU: 9A F8 D2 C2 06 E2 D6 EF 90 00 [10:46:49]wFMCommunicate OK [10:46:49]SAM_PROTO_SignData done [10:46:49]FM_MakeSignedData done [10:46:49]CreateOFDProtocolMessage [10:46:49]wFMCommunicate request_size=4 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 11 00 00 [10:46:49]Write to MH i2c: E2 08 00 1A 03 80 11 00 00 00 00 00 00 97 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 17 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 17 00 1A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DE [10:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:46:49]wFMCommunicate OK [10:46:49]CreateOFDProtocolMessage done [10:46:49]OFDSenderStorePacket 50553 [10:46:49]StoreOFDPacket docnum=50553 [10:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 FA 01 00 00 8C B6 F2 01 2C BC 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 B1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 19 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C5 00 00 35 04 06 00 40 A4 36 AE C8 83 9A F8 D2 C2 06 E2 D6 EF [10:46:49]CheckFolder [10:46:49]dirname=/storage/ofd_packets [10:46:49]CheckFolder done [10:46:49]ProducePacketName [10:46:49]name=ofd_packets/00050553 [10:46:49]NVStorageSaveData ofd_packets/00050553 [10:46:49]File name is /storage/ofd_packets/00050553 [10:46:49]Write 536 bytes [10:46:49]NVStorageSaveData done [10:46:49]OFDSenderStorePacket done [10:46:49]KKMCreateOFDPacket done [10:46:49]NVStorageSaveData kkm_last_timestamp [10:46:49]File name is /storage/kkm_last_timestamp [10:46:49]Write 4 bytes [10:46:49]NVStorageSaveData done [10:46:49]ExternCall_PrintAddStr [10:46:49]wPrintStart [10:46:49]Write to MH i2c: 01 00 00 1B 03 1E [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: 01 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: 01 07 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: 01 07 00 1B 03 00 00 00 00 00 FF 0F 33 [10:46:49]RasterBufferAndPrint [10:46:49]line Счет N : (3)164463 [10:46:49]line ИНН: 02508201610067 [10:46:49]line Контрольно-Кассовый Чек [10:46:49]line ПРОДАЖА [10:46:49]line Товар: 2000036220012 [10:46:49]line Кофе Капучино XL(GABB TRADE) [10:46:49]line 2.000 * 130.00 [10:46:49]line = 260.00 [10:46:49]line НДС 12% НСП 1% [10:46:49]line > о реализуемом товаре [10:46:49]line Товар: 4700000160358 [10:46:49]line Вода Легенда 1л [10:46:49]line 1.000 * 50.00 [10:46:49]line = 50.00 [10:46:49]line НДС 12% НСП 1% [10:46:49]line > о реализуемом товаре [10:46:49]line Товар: 48743587 [10:46:49]line Сигареты Winston XStyle Silver [10:46:49]line 1.000 * 144.00 [10:46:49]line = 144.00 [10:46:49]line НДС 12% НСП 1% [10:46:49]line > о реализуемом товаре [10:46:49]line ИТОГО: 454.00 [10:46:49]line НСП 1% : 4.01 [10:46:49]line НДС 12% : 48.21 [10:46:49]line Наличными: 0.00 [10:46:49]line Безнал.: 454.00 [10:46:49]line Место: АЗС № 80 "Партнер Нефть" [10:46:49]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:46:49]line СНО: Общий режим [10:46:49]line Чек 53 25.10.2024 10:46 [10:46:49]line Смена: 493 ФФД: 1.0 [10:46:49]line ЗНМ: 0300000090 [10:46:49]line РНМ: 0000000000097022 [10:46:49]line Версия ККМ: 001 [10:46:49]line Платежная система: Mbank [10:46:49]line ФМ: 0000000000875000 [10:46:49]line ФД: 50553 [10:46:49]line ФПД: 71074036238467 [10:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104649&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50553&fm=71074036238467&tin=02508201610067®Number=0000000000097022&sum=45400 [10:46:50]OFD Sender: Processing packet 50553 [packets to send 7, broken 6] [10:46:50]ProducePacketName [10:46:50]name=ofd_packets/00050553 [10:46:50]OFD Sender: To server: pG, [10:46:50]CommunicateWithHost lk.salyk.kg:30040 [10:46:50]ConnectInit lk.salyk.kg [10:46:50]line 0 [10:46:50]written 0, free lines is 4095 [10:46:50]Connected sock=10 [10:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 FA 01 00 00 8C B6 F2 01 2C BC 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 B1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 19 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C5 00 00 35 04 06 00 40 A4 36 AE C8 83 9A F8 D2 C2 06 E2 D6 EF [10:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 DB 0A 47 00 14 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 79 C5 00 00 F4 03 04 00 AA 22 1B 67 B6 04 01 00 00 E0 39 5E 77 17 52 57 CB [10:46:50]CommunicateWithHost err = 0 [10:46:50]CheckOFDResponse [10:46:50]1017 (14) - 77093643461234 [10:46:50]1041 (16) - 0000000000875000 [10:46:50]1040 (4) - 50553 [10:46:50]1012 (4) - 25.10.2024 04:46 [10:46:50]1206 (1) - 0 [10:46:50]OFD Sender: Remove packet 50553 [10:46:50]ProducePacketName [10:46:50]name=ofd_packets/00050553 [10:46:50]NVStorageDeleteData [10:46:50]Write to MH i2c: 01 00 00 52 03 55 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 5C 0C C4 [10:46:50]RasterBufferAndPrint [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]written 0, free lines is 3171 [10:46:50]process_action close_receipt done [10:46:50]requested_data is exist [10:46:50]produce_requested_data [10:46:50]requested_item fm.sn is exist - process it [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 11 00 00 [10:46:50]Write to MH i2c: E2 08 00 59 03 80 11 00 00 00 00 00 00 D6 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 17 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 17 00 59 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1D [10:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:46:50]wFMCommunicate OK [10:46:50]requested_item fd.num is exist - process it [10:46:50]SAM_PROTO_GetFieldsCounters [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 13 00 00 [10:46:50]Write to MH i2c: E2 08 00 5A 03 80 13 00 00 00 00 00 00 D9 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 62 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 62 00 5A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 79 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [10:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 79 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:50]wFMCommunicate OK [10:46:50]SAM_PROTO_GetFieldsCounters done [10:46:50]requested_item shift.num is exist - process it [10:46:50]requested_item shift.opened is exist - process it [10:46:50]req_shift_opened [10:46:50]FM_GetShiftState [10:46:50]SAM_PROTO_GetShiftState [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 13 01 00 [10:46:50]Write to MH i2c: E2 08 00 5B 03 80 13 01 00 00 00 00 00 DB [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]OFD Sender: No OFD packet to send [10:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 5B 03 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D3 [10:46:51]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_GetShiftState done [10:46:51]FM_GetShiftState done [10:46:51]req_shift_opened done [10:46:51]requested_item shift.open_date is exist - process it [10:46:51]req_shift_open_date [10:46:51]req_shift_open_date done [10:46:51]produce_requested_data done [10:46:51]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50553,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:46:51]process_action_free close_receipt [10:46:51]json_value_free [10:46:51]json_value_free done [10:46:51]process_json_proto returns [10:46:51]Send response to host [10:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50553,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:46:51]free response buf [10:46:51]execute_script done [10:46:51]execute_script returns [10:46:51]free content buf [10:46:51]Sock 9.Close socket [10:46:51]Sock 9.Thread stoped [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:28]accept exits with 7 [10:47:28]New connection [10:47:28]New thread 3066645860 created [10:47:28]Thread 3066789220 joined [10:47:28]Waiting for new connection... [10:47:28] Sock 7.Parse request [10:47:28]Sock 7.Check first char [10:47:28]Sock 7.First char is OK [10:47:28]request: POST /json_proto HTTP/1.0 [10:47:28]Method: POST [10:47:28]URL: /json_proto [10:47:28]Method is POST - this is cgi request [10:47:28]url: /json_proto [10:47:28]query_string will be loaded in cgi processing [10:47:28]execute_cgi json_proto POST (null) [10:47:28]execute_cgi path=json_proto method=POST [10:47:28]POST find Content-Length [10:47:28]Host: 172.17.49.196:8080 [10:47:28]Content-Length: 669 [10:47:28]Content-Type: application/json [10:47:28] [10:47:28]POST finish read [10:47:28]Found Content-Length = 669 [10:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164464", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:28]execute_script... [10:47: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)164464", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:28]POST & json_proto [10:47:28]process_json_proto [10:47:28]json parsed OK: [10:47:28]protocol is kg_v1.0 [10:47:28]action value=close_receipt [10:47:28]process_action close_receipt [10:47:28]cmd_close_receipt [10:47:28]MH_GetDate [10:47:28]Write to MH i2c: F0 00 00 5C 03 4E [10:47:28]Write i2c OK [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: F0 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: F0 09 00 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: F0 09 00 5C 03 00 41 77 1B 67 BD 3B 11 67 01 [10:47:28]GetLastDocTimeStamp 1729853209 [10:47:28]current date 1729853249 [10:47:28]FM_GetShiftState [10:47:28]SAM_PROTO_GetShiftState [10:47:28]wFMCommunicate request_size=4 [10:47:28]MH_SAM_APDU [10:47:28]CAPDU: 80 13 01 00 [10:47:28]Write to MH i2c: E2 08 00 5D 03 80 13 01 00 00 00 00 00 DD [10:47:28]Write i2c OK [10:47:28]MH_I2C_Read... [10:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:28]Read from MH i2c: E2 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: E2 0E 00 [10:47:28]MH_I2C_Read... [10:47:28]Read from MH i2c: E2 0E 00 5D 03 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D5 [10:47:28]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:47:28]wFMCommunicate OK [10:47:28]SAM_PROTO_GetShiftState done [10:47:28]FM_GetShiftState done [10:47:28]opened in 1729815177 [10:47:28]opened+sec_in_day 1729901577 [10:47:28]quantity*price = 8900 [10:47:28]sum+1 = 8901 [10:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 54 25.10.2024 10:47 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50554 ФПД: 11855424011007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104729&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50554&fm=11855424011007&tin=02508201610067®Number=0000000000097022&sum=8900 0 [10:47:29]StoreToDocumentArchive [10:47:29]shift 493 fd 50554 [10:47:29]save to /storage/0493/doc_00050554 [10:47:29]save last doc name /storage/0493/doc_00050554 to /storage/kkm_last_doc_name [10:47:29]save OK [10:47:29]Clear old archive folders... [10:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=284 [10:47:29]tlvbuf is 01E64130 [10:47:29]SAM_PROTO_ClearQueue [10:47:29]wFMCommunicate request_size=4 [10:47:29]MH_SAM_APDU [10:47:29]CAPDU: 80 09 00 00 [10:47:29]Write to MH i2c: E2 08 00 6A 03 80 09 00 00 00 00 00 00 DF [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:29]Read from MH i2c: E2 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 03 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [10:47:29]RAPDU: 90 00 [10:47:29]wFMCommunicate OK [10:47:29]SAM_PROTO_ClearQueue done [10:47:29]KKMCreateOFDPacket [10:47:29]OFDProtocolAddRootSTLVToBuf [10:47:29]FM_MakeSignedData [10:47:29]FM_MakeSignedData [10:47:29]SAM_PROTO_SignData [10:47:29]wFMCommunicate request_size=4 [10:47:29]MH_SAM_APDU [10:47:29]CAPDU: 80 0D 01 02 [10:47:29]Write to MH i2c: E2 08 00 6B 03 80 0D 01 02 00 00 00 00 E7 [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:29]Read from MH i2c: E2 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 03 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [10:47:29]RAPDU: 90 00 [10:47:29]wFMCommunicate OK [10:47:29]wFMCommunicate request_size=255 [10:47:29]MH_SAM_APDU [10:47:29]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 41 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [10:47:29]Write to MH i2c: E2 02 01 6C 03 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 41 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 86 [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:29]Read from MH i2c: E2 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 03 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [10:47:29]RAPDU: 90 00 [10:47:29]wFMCommunicate OK [10:47:29]wFMCommunicate request_size=43 [10:47:29]MH_SAM_APDU [10:47:29]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C5 00 00 35 04 06 00 0A C8 4E 56 3A FF [10:47:29]Write to MH i2c: E2 2E 00 6D 03 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C5 00 00 35 04 06 00 0A C8 4E 56 3A FF 00 00 B4 [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:29]Read from MH i2c: E2 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 03 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [10:47:29]RAPDU: 90 00 [10:47:29]wFMCommunicate OK [10:47:29]wFMCommunicate request_size=4 [10:47:29]MH_SAM_APDU [10:47:29]CAPDU: 80 0D 03 02 [10:47:29]Write to MH i2c: E2 08 00 6E 03 80 0D 03 02 00 00 00 00 EC [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:29]Read from MH i2c: E2 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 0B 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 0B 00 6E 03 00 C7 D9 A7 97 F8 38 A0 9D 90 00 38 [10:47:29]RAPDU: C7 D9 A7 97 F8 38 A0 9D 90 00 [10:47:29]wFMCommunicate OK [10:47:29]SAM_PROTO_SignData done [10:47:29]FM_MakeSignedData done [10:47:29]CreateOFDProtocolMessage [10:47:29]wFMCommunicate request_size=4 [10:47:29]MH_SAM_APDU [10:47:29]CAPDU: 80 11 00 00 [10:47:29]Write to MH i2c: E2 08 00 6F 03 80 11 00 00 00 00 00 00 EC [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:29]Read from MH i2c: E2 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 17 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 17 00 6F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 33 [10:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:47:29]wFMCommunicate OK [10:47:29]CreateOFDProtocolMessage done [10:47:29]OFDSenderStorePacket 50554 [10:47:29]StoreOFDPacket docnum=50554 [10:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 A4 58 28 01 86 BC 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 41 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C5 00 00 35 04 06 00 0A C8 4E 56 3A FF C7 D9 A7 97 F8 38 A0 9D [10:47:29]CheckFolder [10:47:29]dirname=/storage/ofd_packets [10:47:29]CheckFolder done [10:47:29]ProducePacketName [10:47:29]name=ofd_packets/00050554 [10:47:29]NVStorageSaveData ofd_packets/00050554 [10:47:29]File name is /storage/ofd_packets/00050554 [10:47:29]Write 334 bytes [10:47:29]NVStorageSaveData done [10:47:29]OFDSenderStorePacket done [10:47:29]KKMCreateOFDPacket done [10:47:29]NVStorageSaveData kkm_last_timestamp [10:47:29]File name is /storage/kkm_last_timestamp [10:47:29]Write 4 bytes [10:47:29]NVStorageSaveData done [10:47:29]ExternCall_PrintAddStr [10:47:29]wPrintStart [10:47:29]Write to MH i2c: 01 00 00 70 03 73 [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: 01 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: 01 07 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 FF 0F 88 [10:47:29]RasterBufferAndPrint [10:47:29]line Счет N : (3)164464 [10:47:29]line ИНН: 02508201610067 [10:47:29]line Контрольно-Кассовый Чек [10:47:29]line ПРОДАЖА [10:47:29]line Товар: 4700040114137 [10:47:29]line Султан чай 1л. зел лимон [10:47:29]line 1.000 * 89.00 [10:47:29]line = 89.00 [10:47:29]line НДС 12% НСП 1% [10:47:29]line > о реализуемом товаре [10:47:29]line ИТОГО: 89.00 [10:47:29]line НСП 1% : 0.79 [10:47:29]line НДС 12% : 9.45 [10:47:29]line Наличными: 89.00 [10:47:29]line Безнал.: 0.00 [10:47:29]line Место: АЗС № 80 "Партнер Нефть" [10:47:29]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:47:29]line СНО: Общий режим [10:47:29]line Чек 54 25.10.2024 10:47 [10:47:29]line Смена: 493 ФФД: 1.0 [10:47:29]line ЗНМ: 0300000090 [10:47:29]line РНМ: 0000000000097022 [10:47:29]line Версия ККМ: 001 [10:47:29]line ФМ: 0000000000875000 [10:47:29]line ФД: 50554 [10:47:29]line ФПД: 11855424011007 [10:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104729&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50554&fm=11855424011007&tin=02508201610067®Number=0000000000097022&sum=8900 [10:47:30]line 0 [10:47:30]OFD Sender: Processing packet 50554 [packets to send 7, broken 6] [10:47:30]ProducePacketName [10:47:30]name=ofd_packets/00050554 [10:47:30]OFD Sender: To server: pG, [10:47:30]CommunicateWithHost lk.salyk.kg:30040 [10:47:30]ConnectInit lk.salyk.kg [10:47:30]written 0, free lines is 4095 [10:47:30]Connected sock=10 [10:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 A4 58 28 01 86 BC 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 41 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C5 00 00 35 04 06 00 0A C8 4E 56 3A FF C7 D9 A7 97 F8 38 A0 9D [10:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 59 0A 47 00 FA 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7A C5 00 00 F4 03 04 00 D2 22 1B 67 B6 04 01 00 00 EE 11 DC 62 D8 A6 74 4C [10:47:30]CommunicateWithHost err = 0 [10:47:30]CheckOFDResponse [10:47:30]1017 (14) - 77093643461234 [10:47:30]1041 (16) - 0000000000875000 [10:47:30]1040 (4) - 50554 [10:47:30]1012 (4) - 25.10.2024 04:47 [10:47:30]1206 (1) - 0 [10:47:30]OFD Sender: Remove packet 50554 [10:47:30]ProducePacketName [10:47:30]name=ofd_packets/00050554 [10:47:30]NVStorageDeleteData [10:47:30]Write to MH i2c: 01 00 00 98 03 9B [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: 01 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: 01 07 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 0C 0D BB [10:47:30]RasterBufferAndPrint [10:47:30]line [10:47:30]line [10:47:30]line [10:47:30]line [10:47:30]line [10:47:30]written 0, free lines is 3346 [10:47:30]process_action close_receipt done [10:47:30]requested_data is exist [10:47:30]produce_requested_data [10:47:30]requested_item fm.sn is exist - process it [10:47:30]wFMCommunicate request_size=4 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 11 00 00 [10:47:30]Write to MH i2c: E2 08 00 9F 03 80 11 00 00 00 00 00 00 1C [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 17 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 17 00 9F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 63 [10:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:47:30]wFMCommunicate OK [10:47:30]requested_item fd.num is exist - process it [10:47:30]SAM_PROTO_GetFieldsCounters [10:47:30]wFMCommunicate request_size=4 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 13 00 00 [10:47:30]Write to MH i2c: E2 08 00 A0 03 80 13 00 00 00 00 00 00 1F [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 62 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 62 00 A0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [10:47:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:30]wFMCommunicate OK [10:47:30]SAM_PROTO_GetFieldsCounters done [10:47:30]requested_item shift.num is exist - process it [10:47:30]requested_item shift.opened is exist - process it [10:47:30]req_shift_opened [10:47:30]FM_GetShiftState [10:47:30]SAM_PROTO_GetShiftState [10:47:30]wFMCommunicate request_size=4 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 13 01 00 [10:47:30]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:30]Read from MH i2c: E2 0E 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 19 [10:47:30]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:47:30]wFMCommunicate OK [10:47:30]SAM_PROTO_GetShiftState done [10:47:30]FM_GetShiftState done [10:47:30]req_shift_opened done [10:47:30]requested_item shift.open_date is exist - process it [10:47:30]req_shift_open_date [10:47:30]req_shift_open_date done [10:47:30]produce_requested_data done [10:47:30]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50554,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:47:30]process_action_free close_receipt [10:47:30]json_value_free [10:47:30]json_value_free done [10:47:30]process_json_proto returns [10:47:30]Send response to host [10:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50554,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:47:30]free response buf [10:47:30]execute_script done [10:47:30]execute_script returns [10:47:30]free content buf [10:47:30]Sock 7.Close socket [10:47:30]Sock 7.Thread stoped [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:09]accept exits with 9 [10:48:09]New connection [10:48:09]New thread 3066789220 created [10:48:09]Thread 3066645860 joined [10:48:09]Waiting for new connection... [10:48:09] Sock 9.Parse request [10:48:09]Sock 9.Check first char [10:48:09]Sock 9.First char is OK [10:48:09]request: POST /json_proto HTTP/1.0 [10:48:09]Method: POST [10:48:09]URL: /json_proto [10:48:09]Method is POST - this is cgi request [10:48:09]url: /json_proto [10:48:09]query_string will be loaded in cgi processing [10:48:09]execute_cgi json_proto POST (null) [10:48:09]execute_cgi path=json_proto method=POST [10:48:09]POST find Content-Length [10:48:09]Host: 172.17.49.196:8080 [10:48:09]Content-Length: 777 [10:48:09]Content-Type: application/json [10:48:09] [10:48:09]POST finish read [10:48:09]Found Content-Length = 777 [10:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164465", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:09]execute_script... [10:48: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)164465", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:09]POST & json_proto [10:48:09]process_json_proto [10:48:09]json parsed OK: [10:48:09]protocol is kg_v1.0 [10:48:09]action value=close_receipt [10:48:09]process_action close_receipt [10:48:09]cmd_close_receipt [10:48:09]MH_GetDate [10:48:09]Write to MH i2c: F0 00 00 A2 03 94 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: F0 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: F0 09 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: F0 09 00 A2 03 00 6A 77 1B 67 BD 3B 11 67 70 [10:48:09]GetLastDocTimeStamp 1729853249 [10:48:09]current date 1729853290 [10:48:09]FM_GetShiftState [10:48:09]SAM_PROTO_GetShiftState [10:48:09]wFMCommunicate request_size=4 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 13 01 00 [10:48:09]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 0E 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 1B [10:48:09]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:48:09]wFMCommunicate OK [10:48:09]SAM_PROTO_GetShiftState done [10:48:09]FM_GetShiftState done [10:48:09]opened in 1729815177 [10:48:09]opened+sec_in_day 1729901577 [10:48:09]quantity*price = 7500 [10:48:09]sum+1 = 7501 [10:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 55 25.10.2024 10:48 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50555 ФПД: 109120694789431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104810&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50555&fm=109120694789431&tin=02508201610067®Number=0000000000097022&sum=7500 0 [10:48:10]StoreToDocumentArchive [10:48:10]shift 493 fd 50555 [10:48:10]save to /storage/0493/doc_00050555 [10:48:10]save last doc name /storage/0493/doc_00050555 to /storage/kkm_last_doc_name [10:48:10]save OK [10:48:10]Clear old archive folders... [10:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=285 [10:48:10]tlvbuf is 01E37550 [10:48:10]SAM_PROTO_ClearQueue [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 09 00 00 [10:48:10]Write to MH i2c: E2 08 00 B0 03 80 09 00 00 00 00 00 00 25 [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 03 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [10:48:10]RAPDU: 90 00 [10:48:10]wFMCommunicate OK [10:48:10]SAM_PROTO_ClearQueue done [10:48:10]KKMCreateOFDPacket [10:48:10]OFDProtocolAddRootSTLVToBuf [10:48:10]FM_MakeSignedData [10:48:10]FM_MakeSignedData [10:48:10]SAM_PROTO_SignData [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 0D 01 02 [10:48:10]Write to MH i2c: E2 08 00 B1 03 80 0D 01 02 00 00 00 00 2D [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 03 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [10:48:10]RAPDU: 90 00 [10:48:10]wFMCommunicate OK [10:48:10]wFMCommunicate request_size=255 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 0D 02 02 FA 03 00 1D 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 6A 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 [10:48:10]Write to MH i2c: E2 02 01 B2 03 80 0D 02 02 FA 00 03 00 1D 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 6A 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 00 00 B8 [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 03 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [10:48:10]RAPDU: 90 00 [10:48:10]wFMCommunicate OK [10:48:10]wFMCommunicate request_size=44 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 0D 02 02 27 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C5 00 00 35 04 06 00 63 3E A4 40 25 37 [10:48:10]Write to MH i2c: E2 2F 00 B3 03 80 0D 02 02 27 00 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C5 00 00 35 04 06 00 63 3E A4 40 25 37 00 00 61 [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 03 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [10:48:10]RAPDU: 90 00 [10:48:10]wFMCommunicate OK [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 0D 03 02 [10:48:10]Write to MH i2c: E2 08 00 B4 03 80 0D 03 02 00 00 00 00 32 [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 0B 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 0B 00 B4 03 00 E8 31 5F ED F2 21 46 20 90 00 11 [10:48:10]RAPDU: E8 31 5F ED F2 21 46 20 90 00 [10:48:10]wFMCommunicate OK [10:48:10]SAM_PROTO_SignData done [10:48:10]FM_MakeSignedData done [10:48:10]CreateOFDProtocolMessage [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 11 00 00 [10:48:10]Write to MH i2c: E2 08 00 B5 03 80 11 00 00 00 00 00 00 32 [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 17 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 17 00 B5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 79 [10:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:48:10]wFMCommunicate OK [10:48:10]CreateOFDProtocolMessage done [10:48:10]OFDSenderStorePacket 50555 [10:48:10]StoreOFDPacket docnum=50555 [10:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 D3 82 29 01 D2 87 5A 03 01 00 03 00 1D 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 6A 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C5 00 00 35 04 06 00 63 3E A4 40 25 37 E8 31 5F ED F2 21 46 20 [10:48:10]CheckFolder [10:48:10]dirname=/storage/ofd_packets [10:48:10]CheckFolder done [10:48:10]ProducePacketName [10:48:10]name=ofd_packets/00050555 [10:48:10]NVStorageSaveData ofd_packets/00050555 [10:48:10]File name is /storage/ofd_packets/00050555 [10:48:10]Write 335 bytes [10:48:10]NVStorageSaveData done [10:48:10]OFDSenderStorePacket done [10:48:10]KKMCreateOFDPacket done [10:48:10]NVStorageSaveData kkm_last_timestamp [10:48:10]File name is /storage/kkm_last_timestamp [10:48:10]Write 4 bytes [10:48:10]NVStorageSaveData done [10:48:10]ExternCall_PrintAddStr [10:48:10]wPrintStart [10:48:10]Write to MH i2c: 01 00 00 B6 03 B9 [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: 01 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: 01 07 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: 01 07 00 B6 03 00 00 00 00 00 FF 0F CE [10:48:10]RasterBufferAndPrint [10:48:10]line Счет N : (3)164465 [10:48:10]line ИНН: 02508201610067 [10:48:10]line Контрольно-Кассовый Чек [10:48:10]line ПРОДАЖА [10:48:10]line Товар: 4870112002775 [10:48:10]line Шок батончик ALBENI BITES 80гр [10:48:10]line 1.000 * 75.00 [10:48:10]line = 75.00 [10:48:10]line НДС 12% НСП 1% [10:48:10]line > о реализуемом товаре [10:48:10]line ИТОГО: 75.00 [10:48:10]line НСП 1% : 0.66 [10:48:10]line НДС 12% : 7.96 [10:48:10]line Наличными: 0.00 [10:48:10]line Безнал.: 75.00 [10:48:10]line Место: АЗС № 80 "Партнер Нефть" [10:48:10]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:48:10]line СНО: Общий режим [10:48:10]line Чек 55 25.10.2024 10:48 [10:48:10]line Смена: 493 ФФД: 1.0 [10:48:10]line ЗНМ: 0300000090 [10:48:10]line РНМ: 0000000000097022 [10:48:10]line Версия ККМ: 001 [10:48:10]line Платежная система: Mbank [10:48:10]line ФМ: 0000000000875000 [10:48:10]line ФД: 50555 [10:48:10]line ФПД: 109120694789431 [10:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T104810&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50555&fm=109120694789431&tin=02508201610067®Number=0000000000097022&sum=7500 [10:48:11]line 0 [10:48:11]OFD Sender: Processing packet 50555 [packets to send 7, broken 6] [10:48:11]ProducePacketName [10:48:11]name=ofd_packets/00050555 [10:48:11]OFD Sender: To server: pG, [10:48:11]CommunicateWithHost lk.salyk.kg:30040 [10:48:11]ConnectInit lk.salyk.kg [10:48:11]written 0, free lines is 4095 [10:48:11]Connected sock=10 [10:48:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 D3 82 29 01 D2 87 5A 03 01 00 03 00 1D 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 6A 77 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C5 00 00 35 04 06 00 63 3E A4 40 25 37 E8 31 5F ED F2 21 46 20 [10:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CD C7 47 00 15 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7B C5 00 00 F4 03 04 00 FB 22 1B 67 B6 04 01 00 00 49 79 97 25 CE 79 AF 49 [10:48:11]CommunicateWithHost err = 0 [10:48:11]CheckOFDResponse [10:48:11]1017 (14) - 77093643461234 [10:48:11]1041 (16) - 0000000000875000 [10:48:11]1040 (4) - 50555 [10:48:11]1012 (4) - 25.10.2024 04:47 [10:48:11]1206 (1) - 0 [10:48:11]OFD Sender: Remove packet 50555 [10:48:11]ProducePacketName [10:48:11]name=ofd_packets/00050555 [10:48:11]NVStorageDeleteData [10:48:11]Write to MH i2c: 01 00 00 E0 03 E3 [10:48:11]Write i2c OK [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: 01 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: 01 07 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 00 0D F7 [10:48:11]RasterBufferAndPrint [10:48:11]line [10:48:11]line [10:48:11]line [10:48:11]line [10:48:11]line [10:48:11]written 0, free lines is 3333 [10:48:11]process_action close_receipt done [10:48:11]requested_data is exist [10:48:11]produce_requested_data [10:48:11]requested_item fm.sn is exist - process it [10:48:11]wFMCommunicate request_size=4 [10:48:11]MH_SAM_APDU [10:48:11]CAPDU: 80 11 00 00 [10:48:11]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [10:48:11]Write i2c OK [10:48:11]MH_I2C_Read... [10:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:11]Read from MH i2c: E2 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 17 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AB [10:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:48:11]wFMCommunicate OK [10:48:11]requested_item fd.num is exist - process it [10:48:11]SAM_PROTO_GetFieldsCounters [10:48:11]wFMCommunicate request_size=4 [10:48:11]MH_SAM_APDU [10:48:11]CAPDU: 80 13 00 00 [10:48:11]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [10:48:11]Write i2c OK [10:48:11]MH_I2C_Read... [10:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:11]Read from MH i2c: E2 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 62 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 62 00 E8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [10:48:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:11]wFMCommunicate OK [10:48:11]SAM_PROTO_GetFieldsCounters done [10:48:11]requested_item shift.num is exist - process it [10:48:11]requested_item shift.opened is exist - process it [10:48:11]req_shift_opened [10:48:11]FM_GetShiftState [10:48:11]SAM_PROTO_GetShiftState [10:48:11]wFMCommunicate request_size=4 [10:48:11]MH_SAM_APDU [10:48:11]CAPDU: 80 13 01 00 [10:48:11]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [10:48:11]Write i2c OK [10:48:11]MH_I2C_Read... [10:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:11]Read from MH i2c: E2 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 0E 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 61 [10:48:11]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:48:11]wFMCommunicate OK [10:48:11]SAM_PROTO_GetShiftState done [10:48:11]FM_GetShiftState done [10:48:11]req_shift_opened done [10:48:11]requested_item shift.open_date is exist - process it [10:48:11]req_shift_open_date [10:48:11]req_shift_open_date done [10:48:11]produce_requested_data done [10:48:11]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50555,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:48:11]process_action_free close_receipt [10:48:11]json_value_free [10:48:11]json_value_free done [10:48:11]process_json_proto returns [10:48:11]Send response to host [10:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50555,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:48:11]free response buf [10:48:11]execute_script done [10:48:11]execute_script returns [10:48:11]free content buf [10:48:11]Sock 9.Close socket [10:48:11]Sock 9.Thread stoped [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:46]accept exits with 7 [10:52:46]New connection [10:52:46]New thread 3066645860 created [10:52:46]Thread 3066789220 joined [10:52:46]Waiting for new connection... [10:52:46] Sock 7.Parse request [10:52:46]Sock 7.Check first char [10:52:46]Sock 7.First char is OK [10:52:46]request: POST /json_proto HTTP/1.0 [10:52:46]Method: POST [10:52:46]URL: /json_proto [10:52:46]Method is POST - this is cgi request [10:52:46]url: /json_proto [10:52:46]query_string will be loaded in cgi processing [10:52:46]execute_cgi json_proto POST (null) [10:52:46]execute_cgi path=json_proto method=POST [10:52:46]POST find Content-Length [10:52:46]Host: 172.17.49.196:8080 [10:52:46]Content-Length: 749 [10:52:46]Content-Type: application/json [10:52:46] [10:52:46]POST finish read [10:52:46]Found Content-Length = 749 [10:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164466", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:46]execute_script... [10:52:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164466", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:46]POST & json_proto [10:52:46]process_json_proto [10:52:46]json parsed OK: [10:52:46]protocol is kg_v1.0 [10:52:46]action value=close_receipt [10:52:46]process_action close_receipt [10:52:46]cmd_close_receipt [10:52:46]MH_GetDate [10:52:46]Write to MH i2c: F0 00 00 EA 03 DC [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: F0 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: F0 09 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: F0 09 00 EA 03 00 7F 78 1B 67 BD 3B 11 67 CE [10:52:46]GetLastDocTimeStamp 1729853290 [10:52:46]current date 1729853567 [10:52:46]FM_GetShiftState [10:52:46]SAM_PROTO_GetShiftState [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 13 01 00 [10:52:46]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 0E 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 63 [10:52:46]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:52:46]wFMCommunicate OK [10:52:46]SAM_PROTO_GetShiftState done [10:52:46]FM_GetShiftState done [10:52:46]opened in 1729815177 [10:52:46]opened+sec_in_day 1729901577 [10:52:46]quantity*price = 15900 [10:52:46]sum+1 = 15901 [10:52:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 56 25.10.2024 10:52 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50556 ФПД: 83727955040966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105247&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50556&fm=83727955040966&tin=02508201610067®Number=0000000000097022&sum=15900 0 [10:52:47]StoreToDocumentArchive [10:52:47]shift 493 fd 50556 [10:52:47]save to /storage/0493/doc_00050556 [10:52:47]save last doc name /storage/0493/doc_00050556 to /storage/kkm_last_doc_name [10:52:47]save OK [10:52:47]Clear old archive folders... [10:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=274 [10:52:47]tlvbuf is 01E6C120 [10:52:47]SAM_PROTO_ClearQueue [10:52:47]wFMCommunicate request_size=4 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 09 00 00 [10:52:47]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [10:52:47]RAPDU: 90 00 [10:52:47]wFMCommunicate OK [10:52:47]SAM_PROTO_ClearQueue done [10:52:47]KKMCreateOFDPacket [10:52:47]OFDProtocolAddRootSTLVToBuf [10:52:47]FM_MakeSignedData [10:52:47]FM_MakeSignedData [10:52:47]SAM_PROTO_SignData [10:52:47]wFMCommunicate request_size=4 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 0D 01 02 [10:52:47]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [10:52:47]RAPDU: 90 00 [10:52:47]wFMCommunicate OK [10:52:47]wFMCommunicate request_size=255 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7F 78 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [10:52:47]Write to MH i2c: E2 02 01 FA 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7F 78 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 33 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [10:52:47]RAPDU: 90 00 [10:52:47]wFMCommunicate OK [10:52:47]wFMCommunicate request_size=33 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7C C5 00 00 35 04 06 00 4C 26 6F 04 9A C6 [10:52:47]Write to MH i2c: E2 24 00 FB 03 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7C C5 00 00 35 04 06 00 4C 26 6F 04 9A C6 00 00 81 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [10:52:47]RAPDU: 90 00 [10:52:47]wFMCommunicate OK [10:52:47]wFMCommunicate request_size=4 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 0D 03 02 [10:52:47]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 0B 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 0B 00 FC 03 00 5B 8B 20 92 A2 41 06 79 90 00 75 [10:52:47]RAPDU: 5B 8B 20 92 A2 41 06 79 90 00 [10:52:47]wFMCommunicate OK [10:52:47]SAM_PROTO_SignData done [10:52:47]FM_MakeSignedData done [10:52:47]CreateOFDProtocolMessage [10:52:47]wFMCommunicate request_size=4 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 11 00 00 [10:52:47]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 17 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C1 [10:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:52:47]wFMCommunicate OK [10:52:47]CreateOFDProtocolMessage done [10:52:47]OFDSenderStorePacket 50556 [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:12]accept exits with 9 [10:54:12]New connection [10:54:12]New thread 3066789220 created [10:54:12]Thread 3066645860 joined [10:54:12]Waiting for new connection... [10:54:12] Sock 9.Parse request [10:54:12]Sock 9.Check first char [10:54:12]Sock 9.First char is OK [10:54:12]request: POST /json_proto HTTP/1.0 [10:54:12]Method: POST [10:54:12]URL: /json_proto [10:54:12]Method is POST - this is cgi request [10:54:12]url: /json_proto [10:54:12]query_string will be loaded in cgi processing [10:54:12]execute_cgi json_proto POST (null) [10:54:12]execute_cgi path=json_proto method=POST [10:54:12]POST find Content-Length [10:54:12]Host: 172.17.49.196:8080 [10:54:12]Content-Length: 620 [10:54:12]Content-Type: application/json [10:54:12] [10:54:12]POST finish read [10:54:12]Found Content-Length = 620 [10:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164467", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:12]execute_script... [10:54: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)164467", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:12]POST & json_proto [10:54:12]process_json_proto [10:54:12]json parsed OK: [10:54:12]protocol is kg_v1.0 [10:54:12]action value=close_receipt [10:54:12]process_action close_receipt [10:54:12]cmd_close_receipt [10:54:12]MH_GetDate [10:54:12]Write to MH i2c: F0 00 00 31 04 24 [10:54:12]Write i2c OK [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: F0 [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: F0 09 00 [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: F0 09 00 31 04 00 D5 78 1B 67 BD 3B 11 67 6C [10:54:12]GetLastDocTimeStamp 1729853567 [10:54:12]current date 1729853653 [10:54:12]FM_GetShiftState [10:54:12]SAM_PROTO_GetShiftState [10:54:12]wFMCommunicate request_size=4 [10:54:12]MH_SAM_APDU [10:54:12]CAPDU: 80 13 01 00 [10:54:12]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [10:54:12]Write i2c OK [10:54:12]MH_I2C_Read... [10:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:12]Read from MH i2c: E2 [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: E2 0E 00 [10:54:12]MH_I2C_Read... [10:54:12]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 AB [10:54:12]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:54:12]wFMCommunicate OK [10:54:12]SAM_PROTO_GetShiftState done [10:54:12]FM_GetShiftState done [10:54:12]opened in 1729815177 [10:54:12]opened+sec_in_day 1729901577 [10:54:12]quantity*price = 27800 [10:54:12]sum+1 = 27801 [10:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 57 25.10.2024 10:54 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50557 ФПД: 273932352354507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105413&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50557&fm=273932352354507&tin=02508201610067®Number=0000000000097022&sum=27800 0 [10:54:13]StoreToDocumentArchive [10:54:13]shift 493 fd 50557 [10:54:13]save to /storage/0493/doc_00050557 [10:54:13]save last doc name /storage/0493/doc_00050557 to /storage/kkm_last_doc_name [10:54:13]save OK [10:54:13]Clear old archive folders... [10:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:54:13]tlvbuf is 01E369C0 [10:54:13]SAM_PROTO_ClearQueue [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 09 00 00 [10:54:13]Write to MH i2c: E2 08 00 3F 04 80 09 00 00 00 00 00 00 B5 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [10:54:13]RAPDU: 90 00 [10:54:13]wFMCommunicate OK [10:54:13]SAM_PROTO_ClearQueue done [10:54:13]KKMCreateOFDPacket [10:54:13]OFDProtocolAddRootSTLVToBuf [10:54:13]FM_MakeSignedData [10:54:13]FM_MakeSignedData [10:54:13]SAM_PROTO_SignData [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 0D 01 02 [10:54:13]Write to MH i2c: E2 08 00 40 04 80 0D 01 02 00 00 00 00 BD [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [10:54:13]RAPDU: 90 00 [10:54:13]wFMCommunicate OK [10:54:13]wFMCommunicate request_size=255 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 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 D5 78 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [10:54:13]Write to MH i2c: E2 02 01 41 04 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 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 D5 78 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 96 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [10:54:13]RAPDU: 90 00 [10:54:13]wFMCommunicate OK [10:54:13]wFMCommunicate request_size=31 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 30 10 04 04 00 7D C5 00 00 35 04 06 00 F9 23 D8 8D F8 CB [10:54:13]Write to MH i2c: E2 22 00 42 04 80 0D 02 02 1A 00 30 30 38 37 35 30 30 30 10 04 04 00 7D C5 00 00 35 04 06 00 F9 23 D8 8D F8 CB 00 00 65 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [10:54:13]RAPDU: 90 00 [10:54:13]wFMCommunicate OK [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 0D 03 02 [10:54:13]Write to MH i2c: E2 08 00 43 04 80 0D 03 02 00 00 00 00 C2 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 0B 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 0B 00 43 04 00 44 46 5F 60 E1 34 DE A4 90 00 A3 [10:54:13]RAPDU: 44 46 5F 60 E1 34 DE A4 90 00 [10:54:13]wFMCommunicate OK [10:54:13]SAM_PROTO_SignData done [10:54:13]FM_MakeSignedData done [10:54:13]CreateOFDProtocolMessage [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 11 00 00 [10:54:13]Write to MH i2c: E2 08 00 44 04 80 11 00 00 00 00 00 00 C2 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 17 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 17 00 44 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 09 [10:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:54:13]wFMCommunicate OK [10:54:13]CreateOFDProtocolMessage done [10:54:13]OFDSenderStorePacket 50557 [10:54:13]StoreOFDPacket docnum=50557 [10:54:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 35 84 1C 01 4D 9B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 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 D5 78 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7D C5 00 00 35 04 06 00 F9 23 D8 8D F8 CB 44 46 5F 60 E1 34 DE A4 [10:54:13]CheckFolder [10:54:13]dirname=/storage/ofd_packets [10:54:13]CheckFolder done [10:54:13]ProducePacketName [10:54:13]name=ofd_packets/00050557 [10:54:13]NVStorageSaveData ofd_packets/00050557 [10:54:13]File name is /storage/ofd_packets/00050557 [10:54:13]Write 322 bytes [10:54:13]NVStorageSaveData done [10:54:13]OFDSenderStorePacket done [10:54:13]KKMCreateOFDPacket done [10:54:13]NVStorageSaveData kkm_last_timestamp [10:54:13]File name is /storage/kkm_last_timestamp [10:54:13]Write 4 bytes [10:54:13]NVStorageSaveData done [10:54:13]ExternCall_PrintAddStr [10:54:13]wPrintStart [10:54:13]Write to MH i2c: 01 00 00 45 04 49 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: 01 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: 01 07 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [10:54:13]RasterBufferAndPrint [10:54:13]line Счет N : (3)164467 [10:54:13]line ИНН: 02508201610067 [10:54:13]line Контрольно-Кассовый Чек [10:54:13]line ПРОДАЖА [10:54:13]line Товар: 48745000 [10:54:13]line Сигареты Winston Purple Mix [10:54:13]line 2.000 * 139.00 [10:54:13]line = 278.00 [10:54:13]line НДС 12% НСП 1% [10:54:13]line > о реализуемом товаре [10:54:13]line ИТОГО: 278.00 [10:54:13]line НСП 1% : 2.46 [10:54:13]line НДС 12% : 29.52 [10:54:13]line Наличными: 278.00 [10:54:13]line Безнал.: 0.00 [10:54:13]line Место: АЗС № 80 "Партнер Нефть" [10:54:13]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [10:54:13]line СНО: Общий режим [10:54:13]line Чек 57 25.10.2024 10:54 [10:54:13]line Смена: 493 ФФД: 1.0 [10:54:13]line ЗНМ: 0300000090 [10:54:13]line РНМ: 0000000000097022 [10:54:13]line Версия ККМ: 001 [10:54:13]line ФМ: 0000000000875000 [10:54:13]line ФД: 50557 [10:54:13]line ФПД: 273932352354507 [10:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T105413&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50557&fm=273932352354507&tin=02508201610067®Number=0000000000097022&sum=27800 [10:54:14]OFD Sender: Processing packet 50557 [packets to send 7, broken 6] [10:54:14]ProducePacketName [10:54:14]name=ofd_packets/00050557 [10:54:14]OFD Sender: To server: pG, [10:54:14]CommunicateWithHost lk.salyk.kg:30040 [10:54:14]ConnectInit lk.salyk.kg [10:54:14]line 0 [10:54:14]written 0, free lines is 4095 [10:54:14]Connected sock=11 [10:54:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 35 84 1C 01 4D 9B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 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 D5 78 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7D C5 00 00 35 04 06 00 F9 23 D8 8D F8 CB 44 46 5F 60 E1 34 DE A4 [10:54:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 DF 51 47 00 EA 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7D C5 00 00 F4 03 04 00 66 24 1B 67 B6 04 01 00 00 8A 3A 1B 60 1A 80 1B A7 [10:54:14]CommunicateWithHost err = 0 [10:54:14]CheckOFDResponse [10:54:14]1017 (14) - 77093643461234 [10:54:14]1041 (16) - 0000000000875000 [10:54:14]1040 (4) - 50557 [10:54:14]1012 (4) - 25.10.2024 04:53 [10:54:14]1206 (1) - 0 [10:54:14]OFD Sender: Remove packet 50557 [10:54:14]ProducePacketName [10:54:14]name=ofd_packets/00050557 [10:54:14]NVStorageDeleteData [10:54:14]Write to MH i2c: 01 00 00 6D 04 71 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: 01 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: 01 07 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 19 0D 9E [10:54:14]RasterBufferAndPrint [10:54:14]line [10:54:14]line [10:54:14]line [10:54:14]line [10:54:14]line [10:54:14]written 0, free lines is 3359 [10:54:14]process_action close_receipt done [10:54:14]requested_data is exist [10:54:14]produce_requested_data [10:54:14]requested_item fm.sn is exist - process it [10:54:14]wFMCommunicate request_size=4 [10:54:14]MH_SAM_APDU [10:54:14]CAPDU: 80 11 00 00 [10:54:14]Write to MH i2c: E2 08 00 74 04 80 11 00 00 00 00 00 00 F2 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 [10:54:14]MH_I2C_Read... [10:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:14]Read from MH i2c: E2 17 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 17 00 74 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 39 [10:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [10:54:14]wFMCommunicate OK [10:54:14]requested_item fd.num is exist - process it [10:54:14]SAM_PROTO_GetFieldsCounters [10:54:14]wFMCommunicate request_size=4 [10:54:14]MH_SAM_APDU [10:54:14]CAPDU: 80 13 00 00 [10:54:14]Write to MH i2c: E2 08 00 75 04 80 13 00 00 00 00 00 00 F5 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:14]Read from MH i2c: E2 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 62 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 62 00 75 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [10:54:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:14]wFMCommunicate OK [10:54:14]SAM_PROTO_GetFieldsCounters done [10:54:14]requested_item shift.num is exist - process it [10:54:14]requested_item shift.opened is exist - process it [10:54:14]req_shift_opened [10:54:14]FM_GetShiftState [10:54:14]SAM_PROTO_GetShiftState [10:54:14]wFMCommunicate request_size=4 [10:54:14]MH_SAM_APDU [10:54:14]CAPDU: 80 13 01 00 [10:54:14]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:14]Read from MH i2c: E2 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 0E 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 EF [10:54:15]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [10:54:15]wFMCommunicate OK [10:54:15]SAM_PROTO_GetShiftState done [10:54:15]FM_GetShiftState done [10:54:15]req_shift_opened done [10:54:15]requested_item shift.open_date is exist - process it [10:54:15]req_shift_open_date [10:54:15]req_shift_open_date done [10:54:15]produce_requested_data done [10:54:15]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50557,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [10:54:15]process_action_free close_receipt [10:54:15]json_value_free [10:54:15]json_value_free done [10:54:15]process_json_proto returns [10:54:15]Send response to host [10:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50557,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [10:54:15]free response buf [10:54:15]execute_script done [10:54:15]execute_script returns [10:54:15]free content buf [10:54:15]Sock 9.Close socket [10:54:15]Sock 9.Thread stoped [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:14]ConnectInit Can't connect to host [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:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [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:01]ConnectInit Can't connect to host [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: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:02:56]accept exits with 10 [11:02:56]New connection [11:02:56]New thread 3066645860 created [11:02:56]Thread 3066789220 joined [11:02:56]Waiting for new connection... [11:02:56] Sock 10.Parse request [11:02:56]Sock 10.Check first char [11:02:56]Sock 10.First char is OK [11:02:56]request: POST /json_proto HTTP/1.0 [11:02:56]Method: POST [11:02:56]URL: /json_proto [11:02:56]Method is POST - this is cgi request [11:02:56]url: /json_proto [11:02:56]query_string will be loaded in cgi processing [11:02:56]execute_cgi json_proto POST (null) [11:02:56]execute_cgi path=json_proto method=POST [11:02:56]POST find Content-Length [11:02:56]Host: 172.17.49.196:8080 [11:02:56]Content-Length: 644 [11:02:56]Content-Type: application/json [11:02:56] [11:02:56]POST finish read [11:02:56]Found Content-Length = 644 [11:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164468", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:56]execute_script... [11:02:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164468", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:56]POST & json_proto [11:02:56]process_json_proto [11:02:56]json parsed OK: [11:02:56]protocol is kg_v1.0 [11:02:56]action value=close_receipt [11:02:56]process_action close_receipt [11:02:56]cmd_close_receipt [11:02:56]MH_GetDate [11:02:56]Write to MH i2c: F0 00 00 77 04 6A [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: F0 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: F0 09 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: F0 09 00 77 04 00 E1 7A 1B 67 BD 3B 11 67 C0 [11:02:56]GetLastDocTimeStamp 1729853653 [11:02:56]current date 1729854177 [11:02:56]FM_GetShiftState [11:02:56]SAM_PROTO_GetShiftState [11:02:56]wFMCommunicate request_size=4 [11:02:56]MH_SAM_APDU [11:02:56]CAPDU: 80 13 01 00 [11:02:56]Write to MH i2c: E2 08 00 78 04 80 13 01 00 00 00 00 00 F9 [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:56]Read from MH i2c: E2 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 0E 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 0E 00 78 04 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F1 [11:02:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:02:56]wFMCommunicate OK [11:02:56]SAM_PROTO_GetShiftState done [11:02:56]FM_GetShiftState done [11:02:56]opened in 1729815177 [11:02:56]opened+sec_in_day 1729901577 [11:02:56]quantity*price = 23000 [11:02:56]sum+1 = 23001 [11:02:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 58 25.10.2024 11:02 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50558 ФПД: 7322038680946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110257&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50558&fm=7322038680946&tin=02508201610067®Number=0000000000097022&sum=23000 0 [11:02:57]StoreToDocumentArchive [11:02:57]shift 493 fd 50558 [11:02:57]save to /storage/0493/doc_00050558 [11:02:57]save last doc name /storage/0493/doc_00050558 to /storage/kkm_last_doc_name [11:02:57]save OK [11:02:57]Clear old archive folders... [11:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:02:57]tlvbuf is 01E330A0 [11:02:57]SAM_PROTO_ClearQueue [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 09 00 00 [11:02:57]Write to MH i2c: E2 08 00 85 04 80 09 00 00 00 00 00 00 FB [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [11:02:57]RAPDU: 90 00 [11:02:57]wFMCommunicate OK [11:02:57]SAM_PROTO_ClearQueue done [11:02:57]KKMCreateOFDPacket [11:02:57]OFDProtocolAddRootSTLVToBuf [11:02:57]FM_MakeSignedData [11:02:57]FM_MakeSignedData [11:02:57]SAM_PROTO_SignData [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 0D 01 02 [11:02:57]Write to MH i2c: E2 08 00 86 04 80 0D 01 02 00 00 00 00 03 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [11:02:57]RAPDU: 90 00 [11:02:57]wFMCommunicate OK [11:02:57]wFMCommunicate request_size=255 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 E1 7A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 [11:02:57]Write to MH i2c: E2 02 01 87 04 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 E1 7A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 00 00 A9 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [11:02:57]RAPDU: 90 00 [11:02:57]wFMCommunicate OK [11:02:57]wFMCommunicate request_size=39 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C5 00 00 35 04 06 00 06 A8 CB 83 BD 72 [11:02:57]Write to MH i2c: E2 2A 00 88 04 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C5 00 00 35 04 06 00 06 A8 CB 83 BD 72 00 00 23 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [11:02:57]RAPDU: 90 00 [11:02:57]wFMCommunicate OK [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 0D 03 02 [11:02:57]Write to MH i2c: E2 08 00 89 04 80 0D 03 02 00 00 00 00 08 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 0B 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 0B 00 89 04 00 02 12 EE B6 98 F2 11 CB 90 00 27 [11:02:57]RAPDU: 02 12 EE B6 98 F2 11 CB 90 00 [11:02:57]wFMCommunicate OK [11:02:57]SAM_PROTO_SignData done [11:02:57]FM_MakeSignedData done [11:02:57]CreateOFDProtocolMessage [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 11 00 00 [11:02:57]Write to MH i2c: E2 08 00 8A 04 80 11 00 00 00 00 00 00 08 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 17 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 17 00 8A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4F [11:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:02:57]wFMCommunicate OK [11:02:57]CreateOFDProtocolMessage done [11:02:57]OFDSenderStorePacket 50558 [11:02:57]StoreOFDPacket docnum=50558 [11:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 6B 50 24 01 46 01 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 E1 7A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C5 00 00 35 04 06 00 06 A8 CB 83 BD 72 02 12 EE B6 98 F2 11 CB [11:02:57]CheckFolder [11:02:57]dirname=/storage/ofd_packets [11:02:57]CheckFolder done [11:02:57]ProducePacketName [11:02:57]name=ofd_packets/00050558 [11:02:57]NVStorageSaveData ofd_packets/00050558 [11:02:57]File name is /storage/ofd_packets/00050558 [11:02:57]Write 330 bytes [11:02:57]NVStorageSaveData done [11:02:57]OFDSenderStorePacket done [11:02:57]KKMCreateOFDPacket done [11:02:57]NVStorageSaveData kkm_last_timestamp [11:02:57]File name is /storage/kkm_last_timestamp [11:02:57]Write 4 bytes [11:02:57]NVStorageSaveData done [11:02:57]ExternCall_PrintAddStr [11:02:57]wPrintStart [11:02:57]Write to MH i2c: 01 00 00 8B 04 8F [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: 01 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: 01 07 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: 01 07 00 8B 04 00 00 00 00 00 FF 0F A4 [11:02:57]RasterBufferAndPrint [11:02:57]line Счет N : (3)164468 [11:02:57]line ИНН: 02508201610067 [11:02:57]line Контрольно-Кассовый Чек [11:02:57]line ПРОДАЖА [11:02:57]line Товар: 2000036210013 [11:02:57]line Кофе Капучино (GABB TRADE) [11:02:57]line 2.000 * 115.00 [11:02:57]line = 230.00 [11:02:57]line НДС 12% НСП 1% [11:02:57]line > о реализуемом товаре [11:02:57]line ИТОГО: 230.00 [11:02:57]line НСП 1% : 2.03 [11:02:57]line НДС 12% : 24.42 [11:02:57]line Наличными: 230.00 [11:02:57]line Безнал.: 0.00 [11:02:57]line Место: АЗС № 80 "Партнер Нефть" [11:02:57]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:02:57]line СНО: Общий режим [11:02:57]line Чек 58 25.10.2024 11:02 [11:02:57]line Смена: 493 ФФД: 1.0 [11:02:57]line ЗНМ: 0300000090 [11:02:57]line РНМ: 0000000000097022 [11:02:57]line Версия ККМ: 001 [11:02:57]line ФМ: 0000000000875000 [11:02:57]line ФД: 50558 [11:02:57]line ФПД: 7322038680946 [11:02:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110257&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50558&fm=7322038680946&tin=02508201610067®Number=0000000000097022&sum=23000 [11:02:58]line 0 [11:02:58]OFD Sender: Processing packet 50558 [packets to send 7, broken 6] [11:02:58]ProducePacketName [11:02:58]name=ofd_packets/00050558 [11:02:58]OFD Sender: To server: pG, [11:02:58]CommunicateWithHost lk.salyk.kg:30040 [11:02:58]ConnectInit lk.salyk.kg [11:02:58]written 0, free lines is 4095 [11:02:58]Connected sock=11 [11:02:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 6B 50 24 01 46 01 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 E1 7A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C5 00 00 35 04 06 00 06 A8 CB 83 BD 72 02 12 EE B6 98 F2 11 CB [11:02:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 EC C2 47 00 A6 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7E C5 00 00 F4 03 04 00 72 26 1B 67 B6 04 01 00 00 64 57 E0 BF F8 21 DD 1D [11:02:58]CommunicateWithHost err = 0 [11:02:58]CheckOFDResponse [11:02:58]1017 (14) - 77093643461234 [11:02:58]1041 (16) - 0000000000875000 [11:02:58]1040 (4) - 50558 [11:02:58]1012 (4) - 25.10.2024 05:02 [11:02:58]1206 (1) - 0 [11:02:58]OFD Sender: Remove packet 50558 [11:02:58]ProducePacketName [11:02:58]name=ofd_packets/00050558 [11:02:58]NVStorageDeleteData [11:02:58]Write to MH i2c: 01 00 00 B3 04 B7 [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: 01 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: 01 07 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 23 0D EE [11:02:58]RasterBufferAndPrint [11:02:58]line [11:02:58]line [11:02:58]line [11:02:58]line [11:02:58]line [11:02:58]written 0, free lines is 3369 [11:02:58]process_action close_receipt done [11:02:58]requested_data is exist [11:02:58]produce_requested_data [11:02:58]requested_item fm.sn is exist - process it [11:02:58]wFMCommunicate request_size=4 [11:02:58]MH_SAM_APDU [11:02:58]CAPDU: 80 11 00 00 [11:02:58]Write to MH i2c: E2 08 00 BA 04 80 11 00 00 00 00 00 00 38 [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:58]Read from MH i2c: E2 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 17 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 17 00 BA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7F [11:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:02:58]wFMCommunicate OK [11:02:58]requested_item fd.num is exist - process it [11:02:58]SAM_PROTO_GetFieldsCounters [11:02:58]wFMCommunicate request_size=4 [11:02:58]MH_SAM_APDU [11:02:58]CAPDU: 80 13 00 00 [11:02:58]Write to MH i2c: E2 08 00 BB 04 80 13 00 00 00 00 00 00 3B [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:58]Read from MH i2c: E2 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 62 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 62 00 BB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:02:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:58]wFMCommunicate OK [11:02:58]SAM_PROTO_GetFieldsCounters done [11:02:58]requested_item shift.num is exist - process it [11:02:58]requested_item shift.opened is exist - process it [11:02:58]req_shift_opened [11:02:58]FM_GetShiftState [11:02:58]SAM_PROTO_GetShiftState [11:02:58]wFMCommunicate request_size=4 [11:02:58]MH_SAM_APDU [11:02:58]CAPDU: 80 13 01 00 [11:02:58]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:58]Read from MH i2c: E2 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 0E 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 35 [11:02:58]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:02:58]wFMCommunicate OK [11:02:58]SAM_PROTO_GetShiftState done [11:02:58]FM_GetShiftState done [11:02:58]req_shift_opened done [11:02:58]requested_item shift.open_date is exist - process it [11:02:58]req_shift_open_date [11:02:58]req_shift_open_date done [11:02:58]produce_requested_data done [11:02:58]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50558,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [11:02:58]process_action_free close_receipt [11:02:58]json_value_free [11:02:58]json_value_free done [11:02:58]process_json_proto returns [11:02:58]Send response to host [11:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50558,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [11:02:58]free response buf [11:02:58]execute_script done [11:02:58]execute_script returns [11:02:58]free content buf [11:02:58]Sock 10.Close socket [11:02:58]Sock 10.Thread stoped [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:36]ConnectInit Can't connect to host [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:10]accept exits with 9 [11:07:10]New connection [11:07:10]New thread 3066789220 created [11:07:10]Thread 3066645860 joined [11:07:10]Waiting for new connection... [11:07:10] Sock 9.Parse request [11:07:10]Sock 9.Check first char [11:07:10]Sock 9.First char is OK [11:07:10]request: POST /json_proto HTTP/1.0 [11:07:10]Method: POST [11:07:10]URL: /json_proto [11:07:10]Method is POST - this is cgi request [11:07:10]url: /json_proto [11:07:10]query_string will be loaded in cgi processing [11:07:10]execute_cgi json_proto POST (null) [11:07:10]execute_cgi path=json_proto method=POST [11:07:10]POST find Content-Length [11:07:10]Host: 172.17.49.196:8080 [11:07:10]Content-Length: 1074 [11:07:10]Content-Type: application/json [11:07:10] [11:07:10]POST finish read [11:07:10]Found Content-Length = 1074 [11:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164469", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 468.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:10]execute_script... [11:07: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)164469", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 468.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:10]POST & json_proto [11:07:10]process_json_proto [11:07:10]json parsed OK: [11:07:10]protocol is kg_v1.0 [11:07:10]action value=close_receipt [11:07:10]process_action close_receipt [11:07:10]cmd_close_receipt [11:07:10]MH_GetDate [11:07:10]Write to MH i2c: F0 00 00 BD 04 B0 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: F0 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: F0 09 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: F0 09 00 BD 04 00 DF 7B 1B 67 BD 3B 11 67 05 [11:07:10]GetLastDocTimeStamp 1729854177 [11:07:10]current date 1729854431 [11:07:10]FM_GetShiftState [11:07:10]SAM_PROTO_GetShiftState [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 13 01 00 [11:07:10]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0E 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 37 [11:07:10]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:07:10]wFMCommunicate OK [11:07:10]SAM_PROTO_GetShiftState done [11:07:10]FM_GetShiftState done [11:07:10]opened in 1729815177 [11:07:10]opened+sec_in_day 1729901577 [11:07:10]quantity*price = 18000 [11:07:10]sum+1 = 18001 [11:07:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 2.000 * 144.00 = 288.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 468.00 НСП 1% : 4.14 НДС 12% : 49.69 Наличными: 0.00 Безнал.: 468.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 59 25.10.2024 11:07 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50559 ФПД: 123361349216118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110711&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50559&fm=123361349216118&tin=02508201610067®Number=0000000000097022&sum=46800 0 [11:07:11]StoreToDocumentArchive [11:07:11]shift 493 fd 50559 [11:07:11]save to /storage/0493/doc_00050559 [11:07:11]save last doc name /storage/0493/doc_00050559 to /storage/kkm_last_doc_name [11:07:11]save OK [11:07:11]Clear old archive folders... [11:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=402 [11:07:11]tlvbuf is 01E6CA50 [11:07:11]SAM_PROTO_ClearQueue [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 09 00 00 [11:07:11]Write to MH i2c: E2 08 00 CB 04 80 09 00 00 00 00 00 00 41 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]SAM_PROTO_ClearQueue done [11:07:11]KKMCreateOFDPacket [11:07:11]OFDProtocolAddRootSTLVToBuf [11:07:11]FM_MakeSignedData [11:07:11]FM_MakeSignedData [11:07:11]SAM_PROTO_SignData [11:07:11]wFMCommunicate request_size=4 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 01 02 [11:07:11]Write to MH i2c: E2 08 00 CC 04 80 0D 01 02 00 00 00 00 49 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]wFMCommunicate request_size=255 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 B6 00 00 00 [11:07:11]Write to MH i2c: E2 02 01 CD 04 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 B6 00 00 00 00 00 16 [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:11]Read from MH i2c: E2 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 [11:07:11]MH_I2C_Read... [11:07:11]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [11:07:11]RAPDU: 90 00 [11:07:11]wFMCommunicate OK [11:07:11]wFMCommunicate request_size=161 [11:07:11]MH_SAM_APDU [11:07:11]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 B6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF 7B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C5 00 00 35 04 06 00 70 32 4D 66 27 76 [11:07:11]Write to MH i2c: E2 A4 00 CE 04 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 B6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF 7B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C5 00 00 35 04 06 00 70 32 4D 66 27 76 00 00 8C [11:07:11]Write i2c OK [11:07:11]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 03 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [11:07:12]RAPDU: 90 00 [11:07:12]wFMCommunicate OK [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 0D 03 02 [11:07:12]Write to MH i2c: E2 08 00 CF 04 80 0D 03 02 00 00 00 00 4E [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 0B 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 0B 00 CF 04 00 FA 5F 61 17 1A B3 AE A3 90 00 3E [11:07:12]RAPDU: FA 5F 61 17 1A B3 AE A3 90 00 [11:07:12]wFMCommunicate OK [11:07:12]SAM_PROTO_SignData done [11:07:12]FM_MakeSignedData done [11:07:12]CreateOFDProtocolMessage [11:07:12]wFMCommunicate request_size=4 [11:07:12]MH_SAM_APDU [11:07:12]CAPDU: 80 11 00 00 [11:07:12]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:12]Read from MH i2c: E2 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 17 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 95 [11:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:07:12]wFMCommunicate OK [11:07:12]CreateOFDProtocolMessage done [11:07:12]OFDSenderStorePacket 50559 [11:07:12]StoreOFDPacket docnum=50559 [11:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A6 01 00 00 84 27 9E 01 6C 7F 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 B6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 B6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF 7B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C5 00 00 35 04 06 00 70 32 4D 66 27 76 FA 5F 61 17 1A B3 AE A3 [11:07:12]CheckFolder [11:07:12]dirname=/storage/ofd_packets [11:07:12]CheckFolder done [11:07:12]ProducePacketName [11:07:12]name=ofd_packets/00050559 [11:07:12]NVStorageSaveData ofd_packets/00050559 [11:07:12]File name is /storage/ofd_packets/00050559 [11:07:12]Write 452 bytes [11:07:12]NVStorageSaveData done [11:07:12]OFDSenderStorePacket done [11:07:12]KKMCreateOFDPacket done [11:07:12]NVStorageSaveData kkm_last_timestamp [11:07:12]File name is /storage/kkm_last_timestamp [11:07:12]Write 4 bytes [11:07:12]NVStorageSaveData done [11:07:12]ExternCall_PrintAddStr [11:07:12]wPrintStart [11:07:12]Write to MH i2c: 01 00 00 D1 04 D5 [11:07:12]Write i2c OK [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 07 00 [11:07:12]MH_I2C_Read... [11:07:12]Read from MH i2c: 01 07 00 D1 04 00 00 00 00 00 FF 0F EA [11:07:12]RasterBufferAndPrint [11:07:12]line Счет N : (3)164469 [11:07:12]line ИНН: 02508201610067 [11:07:12]line Контрольно-Кассовый Чек [11:07:12]line ПРОДАЖА [11:07:12]line Товар: 4660085515163 [11:07:12]line Шок Батончик Сникерс супер 95/80г [11:07:12]line 2.000 * 90.00 [11:07:12]line = 180.00 [11:07:12]line НДС 12% НСП 1% [11:07:12]line > о реализуемом товаре [11:07:12]line Товар: 48747059 [11:07:12]line Сигареты Winston Legend Blue [11:07:12]line 2.000 * 144.00 [11:07:12]line = 288.00 [11:07:12]line НДС 12% НСП 1% [11:07:12]line > о реализуемом товаре [11:07:12]line ИТОГО: 468.00 [11:07:12]line НСП 1% : 4.14 [11:07:12]line НДС 12% : 49.69 [11:07:12]line Наличными: 0.00 [11:07:12]line Безнал.: 468.00 [11:07:12]line Место: АЗС № 80 "Партнер Нефть" [11:07:12]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:07:12]line СНО: Общий режим [11:07:12]line Чек 59 25.10.2024 11:07 [11:07:12]line Смена: 493 ФФД: 1.0 [11:07:12]line ЗНМ: 0300000090 [11:07:12]line РНМ: 0000000000097022 [11:07:12]line Версия ККМ: 001 [11:07:12]line Платежная система: Mbank [11:07:12]line ФМ: 0000000000875000 [11:07:12]line ФД: 50559 [11:07:12]line ФПД: 123361349216118 [11:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T110711&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50559&fm=123361349216118&tin=02508201610067®Number=0000000000097022&sum=46800 [11:07:12]line 0 [11:07:12]OFD Sender: Processing packet 50559 [packets to send 7, broken 6] [11:07:12]ProducePacketName [11:07:12]name=ofd_packets/00050559 [11:07:12]OFD Sender: To server: pG, [11:07:12]CommunicateWithHost lk.salyk.kg:30040 [11:07:12]ConnectInit lk.salyk.kg [11:07:12]written 0, free lines is 4095 [11:07:12]Connected sock=10 [11:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A6 01 00 00 84 27 9E 01 6C 7F 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 B6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 B6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF 7B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C5 00 00 35 04 06 00 70 32 4D 66 27 76 FA 5F 61 17 1A B3 AE A3 [11:07:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 78 30 47 00 8C BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 7F C5 00 00 F4 03 04 00 70 27 1B 67 B6 04 01 00 00 2D F3 43 AE 83 7D 39 CE [11:07:12]CommunicateWithHost err = 0 [11:07:12]CheckOFDResponse [11:07:12]1017 (14) - 77093643461234 [11:07:12]1041 (16) - 0000000000875000 [11:07:12]1040 (4) - 50559 [11:07:12]1012 (4) - 25.10.2024 05:06 [11:07:12]1206 (1) - 0 [11:07:12]OFD Sender: Remove packet 50559 [11:07:12]ProducePacketName [11:07:12]name=ofd_packets/00050559 [11:07:12]NVStorageDeleteData [11:07:13]Write to MH i2c: 01 00 00 02 05 07 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 07 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 99 0C B3 [11:07:13]RasterBufferAndPrint [11:07:13]line [11:07:13]line [11:07:13]line [11:07:13]line [11:07:13]line [11:07:13]written 0, free lines is 3234 [11:07:13]process_action close_receipt done [11:07:13]requested_data is exist [11:07:13]produce_requested_data [11:07:13]requested_item fm.sn is exist - process it [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 11 00 00 [11:07:13]Write to MH i2c: E2 08 00 09 05 80 11 00 00 00 00 00 00 88 [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 17 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 17 00 09 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CF [11:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:07:13]wFMCommunicate OK [11:07:13]requested_item fd.num is exist - process it [11:07:13]SAM_PROTO_GetFieldsCounters [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 13 00 00 [11:07:13]Write to MH i2c: E2 08 00 0A 05 80 13 00 00 00 00 00 00 8B [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 62 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 62 00 0A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [11:07:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 7F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:13]wFMCommunicate OK [11:07:13]SAM_PROTO_GetFieldsCounters done [11:07:13]requested_item shift.num is exist - process it [11:07:13]requested_item shift.opened is exist - process it [11:07:13]req_shift_opened [11:07:13]FM_GetShiftState [11:07:13]SAM_PROTO_GetShiftState [11:07:13]wFMCommunicate request_size=4 [11:07:13]MH_SAM_APDU [11:07:13]CAPDU: 80 13 01 00 [11:07:13]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [11:07:13]Write i2c OK [11:07:13]MH_I2C_Read... [11:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:13]Read from MH i2c: E2 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 0E 00 [11:07:13]MH_I2C_Read... [11:07:13]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 85 [11:07:13]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:07:13]wFMCommunicate OK [11:07:13]SAM_PROTO_GetShiftState done [11:07:13]FM_GetShiftState done [11:07:13]req_shift_opened done [11:07:13]requested_item shift.open_date is exist - process it [11:07:13]req_shift_open_date [11:07:13]req_shift_open_date done [11:07:13]produce_requested_data done [11:07:13]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50559,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [11:07:13]process_action_free close_receipt [11:07:13]json_value_free [11:07:13]json_value_free done [11:07:13]process_json_proto returns [11:07:13]Send response to host [11:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50559,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [11:07:13]free response buf [11:07:13]execute_script done [11:07:13]execute_script returns [11:07:13]free content buf [11:07:13]Sock 9.Close socket [11:07:13]Sock 9.Thread stoped [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:29]accept exits with 7 [11:20:29]New connection [11:20:29]New thread 3066645860 created [11:20:29]Thread 3066789220 joined [11:20:29]Waiting for new connection... [11:20:29] Sock 7.Parse request [11:20:29]Sock 7.Check first char [11:20:29]Sock 7.First char is OK [11:20:29]request: POST /json_proto HTTP/1.0 [11:20:29]Method: POST [11:20:29]URL: /json_proto [11:20:29]Method is POST - this is cgi request [11:20:29]url: /json_proto [11:20:29]query_string will be loaded in cgi processing [11:20:29]execute_cgi json_proto POST (null) [11:20:29]execute_cgi path=json_proto method=POST [11:20:29]POST find Content-Length [11:20:29]Host: 172.17.49.196:8080 [11:20:29]Content-Length: 749 [11:20:29]Content-Type: application/json [11:20:29] [11:20:29]POST finish read [11:20:29]Found Content-Length = 749 [11:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164470", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:29]execute_script... [11:20: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)164470", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:29]POST & json_proto [11:20:29]process_json_proto [11:20:29]json parsed OK: [11:20:29]protocol is kg_v1.0 [11:20:29]action value=close_receipt [11:20:29]process_action close_receipt [11:20:29]cmd_close_receipt [11:20:29]MH_GetDate [11:20:29]Write to MH i2c: F0 00 00 0C 05 00 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: F0 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: F0 09 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: F0 09 00 0C 05 00 FE 7E 1B 67 BD 3B 11 67 77 [11:20:29]GetLastDocTimeStamp 1729854431 [11:20:29]current date 1729855230 [11:20:29]FM_GetShiftState [11:20:29]SAM_PROTO_GetShiftState [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 13 01 00 [11:20:29]Write to MH i2c: E2 08 00 0D 05 80 13 01 00 00 00 00 00 8F [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 0E 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 0E 00 0D 05 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 87 [11:20:29]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:20:29]wFMCommunicate OK [11:20:29]SAM_PROTO_GetShiftState done [11:20:29]FM_GetShiftState done [11:20:29]opened in 1729815177 [11:20:29]opened+sec_in_day 1729901577 [11:20:29]quantity*price = 15900 [11:20:29]sum+1 = 15901 [11:20:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 60 25.10.2024 11:20 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50560 ФПД: 177798366216664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112030&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50560&fm=177798366216664&tin=02508201610067®Number=0000000000097022&sum=15900 0 [11:20:30]StoreToDocumentArchive [11:20:30]shift 493 fd 50560 [11:20:30]save to /storage/0493/doc_00050560 [11:20:30]save last doc name /storage/0493/doc_00050560 to /storage/kkm_last_doc_name [11:20:30]save OK [11:20:30]Clear old archive folders... [11:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:20:30]tlvbuf is 01E39AD0 [11:20:30]SAM_PROTO_ClearQueue [11:20:30]wFMCommunicate request_size=4 [11:20:30]MH_SAM_APDU [11:20:30]CAPDU: 80 09 00 00 [11:20:30]Write to MH i2c: E2 08 00 1A 05 80 09 00 00 00 00 00 00 91 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:30]Read from MH i2c: E2 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 03 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [11:20:30]RAPDU: 90 00 [11:20:30]wFMCommunicate OK [11:20:30]SAM_PROTO_ClearQueue done [11:20:30]KKMCreateOFDPacket [11:20:30]OFDProtocolAddRootSTLVToBuf [11:20:30]FM_MakeSignedData [11:20:30]FM_MakeSignedData [11:20:30]SAM_PROTO_SignData [11:20:30]wFMCommunicate request_size=4 [11:20:30]MH_SAM_APDU [11:20:30]CAPDU: 80 0D 01 02 [11:20:30]Write to MH i2c: E2 08 00 1B 05 80 0D 01 02 00 00 00 00 99 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:30]Read from MH i2c: E2 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 03 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [11:20:30]RAPDU: 90 00 [11:20:30]wFMCommunicate OK [11:20:30]wFMCommunicate request_size=255 [11:20:30]MH_SAM_APDU [11:20:30]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FE 7E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [11:20:30]Write to MH i2c: E2 02 01 1C 05 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FE 7E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 E0 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:30]Read from MH i2c: E2 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 03 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [11:20:30]RAPDU: 90 00 [11:20:30]wFMCommunicate OK [11:20:30]wFMCommunicate request_size=33 [11:20:30]MH_SAM_APDU [11:20:30]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C5 00 00 35 04 06 00 A1 B4 E8 75 C1 D8 [11:20:30]Write to MH i2c: E2 24 00 1D 05 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C5 00 00 35 04 06 00 A1 B4 E8 75 C1 D8 00 00 AF [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:30]Read from MH i2c: E2 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 03 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [11:20:30]RAPDU: 90 00 [11:20:30]wFMCommunicate OK [11:20:30]wFMCommunicate request_size=4 [11:20:30]MH_SAM_APDU [11:20:30]CAPDU: 80 0D 03 02 [11:20:30]Write to MH i2c: E2 08 00 1E 05 80 0D 03 02 00 00 00 00 9E [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:30]Read from MH i2c: E2 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 0B 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 0B 00 1E 05 00 5D FE 7A 0B 5F E2 D2 3F 90 00 D1 [11:20:30]RAPDU: 5D FE 7A 0B 5F E2 D2 3F 90 00 [11:20:30]wFMCommunicate OK [11:20:30]SAM_PROTO_SignData done [11:20:30]FM_MakeSignedData done [11:20:30]CreateOFDProtocolMessage [11:20:30]wFMCommunicate request_size=4 [11:20:30]MH_SAM_APDU [11:20:30]CAPDU: 80 11 00 00 [11:20:30]Write to MH i2c: E2 08 00 1F 05 80 11 00 00 00 00 00 00 9E [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:30]Read from MH i2c: E2 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 17 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 17 00 1F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E5 [11:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:20:30]wFMCommunicate OK [11:20:30]CreateOFDProtocolMessage done [11:20:30]OFDSenderStorePacket 50560 [11:20:30]StoreOFDPacket docnum=50560 [11:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 6C 51 1E 01 A5 AA 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FE 7E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C5 00 00 35 04 06 00 A1 B4 E8 75 C1 D8 5D FE 7A 0B 5F E2 D2 3F [11:20:30]CheckFolder [11:20:30]dirname=/storage/ofd_packets [11:20:30]CheckFolder done [11:20:30]ProducePacketName [11:20:30]name=ofd_packets/00050560 [11:20:30]NVStorageSaveData ofd_packets/00050560 [11:20:30]File name is /storage/ofd_packets/00050560 [11:20:30]Write 324 bytes [11:20:30]NVStorageSaveData done [11:20:30]OFDSenderStorePacket done [11:20:30]KKMCreateOFDPacket done [11:20:30]NVStorageSaveData kkm_last_timestamp [11:20:30]File name is /storage/kkm_last_timestamp [11:20:30]Write 4 bytes [11:20:30]NVStorageSaveData done [11:20:30]ExternCall_PrintAddStr [11:20:30]wPrintStart [11:20:30]Write to MH i2c: 01 00 00 20 05 25 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 20 05 00 00 00 00 00 FF 0F 3A [11:20:30]RasterBufferAndPrint [11:20:30]line Счет N : (3)164470 [11:20:30]line ИНН: 02508201610067 [11:20:30]line Контрольно-Кассовый Чек [11:20:30]line ПРОДАЖА [11:20:30]line Товар: 4640030091645 [11:20:30]line Сигареты ESSE Exchange M [11:20:30]line 1.000 * 159.00 [11:20:30]line = 159.00 [11:20:30]line НДС 12% НСП 1% [11:20:30]line > о реализуемом товаре [11:20:30]line ИТОГО: 159.00 [11:20:30]line НСП 1% : 1.41 [11:20:30]line НДС 12% : 16.88 [11:20:30]line Наличными: 0.00 [11:20:30]line Безнал.: 159.00 [11:20:30]line Место: АЗС № 80 "Партнер Нефть" [11:20:30]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:20:30]line СНО: Общий режим [11:20:30]line Чек 60 25.10.2024 11:20 [11:20:30]line Смена: 493 ФФД: 1.0 [11:20:30]line ЗНМ: 0300000090 [11:20:30]line РНМ: 0000000000097022 [11:20:30]line Версия ККМ: 001 [11:20:30]line Платежная система: Mbank [11:20:30]line ФМ: 0000000000875000 [11:20:30]line ФД: 50560 [11:20:30]line ФПД: 177798366216664 [11:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112030&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50560&fm=177798366216664&tin=02508201610067®Number=0000000000097022&sum=15900 [11:20:31]OFD Sender: Processing packet 50560 [packets to send 7, broken 6] [11:20:31]ProducePacketName [11:20:31]name=ofd_packets/00050560 [11:20:31]OFD Sender: To server: pG, [11:20:31]CommunicateWithHost lk.salyk.kg:30040 [11:20:31]ConnectInit lk.salyk.kg [11:20:31]line 0 [11:20:31]written 0, free lines is 4095 [11:20:31]Connected sock=10 [11:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 6C 51 1E 01 A5 AA 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FE 7E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C5 00 00 35 04 06 00 A1 B4 E8 75 C1 D8 5D FE 7A 0B 5F E2 D2 3F [11:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E3 01 47 00 91 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 80 C5 00 00 F4 03 04 00 8F 2A 1B 67 B6 04 01 00 00 A5 7B 69 C3 7D 98 DD 49 [11:20:31]CommunicateWithHost err = 0 [11:20:31]CheckOFDResponse [11:20:31]1017 (14) - 77093643461234 [11:20:31]1041 (16) - 0000000000875000 [11:20:31]1040 (4) - 50560 [11:20:31]1012 (4) - 25.10.2024 05:20 [11:20:31]1206 (1) - 0 [11:20:31]OFD Sender: Remove packet 50560 [11:20:31]ProducePacketName [11:20:31]name=ofd_packets/00050560 [11:20:31]NVStorageDeleteData [11:20:31]Write to MH i2c: 01 00 00 49 05 4E [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: 01 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: 01 07 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 11 0D 73 [11:20:31]RasterBufferAndPrint [11:20:31]line [11:20:31]line [11:20:31]line [11:20:31]line [11:20:31]line [11:20:31]written 0, free lines is 3352 [11:20:31]process_action close_receipt done [11:20:31]requested_data is exist [11:20:31]produce_requested_data [11:20:31]requested_item fm.sn is exist - process it [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 11 00 00 [11:20:31]Write to MH i2c: E2 08 00 50 05 80 11 00 00 00 00 00 00 CF [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 17 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 17 00 50 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 16 [11:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:20:31]wFMCommunicate OK [11:20:31]requested_item fd.num is exist - process it [11:20:31]SAM_PROTO_GetFieldsCounters [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 13 00 00 [11:20:31]Write to MH i2c: E2 08 00 51 05 80 13 00 00 00 00 00 00 D2 [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 62 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 62 00 51 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 80 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [11:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 80 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:31]wFMCommunicate OK [11:20:31]SAM_PROTO_GetFieldsCounters done [11:20:31]requested_item shift.num is exist - process it [11:20:31]requested_item shift.opened is exist - process it [11:20:31]req_shift_opened [11:20:31]FM_GetShiftState [11:20:31]SAM_PROTO_GetShiftState [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 13 01 00 [11:20:31]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 0E 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 CC [11:20:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:20:31]wFMCommunicate OK [11:20:31]SAM_PROTO_GetShiftState done [11:20:31]FM_GetShiftState done [11:20:31]req_shift_opened done [11:20:31]requested_item shift.open_date is exist - process it [11:20:31]req_shift_open_date [11:20:31]req_shift_open_date done [11:20:31]produce_requested_data done [11:20:31]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50560,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [11:20:31]process_action_free close_receipt [11:20:31]json_value_free [11:20:31]json_value_free done [11:20:31]process_json_proto returns [11:20:31]Send response to host [11:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50560,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [11:20:31]free response buf [11:20:31]execute_script done [11:20:31]execute_script returns [11:20:31]free content buf [11:20:31]Sock 7.Close socket [11:20:31]Sock 7.Thread stoped [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:43]accept exits with 9 [11:23:43]New connection [11:23:43]New thread 3066789220 created [11:23:43]Thread 3066645860 joined [11:23:43]Waiting for new connection... [11:23:43] Sock 9.Parse request [11:23:43]Sock 9.Check first char [11:23:43]Sock 9.First char is OK [11:23:43]request: POST /json_proto HTTP/1.0 [11:23:43]Method: POST [11:23:43]URL: /json_proto [11:23:43]Method is POST - this is cgi request [11:23:43]url: /json_proto [11:23:43]query_string will be loaded in cgi processing [11:23:43]execute_cgi json_proto POST (null) [11:23:43]execute_cgi path=json_proto method=POST [11:23:43]POST find Content-Length [11:23:43]Host: 172.17.49.196:8080 [11:23:43]Content-Length: 684 [11:23:43]Content-Type: application/json [11:23:43] [11:23:43]POST finish read [11:23:43]Found Content-Length = 684 [11:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:43]execute_script... [11:23: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)15442410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:43]POST & json_proto [11:23:43]process_json_proto [11:23:43]json parsed OK: [11:23:43]protocol is kg_v1.0 [11:23:43]action value=close_receipt [11:23:43]process_action close_receipt [11:23:43]cmd_close_receipt [11:23:43]MH_GetDate [11:23:43]Write to MH i2c: F0 00 00 53 05 47 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: F0 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: F0 09 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: F0 09 00 53 05 00 C0 7F 1B 67 BD 3B 11 67 81 [11:23:43]GetLastDocTimeStamp 1729855230 [11:23:43]current date 1729855424 [11:23:43]FM_GetShiftState [11:23:43]SAM_PROTO_GetShiftState [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 13 01 00 [11:23:43]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0E 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 CE [11:23:43]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:23:43]wFMCommunicate OK [11:23:43]SAM_PROTO_GetShiftState done [11:23:43]FM_GetShiftState done [11:23:43]opened in 1729815177 [11:23:43]opened+sec_in_day 1729901577 [11:23:43]quantity*price = 300064 [11:23:43]sum+1 = 300066 [11:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 61 25.10.2024 11:23 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50561 ФПД: 3285254622227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112344&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50561&fm=3285254622227&tin=02508201610067®Number=0000000000097022&sum=300000 [11:23:44]StoreToDocumentArchive [11:23:44]shift 493 fd 50561 [11:23:44]save to /storage/0493/doc_00050561 [11:23:44]save last doc name /storage/0493/doc_00050561 to /storage/kkm_last_doc_name [11:23:44]save OK [11:23:44]Clear old archive folders... [11:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:44]tlvbuf is 01E69140 [11:23:44]SAM_PROTO_ClearQueue [11:23:44]wFMCommunicate request_size=4 [11:23:44]MH_SAM_APDU [11:23:44]CAPDU: 80 09 00 00 [11:23:44]Write to MH i2c: E2 08 00 61 05 80 09 00 00 00 00 00 00 D8 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:44]Read from MH i2c: E2 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 03 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [11:23:44]RAPDU: 90 00 [11:23:44]wFMCommunicate OK [11:23:44]SAM_PROTO_ClearQueue done [11:23:44]KKMCreateOFDPacket [11:23:44]OFDProtocolAddRootSTLVToBuf [11:23:44]FM_MakeSignedData [11:23:44]FM_MakeSignedData [11:23:44]SAM_PROTO_SignData [11:23:44]wFMCommunicate request_size=4 [11:23:44]MH_SAM_APDU [11:23:44]CAPDU: 80 0D 01 02 [11:23:44]Write to MH i2c: E2 08 00 62 05 80 0D 01 02 00 00 00 00 E0 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:44]Read from MH i2c: E2 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 03 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [11:23:44]RAPDU: 90 00 [11:23:44]wFMCommunicate OK [11:23:44]wFMCommunicate request_size=255 [11:23:44]MH_SAM_APDU [11:23:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 C0 7F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C5 00 00 35 04 06 00 02 [11:23:44]Write to MH i2c: E2 02 01 63 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 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 C0 7F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C5 00 00 35 04 06 00 02 00 00 C1 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [11:23:45]RAPDU: 90 00 [11:23:45]wFMCommunicate OK [11:23:45]wFMCommunicate request_size=10 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 0D 02 02 05 FC E8 6F 4C 13 [11:23:45]Write to MH i2c: E2 0D 00 64 05 80 0D 02 02 05 00 FC E8 6F 4C 13 00 00 9F [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [11:23:45]RAPDU: 90 00 [11:23:45]wFMCommunicate OK [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 0D 03 02 [11:23:45]Write to MH i2c: E2 08 00 65 05 80 0D 03 02 00 00 00 00 E5 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0B 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0B 00 65 05 00 67 A4 33 66 85 74 50 00 90 00 D3 [11:23:45]RAPDU: 67 A4 33 66 85 74 50 00 90 00 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_SignData done [11:23:45]FM_MakeSignedData done [11:23:45]CreateOFDProtocolMessage [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 11 00 00 [11:23:45]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 17 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2C [11:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:23:45]wFMCommunicate OK [11:23:45]CreateOFDProtocolMessage done [11:23:45]OFDSenderStorePacket 50561 [11:23:45]StoreOFDPacket docnum=50561 [11:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 5A 6A 07 01 7A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 C0 7F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C5 00 00 35 04 06 00 02 FC E8 6F 4C 13 67 A4 33 66 85 74 50 00 [11:23:45]CheckFolder [11:23:45]dirname=/storage/ofd_packets [11:23:45]CheckFolder done [11:23:45]ProducePacketName [11:23:45]name=ofd_packets/00050561 [11:23:45]NVStorageSaveData ofd_packets/00050561 [11:23:45]File name is /storage/ofd_packets/00050561 [11:23:45]Write 301 bytes [11:23:45]NVStorageSaveData done [11:23:45]OFDSenderStorePacket done [11:23:45]KKMCreateOFDPacket done [11:23:45]NVStorageSaveData kkm_last_timestamp [11:23:45]File name is /storage/kkm_last_timestamp [11:23:45]Write 4 bytes [11:23:45]NVStorageSaveData done [11:23:45]ExternCall_PrintAddStr [11:23:45]wPrintStart [11:23:45]Write to MH i2c: 01 00 00 67 05 6C [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: 01 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: 01 07 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 FF 0F 81 [11:23:45]RasterBufferAndPrint [11:23:45]line Счет N : (1)15442410 [11:23:45]line ИНН: 02508201610067 [11:23:45]line Контрольно-Кассовый Чек [11:23:45]line ПРОДАЖА [11:23:45]line ТРК (МРК, ГНК) : 22 [11:23:45]line Товар: 2710124500 [11:23:45]line Аи-95-К-3 [11:23:45]line 40.440 * 74.20 [11:23:45]line = 3000.65 [11:23:45]line НДС 12% НСП 1% [11:23:45]line > о реализуемом товаре [11:23:45]line ОКРУГЛЕНИЕ: -0.65 [11:23:45]line ИТОГО: 3000.00 [11:23:45]line Внесено: 3000.00 [11:23:45]line СДАЧА: 0.00 [11:23:45]line НСП 1% : 26.55 [11:23:45]line НДС 12% : 318.65 [11:23:45]line Наличными: 3000.00 [11:23:45]line Безнал.: 0.00 [11:23:45]line Место: АЗС № 80 "Партнер Нефть" [11:23:45]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:23:45]line СНО: Общий режим [11:23:45]line Чек 61 25.10.2024 11:23 [11:23:45]line Смена: 493 ФФД: 1.0 [11:23:45]line ЗНМ: 0300000090 [11:23:45]line РНМ: 0000000000097022 [11:23:45]line Версия ККМ: 001 [11:23:45]line ФМ: 0000000000875000 [11:23:45]line ФД: 50561 [11:23:45]line ФПД: 3285254622227 [11:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112344&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50561&fm=3285254622227&tin=02508201610067®Number=0000000000097022&sum=300000 [11:23:45]OFD Sender: Processing packet 50561 [packets to send 7, broken 6] [11:23:45]ProducePacketName [11:23:45]name=ofd_packets/00050561 [11:23:45]OFD Sender: To server: pG, [11:23:45]CommunicateWithHost lk.salyk.kg:30040 [11:23:45]ConnectInit lk.salyk.kg [11:23:45]written 0, free lines is 4095 [11:23:45]Connected sock=10 [11:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 5A 6A 07 01 7A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 C0 7F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C5 00 00 35 04 06 00 02 FC E8 6F 4C 13 67 A4 33 66 85 74 50 00 [11:23:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 05 33 47 00 86 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 81 C5 00 00 F4 03 04 00 51 2B 1B 67 B6 04 01 00 00 B1 B4 97 A1 34 57 DD 12 [11:23:45]CommunicateWithHost err = 0 [11:23:45]CheckOFDResponse [11:23:45]1017 (14) - 77093643461234 [11:23:45]1041 (16) - 0000000000875000 [11:23:45]1040 (4) - 50561 [11:23:45]1012 (4) - 25.10.2024 05:23 [11:23:45]1206 (1) - 0 [11:23:45]OFD Sender: Remove packet 50561 [11:23:45]ProducePacketName [11:23:45]name=ofd_packets/00050561 [11:23:45]NVStorageDeleteData [11:23:46]Write to MH i2c: 01 00 00 92 05 97 [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 07 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 F9 0C A3 [11:23:46]RasterBufferAndPrint [11:23:46]line [11:23:46]line [11:23:46]line [11:23:46]line [11:23:46]line [11:23:46]written 0, free lines is 3328 [11:23:46]process_action close_receipt done [11:23:46]requested_data is exist [11:23:46]produce_requested_data [11:23:46]requested_item fm.sn is exist - process it [11:23:46]wFMCommunicate request_size=4 [11:23:46]MH_SAM_APDU [11:23:46]CAPDU: 80 11 00 00 [11:23:46]Write to MH i2c: E2 08 00 99 05 80 11 00 00 00 00 00 00 18 [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:46]Read from MH i2c: E2 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 17 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 17 00 99 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 5F [11:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:23:46]wFMCommunicate OK [11:23:46]requested_item fd.num is exist - process it [11:23:46]SAM_PROTO_GetFieldsCounters [11:23:46]wFMCommunicate request_size=4 [11:23:46]MH_SAM_APDU [11:23:46]CAPDU: 80 13 00 00 [11:23:46]Write to MH i2c: E2 08 00 9A 05 80 13 00 00 00 00 00 00 1B [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:46]Read from MH i2c: E2 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 62 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 62 00 9A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 81 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11:23:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 81 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:46]wFMCommunicate OK [11:23:46]SAM_PROTO_GetFieldsCounters done [11:23:46]requested_item shift.num is exist - process it [11:23:46]requested_item shift.opened is exist - process it [11:23:46]req_shift_opened [11:23:46]FM_GetShiftState [11:23:46]SAM_PROTO_GetShiftState [11:23:46]wFMCommunicate request_size=4 [11:23:46]MH_SAM_APDU [11:23:46]CAPDU: 80 13 01 00 [11:23:46]Write to MH i2c: E2 08 00 9B 05 80 13 01 00 00 00 00 00 1D [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:46]Read from MH i2c: E2 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 0E 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 0E 00 9B 05 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 15 [11:23:46]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:23:46]wFMCommunicate OK [11:23:46]SAM_PROTO_GetShiftState done [11:23:46]FM_GetShiftState done [11:23:46]req_shift_opened done [11:23:46]requested_item shift.open_date is exist - process it [11:23:46]req_shift_open_date [11:23:46]req_shift_open_date done [11:23:46]produce_requested_data done [11:23:46]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50561,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [11:23:46]process_action_free close_receipt [11:23:46]json_value_free [11:23:46]json_value_free done [11:23:46]process_json_proto returns [11:23:46]Send response to host [11:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50561,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [11:23:46]free response buf [11:23:46]execute_script done [11:23:46]execute_script returns [11:23:46]free content buf [11:23:46]Sock 9.Close socket [11:23:46]Sock 9.Thread stoped [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:09]accept exits with 7 [11:24:09]New connection [11:24:09]New thread 3066645860 created [11:24:09]Thread 3066789220 joined [11:24:09]Waiting for new connection... [11:24:09] Sock 7.Parse request [11:24:09]Sock 7.Check first char [11:24:09]Sock 7.First char is OK [11:24:09]request: POST /json_proto HTTP/1.0 [11:24:09]Method: POST [11:24:09]URL: /json_proto [11:24:09]Method is POST - this is cgi request [11:24:09]url: /json_proto [11:24:09]query_string will be loaded in cgi processing [11:24:09]execute_cgi json_proto POST (null) [11:24:09]execute_cgi path=json_proto method=POST [11:24:09]POST find Content-Length [11:24:09]Host: 172.17.49.196:8080 [11:24:09]Content-Length: 773 [11:24:09]Content-Type: application/json [11:24:09] [11:24:09]POST finish read [11:24:09]Found Content-Length = 773 [11:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164471", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:09]execute_script... [11:24:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164471", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:09]POST & json_proto [11:24:09]process_json_proto [11:24:09]json parsed OK: [11:24:09]protocol is kg_v1.0 [11:24:09]action value=close_receipt [11:24:09]process_action close_receipt [11:24:09]cmd_close_receipt [11:24:09]MH_GetDate [11:24:09]Write to MH i2c: F0 00 00 9C 05 90 [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: F0 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: F0 09 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: F0 09 00 9C 05 00 DA 7F 1B 67 BD 3B 11 67 E4 [11:24:09]GetLastDocTimeStamp 1729855424 [11:24:09]current date 1729855450 [11:24:09]FM_GetShiftState [11:24:09]SAM_PROTO_GetShiftState [11:24:09]wFMCommunicate request_size=4 [11:24:09]MH_SAM_APDU [11:24:09]CAPDU: 80 13 01 00 [11:24:09]Write to MH i2c: E2 08 00 9D 05 80 13 01 00 00 00 00 00 1F [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:09]Read from MH i2c: E2 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 0E 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 0E 00 9D 05 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 17 [11:24:09]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:24:09]wFMCommunicate OK [11:24:09]SAM_PROTO_GetShiftState done [11:24:09]FM_GetShiftState done [11:24:09]opened in 1729815177 [11:24:09]opened+sec_in_day 1729901577 [11:24:09]quantity*price = 13000 [11:24:09]sum+1 = 13001 [11:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 62 25.10.2024 11:24 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50562 ФПД: 85761051777445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112410&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50562&fm=85761051777445&tin=02508201610067®Number=0000000000097022&sum=13000 0 [11:24:10]StoreToDocumentArchive [11:24:10]shift 493 fd 50562 [11:24:10]save to /storage/0493/doc_00050562 [11:24:10]save last doc name /storage/0493/doc_00050562 to /storage/kkm_last_doc_name [11:24:10]save OK [11:24:10]Clear old archive folders... [11:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:24:10]tlvbuf is 01E55FC0 [11:24:10]SAM_PROTO_ClearQueue [11:24:10]wFMCommunicate request_size=4 [11:24:10]MH_SAM_APDU [11:24:10]CAPDU: 80 09 00 00 [11:24:10]Write to MH i2c: E2 08 00 AA 05 80 09 00 00 00 00 00 00 21 [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:10]Read from MH i2c: E2 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 03 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [11:24:10]RAPDU: 90 00 [11:24:10]wFMCommunicate OK [11:24:10]SAM_PROTO_ClearQueue done [11:24:10]KKMCreateOFDPacket [11:24:10]OFDProtocolAddRootSTLVToBuf [11:24:10]FM_MakeSignedData [11:24:10]FM_MakeSignedData [11:24:10]SAM_PROTO_SignData [11:24:10]wFMCommunicate request_size=4 [11:24:10]MH_SAM_APDU [11:24:10]CAPDU: 80 0D 01 02 [11:24:10]Write to MH i2c: E2 08 00 AB 05 80 0D 01 02 00 00 00 00 29 [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:10]Read from MH i2c: E2 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 03 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [11:24:10]RAPDU: 90 00 [11:24:10]wFMCommunicate OK [11:24:10]wFMCommunicate request_size=255 [11:24:10]MH_SAM_APDU [11:24:10]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 3E 00 00 00 F4 03 04 00 DA 7F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [11:24:10]Write to MH i2c: E2 02 01 AC 05 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 3E 00 00 00 F4 03 04 00 DA 7F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 3A [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:10]Read from MH i2c: E2 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 03 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [11:24:10]RAPDU: 90 00 [11:24:10]wFMCommunicate OK [11:24:10]wFMCommunicate request_size=41 [11:24:10]MH_SAM_APDU [11:24:10]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 82 C5 00 00 35 04 06 00 4D FF CD 06 D9 A5 [11:24:10]Write to MH i2c: E2 2C 00 AD 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 82 C5 00 00 35 04 06 00 4D FF CD 06 D9 A5 00 00 D3 [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:10]Read from MH i2c: E2 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 03 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [11:24:10]RAPDU: 90 00 [11:24:10]wFMCommunicate OK [11:24:10]wFMCommunicate request_size=4 [11:24:10]MH_SAM_APDU [11:24:10]CAPDU: 80 0D 03 02 [11:24:10]Write to MH i2c: E2 08 00 AE 05 80 0D 03 02 00 00 00 00 2E [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:10]Read from MH i2c: E2 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 0B 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 0B 00 AE 05 00 BE 06 4B EE 79 B8 EF FF 90 00 4B [11:24:10]RAPDU: BE 06 4B EE 79 B8 EF FF 90 00 [11:24:10]wFMCommunicate OK [11:24:10]SAM_PROTO_SignData done [11:24:10]FM_MakeSignedData done [11:24:10]CreateOFDProtocolMessage [11:24:10]wFMCommunicate request_size=4 [11:24:10]MH_SAM_APDU [11:24:10]CAPDU: 80 11 00 00 [11:24:10]Write to MH i2c: E2 08 00 AF 05 80 11 00 00 00 00 00 00 2E [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:10]Read from MH i2c: E2 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 17 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 17 00 AF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 75 [11:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:24:10]wFMCommunicate OK [11:24:10]CreateOFDProtocolMessage done [11:24:10]OFDSenderStorePacket 50562 [11:24:10]StoreOFDPacket docnum=50562 [11:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 0B 92 26 01 B3 AE 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 3E 00 00 00 F4 03 04 00 DA 7F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 82 C5 00 00 35 04 06 00 4D FF CD 06 D9 A5 BE 06 4B EE 79 B8 EF FF [11:24:10]CheckFolder [11:24:10]dirname=/storage/ofd_packets [11:24:10]CheckFolder done [11:24:10]ProducePacketName [11:24:10]name=ofd_packets/00050562 [11:24:10]NVStorageSaveData ofd_packets/00050562 [11:24:10]File name is /storage/ofd_packets/00050562 [11:24:10]Write 332 bytes [11:24:10]NVStorageSaveData done [11:24:10]OFDSenderStorePacket done [11:24:10]KKMCreateOFDPacket done [11:24:10]NVStorageSaveData kkm_last_timestamp [11:24:10]File name is /storage/kkm_last_timestamp [11:24:10]Write 4 bytes [11:24:10]NVStorageSaveData done [11:24:10]ExternCall_PrintAddStr [11:24:10]wPrintStart [11:24:10]Write to MH i2c: 01 00 00 B0 05 B5 [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: 01 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: 01 07 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 FF 0F CA [11:24:10]RasterBufferAndPrint [11:24:10]line Счет N : (3)164471 [11:24:10]line ИНН: 02508201610067 [11:24:10]line Контрольно-Кассовый Чек [11:24:10]line ПРОДАЖА [11:24:10]line Товар: 2000036220012 [11:24:10]line Кофе Капучино XL(GABB TRADE) [11:24:10]line 1.000 * 130.00 [11:24:10]line = 130.00 [11:24:10]line НДС 12% НСП 1% [11:24:10]line > о реализуемом товаре [11:24:10]line ИТОГО: 130.00 [11:24:10]line НСП 1% : 1.15 [11:24:10]line НДС 12% : 13.80 [11:24:10]line Наличными: 0.00 [11:24:10]line Безнал.: 130.00 [11:24:10]line Место: АЗС № 80 "Партнер Нефть" [11:24:10]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:24:10]line СНО: Общий режим [11:24:10]line Чек 62 25.10.2024 11:24 [11:24:10]line Смена: 493 ФФД: 1.0 [11:24:10]line ЗНМ: 0300000090 [11:24:10]line РНМ: 0000000000097022 [11:24:10]line Версия ККМ: 001 [11:24:10]line Платежная система: Mbank [11:24:10]line ФМ: 0000000000875000 [11:24:10]line ФД: 50562 [11:24:10]line ФПД: 85761051777445 [11:24:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112410&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50562&fm=85761051777445&tin=02508201610067®Number=0000000000097022&sum=13000 [11:24:10]line 0 [11:24:10]OFD Sender: Processing packet 50562 [packets to send 7, broken 6] [11:24:10]ProducePacketName [11:24:10]name=ofd_packets/00050562 [11:24:11]OFD Sender: To server: pG, [11:24:11]CommunicateWithHost lk.salyk.kg:30040 [11:24:11]ConnectInit lk.salyk.kg [11:24:11]written 0, free lines is 4095 [11:24:11]Connected sock=10 [11:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 0B 92 26 01 B3 AE 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 3E 00 00 00 F4 03 04 00 DA 7F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 82 C5 00 00 35 04 06 00 4D FF CD 06 D9 A5 BE 06 4B EE 79 B8 EF FF [11:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 72 30 47 00 13 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 82 C5 00 00 F4 03 04 00 6B 2B 1B 67 B6 04 01 00 00 99 48 9F 6E 4E E2 91 3C [11:24:11]CommunicateWithHost err = 0 [11:24:11]CheckOFDResponse [11:24:11]1017 (14) - 77093643461234 [11:24:11]1041 (16) - 0000000000875000 [11:24:11]1040 (4) - 50562 [11:24:11]1012 (4) - 25.10.2024 05:23 [11:24:11]1206 (1) - 0 [11:24:11]OFD Sender: Remove packet 50562 [11:24:11]ProducePacketName [11:24:11]name=ofd_packets/00050562 [11:24:11]NVStorageDeleteData [11:24:11]Write to MH i2c: 01 00 00 DA 05 DF [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: 01 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: 01 07 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: 01 07 00 DA 05 00 00 00 00 00 06 0D F9 [11:24:11]RasterBufferAndPrint [11:24:11]line [11:24:11]line [11:24:11]line [11:24:11]line [11:24:11]line [11:24:11]written 0, free lines is 3340 [11:24:11]process_action close_receipt done [11:24:11]requested_data is exist [11:24:11]produce_requested_data [11:24:11]requested_item fm.sn is exist - process it [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 11 00 00 [11:24:11]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 17 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A7 [11:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:24:11]wFMCommunicate OK [11:24:11]requested_item fd.num is exist - process it [11:24:11]SAM_PROTO_GetFieldsCounters [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 13 00 00 [11:24:11]Write to MH i2c: E2 08 00 E2 05 80 13 00 00 00 00 00 00 63 [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 62 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 62 00 E2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 82 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:24:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 82 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:11]wFMCommunicate OK [11:24:11]SAM_PROTO_GetFieldsCounters done [11:24:11]requested_item shift.num is exist - process it [11:24:11]requested_item shift.opened is exist - process it [11:24:11]req_shift_opened [11:24:11]FM_GetShiftState [11:24:11]SAM_PROTO_GetShiftState [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 13 01 00 [11:24:11]Write to MH i2c: E2 08 00 E3 05 80 13 01 00 00 00 00 00 65 [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 0E 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 0E 00 E3 05 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 5D [11:24:11]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:24:11]wFMCommunicate OK [11:24:11]SAM_PROTO_GetShiftState done [11:24:11]FM_GetShiftState done [11:24:11]req_shift_opened done [11:24:11]requested_item shift.open_date is exist - process it [11:24:11]req_shift_open_date [11:24:11]req_shift_open_date done [11:24:11]produce_requested_data done [11:24:11]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50562,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [11:24:11]process_action_free close_receipt [11:24:11]json_value_free [11:24:11]json_value_free done [11:24:11]process_json_proto returns [11:24:11]Send response to host [11:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50562,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [11:24:11]free response buf [11:24:11]execute_script done [11:24:11]execute_script returns [11:24:11]free content buf [11:24:11]Sock 7.Close socket [11:24:11]Sock 7.Thread stoped [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:37]OFD Sender: No OFD packet to send [11:25:42]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:14]accept exits with 9 [11:28:14]New connection [11:28:14]New thread 3066789220 created [11:28:14]Thread 3066645860 joined [11:28:14]Waiting for new connection... [11:28:14] Sock 9.Parse request [11:28:14]Sock 9.Check first char [11:28:14]Sock 9.First char is OK [11:28:14]request: POST /json_proto HTTP/1.0 [11:28:14]Method: POST [11:28:14]URL: /json_proto [11:28:14]Method is POST - this is cgi request [11:28:14]url: /json_proto [11:28:14]query_string will be loaded in cgi processing [11:28:14]execute_cgi json_proto POST (null) [11:28:14]execute_cgi path=json_proto method=POST [11:28:14]POST find Content-Length [11:28:14]Host: 172.17.49.196:8080 [11:28:14]Content-Length: 774 [11:28:14]Content-Type: application/json [11:28:14] [11:28:14]POST finish read [11:28:14]Found Content-Length = 774 [11:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:14]execute_script... [11:28:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:14]POST & json_proto [11:28:14]process_json_proto [11:28:14]json parsed OK: [11:28:14]protocol is kg_v1.0 [11:28:14]action value=close_receipt [11:28:14]process_action close_receipt [11:28:14]cmd_close_receipt [11:28:14]MH_GetDate [11:28:14]Write to MH i2c: F0 00 00 E4 05 D8 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: F0 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: F0 09 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: F0 09 00 E4 05 00 CF 80 1B 67 BD 3B 11 67 22 [11:28:14]GetLastDocTimeStamp 1729855450 [11:28:14]current date 1729855695 [11:28:14]FM_GetShiftState [11:28:14]SAM_PROTO_GetShiftState [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 13 01 00 [11:28:14]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0E 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 5F [11:28:14]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:28:14]wFMCommunicate OK [11:28:14]SAM_PROTO_GetShiftState done [11:28:14]FM_GetShiftState done [11:28:14]opened in 1729815177 [11:28:14]opened+sec_in_day 1729901577 [11:28:14]quantity*price = 60061 [11:28:14]sum+1 = 60063 [11:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.62 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 0.00 Безнал.: 600.62 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 63 25.10.2024 11:28 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50563 ФПД: 88131062717550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112815&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50563&fm=88131062717550&tin=02508201610067®Number=0000000000097022&sum=60062 [11:28:15]StoreToDocumentArchive [11:28:15]shift 493 fd 50563 [11:28:15]save to /storage/0493/doc_00050563 [11:28:15]save last doc name /storage/0493/doc_00050563 to /storage/kkm_last_doc_name [11:28:15]save OK [11:28:15]Clear old archive folders... [11:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:28:15]tlvbuf is 01E33530 [11:28:15]SAM_PROTO_ClearQueue [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 09 00 00 [11:28:15]Write to MH i2c: E2 08 00 F2 05 80 09 00 00 00 00 00 00 69 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [11:28:15]RAPDU: 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_ClearQueue done [11:28:15]KKMCreateOFDPacket [11:28:15]OFDProtocolAddRootSTLVToBuf [11:28:15]FM_MakeSignedData [11:28:15]FM_MakeSignedData [11:28:15]SAM_PROTO_SignData [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 0D 01 02 [11:28:15]Write to MH i2c: E2 08 00 F3 05 80 0D 01 02 00 00 00 00 71 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [11:28:15]RAPDU: 90 00 [11:28:15]wFMCommunicate OK [11:28:15]wFMCommunicate request_size=255 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CF 80 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 83 C5 00 [11:28:15]Write to MH i2c: E2 02 01 F4 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CF 80 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 83 C5 00 00 00 AF [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [11:28:15]RAPDU: 90 00 [11:28:15]wFMCommunicate OK [11:28:15]wFMCommunicate request_size=16 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 50 27 9C AF DC 6E [11:28:15]Write to MH i2c: E2 13 00 F5 05 80 0D 02 02 0B 00 00 35 04 06 00 50 27 9C AF DC 6E 00 00 D5 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [11:28:15]RAPDU: 90 00 [11:28:15]wFMCommunicate OK [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 0D 03 02 [11:28:15]Write to MH i2c: E2 08 00 F6 05 80 0D 03 02 00 00 00 00 76 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0B 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0B 00 F6 05 00 75 93 AF 1B 56 30 9F F7 90 00 65 [11:28:15]RAPDU: 75 93 AF 1B 56 30 9F F7 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_SignData done [11:28:15]FM_MakeSignedData done [11:28:15]CreateOFDProtocolMessage [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 11 00 00 [11:28:15]Write to MH i2c: E2 08 00 F7 05 80 11 00 00 00 00 00 00 76 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 F7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BD [11:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:28:15]wFMCommunicate OK [11:28:15]CreateOFDProtocolMessage done [11:28:15]OFDSenderStorePacket 50563 [11:28:15]StoreOFDPacket docnum=50563 [11:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 12 DA 0D 01 EE C0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CF 80 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 83 C5 00 00 35 04 06 00 50 27 9C AF DC 6E 75 93 AF 1B 56 30 9F F7 [11:28:15]CheckFolder [11:28:15]dirname=/storage/ofd_packets [11:28:15]CheckFolder done [11:28:15]ProducePacketName [11:28:15]name=ofd_packets/00050563 [11:28:15]NVStorageSaveData ofd_packets/00050563 [11:28:15]File name is /storage/ofd_packets/00050563 [11:28:15]Write 307 bytes [11:28:15]NVStorageSaveData done [11:28:15]OFDSenderStorePacket done [11:28:15]KKMCreateOFDPacket done [11:28:15]NVStorageSaveData kkm_last_timestamp [11:28:15]File name is /storage/kkm_last_timestamp [11:28:15]Write 4 bytes [11:28:15]NVStorageSaveData done [11:28:15]ExternCall_PrintAddStr [11:28:15]wPrintStart [11:28:15]Write to MH i2c: 01 00 00 F8 05 FD [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 FF 0F 12 [11:28:15]RasterBufferAndPrint [11:28:15]line Счет N : (1)15442412 [11:28:15]line ИНН: 02508201610067 [11:28:15]line Контрольно-Кассовый Чек [11:28:15]line ПРОДАЖА [11:28:15]line ТРК (МРК, ГНК) : 11 [11:28:15]line Товар: 2710194210 [11:28:15]line D-ENERGY ДТ-К-2 [11:28:15]line 7.780 * 77.20 [11:28:15]line = 600.62 [11:28:15]line НДС 12% НСП 1% [11:28:15]line > о реализуемом товаре [11:28:15]line ИТОГО: 600.62 [11:28:15]line НСП 1% : 5.31 [11:28:15]line НДС 12% : 63.78 [11:28:15]line Наличными: 0.00 [11:28:15]line Безнал.: 600.62 [11:28:15]line Место: АЗС № 80 "Партнер Нефть" [11:28:15]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:28:15]line СНО: Общий режим [11:28:15]line Чек 63 25.10.2024 11:28 [11:28:15]line Смена: 493 ФФД: 1.0 [11:28:15]line ЗНМ: 0300000090 [11:28:15]line РНМ: 0000000000097022 [11:28:15]line Версия ККМ: 001 [11:28:15]line Платежная система: Mbank [11:28:15]line ФМ: 0000000000875000 [11:28:15]line ФД: 50563 [11:28:15]line ФПД: 88131062717550 [11:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T112815&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50563&fm=88131062717550&tin=02508201610067®Number=0000000000097022&sum=60062 [11:28:16]OFD Sender: Processing packet 50563 [packets to send 7, broken 6] [11:28:16]ProducePacketName [11:28:16]name=ofd_packets/00050563 [11:28:16]OFD Sender: To server: pG, [11:28:16]CommunicateWithHost lk.salyk.kg:30040 [11:28:16]ConnectInit lk.salyk.kg [11:28:16]written 0, free lines is 4095 [11:28:16]Connected sock=10 [11:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 12 DA 0D 01 EE C0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CF 80 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 83 C5 00 00 35 04 06 00 50 27 9C AF DC 6E 75 93 AF 1B 56 30 9F F7 [11:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D1 B7 47 00 C9 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 38 37 35 30 30 30 10 04 04 00 83 C5 00 00 F4 03 04 00 60 2C 1B 67 B6 04 01 00 00 6C AE 8D 7C D6 6A F9 51 [11:28:16]CommunicateWithHost err = 0 [11:28:16]CheckOFDResponse [11:28:16]1017 (14) - 77093643461234 [11:28:16]1041 (16) - 0000000000875000 [11:28:16]1040 (4) - 50563 [11:28:16]1012 (4) - 25.10.2024 05:28 [11:28:16]1206 (1) - 0 [11:28:16]OFD Sender: Remove packet 50563 [11:28:16]ProducePacketName [11:28:16]name=ofd_packets/00050563 [11:28:16]NVStorageDeleteData [11:28:16]Write to MH i2c: 01 00 00 21 06 27 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 21 06 00 00 00 00 00 20 0D 5B [11:28:16]RasterBufferAndPrint [11:28:16]line [11:28:16]line [11:28:16]line [11:28:16]line [11:28:16]line [11:28:16]written 0, free lines is 3366 [11:28:16]process_action close_receipt done [11:28:16]requested_data is exist [11:28:16]produce_requested_data [11:28:16]requested_item fm.sn is exist - process it [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 11 00 00 [11:28:16]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EF [11:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:28:16]wFMCommunicate OK [11:28:16]requested_item fd.num is exist - process it [11:28:16]SAM_PROTO_GetFieldsCounters [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 00 00 [11:28:16]Write to MH i2c: E2 08 00 29 06 80 13 00 00 00 00 00 00 AB [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 62 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 62 00 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 83 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [11:28:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 83 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetFieldsCounters done [11:28:16]requested_item shift.num is exist - process it [11:28:16]requested_item shift.opened is exist - process it [11:28:16]req_shift_opened [11:28:16]FM_GetShiftState [11:28:16]SAM_PROTO_GetShiftState [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 01 00 [11:28:16]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A5 [11:28:16]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetShiftState done [11:28:16]FM_GetShiftState done [11:28:16]req_shift_opened done [11:28:16]requested_item shift.open_date is exist - process it [11:28:16]req_shift_open_date [11:28:16]req_shift_open_date done [11:28:16]produce_requested_data done [11:28:16]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50563,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [11:28:16]process_action_free close_receipt [11:28:16]json_value_free [11:28:16]json_value_free done [11:28:16]process_json_proto returns [11:28:16]Send response to host [11:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50563,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [11:28:16]free response buf [11:28:16]execute_script done [11:28:16]execute_script returns [11:28:16]free content buf [11:28:16]Sock 9.Close socket [11:28:16]Sock 9.Thread stoped [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:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:43]accept exits with 7 [11:44:43]New connection [11:44:43]New thread 3066645860 created [11:44:43]Thread 3066789220 joined [11:44:43]Waiting for new connection... [11:44:43] Sock 7.Parse request [11:44:43]Sock 7.Check first char [11:44:43]Sock 7.First char is OK [11:44:43]request: POST /json_proto HTTP/1.0 [11:44:43]Method: POST [11:44:43]URL: /json_proto [11:44:43]Method is POST - this is cgi request [11:44:43]url: /json_proto [11:44:43]query_string will be loaded in cgi processing [11:44:43]execute_cgi json_proto POST (null) [11:44:43]execute_cgi path=json_proto method=POST [11:44:43]POST find Content-Length [11:44:43]Host: 172.17.49.196:8080 [11:44:43]Content-Length: 902 [11:44:43]Content-Type: application/json [11:44:43] [11:44:43]POST finish read [11:44:43]Found Content-Length = 902 [11:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164472", "tax_sys" : 0, "items" : [ { "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.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" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 166.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:43]execute_script... [11:44: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)164472", "tax_sys" : 0, "items" : [ { "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.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" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 166.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:43]POST & json_proto [11:44:43]process_json_proto [11:44:43]json parsed OK: [11:44:43]protocol is kg_v1.0 [11:44:43]action value=close_receipt [11:44:43]process_action close_receipt [11:44:43]cmd_close_receipt [11:44:43]MH_GetDate [11:44:43]Write to MH i2c: F0 00 00 2B 06 20 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: F0 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: F0 09 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: F0 09 00 2B 06 00 AC 84 1B 67 BD 3B 11 67 4B [11:44:43]GetLastDocTimeStamp 1729855695 [11:44:43]current date 1729856684 [11:44:43]FM_GetShiftState [11:44:43]SAM_PROTO_GetShiftState [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 13 01 00 [11:44:43]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 0E 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A7 [11:44:43]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:44:43]wFMCommunicate OK [11:44:43]SAM_PROTO_GetShiftState done [11:44:43]FM_GetShiftState done [11:44:43]opened in 1729815177 [11:44:43]opened+sec_in_day 1729901577 [11:44:43]quantity*price = 5100 [11:44:43]sum+1 = 5101 [11:44:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 166.00 НСП 1% : 1.47 НДС 12% : 17.63 Наличными: 166.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 64 25.10.2024 11:44 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50564 ФПД: 129697374225275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T114444&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50564&fm=129697374225275&tin=02508201610067®Number=0000000000097022&sum=16600 0 [11:44:44]StoreToDocumentArchive [11:44:44]shift 493 fd 50564 [11:44:44]save to /storage/0493/doc_00050564 [11:44:44]save last doc name /storage/0493/doc_00050564 to /storage/kkm_last_doc_name [11:44:44]save OK [11:44:44]Clear old archive folders... [11:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=390 [11:44:44]tlvbuf is 01E62B10 [11:44:44]SAM_PROTO_ClearQueue [11:44:44]wFMCommunicate request_size=4 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 09 00 00 [11:44:44]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:44]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [11:44:44]RAPDU: 90 00 [11:44:44]wFMCommunicate OK [11:44:44]SAM_PROTO_ClearQueue done [11:44:44]KKMCreateOFDPacket [11:44:44]OFDProtocolAddRootSTLVToBuf [11:44:44]FM_MakeSignedData [11:44:44]FM_MakeSignedData [11:44:44]SAM_PROTO_SignData [11:44:44]wFMCommunicate request_size=4 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 0D 01 02 [11:44:44]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [11:44:44]RAPDU: 90 00 [11:44:44]wFMCommunicate OK [11:44:44]wFMCommunicate request_size=255 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [11:44:44]Write to MH i2c: E2 02 01 3B 06 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 E6 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [11:44:44]RAPDU: 90 00 [11:44:44]wFMCommunicate OK [11:44:44]wFMCommunicate request_size=149 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AC 84 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C5 00 00 35 04 06 00 75 F5 85 EB 43 7B [11:44:44]Write to MH i2c: E2 98 00 3C 06 80 0D 02 02 90 00 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AC 84 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C5 00 00 35 04 06 00 75 F5 85 EB 43 7B 00 00 4E [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [11:44:44]RAPDU: 90 00 [11:44:44]wFMCommunicate OK [11:44:44]wFMCommunicate request_size=4 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 0D 03 02 [11:44:44]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 0B 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 0B 00 3D 06 00 DE D0 F1 C1 D3 5F 67 74 90 00 2C [11:44:45]RAPDU: DE D0 F1 C1 D3 5F 67 74 90 00 [11:44:45]wFMCommunicate OK [11:44:45]SAM_PROTO_SignData done [11:44:45]FM_MakeSignedData done [11:44:45]CreateOFDProtocolMessage [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 11 00 00 [11:44:45]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 17 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 05 [11:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:44:45]wFMCommunicate OK [11:44:45]CreateOFDProtocolMessage done [11:44:45]OFDSenderStorePacket 50564 [11:44:45]StoreOFDPacket docnum=50564 [11:44:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9A 01 00 00 C1 91 92 01 53 C2 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AC 84 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C5 00 00 35 04 06 00 75 F5 85 EB 43 7B DE D0 F1 C1 D3 5F 67 74 [11:44:45]CheckFolder [11:44:45]dirname=/storage/ofd_packets [11:44:45]CheckFolder done [11:44:45]ProducePacketName [11:44:45]name=ofd_packets/00050564 [11:44:45]NVStorageSaveData ofd_packets/00050564 [11:44:45]File name is /storage/ofd_packets/00050564 [11:44:45]Write 440 bytes [11:44:45]NVStorageSaveData done [11:44:45]OFDSenderStorePacket done [11:44:45]KKMCreateOFDPacket done [11:44:45]NVStorageSaveData kkm_last_timestamp [11:44:45]File name is /storage/kkm_last_timestamp [11:44:45]Write 4 bytes [11:44:45]NVStorageSaveData done [11:44:45]ExternCall_PrintAddStr [11:44:45]wPrintStart [11:44:45]Write to MH i2c: 01 00 00 3F 06 45 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 [11:44:45]MH_I2C_Read... [11:44:45]OFD Sender: Processing packet 50564 [packets to send 7, broken 6] [11:44:45]ProducePacketName [11:44:45]name=ofd_packets/00050564 [11:44:45]OFD Sender: To server: pG, [11:44:45]CommunicateWithHost lk.salyk.kg:30040 [11:44:45]ConnectInit lk.salyk.kg [11:44:45]Read from MH i2c: 01 07 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 07 00 3F 06 00 00 00 00 00 FF 0F 5A [11:44:45]RasterBufferAndPrint [11:44:45]line Счет N : (3)164472 [11:44:45]line ИНН: 02508201610067 [11:44:45]line Контрольно-Кассовый Чек [11:44:45]line ПРОДАЖА [11:44:45]line Товар: 4700041420152 [11:44:45]line Салфетки влажн BEST GOLD 20шт [11:44:45]line 1.000 * 51.00 [11:44:45]line = 51.00 [11:44:45]line НДС 12% НСП 1% [11:44:45]line > о реализуемом товаре [11:44:45]line Товар: 2000036240010 [11:44:45]line Кофе Латте (GABB TRADE) [11:44:45]line 1.000 * 115.00 [11:44:45]line = 115.00 [11:44:45]line НДС 12% НСП 1% [11:44:45]line > о реализуемом товаре [11:44:45]line ИТОГО: 166.00 [11:44:45]line НСП 1% : 1.47 [11:44:45]line НДС 12% : 17.63 [11:44:45]line Наличными: 166.00 [11:44:45]line Безнал.: 0.00 [11:44:45]line Место: АЗС № 80 "Партнер Нефть" [11:44:45]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:44:45]line СНО: Общий режим [11:44:45]line Чек 64 25.10.2024 11:44 [11:44:45]line Смена: 493 ФФД: 1.0 [11:44:45]line ЗНМ: 0300000090 [11:44:45]line РНМ: 0000000000097022 [11:44:45]line Версия ККМ: 001 [11:44:45]line ФМ: 0000000000875000 [11:44:45]line ФД: 50564 [11:44:45]line ФПД: 129697374225275 [11:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T114444&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50564&fm=129697374225275&tin=02508201610067®Number=0000000000097022&sum=16600 [11:44:45]line 0 [11:44:45]written 0, free lines is 4095 [11:44:45]Connected sock=10 [11:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9A 01 00 00 C1 91 92 01 53 C2 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 AC 84 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C5 00 00 35 04 06 00 75 F5 85 EB 43 7B DE D0 F1 C1 D3 5F 67 74 [11:44:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 76 4C 47 00 3D C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 84 C5 00 00 F4 03 04 00 3D 30 1B 67 B6 04 01 00 00 FF 5D 1E 5B 48 E4 2B C6 [11:44:45]CommunicateWithHost err = 0 [11:44:45]CheckOFDResponse [11:44:45]1017 (14) - 77093643461234 [11:44:45]1041 (16) - 0000000000875000 [11:44:45]1040 (4) - 50564 [11:44:45]1012 (4) - 25.10.2024 05:44 [11:44:45]1206 (1) - 0 [11:44:45]OFD Sender: Remove packet 50564 [11:44:45]ProducePacketName [11:44:45]name=ofd_packets/00050564 [11:44:45]NVStorageDeleteData [11:44:45]Write to MH i2c: 01 00 00 6E 06 74 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 07 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 C3 0C 4A [11:44:45]RasterBufferAndPrint [11:44:45]line [11:44:45]line [11:44:45]line [11:44:45]line [11:44:45]line [11:44:45]written 0, free lines is 3273 [11:44:45]process_action close_receipt done [11:44:45]requested_data is exist [11:44:45]produce_requested_data [11:44:45]requested_item fm.sn is exist - process it [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 11 00 00 [11:44:45]Write to MH i2c: E2 08 00 75 06 80 11 00 00 00 00 00 00 F5 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 17 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 17 00 75 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3C [11:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:44:45]wFMCommunicate OK [11:44:45]requested_item fd.num is exist - process it [11:44:45]SAM_PROTO_GetFieldsCounters [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 13 00 00 [11:44:45]Write to MH i2c: E2 08 00 76 06 80 13 00 00 00 00 00 00 F8 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 62 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 62 00 76 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 84 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [11:44:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 84 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:46]wFMCommunicate OK [11:44:46]SAM_PROTO_GetFieldsCounters done [11:44:46]requested_item shift.num is exist - process it [11:44:46]requested_item shift.opened is exist - process it [11:44:46]req_shift_opened [11:44:46]FM_GetShiftState [11:44:46]SAM_PROTO_GetShiftState [11:44:46]wFMCommunicate request_size=4 [11:44:46]MH_SAM_APDU [11:44:46]CAPDU: 80 13 01 00 [11:44:46]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 0E 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F2 [11:44:46]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:44:46]wFMCommunicate OK [11:44:46]SAM_PROTO_GetShiftState done [11:44:46]FM_GetShiftState done [11:44:46]req_shift_opened done [11:44:46]requested_item shift.open_date is exist - process it [11:44:46]req_shift_open_date [11:44:46]req_shift_open_date done [11:44:46]produce_requested_data done [11:44:46]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50564,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [11:44:46]process_action_free close_receipt [11:44:46]json_value_free [11:44:46]json_value_free done [11:44:46]process_json_proto returns [11:44:46]Send response to host [11:44:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50564,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [11:44:46]free response buf [11:44:46]execute_script done [11:44:46]execute_script returns [11:44:46]free content buf [11:44:46]Sock 7.Close socket [11:44:46]Sock 7.Thread stoped [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:20]accept exits with 9 [11:57:20]New connection [11:57:20]New thread 3066789220 created [11:57:20]Thread 3066645860 joined [11:57:20]Waiting for new connection... [11:57:20] Sock 9.Parse request [11:57:20]Sock 9.Check first char [11:57:20]Sock 9.First char is OK [11:57:20]request: POST /json_proto HTTP/1.0 [11:57:20]Method: POST [11:57:20]URL: /json_proto [11:57:20]Method is POST - this is cgi request [11:57:20]url: /json_proto [11:57:20]query_string will be loaded in cgi processing [11:57:20]execute_cgi json_proto POST (null) [11:57:20]execute_cgi path=json_proto method=POST [11:57:20]POST find Content-Length [11:57:20]Host: 172.17.49.196:8080 [11:57:20]Content-Length: 644 [11:57:20]Content-Type: application/json [11:57:20] [11:57:20]POST finish read [11:57:20]Found Content-Length = 644 [11:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164474", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:20]execute_script... [11:57:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164474", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:20]POST & json_proto [11:57:20]process_json_proto [11:57:20]json parsed OK: [11:57:20]protocol is kg_v1.0 [11:57:20]action value=close_receipt [11:57:20]process_action close_receipt [11:57:20]cmd_close_receipt [11:57:20]MH_GetDate [11:57:20]Write to MH i2c: F0 00 00 78 06 6D [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: F0 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: F0 09 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: F0 09 00 78 06 00 A2 87 1B 67 BD 3B 11 67 91 [11:57:20]GetLastDocTimeStamp 1729856684 [11:57:20]current date 1729857442 [11:57:20]FM_GetShiftState [11:57:20]SAM_PROTO_GetShiftState [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 13 01 00 [11:57:20]Write to MH i2c: E2 08 00 79 06 80 13 01 00 00 00 00 00 FC [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 0E 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 0E 00 79 06 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F4 [11:57:20]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:57:20]wFMCommunicate OK [11:57:20]SAM_PROTO_GetShiftState done [11:57:20]FM_GetShiftState done [11:57:20]opened in 1729815177 [11:57:20]opened+sec_in_day 1729901577 [11:57:20]quantity*price = 11500 [11:57:20]sum+1 = 11501 [11:57:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 65 25.10.2024 11:57 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50565 ФПД: 121856004343017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T115722&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50565&fm=121856004343017&tin=02508201610067®Number=0000000000097022&sum=11500 0 [11:57:22]StoreToDocumentArchive [11:57:22]shift 493 fd 50565 [11:57:22]save to /storage/0493/doc_00050565 [11:57:22]save last doc name /storage/0493/doc_00050565 to /storage/kkm_last_doc_name [11:57:22]save OK [11:57:22]Clear old archive folders... [11:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:57:22]tlvbuf is 01E38080 [11:57:22]SAM_PROTO_ClearQueue [11:57:22]wFMCommunicate request_size=4 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 09 00 00 [11:57:22]Write to MH i2c: E2 08 00 86 06 80 09 00 00 00 00 00 00 FE [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [11:57:22]RAPDU: 90 00 [11:57:22]wFMCommunicate OK [11:57:22]SAM_PROTO_ClearQueue done [11:57:22]KKMCreateOFDPacket [11:57:22]OFDProtocolAddRootSTLVToBuf [11:57:22]FM_MakeSignedData [11:57:22]FM_MakeSignedData [11:57:22]SAM_PROTO_SignData [11:57:22]wFMCommunicate request_size=4 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 0D 01 02 [11:57:22]Write to MH i2c: E2 08 00 87 06 80 0D 01 02 00 00 00 00 06 [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [11:57:22]RAPDU: 90 00 [11:57:22]wFMCommunicate OK [11:57:22]wFMCommunicate request_size=255 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A2 87 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 [11:57:22]Write to MH i2c: E2 02 01 88 06 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A2 87 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 00 00 1B [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [11:57:22]RAPDU: 90 00 [11:57:22]wFMCommunicate OK [11:57:22]wFMCommunicate request_size=39 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C5 00 00 35 04 06 00 6E D3 CF DA 44 E9 [11:57:22]Write to MH i2c: E2 2A 00 89 06 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C5 00 00 35 04 06 00 6E D3 CF DA 44 E9 00 00 19 [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [11:57:22]RAPDU: 90 00 [11:57:22]wFMCommunicate OK [11:57:22]wFMCommunicate request_size=4 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 0D 03 02 [11:57:22]Write to MH i2c: E2 08 00 8A 06 80 0D 03 02 00 00 00 00 0B [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 0B 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 0B 00 8A 06 00 A6 34 B4 8D 26 30 FD 3A 90 00 B4 [11:57:22]RAPDU: A6 34 B4 8D 26 30 FD 3A 90 00 [11:57:22]wFMCommunicate OK [11:57:22]SAM_PROTO_SignData done [11:57:22]FM_MakeSignedData done [11:57:22]CreateOFDProtocolMessage [11:57:22]wFMCommunicate request_size=4 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 11 00 00 [11:57:22]Write to MH i2c: E2 08 00 8B 06 80 11 00 00 00 00 00 00 0B [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 17 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 17 00 8B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 52 [11:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:57:22]wFMCommunicate OK [11:57:22]CreateOFDProtocolMessage done [11:57:22]OFDSenderStorePacket 50565 [11:57:22]StoreOFDPacket docnum=50565 [11:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 02 53 24 01 4A 55 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A2 87 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C5 00 00 35 04 06 00 6E D3 CF DA 44 E9 A6 34 B4 8D 26 30 FD 3A [11:57:22]CheckFolder [11:57:22]dirname=/storage/ofd_packets [11:57:22]CheckFolder done [11:57:22]ProducePacketName [11:57:22]name=ofd_packets/00050565 [11:57:22]NVStorageSaveData ofd_packets/00050565 [11:57:22]File name is /storage/ofd_packets/00050565 [11:57:22]Write 330 bytes [11:57:22]NVStorageSaveData done [11:57:22]OFDSenderStorePacket done [11:57:22]KKMCreateOFDPacket done [11:57:22]NVStorageSaveData kkm_last_timestamp [11:57:22]File name is /storage/kkm_last_timestamp [11:57:22]Write 4 bytes [11:57:22]NVStorageSaveData done [11:57:22]ExternCall_PrintAddStr [11:57:22]wPrintStart [11:57:22]Write to MH i2c: 01 00 00 8C 06 92 [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: 01 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: 01 07 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: 01 07 00 8C 06 00 00 00 00 00 FF 0F A7 [11:57:22]RasterBufferAndPrint [11:57:22]line Счет N : (3)164474 [11:57:22]line ИНН: 02508201610067 [11:57:22]line Контрольно-Кассовый Чек [11:57:22]line ПРОДАЖА [11:57:22]line Товар: 2000036210013 [11:57:22]line Кофе Капучино (GABB TRADE) [11:57:22]line 1.000 * 115.00 [11:57:22]line = 115.00 [11:57:22]line НДС 12% НСП 1% [11:57:22]line > о реализуемом товаре [11:57:22]line ИТОГО: 115.00 [11:57:22]line НСП 1% : 1.02 [11:57:22]line НДС 12% : 12.21 [11:57:22]line Наличными: 115.00 [11:57:22]line Безнал.: 0.00 [11:57:22]line Место: АЗС № 80 "Партнер Нефть" [11:57:22]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [11:57:22]line СНО: Общий режим [11:57:22]line Чек 65 25.10.2024 11:57 [11:57:22]line Смена: 493 ФФД: 1.0 [11:57:22]line ЗНМ: 0300000090 [11:57:22]line РНМ: 0000000000097022 [11:57:22]line Версия ККМ: 001 [11:57:22]line ФМ: 0000000000875000 [11:57:22]line ФД: 50565 [11:57:22]line ФПД: 121856004343017 [11:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T115722&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50565&fm=121856004343017&tin=02508201610067®Number=0000000000097022&sum=11500 [11:57:23]OFD Sender: Processing packet 50565 [packets to send 7, broken 6] [11:57:23]ProducePacketName [11:57:23]name=ofd_packets/00050565 [11:57:23]OFD Sender: To server: pG, [11:57:23]CommunicateWithHost lk.salyk.kg:30040 [11:57:23]ConnectInit lk.salyk.kg [11:57:23]line 0 [11:57:23]written 0, free lines is 4095 [11:57:23]Connected sock=10 [11:57:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2C 01 00 00 02 53 24 01 4A 55 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A2 87 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C5 00 00 35 04 06 00 6E D3 CF DA 44 E9 A6 34 B4 8D 26 30 FD 3A [11:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 31 C8 47 00 08 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 85 C5 00 00 F4 03 04 00 33 33 1B 67 B6 04 01 00 00 4C F6 DD FD AC 2E 86 A6 [11:57:23]CommunicateWithHost err = 0 [11:57:23]CheckOFDResponse [11:57:23]1017 (14) - 77093643461234 [11:57:23]1041 (16) - 0000000000875000 [11:57:23]1040 (4) - 50565 [11:57:23]1012 (4) - 25.10.2024 05:57 [11:57:23]1206 (1) - 0 [11:57:23]OFD Sender: Remove packet 50565 [11:57:23]ProducePacketName [11:57:23]name=ofd_packets/00050565 [11:57:23]NVStorageDeleteData [11:57:23]Write to MH i2c: 01 00 00 B4 06 BA [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: 01 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: 01 07 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 23 0D F1 [11:57:23]RasterBufferAndPrint [11:57:23]line [11:57:23]line [11:57:23]line [11:57:23]line [11:57:23]line [11:57:23]written 0, free lines is 3369 [11:57:23]process_action close_receipt done [11:57:23]requested_data is exist [11:57:23]produce_requested_data [11:57:23]requested_item fm.sn is exist - process it [11:57:23]wFMCommunicate request_size=4 [11:57:23]MH_SAM_APDU [11:57:23]CAPDU: 80 11 00 00 [11:57:23]Write to MH i2c: E2 08 00 BB 06 80 11 00 00 00 00 00 00 3B [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:23]Read from MH i2c: E2 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 17 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 17 00 BB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 82 [11:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [11:57:23]wFMCommunicate OK [11:57:23]requested_item fd.num is exist - process it [11:57:23]SAM_PROTO_GetFieldsCounters [11:57:23]wFMCommunicate request_size=4 [11:57:23]MH_SAM_APDU [11:57:23]CAPDU: 80 13 00 00 [11:57:23]Write to MH i2c: E2 08 00 BC 06 80 13 00 00 00 00 00 00 3E [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:23]Read from MH i2c: E2 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 62 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 62 00 BC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 85 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [11:57:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 85 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:23]wFMCommunicate OK [11:57:23]SAM_PROTO_GetFieldsCounters done [11:57:23]requested_item shift.num is exist - process it [11:57:23]requested_item shift.opened is exist - process it [11:57:23]req_shift_opened [11:57:23]FM_GetShiftState [11:57:23]SAM_PROTO_GetShiftState [11:57:23]wFMCommunicate request_size=4 [11:57:23]MH_SAM_APDU [11:57:23]CAPDU: 80 13 01 00 [11:57:23]Write to MH i2c: E2 08 00 BD 06 80 13 01 00 00 00 00 00 40 [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:23]Read from MH i2c: E2 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 0E 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: E2 0E 00 BD 06 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 38 [11:57:23]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [11:57:23]wFMCommunicate OK [11:57:23]SAM_PROTO_GetShiftState done [11:57:23]FM_GetShiftState done [11:57:23]req_shift_opened done [11:57:23]requested_item shift.open_date is exist - process it [11:57:23]req_shift_open_date [11:57:23]req_shift_open_date done [11:57:23]produce_requested_data done [11:57:23]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50565,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [11:57:23]process_action_free close_receipt [11:57:23]json_value_free [11:57:23]json_value_free done [11:57:23]process_json_proto returns [11:57:23]Send response to host [11:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50565,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [11:57:23]free response buf [11:57:23]execute_script done [11:57:23]execute_script returns [11:57:23]free content buf [11:57:23]Sock 9.Close socket [11:57:23]Sock 9.Thread stoped [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]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:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]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:53]accept exits with 7 [12:08:53]New connection [12:08:53]New thread 3066645860 created [12:08:53]Thread 3066789220 joined [12:08:53]Waiting for new connection... [12:08:53] Sock 7.Parse request [12:08:53]Sock 7.Check first char [12:08:53]Sock 7.First char is OK [12:08:53]request: POST /json_proto HTTP/1.0 [12:08:53]Method: POST [12:08:53]URL: /json_proto [12:08:53]Method is POST - this is cgi request [12:08:53]url: /json_proto [12:08:53]query_string will be loaded in cgi processing [12:08:53]execute_cgi json_proto POST (null) [12:08:53]execute_cgi path=json_proto method=POST [12:08:53]POST find Content-Length [12:08:53]Host: 172.17.49.196:8080 [12:08:53]Content-Length: 1219 [12:08:53]Content-Type: application/json [12:08:53] [12:08:53]POST finish read [12:08:53]Found Content-Length = 1219 [12:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164475", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:53]execute_script... [12:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164475", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:53]POST & json_proto [12:08:53]process_json_proto [12:08:53]json parsed OK: [12:08:53]protocol is kg_v1.0 [12:08:53]action value=close_receipt [12:08:53]process_action close_receipt [12:08:53]cmd_close_receipt [12:08:53]MH_GetDate [12:08:53]Write to MH i2c: F0 00 00 BE 06 B3 [12:08:53]Write i2c OK [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: F0 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: F0 09 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: F0 09 00 BE 06 00 56 8A 1B 67 BD 3B 11 67 8E [12:08:53]GetLastDocTimeStamp 1729857442 [12:08:53]current date 1729858134 [12:08:53]FM_GetShiftState [12:08:53]SAM_PROTO_GetShiftState [12:08:53]wFMCommunicate request_size=4 [12:08:53]MH_SAM_APDU [12:08:53]CAPDU: 80 13 01 00 [12:08:53]Write to MH i2c: E2 08 00 BF 06 80 13 01 00 00 00 00 00 42 [12:08:53]Write i2c OK [12:08:53]MH_I2C_Read... [12:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:53]Read from MH i2c: E2 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: E2 0E 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: E2 0E 00 BF 06 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 3A [12:08:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:08:53]wFMCommunicate OK [12:08:53]SAM_PROTO_GetShiftState done [12:08:53]FM_GetShiftState done [12:08:53]opened in 1729815177 [12:08:53]opened+sec_in_day 1729901577 [12:08:53]quantity*price = 17000 [12:08:53]sum+1 = 17001 [12:08:53]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.41 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 66 25.10.2024 12:08 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50566 ФПД: 170964959704699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120854&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50566&fm=170964959704699&tin=02508201610067®Number=0000000000097022&sum=39000 0 [12:08:54]StoreToDocumentArchive [12:08:54]shift 493 fd 50566 [12:08:54]save to /storage/0493/doc_00050566 [12:08:54]save last doc name /storage/0493/doc_00050566 to /storage/kkm_last_doc_name [12:08:54]save OK [12:08:54]Clear old archive folders... [12:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=521 [12:08:54]tlvbuf is 01E37C80 [12:08:54]SAM_PROTO_ClearQueue [12:08:54]wFMCommunicate request_size=4 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 09 00 00 [12:08:54]Write to MH i2c: E2 08 00 CC 06 80 09 00 00 00 00 00 00 44 [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 03 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [12:08:54]RAPDU: 90 00 [12:08:54]wFMCommunicate OK [12:08:54]SAM_PROTO_ClearQueue done [12:08:54]KKMCreateOFDPacket [12:08:54]OFDProtocolAddRootSTLVToBuf [12:08:54]FM_MakeSignedData [12:08:54]FM_MakeSignedData [12:08:54]SAM_PROTO_SignData [12:08:54]wFMCommunicate request_size=4 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 0D 01 02 [12:08:54]Write to MH i2c: E2 08 00 CD 06 80 0D 01 02 00 00 00 00 4C [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 03 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [12:08:54]RAPDU: 90 00 [12:08:54]wFMCommunicate OK [12:08:54]wFMCommunicate request_size=255 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 0D 02 02 FA 03 00 09 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 [12:08:55]Write to MH i2c: E2 02 01 CE 06 80 0D 02 02 FA 00 03 00 09 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 00 00 2B [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 [12:08:55]MH_I2C_Read... [12:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:55]Read from MH i2c: E2 03 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [12:08:55]RAPDU: 90 00 [12:08:55]wFMCommunicate OK [12:08:55]wFMCommunicate request_size=255 [12:08:55]MH_SAM_APDU [12:08:55]CAPDU: 80 0D 02 02 FA 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 8A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:08:55]Write to MH i2c: E2 02 01 CF 06 80 0D 02 02 FA 00 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 8A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 0F [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:55]Read from MH i2c: E2 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 03 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [12:08:55]RAPDU: 90 00 [12:08:55]wFMCommunicate OK [12:08:55]wFMCommunicate request_size=30 [12:08:55]MH_SAM_APDU [12:08:55]CAPDU: 80 0D 02 02 19 30 38 37 35 30 30 30 10 04 04 00 86 C5 00 00 35 04 06 00 9B 7D E1 B1 36 7B [12:08:55]Write to MH i2c: E2 21 00 D0 06 80 0D 02 02 19 00 30 38 37 35 30 30 30 10 04 04 00 86 C5 00 00 35 04 06 00 9B 7D E1 B1 36 7B 00 00 E3 [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:55]Read from MH i2c: E2 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 03 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [12:08:55]RAPDU: 90 00 [12:08:55]wFMCommunicate OK [12:08:55]wFMCommunicate request_size=4 [12:08:55]MH_SAM_APDU [12:08:55]CAPDU: 80 0D 03 02 [12:08:55]Write to MH i2c: E2 08 00 D1 06 80 0D 03 02 00 00 00 00 52 [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:55]Read from MH i2c: E2 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 0B 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 0B 00 D1 06 00 BA CF B4 4E D0 57 BF B1 90 00 75 [12:08:55]RAPDU: BA CF B4 4E D0 57 BF B1 90 00 [12:08:55]wFMCommunicate OK [12:08:55]SAM_PROTO_SignData done [12:08:55]FM_MakeSignedData done [12:08:55]CreateOFDProtocolMessage [12:08:55]wFMCommunicate request_size=4 [12:08:55]MH_SAM_APDU [12:08:55]CAPDU: 80 11 00 00 [12:08:55]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:55]Read from MH i2c: E2 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 17 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 99 [12:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:08:55]wFMCommunicate OK [12:08:55]CreateOFDProtocolMessage done [12:08:55]OFDSenderStorePacket 50566 [12:08:55]StoreOFDPacket docnum=50566 [12:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1D 02 00 00 A4 31 15 02 1B 80 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 8A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 86 C5 00 00 35 04 06 00 9B 7D E1 B1 36 7B BA CF B4 4E D0 57 BF B1 [12:08:55]CheckFolder [12:08:55]dirname=/storage/ofd_packets [12:08:55]CheckFolder done [12:08:55]ProducePacketName [12:08:55]name=ofd_packets/00050566 [12:08:55]NVStorageSaveData ofd_packets/00050566 [12:08:55]File name is /storage/ofd_packets/00050566 [12:08:55]Write 571 bytes [12:08:55]NVStorageSaveData done [12:08:55]OFDSenderStorePacket done [12:08:55]KKMCreateOFDPacket done [12:08:55]NVStorageSaveData kkm_last_timestamp [12:08:55]File name is /storage/kkm_last_timestamp [12:08:55]Write 4 bytes [12:08:55]NVStorageSaveData done [12:08:55]ExternCall_PrintAddStr [12:08:55]wPrintStart [12:08:55]Write to MH i2c: 01 00 00 D3 06 D9 [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 07 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 FF 0F EE [12:08:55]RasterBufferAndPrint [12:08:55]line Счет N : (3)164475 [12:08:55]line ИНН: 02508201610067 [12:08:55]line Контрольно-Кассовый Чек [12:08:55]line ПРОДАЖА [12:08:55]line Товар: 5449000176448 [12:08:55]line Сок Piko Pulpy апельсин ПЭТ 1л [12:08:55]line 1.000 * 170.00 [12:08:55]line = 170.00 [12:08:55]line НДС 12% НСП 1% [12:08:55]line > о реализуемом товаре [12:08:55]line Товар: 5449000054227 [12:08:55]line Напиток Кока-Кола 1л [12:08:55]line 1.000 * 125.00 [12:08:55]line = 125.00 [12:08:55]line НДС 12% НСП 1% [12:08:55]line > о реализуемом товаре [12:08:55]line Товар: 4631150682851 [12:08:55]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [12:08:55]line 1.000 * 95.00 [12:08:55]line = 95.00 [12:08:55]line НДС 12% НСП 1% [12:08:55]line > о реализуемом товаре [12:08:55]line ИТОГО: 390.00 [12:08:55]line НСП 1% : 3.45 [12:08:55]line НДС 12% : 41.41 [12:08:55]line Наличными: 390.00 [12:08:55]line Безнал.: 0.00 [12:08:55]line Место: АЗС № 80 "Партнер Нефть" [12:08:55]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:08:55]line СНО: Общий режим [12:08:55]line Чек 66 25.10.2024 12:08 [12:08:55]line Смена: 493 ФФД: 1.0 [12:08:55]line ЗНМ: 0300000090 [12:08:55]line РНМ: 0000000000097022 [12:08:55]line Версия ККМ: 001 [12:08:55]line ФМ: 0000000000875000 [12:08:55]line ФД: 50566 [12:08:55]line ФПД: 170964959704699 [12:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T120854&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50566&fm=170964959704699&tin=02508201610067®Number=0000000000097022&sum=39000 [12:08:56]line 0 [12:08:56]OFD Sender: Processing packet 50566 [packets to send 7, broken 6] [12:08:56]ProducePacketName [12:08:56]name=ofd_packets/00050566 [12:08:56]OFD Sender: To server: pG, [12:08:56]CommunicateWithHost lk.salyk.kg:30040 [12:08:56]ConnectInit lk.salyk.kg [12:08:56]written 0, free lines is 4095 [12:08:56]Connected sock=10 [12:08:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1D 02 00 00 A4 31 15 02 1B 80 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 8A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 86 C5 00 00 35 04 06 00 9B 7D E1 B1 36 7B BA CF B4 4E D0 57 BF B1 [12:08:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 12 09 47 00 83 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 38 37 35 30 30 30 10 04 04 00 86 C5 00 00 F4 03 04 00 E8 35 1B 67 B6 04 01 00 00 BA 36 F2 F9 AE F3 1F 1A [12:08:56]CommunicateWithHost err = 0 [12:08:56]CheckOFDResponse [12:08:56]1017 (14) - 77093643461234 [12:08:56]1041 (16) - 0000000000875000 [12:08:56]1040 (4) - 50566 [12:08:56]1012 (4) - 25.10.2024 06:08 [12:08:56]1206 (1) - 0 [12:08:56]OFD Sender: Remove packet 50566 [12:08:56]ProducePacketName [12:08:56]name=ofd_packets/00050566 [12:08:56]NVStorageDeleteData [12:08:56]Write to MH i2c: 01 00 00 09 07 10 [12:08:56]Write i2c OK [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: 01 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: 01 07 00 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 73 0C 96 [12:08:56]RasterBufferAndPrint [12:08:56]line [12:08:56]line [12:08:56]line [12:08:56]line [12:08:56]line [12:08:56]written 0, free lines is 3196 [12:08:56]process_action close_receipt done [12:08:56]requested_data is exist [12:08:56]produce_requested_data [12:08:56]requested_item fm.sn is exist - process it [12:08:56]wFMCommunicate request_size=4 [12:08:56]MH_SAM_APDU [12:08:56]CAPDU: 80 11 00 00 [12:08:56]Write to MH i2c: E2 08 00 10 07 80 11 00 00 00 00 00 00 91 [12:08:56]Write i2c OK [12:08:56]MH_I2C_Read... [12:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:56]Read from MH i2c: E2 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 17 00 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 17 00 10 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D8 [12:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:08:56]wFMCommunicate OK [12:08:56]requested_item fd.num is exist - process it [12:08:56]SAM_PROTO_GetFieldsCounters [12:08:56]wFMCommunicate request_size=4 [12:08:56]MH_SAM_APDU [12:08:56]CAPDU: 80 13 00 00 [12:08:56]Write to MH i2c: E2 08 00 11 07 80 13 00 00 00 00 00 00 94 [12:08:56]Write i2c OK [12:08:56]MH_I2C_Read... [12:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:56]Read from MH i2c: E2 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 62 00 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 62 00 11 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 86 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [12:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 86 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:56]wFMCommunicate OK [12:08:56]SAM_PROTO_GetFieldsCounters done [12:08:56]requested_item shift.num is exist - process it [12:08:56]requested_item shift.opened is exist - process it [12:08:56]req_shift_opened [12:08:56]FM_GetShiftState [12:08:56]SAM_PROTO_GetShiftState [12:08:56]wFMCommunicate request_size=4 [12:08:56]MH_SAM_APDU [12:08:56]CAPDU: 80 13 01 00 [12:08:56]Write to MH i2c: E2 08 00 12 07 80 13 01 00 00 00 00 00 96 [12:08:56]OFD Sender: No OFD packet to send [12:08:56]Write i2c OK [12:08:56]MH_I2C_Read... [12:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:56]Read from MH i2c: E2 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 0E 00 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 0E 00 12 07 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8E [12:08:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:08:56]wFMCommunicate OK [12:08:56]SAM_PROTO_GetShiftState done [12:08:56]FM_GetShiftState done [12:08:56]req_shift_opened done [12:08:56]requested_item shift.open_date is exist - process it [12:08:56]req_shift_open_date [12:08:56]req_shift_open_date done [12:08:56]produce_requested_data done [12:08:56]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50566,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [12:08:56]process_action_free close_receipt [12:08:56]json_value_free [12:08:56]json_value_free done [12:08:56]process_json_proto returns [12:08:56]Send response to host [12:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50566,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [12:08:56]free response buf [12:08:56]execute_script done [12:08:56]execute_script returns [12:08:56]free content buf [12:08:56]Sock 7.Close socket [12:08:56]Sock 7.Thread stoped [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]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:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:53]accept exits with 9 [12:21:53]New connection [12:21:53]New thread 3066789220 created [12:21:53]Thread 3066645860 joined [12:21:53]Waiting for new connection... [12:21:53] Sock 9.Parse request [12:21:53]Sock 9.Check first char [12:21:53]Sock 9.First char is OK [12:21:53]request: POST /json_proto HTTP/1.0 [12:21:53]Method: POST [12:21:53]URL: /json_proto [12:21:53]Method is POST - this is cgi request [12:21:53]url: /json_proto [12:21:53]query_string will be loaded in cgi processing [12:21:53]execute_cgi json_proto POST (null) [12:21:53]execute_cgi path=json_proto method=POST [12:21:53]POST find Content-Length [12:21:53]Host: 172.17.49.196:8080 [12:21:53]Content-Length: 215 [12:21:53]Content-Type: application/json [12:21:53] [12:21:53]POST finish read [12:21:53]Found Content-Length = 215 [12:21: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" ] } } [12:21:53]execute_script... [12:21: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" ] } } [12:21:53]POST & json_proto [12:21:53]process_json_proto [12:21:53]json parsed OK: [12:21:53]protocol is kg_v1.0 [12:21:53]action value=get_value [12:21:53]process_action get_value [12:21:53]cmd_get_value [12:21:53]process_action get_value done [12:21:53]requested_data is exist [12:21:53]produce_requested_data [12:21:53]requested_item kkm.sn is exist - process it [12:21:53]requested_item kkm.ver is exist - process it [12:21:53]requested_item fm.sn is exist - process it [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 11 00 00 [12:21:53]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 17 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DB [12:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:21:53]wFMCommunicate OK [12:21:53]requested_item fd.num is exist - process it [12:21:53]SAM_PROTO_GetFieldsCounters [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 13 00 00 [12:21:53]Write to MH i2c: E2 08 00 14 07 80 13 00 00 00 00 00 00 97 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 62 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 62 00 14 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 86 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [12:21:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 86 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:53]wFMCommunicate OK [12:21:53]SAM_PROTO_GetFieldsCounters done [12:21:53]requested_item shift.num is exist - process it [12:21:53]requested_item shift.opened is exist - process it [12:21:53]req_shift_opened [12:21:53]FM_GetShiftState [12:21:53]SAM_PROTO_GetShiftState [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 13 01 00 [12:21:53]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 0E 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 91 [12:21:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:21:53]wFMCommunicate OK [12:21:53]SAM_PROTO_GetShiftState done [12:21:53]FM_GetShiftState done [12:21:53]req_shift_opened done [12:21:53]requested_item shift.open_date is exist - process it [12:21:53]req_shift_open_date [12:21:53]req_shift_open_date done [12:21:53]produce_requested_data done [12:21:53]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50566,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [12:21:53]process_action_free get_value [12:21:53]json_value_free [12:21:53]json_value_free done [12:21:53]process_json_proto returns [12:21:53]Send response to host [12:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50566,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [12:21:53]free response buf [12:21:53]execute_script done [12:21:53]execute_script returns [12:21:53]free content buf [12:21:53]Sock 9.Close socket [12:21:53]Sock 9.Thread stoped [12:21:53]accept exits with 7 [12:21:53]New connection [12:21:53]New thread 3066645860 created [12:21:53]Thread 3066789220 joined [12:21:53]Waiting for new connection... [12:21:53] Sock 7.Parse request [12:21:53]Sock 7.Check first char [12:21:53]Sock 7.First char is OK [12:21:53]request: POST /json_proto HTTP/1.0 [12:21:53]Method: POST [12:21:53]URL: /json_proto [12:21:53]Method is POST - this is cgi request [12:21:53]url: /json_proto [12:21:53]query_string will be loaded in cgi processing [12:21:53]execute_cgi json_proto POST (null) [12:21:53]execute_cgi path=json_proto method=POST [12:21:53]POST find Content-Length [12:21:53]Host: 172.17.49.196:8080 [12:21:53]Content-Length: 331 [12:21:53]Content-Type: application/json [12:21:53] [12:21:53]POST finish read [12:21:53]Found Content-Length = 331 [12:21: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" ] } } [12:21:53]execute_script... [12:21: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" ] } } [12:21:53]POST & json_proto [12:21:53]process_json_proto [12:21:53]json parsed OK: [12:21:53]protocol is kg_v1.0 [12:21:53]action value=get_value [12:21:53]process_action get_value [12:21:53]cmd_get_value [12:21:53]process_action get_value done [12:21:53]requested_data is exist [12:21:53]produce_requested_data [12:21:53]requested_item fm.sale.total is exist - process it [12:21:53]SAM_PROTO_GetFMData [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 13 03 00 [12:21:53]Write to MH i2c: E2 08 00 16 07 80 13 03 00 00 00 00 00 9C [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 FD 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 FD 00 16 07 00 C5 04 85 04 C1 04 6E 04 04 00 AC C1 00 00 69 04 A1 00 6F 04 04 00 AC C0 00 00 B1 04 04 00 67 14 C0 82 70 04 04 00 CC 81 AA 61 72 04 04 00 9B 92 15 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BF FD E2 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1D 2D 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 D0 [12:21:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 AC C1 00 00 69 04 A1 00 6F 04 04 00 AC C0 00 00 B1 04 04 00 67 14 C0 82 70 04 04 00 CC 81 AA 61 72 04 04 00 9B 92 15 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BF FD E2 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1D 2D 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [12:21:54]wFMCommunicate OK [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 17 00 00 [12:21:54]Write to MH i2c: E2 08 00 17 07 80 17 00 00 00 00 00 00 9E [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 FD 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 FD 00 17 07 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [12:21:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:21:54]wFMCommunicate OK [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 17 00 00 [12:21:54]Write to MH i2c: E2 08 00 18 07 80 17 00 00 00 00 00 00 9F [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 FD 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 FD 00 18 07 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [12:21:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:21:54]wFMCommunicate OK [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 17 00 00 [12:21:54]Write to MH i2c: E2 08 00 19 07 80 17 00 00 00 00 00 00 A0 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:55]Read from MH i2c: E2 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: E2 FD 00 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: E2 FD 00 19 07 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [12:21:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:21:55]wFMCommunicate OK [12:21:55]wFMCommunicate request_size=4 [12:21:55]MH_SAM_APDU [12:21:55]CAPDU: 80 17 00 00 [12:21:55]Write to MH i2c: E2 08 00 1A 07 80 17 00 00 00 00 00 00 A1 [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:21:55]Read from MH i2c: E2 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: E2 E2 00 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: E2 E2 00 1A 07 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:21:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:21:55]wFMCommunicate OK [12:21:55]SAM_PROTO_GetFMData done [12:21:55]requested_item fm.sale_refund.total is exist - process it [12:21:55]requested_item fm.buy.total is exist - process it [12:21:55]requested_item shift.sale.total is exist - process it [12:21:55]SAM_PROTO_GetShiftData [12:21:55]wFMCommunicate request_size=4 [12:21:55]MH_SAM_APDU [12:21:55]CAPDU: 80 13 02 00 [12:21:55]Write to MH i2c: E2 08 00 1B 07 80 13 02 00 00 00 00 00 A0 [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:21:55]Read from MH i2c: E2 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: E2 FD 00 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: E2 FD 00 1B 07 00 AE 04 AA 04 AA 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 42 00 00 00 B1 04 03 00 52 E7 1D 70 04 03 00 EC C1 15 72 04 03 00 66 25 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 F9 2C 03 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 BE 43 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B9 [12:21:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 42 00 00 00 B1 04 03 00 52 E7 1D 70 04 03 00 EC C1 15 72 04 03 00 66 25 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 F9 2C 03 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 BE 43 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:21:55]wFMCommunicate OK [12:21:55]wFMCommunicate request_size=4 [12:21:55]MH_SAM_APDU [12:21:55]CAPDU: 80 17 00 00 [12:21:55]Write to MH i2c: E2 08 00 1C 07 80 17 00 00 00 00 00 00 A3 [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:56]Read from MH i2c: E2 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 FD 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 FD 00 1C 07 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 C5 [12:21: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 [12:21:56]wFMCommunicate OK [12:21:56]wFMCommunicate request_size=4 [12:21:56]MH_SAM_APDU [12:21:56]CAPDU: 80 17 00 00 [12:21:56]Write to MH i2c: E2 08 00 1D 07 80 17 00 00 00 00 00 00 A4 [12:21:56]Write i2c OK [12:21:56]MH_I2C_Read... [12:21:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:56]Read from MH i2c: E2 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 FD 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 FD 00 1D 07 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5B [12:21: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 [12:21:56]wFMCommunicate OK [12:21:56]wFMCommunicate request_size=4 [12:21:56]MH_SAM_APDU [12:21:56]CAPDU: 80 17 00 00 [12:21:56]Write to MH i2c: E2 08 00 1E 07 80 17 00 00 00 00 00 00 A5 [12:21:56]Write i2c OK [12:21:56]MH_I2C_Read... [12:21:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:56]Read from MH i2c: E2 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 FD 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 FD 00 1E 07 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 17 [12:21:56]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 [12:21:56]wFMCommunicate OK [12:21:56]wFMCommunicate request_size=4 [12:21:56]MH_SAM_APDU [12:21:56]CAPDU: 80 17 00 00 [12:21:56]Write to MH i2c: E2 08 00 1F 07 80 17 00 00 00 00 00 00 A6 [12:21:56]Write i2c OK [12:21:56]MH_I2C_Read... [12:21:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:21:56]Read from MH i2c: E2 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 CB 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 CB 00 1F 07 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 8F [12:21:56]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 [12:21:56]wFMCommunicate OK [12:21:56]SAM_PROTO_GetShiftData done [12:21:56]requested_item shift.sale.total_cash is exist - process it [12:21:56]requested_item shift.sale_refund.total is exist - process it [12:21:56]requested_item shift.sale_refund.total_cash is exist - process it [12:21:56]requested_item shift.buy.total is exist - process it [12:21:56]requested_item shift.buy.total_cash is exist - process it [12:21:56]produce_requested_data done [12:21:56]produce_requested_data return {"fm.sale.total":21936262.15,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":19597.62,"shift.sale.total_cash":14259.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:21:56]process_action_free get_value [12:21:56]json_value_free [12:21:56]json_value_free done [12:21:56]process_json_proto returns [12:21:56]Send response to host [12:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21936262.15,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":19597.62,"shift.sale.total_cash":14259.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:21:56]free response buf [12:21:56]execute_script done [12:21:56]execute_script returns [12:21:56]free content buf [12:21:56]Sock 7.Close socket [12:21:56]Sock 7.Thread stoped [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:18]accept exits with 9 [12:23:18]New connection [12:23:18]New thread 3066789220 created [12:23:18]Thread 3066645860 joined [12:23:18]Waiting for new connection... [12:23:18] Sock 9.Parse request [12:23:18]Sock 9.Check first char [12:23:18]Sock 9.First char is OK [12:23:18]request: POST /json_proto HTTP/1.0 [12:23:18]Method: POST [12:23:18]URL: /json_proto [12:23:18]Method is POST - this is cgi request [12:23:18]url: /json_proto [12:23:18]query_string will be loaded in cgi processing [12:23:18]execute_cgi json_proto POST (null) [12:23:18]execute_cgi path=json_proto method=POST [12:23:18]POST find Content-Length [12:23:18]Host: 172.17.49.196:8080 [12:23:18]Content-Length: 215 [12:23:18]Content-Type: application/json [12:23:18] [12:23:18]POST finish read [12:23:18]Found Content-Length = 215 [12:23:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:18]execute_script... [12:23:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:18]POST & json_proto [12:23:18]process_json_proto [12:23:18]json parsed OK: [12:23:18]protocol is kg_v1.0 [12:23:18]action value=get_value [12:23:18]process_action get_value [12:23:18]cmd_get_value [12:23:18]process_action get_value done [12:23:18]requested_data is exist [12:23:18]produce_requested_data [12:23:18]requested_item kkm.sn is exist - process it [12:23:18]requested_item kkm.ver is exist - process it [12:23:18]requested_item fm.sn is exist - process it [12:23:18]wFMCommunicate request_size=4 [12:23:18]MH_SAM_APDU [12:23:18]CAPDU: 80 11 00 00 [12:23:18]Write to MH i2c: E2 08 00 20 07 80 11 00 00 00 00 00 00 A1 [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:18]Read from MH i2c: E2 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 17 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 17 00 20 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E8 [12:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:23:18]wFMCommunicate OK [12:23:18]requested_item fd.num is exist - process it [12:23:18]SAM_PROTO_GetFieldsCounters [12:23:18]wFMCommunicate request_size=4 [12:23:18]MH_SAM_APDU [12:23:18]CAPDU: 80 13 00 00 [12:23:18]Write to MH i2c: E2 08 00 21 07 80 13 00 00 00 00 00 00 A4 [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:19]Read from MH i2c: E2 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 62 00 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 62 00 21 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 86 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:23:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 86 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:19]wFMCommunicate OK [12:23:19]SAM_PROTO_GetFieldsCounters done [12:23:19]requested_item shift.num is exist - process it [12:23:19]requested_item shift.opened is exist - process it [12:23:19]req_shift_opened [12:23:19]FM_GetShiftState [12:23:19]SAM_PROTO_GetShiftState [12:23:19]wFMCommunicate request_size=4 [12:23:19]MH_SAM_APDU [12:23:19]CAPDU: 80 13 01 00 [12:23:19]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:19]Read from MH i2c: E2 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 0E 00 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 9E [12:23:19]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:23:19]wFMCommunicate OK [12:23:19]SAM_PROTO_GetShiftState done [12:23:19]FM_GetShiftState done [12:23:19]req_shift_opened done [12:23:19]requested_item shift.open_date is exist - process it [12:23:19]req_shift_open_date [12:23:19]req_shift_open_date done [12:23:19]produce_requested_data done [12:23:19]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50566,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [12:23:19]process_action_free get_value [12:23:19]json_value_free [12:23:19]json_value_free done [12:23:19]process_json_proto returns [12:23:19]Send response to host [12:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50566,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [12:23:19]free response buf [12:23:19]execute_script done [12:23:19]execute_script returns [12:23:19]free content buf [12:23:19]Sock 9.Close socket [12:23:19]Sock 9.Thread stoped [12:23:19]accept exits with 7 [12:23:19]New connection [12:23:19]New thread 3066645860 created [12:23:19]Thread 3066789220 joined [12:23:19]Waiting for new connection... [12:23:19] Sock 7.Parse request [12:23:19]Sock 7.Check first char [12:23:19]Sock 7.First char is OK [12:23:19]request: POST /json_proto HTTP/1.0 [12:23:19]Method: POST [12:23:19]URL: /json_proto [12:23:19]Method is POST - this is cgi request [12:23:19]url: /json_proto [12:23:19]query_string will be loaded in cgi processing [12:23:19]execute_cgi json_proto POST (null) [12:23:19]execute_cgi path=json_proto method=POST [12:23:19]POST find Content-Length [12:23:19]Host: 172.17.49.196:8080 [12:23:19]Content-Length: 331 [12:23:19]Content-Type: application/json [12:23:19] [12:23:19]POST finish read [12:23:19]Found Content-Length = 331 [12:23: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" ] } } [12:23:19]execute_script... [12:23: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" ] } } [12:23:19]POST & json_proto [12:23:19]process_json_proto [12:23:19]json parsed OK: [12:23:19]protocol is kg_v1.0 [12:23:19]action value=get_value [12:23:19]process_action get_value [12:23:19]cmd_get_value [12:23:19]process_action get_value done [12:23:19]requested_data is exist [12:23:19]produce_requested_data [12:23:19]requested_item fm.sale.total is exist - process it [12:23:19]SAM_PROTO_GetFMData [12:23:19]wFMCommunicate request_size=4 [12:23:19]MH_SAM_APDU [12:23:19]CAPDU: 80 13 03 00 [12:23:19]Write to MH i2c: E2 08 00 23 07 80 13 03 00 00 00 00 00 A9 [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:23:19]Read from MH i2c: E2 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 FD 00 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 FD 00 23 07 00 C5 04 85 04 C1 04 6E 04 04 00 AC C1 00 00 69 04 A1 00 6F 04 04 00 AC C0 00 00 B1 04 04 00 67 14 C0 82 70 04 04 00 CC 81 AA 61 72 04 04 00 9B 92 15 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BF FD E2 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1D 2D 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 DD [12:23:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 AC C1 00 00 69 04 A1 00 6F 04 04 00 AC C0 00 00 B1 04 04 00 67 14 C0 82 70 04 04 00 CC 81 AA 61 72 04 04 00 9B 92 15 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BF FD E2 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1D 2D 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [12:23:19]wFMCommunicate OK [12:23:19]wFMCommunicate request_size=4 [12:23:19]MH_SAM_APDU [12:23:19]CAPDU: 80 17 00 00 [12:23:19]Write to MH i2c: E2 08 00 24 07 80 17 00 00 00 00 00 00 AB [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 FD 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 FD 00 24 07 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [12:23:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:23:20]wFMCommunicate OK [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 17 00 00 [12:23:20]Write to MH i2c: E2 08 00 25 07 80 17 00 00 00 00 00 00 AC [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 FD 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 FD 00 25 07 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BE [12:23:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:23:20]wFMCommunicate OK [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 17 00 00 [12:23:20]Write to MH i2c: E2 08 00 26 07 80 17 00 00 00 00 00 00 AD [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 FD 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 FD 00 26 07 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 39 [12:23:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:23:20]wFMCommunicate OK [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 17 00 00 [12:23:20]Write to MH i2c: E2 08 00 27 07 80 17 00 00 00 00 00 00 AE [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:23:20]Read from MH i2c: E2 E2 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 E2 00 27 07 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8C [12:23:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:23:20]wFMCommunicate OK [12:23:20]SAM_PROTO_GetFMData done [12:23:20]requested_item fm.sale_refund.total is exist - process it [12:23:20]requested_item fm.buy.total is exist - process it [12:23:20]requested_item shift.sale.total is exist - process it [12:23:20]SAM_PROTO_GetShiftData [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 13 02 00 [12:23:20]Write to MH i2c: E2 08 00 28 07 80 13 02 00 00 00 00 00 AD [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 FD 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 FD 00 28 07 00 AE 04 AA 04 AA 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 42 00 00 00 B1 04 03 00 52 E7 1D 70 04 03 00 EC C1 15 72 04 03 00 66 25 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 F9 2C 03 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 BE 43 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [12:23:21]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 42 00 00 00 B1 04 03 00 52 E7 1D 70 04 03 00 EC C1 15 72 04 03 00 66 25 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 F9 2C 03 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 BE 43 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:23:21]wFMCommunicate OK [12:23:21]wFMCommunicate request_size=4 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 17 00 00 [12:23:21]Write to MH i2c: E2 08 00 29 07 80 17 00 00 00 00 00 00 B0 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 FD 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 FD 00 29 07 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 D2 [12:23:21]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 [12:23:21]wFMCommunicate OK [12:23:21]wFMCommunicate request_size=4 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 17 00 00 [12:23:21]Write to MH i2c: E2 08 00 2A 07 80 17 00 00 00 00 00 00 B1 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 FD 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 FD 00 2A 07 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 68 [12:23:21]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 [12:23:21]wFMCommunicate OK [12:23:21]wFMCommunicate request_size=4 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 17 00 00 [12:23:21]Write to MH i2c: E2 08 00 2B 07 80 17 00 00 00 00 00 00 B2 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:23:22]Read from MH i2c: E2 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 FD 00 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 FD 00 2B 07 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 24 [12:23: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 [12:23:22]wFMCommunicate OK [12:23:22]wFMCommunicate request_size=4 [12:23:22]MH_SAM_APDU [12:23:22]CAPDU: 80 17 00 00 [12:23:22]Write to MH i2c: E2 08 00 2C 07 80 17 00 00 00 00 00 00 B3 [12:23:22]Write i2c OK [12:23:22]MH_I2C_Read... [12:23:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:23:22]Read from MH i2c: E2 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 CB 00 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: E2 CB 00 2C 07 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 9C [12:23:22]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 [12:23:22]wFMCommunicate OK [12:23:22]SAM_PROTO_GetShiftData done [12:23:22]requested_item shift.sale.total_cash is exist - process it [12:23:22]requested_item shift.sale_refund.total is exist - process it [12:23:22]requested_item shift.sale_refund.total_cash is exist - process it [12:23:22]requested_item shift.buy.total is exist - process it [12:23:22]requested_item shift.buy.total_cash is exist - process it [12:23:22]produce_requested_data done [12:23:22]produce_requested_data return {"fm.sale.total":21936262.15,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":19597.62,"shift.sale.total_cash":14259.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:23:22]process_action_free get_value [12:23:22]json_value_free [12:23:22]json_value_free done [12:23:22]process_json_proto returns [12:23:22]Send response to host [12:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21936262.15,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":19597.62,"shift.sale.total_cash":14259.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:23:22]free response buf [12:23:22]execute_script done [12:23:22]execute_script returns [12:23:22]free content buf [12:23:22]Sock 7.Close socket [12:23:22]Sock 7.Thread stoped [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:55]accept exits with 9 [12:24:55]New connection [12:24:55]New thread 3066789220 created [12:24:55]Thread 3066645860 joined [12:24:55]Waiting for new connection... [12:24:55] Sock 9.Parse request [12:24:55]Sock 9.Check first char [12:24:55]Sock 9.First char is OK [12:24:55]request: POST /json_proto HTTP/1.0 [12:24:55]Method: POST [12:24:55]URL: /json_proto [12:24:55]Method is POST - this is cgi request [12:24:55]url: /json_proto [12:24:55]query_string will be loaded in cgi processing [12:24:55]execute_cgi json_proto POST (null) [12:24:55]execute_cgi path=json_proto method=POST [12:24:55]POST find Content-Length [12:24:55]Host: 172.17.49.196:8080 [12:24:55]Content-Length: 1243 [12:24:55]Content-Type: application/json [12:24:55] [12:24:55]POST finish read [12:24:55]Found Content-Length = 1243 [12:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164476", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:55]execute_script... [12:24: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)164476", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:55]POST & json_proto [12:24:55]process_json_proto [12:24:55]json parsed OK: [12:24:55]protocol is kg_v1.0 [12:24:55]action value=close_receipt [12:24:55]process_action close_receipt [12:24:55]cmd_close_receipt [12:24:55]MH_GetDate [12:24:55]Write to MH i2c: F0 00 00 2D 07 23 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: F0 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: F0 09 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: F0 09 00 2D 07 00 18 8E 1B 67 BD 3B 11 67 C4 [12:24:55]GetLastDocTimeStamp 1729858134 [12:24:55]current date 1729859096 [12:24:55]FM_GetShiftState [12:24:55]SAM_PROTO_GetShiftState [12:24:55]wFMCommunicate request_size=4 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 13 01 00 [12:24:55]Write to MH i2c: E2 08 00 2E 07 80 13 01 00 00 00 00 00 B2 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 0E 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 0E 00 2E 07 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 AA [12:24:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:24:55]wFMCommunicate OK [12:24:55]SAM_PROTO_GetShiftState done [12:24:55]FM_GetShiftState done [12:24:55]opened in 1729815177 [12:24:55]opened+sec_in_day 1729901577 [12:24:55]quantity*price = 9000 [12:24:55]sum+1 = 9001 [12:24:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4602441014019 Напиток Лимонад 0,5л ст (Gabb trade) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 359.00 НСП 1% : 3.18 НДС 12% : 38.12 Наличными: 359.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 67 25.10.2024 12:24 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50567 ФПД: 63046035259097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T122457&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50567&fm=63046035259097&tin=02508201610067®Number=0000000000097022&sum=35900 0 [12:24:56]StoreToDocumentArchive [12:24:56]shift 493 fd 50567 [12:24:56]save to /storage/0493/doc_00050567 [12:24:56]save last doc name /storage/0493/doc_00050567 to /storage/kkm_last_doc_name [12:24:56]save OK [12:24:56]Clear old archive folders... [12:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=529 [12:24:56]tlvbuf is 01E4BA90 [12:24:56]SAM_PROTO_ClearQueue [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 09 00 00 [12:24:56]Write to MH i2c: E2 08 00 3B 07 80 09 00 00 00 00 00 00 B4 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [12:24:56]RAPDU: 90 00 [12:24:56]wFMCommunicate OK [12:24:56]SAM_PROTO_ClearQueue done [12:24:56]KKMCreateOFDPacket [12:24:56]OFDProtocolAddRootSTLVToBuf [12:24:56]FM_MakeSignedData [12:24:56]FM_MakeSignedData [12:24:56]SAM_PROTO_SignData [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 0D 01 02 [12:24:56]Write to MH i2c: E2 08 00 3C 07 80 0D 01 02 00 00 00 00 BC [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [12:24:56]RAPDU: 90 00 [12:24:56]wFMCommunicate OK [12:24:56]wFMCommunicate request_size=255 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 0D 02 02 FA 03 00 11 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 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 [12:24:56]Write to MH i2c: E2 02 01 3D 07 80 0D 02 02 FA 00 03 00 11 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 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 00 00 E1 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 03 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [12:24:57]RAPDU: 90 00 [12:24:57]wFMCommunicate OK [12:24:57]wFMCommunicate request_size=255 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 0D 02 02 FA 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 3C 8C 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 19 8E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 [12:24:57]Write to MH i2c: E2 02 01 3E 07 80 0D 02 02 FA 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 3C 8C 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 19 8E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 00 00 2F [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 03 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 03 00 3E 07 00 90 00 B9 [12:24:57]RAPDU: 90 00 [12:24:57]wFMCommunicate OK [12:24:57]wFMCommunicate request_size=38 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 87 C5 00 00 35 04 06 00 39 57 0C 89 3E D9 [12:24:57]Write to MH i2c: E2 29 00 3F 07 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 87 C5 00 00 35 04 06 00 39 57 0C 89 3E D9 00 00 C5 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 03 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 03 00 3F 07 00 90 00 BA [12:24:57]RAPDU: 90 00 [12:24:57]wFMCommunicate OK [12:24:57]wFMCommunicate request_size=4 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 0D 03 02 [12:24:57]Write to MH i2c: E2 08 00 40 07 80 0D 03 02 00 00 00 00 C2 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 0B 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 0B 00 40 07 00 6E E6 F6 7A 13 F2 F9 19 90 00 9E [12:24:57]RAPDU: 6E E6 F6 7A 13 F2 F9 19 90 00 [12:24:57]wFMCommunicate OK [12:24:57]SAM_PROTO_SignData done [12:24:57]FM_MakeSignedData done [12:24:57]CreateOFDProtocolMessage [12:24:57]wFMCommunicate request_size=4 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 11 00 00 [12:24:57]Write to MH i2c: E2 08 00 41 07 80 11 00 00 00 00 00 00 C2 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 17 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 17 00 41 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 09 [12:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:24:57]wFMCommunicate OK [12:24:57]CreateOFDProtocolMessage done [12:24:57]OFDSenderStorePacket 50567 [12:24:57]StoreOFDPacket docnum=50567 [12:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 02 00 00 CD AA 1D 02 40 63 5A 03 01 00 03 00 11 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 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 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 3C 8C 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 19 8E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 87 C5 00 00 35 04 06 00 39 57 0C 89 3E D9 6E E6 F6 7A 13 F2 F9 19 [12:24:57]CheckFolder [12:24:57]dirname=/storage/ofd_packets [12:24:57]CheckFolder done [12:24:57]ProducePacketName [12:24:57]name=ofd_packets/00050567 [12:24:57]NVStorageSaveData ofd_packets/00050567 [12:24:57]File name is /storage/ofd_packets/00050567 [12:24:57]Write 579 bytes [12:24:57]NVStorageSaveData done [12:24:57]OFDSenderStorePacket done [12:24:57]KKMCreateOFDPacket done [12:24:57]NVStorageSaveData kkm_last_timestamp [12:24:57]File name is /storage/kkm_last_timestamp [12:24:57]Write 4 bytes [12:24:57]NVStorageSaveData done [12:24:57]ExternCall_PrintAddStr [12:24:57]wPrintStart [12:24:57]Write to MH i2c: 01 00 00 42 07 49 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: 01 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: 01 07 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: 01 07 00 42 07 00 00 00 00 00 FF 0F 5E [12:24:57]RasterBufferAndPrint [12:24:57]line Счет N : (3)164476 [12:24:57]line ИНН: 02508201610067 [12:24:57]line Контрольно-Кассовый Чек [12:24:57]line ПРОДАЖА [12:24:57]line Товар: 4660085515163 [12:24:57]line Шок Батончик Сникерс супер 95/80г [12:24:57]line 1.000 * 90.00 [12:24:57]line = 90.00 [12:24:57]line НДС 12% НСП 1% [12:24:57]line > о реализуемом товаре [12:24:57]line Товар: 4602441014019 [12:24:57]line Напиток Лимонад 0,5л ст (Gabb trade) [12:24:57]line 1.000 * 125.00 [12:24:57]line = 125.00 [12:24:57]line НДС 12% НСП 1% [12:24:57]line > о реализуемом товаре [12:24:57]line Товар: 48743587 [12:24:57]line Сигареты Winston XStyle Silver [12:24:57]line 1.000 * 144.00 [12:24:57]line = 144.00 [12:24:57]line НДС 12% НСП 1% [12:24:57]line > о реализуемом товаре [12:24:57]line ИТОГО: 359.00 [12:24:57]line НСП 1% : 3.18 [12:24:57]line НДС 12% : 38.12 [12:24:57]line Наличными: 359.00 [12:24:57]line Безнал.: 0.00 [12:24:57]line Место: АЗС № 80 "Партнер Нефть" [12:24:57]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:24:57]line СНО: Общий режим [12:24:57]line Чек 67 25.10.2024 12:24 [12:24:57]line Смена: 493 ФФД: 1.0 [12:24:57]line ЗНМ: 0300000090 [12:24:57]line РНМ: 0000000000097022 [12:24:57]line Версия ККМ: 001 [12:24:57]line ФМ: 0000000000875000 [12:24:57]line ФД: 50567 [12:24:57]line ФПД: 63046035259097 [12:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T122457&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50567&fm=63046035259097&tin=02508201610067®Number=0000000000097022&sum=35900 [12:24:57]line 0 [12:24:57]OFD Sender: Processing packet 50567 [packets to send 7, broken 6] [12:24:57]ProducePacketName [12:24:57]name=ofd_packets/00050567 [12:24:57]OFD Sender: To server: pG, [12:24:57]CommunicateWithHost lk.salyk.kg:30040 [12:24:57]ConnectInit lk.salyk.kg [12:24:57]written 0, free lines is 4095 [12:24:57]Connected sock=10 [12:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 02 00 00 CD AA 1D 02 40 63 5A 03 01 00 03 00 11 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 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 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 3C 8C 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 19 8E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 87 C5 00 00 35 04 06 00 39 57 0C 89 3E D9 6E E6 F6 7A 13 F2 F9 19 [12:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 86 C4 47 00 2A EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 87 C5 00 00 F4 03 04 00 AA 39 1B 67 B6 04 01 00 00 EE 74 4E 03 42 99 0F 67 [12:24:58]CommunicateWithHost err = 0 [12:24:58]CheckOFDResponse [12:24:58]1017 (14) - 77093643461234 [12:24:58]1041 (16) - 0000000000875000 [12:24:58]1040 (4) - 50567 [12:24:58]1012 (4) - 25.10.2024 06:24 [12:24:58]1206 (1) - 0 [12:24:58]OFD Sender: Remove packet 50567 [12:24:58]ProducePacketName [12:24:58]name=ofd_packets/00050567 [12:24:58]NVStorageDeleteData [12:24:58]Write to MH i2c: 01 00 00 79 07 80 [12:24:58]Write i2c OK [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: 01 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: 01 07 00 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: 01 07 00 79 07 00 00 00 00 00 54 0C E7 [12:24:58]RasterBufferAndPrint [12:24:58]line [12:24:58]line [12:24:58]line [12:24:58]line [12:24:58]line [12:24:58]written 0, free lines is 3165 [12:24:58]process_action close_receipt done [12:24:58]requested_data is exist [12:24:58]produce_requested_data [12:24:58]requested_item fm.sn is exist - process it [12:24:58]wFMCommunicate request_size=4 [12:24:58]MH_SAM_APDU [12:24:58]CAPDU: 80 11 00 00 [12:24:58]Write to MH i2c: E2 08 00 80 07 80 11 00 00 00 00 00 00 01 [12:24:58]Write i2c OK [12:24:58]MH_I2C_Read... [12:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:58]Read from MH i2c: E2 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 17 00 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 17 00 80 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 48 [12:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:24:58]wFMCommunicate OK [12:24:58]requested_item fd.num is exist - process it [12:24:58]SAM_PROTO_GetFieldsCounters [12:24:58]wFMCommunicate request_size=4 [12:24:58]MH_SAM_APDU [12:24:58]CAPDU: 80 13 00 00 [12:24:58]Write to MH i2c: E2 08 00 81 07 80 13 00 00 00 00 00 00 04 [12:24:58]Write i2c OK [12:24:58]MH_I2C_Read... [12:24:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:58]Read from MH i2c: E2 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 62 00 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 62 00 81 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 87 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [12:24:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 87 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:58]wFMCommunicate OK [12:24:58]SAM_PROTO_GetFieldsCounters done [12:24:58]requested_item shift.num is exist - process it [12:24:58]requested_item shift.opened is exist - process it [12:24:58]req_shift_opened [12:24:58]FM_GetShiftState [12:24:58]SAM_PROTO_GetShiftState [12:24:58]wFMCommunicate request_size=4 [12:24:58]MH_SAM_APDU [12:24:58]CAPDU: 80 13 01 00 [12:24:58]Write to MH i2c: E2 08 00 82 07 80 13 01 00 00 00 00 00 06 [12:24:58]Write i2c OK [12:24:58]MH_I2C_Read... [12:24:58]OFD Sender: No OFD packet to send [12:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:58]Read from MH i2c: E2 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 0E 00 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 0E 00 82 07 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 FE [12:24:58]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:24:58]wFMCommunicate OK [12:24:58]SAM_PROTO_GetShiftState done [12:24:58]FM_GetShiftState done [12:24:58]req_shift_opened done [12:24:58]requested_item shift.open_date is exist - process it [12:24:58]req_shift_open_date [12:24:58]req_shift_open_date done [12:24:58]produce_requested_data done [12:24:58]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50567,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [12:24:58]process_action_free close_receipt [12:24:58]json_value_free [12:24:58]json_value_free done [12:24:58]process_json_proto returns [12:24:58]Send response to host [12:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50567,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [12:24:58]free response buf [12:24:58]execute_script done [12:24:58]execute_script returns [12:24:58]free content buf [12:24:58]Sock 9.Close socket [12:24:58]Sock 9.Thread stoped [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:25]accept exits with 7 [12:31:25]New connection [12:31:25]New thread 3066645860 created [12:31:25]Thread 3066789220 joined [12:31:25]Waiting for new connection... [12:31:25] Sock 7.Parse request [12:31:25]Sock 7.Check first char [12:31:25]Sock 7.First char is OK [12:31:25]request: POST /json_proto HTTP/1.0 [12:31:25]Method: POST [12:31:25]URL: /json_proto [12:31:25]Method is POST - this is cgi request [12:31:25]url: /json_proto [12:31:25]query_string will be loaded in cgi processing [12:31:25]execute_cgi json_proto POST (null) [12:31:25]execute_cgi path=json_proto method=POST [12:31:25]POST find Content-Length [12:31:25]Host: 172.17.49.196:8080 [12:31:25]Content-Length: 622 [12:31:25]Content-Type: application/json [12:31:25] [12:31:25]POST finish read [12:31:25]Found Content-Length = 622 [12:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164477", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:25]execute_script... [12:31: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)164477", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:25]POST & json_proto [12:31:25]process_json_proto [12:31:25]json parsed OK: [12:31:25]protocol is kg_v1.0 [12:31:25]action value=close_receipt [12:31:25]process_action close_receipt [12:31:25]cmd_close_receipt [12:31:25]MH_GetDate [12:31:25]Write to MH i2c: F0 00 00 83 07 79 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: F0 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: F0 09 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: F0 09 00 83 07 00 9E 8F 1B 67 BD 3B 11 67 A1 [12:31:25]GetLastDocTimeStamp 1729859097 [12:31:25]current date 1729859486 [12:31:25]FM_GetShiftState [12:31:25]SAM_PROTO_GetShiftState [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 13 01 00 [12:31:25]Write to MH i2c: E2 08 00 84 07 80 13 01 00 00 00 00 00 08 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 0E 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 0E 00 84 07 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 00 [12:31:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:31:25]wFMCommunicate OK [12:31:25]SAM_PROTO_GetShiftState done [12:31:25]FM_GetShiftState done [12:31:25]opened in 1729815177 [12:31:25]opened+sec_in_day 1729901577 [12:31:25]quantity*price = 15400 [12:31:25]sum+1 = 15401 [12:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 68 25.10.2024 12:31 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50568 ФПД: 12894614789887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T123126&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50568&fm=12894614789887&tin=02508201610067®Number=0000000000097022&sum=15400 0 [12:31:26]StoreToDocumentArchive [12:31:26]shift 493 fd 50568 [12:31:26]save to /storage/0493/doc_00050568 [12:31:26]save last doc name /storage/0493/doc_00050568 to /storage/kkm_last_doc_name [12:31:26]save OK [12:31:26]Clear old archive folders... [12:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:31:26]tlvbuf is 01E38B60 [12:31:26]SAM_PROTO_ClearQueue [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 09 00 00 [12:31:26]Write to MH i2c: E2 08 00 91 07 80 09 00 00 00 00 00 00 0A [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 91 07 00 90 00 0C [12:31:26]RAPDU: 90 00 [12:31:26]wFMCommunicate OK [12:31:26]SAM_PROTO_ClearQueue done [12:31:26]KKMCreateOFDPacket [12:31:26]OFDProtocolAddRootSTLVToBuf [12:31:26]FM_MakeSignedData [12:31:26]FM_MakeSignedData [12:31:26]SAM_PROTO_SignData [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 0D 01 02 [12:31:26]Write to MH i2c: E2 08 00 92 07 80 0D 01 02 00 00 00 00 12 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 92 07 00 90 00 0D [12:31:26]RAPDU: 90 00 [12:31:26]wFMCommunicate OK [12:31:26]wFMCommunicate request_size=255 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9E 8F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [12:31:26]Write to MH i2c: E2 02 01 93 07 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9E 8F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 7B [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 93 07 00 90 00 0E [12:31:26]RAPDU: 90 00 [12:31:26]wFMCommunicate OK [12:31:26]wFMCommunicate request_size=33 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C5 00 00 35 04 06 00 0B BA 42 EF 1E FF [12:31:26]Write to MH i2c: E2 24 00 94 07 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C5 00 00 35 04 06 00 0B BA 42 EF 1E FF 00 00 F8 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 94 07 00 90 00 0F [12:31:26]RAPDU: 90 00 [12:31:26]wFMCommunicate OK [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 0D 03 02 [12:31:26]Write to MH i2c: E2 08 00 95 07 80 0D 03 02 00 00 00 00 17 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 0B 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 0B 00 95 07 00 6A 9E E2 E6 D6 24 47 37 90 00 60 [12:31:26]RAPDU: 6A 9E E2 E6 D6 24 47 37 90 00 [12:31:26]wFMCommunicate OK [12:31:26]SAM_PROTO_SignData done [12:31:26]FM_MakeSignedData done [12:31:26]CreateOFDProtocolMessage [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 11 00 00 [12:31:26]Write to MH i2c: E2 08 00 96 07 80 11 00 00 00 00 00 00 17 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 17 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 17 00 96 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 5E [12:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:31:26]wFMCommunicate OK [12:31:26]CreateOFDProtocolMessage done [12:31:26]OFDSenderStorePacket 50568 [12:31:26]StoreOFDPacket docnum=50568 [12:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 1D E6 1E 01 12 B1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9E 8F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C5 00 00 35 04 06 00 0B BA 42 EF 1E FF 6A 9E E2 E6 D6 24 47 37 [12:31:26]CheckFolder [12:31:26]dirname=/storage/ofd_packets [12:31:26]CheckFolder done [12:31:26]ProducePacketName [12:31:26]name=ofd_packets/00050568 [12:31:26]NVStorageSaveData ofd_packets/00050568 [12:31:26]File name is /storage/ofd_packets/00050568 [12:31:26]Write 324 bytes [12:31:26]NVStorageSaveData done [12:31:26]OFDSenderStorePacket done [12:31:26]KKMCreateOFDPacket done [12:31:26]NVStorageSaveData kkm_last_timestamp [12:31:26]File name is /storage/kkm_last_timestamp [12:31:26]Write 4 bytes [12:31:26]NVStorageSaveData done [12:31:26]ExternCall_PrintAddStr [12:31:26]wPrintStart [12:31:26]Write to MH i2c: 01 00 00 97 07 9E [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: 01 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: 01 07 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: 01 07 00 97 07 00 00 00 00 00 FF 0F B3 [12:31:26]RasterBufferAndPrint [12:31:26]line Счет N : (3)164477 [12:31:26]line ИНН: 02508201610067 [12:31:26]line Контрольно-Кассовый Чек [12:31:26]line ПРОДАЖА [12:31:26]line Товар: 46230614 [12:31:26]line Сигареты Richmond Red Edition [12:31:26]line 1.000 * 154.00 [12:31:26]line = 154.00 [12:31:26]line НДС 12% НСП 1% [12:31:26]line > о реализуемом товаре [12:31:26]line ИТОГО: 154.00 [12:31:26]line НСП 1% : 1.36 [12:31:26]line НДС 12% : 16.35 [12:31:26]line Наличными: 154.00 [12:31:26]line Безнал.: 0.00 [12:31:26]line Место: АЗС № 80 "Партнер Нефть" [12:31:26]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:31:26]line СНО: Общий режим [12:31:26]line Чек 68 25.10.2024 12:31 [12:31:26]line Смена: 493 ФФД: 1.0 [12:31:26]line ЗНМ: 0300000090 [12:31:26]line РНМ: 0000000000097022 [12:31:26]line Версия ККМ: 001 [12:31:26]line ФМ: 0000000000875000 [12:31:26]line ФД: 50568 [12:31:26]line ФПД: 12894614789887 [12:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T123126&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50568&fm=12894614789887&tin=02508201610067®Number=0000000000097022&sum=15400 [12:31:27]line 0 [12:31:27]OFD Sender: Processing packet 50568 [packets to send 7, broken 6] [12:31:27]ProducePacketName [12:31:27]name=ofd_packets/00050568 [12:31:27]OFD Sender: To server: pG, [12:31:27]CommunicateWithHost lk.salyk.kg:30040 [12:31:27]ConnectInit lk.salyk.kg [12:31:27]written 0, free lines is 4095 [12:31:27]Connected sock=10 [12:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 1D E6 1E 01 12 B1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9E 8F 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C5 00 00 35 04 06 00 0B BA 42 EF 1E FF 6A 9E E2 E6 D6 24 47 37 [12:31:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 3D E9 47 00 A1 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 88 C5 00 00 F4 03 04 00 2F 3B 1B 67 B6 04 01 00 00 18 CB B4 B9 72 DC CD 5C [12:31:27]CommunicateWithHost err = 0 [12:31:27]CheckOFDResponse [12:31:27]1017 (14) - 77093643461234 [12:31:27]1041 (16) - 0000000000875000 [12:31:27]1040 (4) - 50568 [12:31:27]1012 (4) - 25.10.2024 06:31 [12:31:27]1206 (1) - 0 [12:31:27]OFD Sender: Remove packet 50568 [12:31:27]ProducePacketName [12:31:27]name=ofd_packets/00050568 [12:31:27]NVStorageDeleteData [12:31:27]Write to MH i2c: 01 00 00 C0 07 C7 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 07 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 07 00 C0 07 00 00 00 00 00 00 0D DB [12:31:27]RasterBufferAndPrint [12:31:27]line [12:31:27]line [12:31:27]line [12:31:27]line [12:31:27]line [12:31:27]written 0, free lines is 3334 [12:31:27]process_action close_receipt done [12:31:27]requested_data is exist [12:31:27]produce_requested_data [12:31:27]requested_item fm.sn is exist - process it [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 11 00 00 [12:31:27]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 17 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8F [12:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:31:27]wFMCommunicate OK [12:31:27]requested_item fd.num is exist - process it [12:31:27]SAM_PROTO_GetFieldsCounters [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 13 00 00 [12:31:27]Write to MH i2c: E2 08 00 C8 07 80 13 00 00 00 00 00 00 4B [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 62 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 62 00 C8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 88 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 88 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_GetFieldsCounters done [12:31:27]requested_item shift.num is exist - process it [12:31:27]requested_item shift.opened is exist - process it [12:31:27]req_shift_opened [12:31:27]FM_GetShiftState [12:31:27]SAM_PROTO_GetShiftState [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 13 01 00 [12:31:27]Write to MH i2c: E2 08 00 C9 07 80 13 01 00 00 00 00 00 4D [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0E 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0E 00 C9 07 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 45 [12:31:27]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_GetShiftState done [12:31:27]FM_GetShiftState done [12:31:27]req_shift_opened done [12:31:27]requested_item shift.open_date is exist - process it [12:31:27]req_shift_open_date [12:31:27]req_shift_open_date done [12:31:27]produce_requested_data done [12:31:27]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50568,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [12:31:27]process_action_free close_receipt [12:31:27]json_value_free [12:31:27]json_value_free done [12:31:27]process_json_proto returns [12:31:27]Send response to host [12:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50568,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [12:31:27]free response buf [12:31:27]execute_script done [12:31:27]execute_script returns [12:31:27]free content buf [12:31:27]Sock 7.Close socket [12:31:27]Sock 7.Thread stoped [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:53]accept exits with 9 [12:40:53]New connection [12:40:53]New thread 3066789220 created [12:40:53]Thread 3066645860 joined [12:40:53]Waiting for new connection... [12:40:53] Sock 9.Parse request [12:40:53]Sock 9.Check first char [12:40:53]Sock 9.First char is OK [12:40:53]request: POST /json_proto HTTP/1.0 [12:40:53]Method: POST [12:40:53]URL: /json_proto [12:40:53]Method is POST - this is cgi request [12:40:53]url: /json_proto [12:40:53]query_string will be loaded in cgi processing [12:40:53]execute_cgi json_proto POST (null) [12:40:53]execute_cgi path=json_proto method=POST [12:40:53]POST find Content-Length [12:40:53]Host: 172.17.49.196:8080 [12:40:53]Content-Length: 646 [12:40:53]Content-Type: application/json [12:40:53] [12:40:53]POST finish read [12:40:53]Found Content-Length = 646 [12:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164478", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:53]execute_script... [12:40:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164478", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:53]POST & json_proto [12:40:53]process_json_proto [12:40:53]json parsed OK: [12:40:53]protocol is kg_v1.0 [12:40:53]action value=close_receipt [12:40:53]process_action close_receipt [12:40:53]cmd_close_receipt [12:40:53]MH_GetDate [12:40:53]Write to MH i2c: F0 00 00 CA 07 C0 [12:40:53]Write i2c OK [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: F0 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: F0 09 00 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: F0 09 00 CA 07 00 D7 91 1B 67 BD 3B 11 67 23 [12:40:53]GetLastDocTimeStamp 1729859486 [12:40:53]current date 1729860055 [12:40:53]FM_GetShiftState [12:40:53]SAM_PROTO_GetShiftState [12:40:53]wFMCommunicate request_size=4 [12:40:53]MH_SAM_APDU [12:40:53]CAPDU: 80 13 01 00 [12:40:53]Write to MH i2c: E2 08 00 CB 07 80 13 01 00 00 00 00 00 4F [12:40:53]Write i2c OK [12:40:53]MH_I2C_Read... [12:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:53]Read from MH i2c: E2 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 0E 00 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 0E 00 CB 07 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 47 [12:40:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:40:53]wFMCommunicate OK [12:40:53]SAM_PROTO_GetShiftState done [12:40:53]FM_GetShiftState done [12:40:53]opened in 1729815177 [12:40:53]opened+sec_in_day 1729901577 [12:40:53]quantity*price = 26000 [12:40:53]sum+1 = 26001 [12:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 69 25.10.2024 12:40 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50569 ФПД: 176846511136444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124055&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50569&fm=176846511136444&tin=02508201610067®Number=0000000000097022&sum=26000 0 [12:40:55]StoreToDocumentArchive [12:40:55]shift 493 fd 50569 [12:40:55]save to /storage/0493/doc_00050569 [12:40:55]save last doc name /storage/0493/doc_00050569 to /storage/kkm_last_doc_name [12:40:55]save OK [12:40:55]Clear old archive folders... [12:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:40:55]tlvbuf is 01E32100 [12:40:55]SAM_PROTO_ClearQueue [12:40:55]wFMCommunicate request_size=4 [12:40:55]MH_SAM_APDU [12:40:55]CAPDU: 80 09 00 00 [12:40:55]Write to MH i2c: E2 08 00 D8 07 80 09 00 00 00 00 00 00 51 [12:40:55]Write i2c OK [12:40:55]MH_I2C_Read... [12:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:55]Read from MH i2c: E2 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 03 00 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [12:40:55]RAPDU: 90 00 [12:40:55]wFMCommunicate OK [12:40:55]SAM_PROTO_ClearQueue done [12:40:55]KKMCreateOFDPacket [12:40:55]OFDProtocolAddRootSTLVToBuf [12:40:55]FM_MakeSignedData [12:40:55]FM_MakeSignedData [12:40:55]SAM_PROTO_SignData [12:40:55]wFMCommunicate request_size=4 [12:40:55]MH_SAM_APDU [12:40:55]CAPDU: 80 0D 01 02 [12:40:55]Write to MH i2c: E2 08 00 D9 07 80 0D 01 02 00 00 00 00 59 [12:40:55]Write i2c OK [12:40:55]MH_I2C_Read... [12:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:55]Read from MH i2c: E2 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 03 00 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [12:40:55]RAPDU: 90 00 [12:40:55]wFMCommunicate OK [12:40:55]wFMCommunicate request_size=255 [12:40:55]MH_SAM_APDU [12:40:55]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D7 91 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [12:40:55]Write to MH i2c: E2 02 01 DA 07 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D7 91 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 3A [12:40:55]Write i2c OK [12:40:55]MH_I2C_Read... [12:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:55]Read from MH i2c: E2 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 03 00 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 03 00 DA 07 00 90 00 55 [12:40:55]RAPDU: 90 00 [12:40:55]wFMCommunicate OK [12:40:55]wFMCommunicate request_size=41 [12:40:55]MH_SAM_APDU [12:40:55]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C5 00 00 35 04 06 00 A0 D7 49 79 DE BC [12:40:55]Write to MH i2c: E2 2C 00 DB 07 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C5 00 00 35 04 06 00 A0 D7 49 79 DE BC 00 00 40 [12:40:55]Write i2c OK [12:40:55]MH_I2C_Read... [12:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:55]Read from MH i2c: E2 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 03 00 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 03 00 DB 07 00 90 00 56 [12:40:55]RAPDU: 90 00 [12:40:55]wFMCommunicate OK [12:40:55]wFMCommunicate request_size=4 [12:40:55]MH_SAM_APDU [12:40:55]CAPDU: 80 0D 03 02 [12:40:55]Write to MH i2c: E2 08 00 DC 07 80 0D 03 02 00 00 00 00 5E [12:40:55]Write i2c OK [12:40:55]MH_I2C_Read... [12:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:55]Read from MH i2c: E2 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 0B 00 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 0B 00 DC 07 00 B6 7B E8 02 B8 53 64 82 90 00 6B [12:40:55]RAPDU: B6 7B E8 02 B8 53 64 82 90 00 [12:40:55]wFMCommunicate OK [12:40:55]SAM_PROTO_SignData done [12:40:55]FM_MakeSignedData done [12:40:55]CreateOFDProtocolMessage [12:40:55]wFMCommunicate request_size=4 [12:40:55]MH_SAM_APDU [12:40:55]CAPDU: 80 11 00 00 [12:40:55]Write to MH i2c: E2 08 00 DD 07 80 11 00 00 00 00 00 00 5E [12:40:55]Write i2c OK [12:40:55]MH_I2C_Read... [12:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:55]Read from MH i2c: E2 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 17 00 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: E2 17 00 DD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A5 [12:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:40:55]wFMCommunicate OK [12:40:55]CreateOFDProtocolMessage done [12:40:55]OFDSenderStorePacket 50569 [12:40:55]StoreOFDPacket docnum=50569 [12:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 15 13 26 01 74 AD 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D7 91 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C5 00 00 35 04 06 00 A0 D7 49 79 DE BC B6 7B E8 02 B8 53 64 82 [12:40:55]CheckFolder [12:40:55]dirname=/storage/ofd_packets [12:40:55]CheckFolder done [12:40:55]ProducePacketName [12:40:55]name=ofd_packets/00050569 [12:40:55]NVStorageSaveData ofd_packets/00050569 [12:40:55]File name is /storage/ofd_packets/00050569 [12:40:55]Write 332 bytes [12:40:55]NVStorageSaveData done [12:40:55]OFDSenderStorePacket done [12:40:55]KKMCreateOFDPacket done [12:40:55]NVStorageSaveData kkm_last_timestamp [12:40:55]File name is /storage/kkm_last_timestamp [12:40:55]Write 4 bytes [12:40:55]NVStorageSaveData done [12:40:55]ExternCall_PrintAddStr [12:40:55]wPrintStart [12:40:55]Write to MH i2c: 01 00 00 DE 07 E5 [12:40:55]Write i2c OK [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: 01 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: 01 07 00 [12:40:55]MH_I2C_Read... [12:40:55]Read from MH i2c: 01 07 00 DE 07 00 00 00 00 00 FF 0F FA [12:40:55]RasterBufferAndPrint [12:40:55]line Счет N : (3)164478 [12:40:55]line ИНН: 02508201610067 [12:40:55]line Контрольно-Кассовый Чек [12:40:55]line ПРОДАЖА [12:40:55]line Товар: 2000036220012 [12:40:55]line Кофе Капучино XL(GABB TRADE) [12:40:55]line 2.000 * 130.00 [12:40:55]line = 260.00 [12:40:55]line НДС 12% НСП 1% [12:40:55]line > о реализуемом товаре [12:40:55]line ИТОГО: 260.00 [12:40:55]line НСП 1% : 2.30 [12:40:55]line НДС 12% : 27.61 [12:40:55]line Наличными: 260.00 [12:40:55]line Безнал.: 0.00 [12:40:55]line Место: АЗС № 80 "Партнер Нефть" [12:40:55]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [12:40:55]line СНО: Общий режим [12:40:55]line Чек 69 25.10.2024 12:40 [12:40:55]line Смена: 493 ФФД: 1.0 [12:40:55]line ЗНМ: 0300000090 [12:40:55]line РНМ: 0000000000097022 [12:40:55]line Версия ККМ: 001 [12:40:55]line ФМ: 0000000000875000 [12:40:55]line ФД: 50569 [12:40:55]line ФПД: 176846511136444 [12:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T124055&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50569&fm=176846511136444&tin=02508201610067®Number=0000000000097022&sum=26000 [12:40:55]line 0 [12:40:55]OFD Sender: Processing packet 50569 [packets to send 7, broken 6] [12:40:55]ProducePacketName [12:40:55]name=ofd_packets/00050569 [12:40:55]OFD Sender: To server: pG, [12:40:55]CommunicateWithHost lk.salyk.kg:30040 [12:40:55]ConnectInit lk.salyk.kg [12:40:55]written 0, free lines is 4095 [12:40:56]Connected sock=10 [12:40:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 15 13 26 01 74 AD 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D7 91 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C5 00 00 35 04 06 00 A0 D7 49 79 DE BC B6 7B E8 02 B8 53 64 82 [12:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 8F DC 47 00 61 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 89 C5 00 00 F4 03 04 00 68 3D 1B 67 B6 04 01 00 00 96 BE D0 2A EE 0A 51 37 [12:40:56]CommunicateWithHost err = 0 [12:40:56]CheckOFDResponse [12:40:56]1017 (14) - 77093643461234 [12:40:56]1041 (16) - 0000000000875000 [12:40:56]1040 (4) - 50569 [12:40:56]1012 (4) - 25.10.2024 06:40 [12:40:56]1206 (1) - 0 [12:40:56]OFD Sender: Remove packet 50569 [12:40:56]ProducePacketName [12:40:56]name=ofd_packets/00050569 [12:40:56]NVStorageDeleteData [12:40:56]Write to MH i2c: 01 00 00 07 08 0F [12:40:56]Write i2c OK [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: 01 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: 01 07 00 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: 01 07 00 07 08 00 00 00 00 00 1E 0D 41 [12:40:56]RasterBufferAndPrint [12:40:56]line [12:40:56]line [12:40:56]line [12:40:56]line [12:40:56]line [12:40:56]written 0, free lines is 3364 [12:40:56]process_action close_receipt done [12:40:56]requested_data is exist [12:40:56]produce_requested_data [12:40:56]requested_item fm.sn is exist - process it [12:40:56]wFMCommunicate request_size=4 [12:40:56]MH_SAM_APDU [12:40:56]CAPDU: 80 11 00 00 [12:40:56]Write to MH i2c: E2 08 00 0E 08 80 11 00 00 00 00 00 00 90 [12:40:56]Write i2c OK [12:40:56]MH_I2C_Read... [12:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:56]Read from MH i2c: E2 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 17 00 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 17 00 0E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D7 [12:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [12:40:56]wFMCommunicate OK [12:40:56]requested_item fd.num is exist - process it [12:40:56]SAM_PROTO_GetFieldsCounters [12:40:56]wFMCommunicate request_size=4 [12:40:56]MH_SAM_APDU [12:40:56]CAPDU: 80 13 00 00 [12:40:56]Write to MH i2c: E2 08 00 0F 08 80 13 00 00 00 00 00 00 93 [12:40:56]Write i2c OK [12:40:56]MH_I2C_Read... [12:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:56]Read from MH i2c: E2 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 62 00 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 62 00 0F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 89 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12:40:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 89 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:56]wFMCommunicate OK [12:40:56]SAM_PROTO_GetFieldsCounters done [12:40:56]requested_item shift.num is exist - process it [12:40:56]requested_item shift.opened is exist - process it [12:40:56]req_shift_opened [12:40:56]FM_GetShiftState [12:40:56]SAM_PROTO_GetShiftState [12:40:56]wFMCommunicate request_size=4 [12:40:56]MH_SAM_APDU [12:40:56]CAPDU: 80 13 01 00 [12:40:56]Write to MH i2c: E2 08 00 10 08 80 13 01 00 00 00 00 00 95 [12:40:56]Write i2c OK [12:40:56]MH_I2C_Read... [12:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:56]Read from MH i2c: E2 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 0E 00 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 0E 00 10 08 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8D [12:40:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [12:40:56]wFMCommunicate OK [12:40:56]SAM_PROTO_GetShiftState done [12:40:56]FM_GetShiftState done [12:40:56]req_shift_opened done [12:40:56]requested_item shift.open_date is exist - process it [12:40:56]req_shift_open_date [12:40:56]req_shift_open_date done [12:40:56]produce_requested_data done [12:40:56]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50569,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [12:40:56]process_action_free close_receipt [12:40:56]json_value_free [12:40:56]json_value_free done [12:40:56]process_json_proto returns [12:40:56]Send response to host [12:40:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50569,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [12:40:56]free response buf [12:40:56]execute_script done [12:40:56]execute_script returns [12:40:56]free content buf [12:40:56]Sock 9.Close socket [12:40:56]Sock 9.Thread stoped [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]accept exits with 7 [13:13:23]New connection [13:13:23]New thread 3066645860 created [13:13:23]Thread 3066789220 joined [13:13:23]Waiting for new connection... [13:13:23] Sock 7.Parse request [13:13:23]Sock 7.Check first char [13:13:23]Sock 7.First char is OK [13:13:23]request: POST /json_proto HTTP/1.0 [13:13:23]Method: POST [13:13:23]URL: /json_proto [13:13:23]Method is POST - this is cgi request [13:13:23]url: /json_proto [13:13:23]query_string will be loaded in cgi processing [13:13:23]execute_cgi json_proto POST (null) [13:13:23]execute_cgi path=json_proto method=POST [13:13:23]POST find Content-Length [13:13:23]Host: 172.17.49.196:8080 [13:13:23]Content-Length: 1026 [13:13:23]Content-Type: application/json [13:13:23] [13:13:23]POST finish read [13:13:23]Found Content-Length = 1026 [13:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164479", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 4.000, "sum" : 576.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 746.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:23]execute_script... [13:13: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)164479", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 4.000, "sum" : 576.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 746.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:23]POST & json_proto [13:13:23]process_json_proto [13:13:23]json parsed OK: [13:13:23]protocol is kg_v1.0 [13:13:23]action value=close_receipt [13:13:23]process_action close_receipt [13:13:23]cmd_close_receipt [13:13:23]MH_GetDate [13:13:23]Write to MH i2c: F0 00 00 11 08 08 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 09 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 09 00 11 08 00 74 99 1B 67 BD 3B 11 67 10 [13:13:23]GetLastDocTimeStamp 1729860055 [13:13:23]current date 1729862004 [13:13:23]FM_GetShiftState [13:13:23]SAM_PROTO_GetShiftState [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 13 01 00 [13:13:23]Write to MH i2c: E2 08 00 12 08 80 13 01 00 00 00 00 00 97 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0E 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0E 00 12 08 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8F [13:13:23]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_GetShiftState done [13:13:23]FM_GetShiftState done [13:13:23]opened in 1729815177 [13:13:23]opened+sec_in_day 1729901577 [13:13:23]quantity*price = 57600 [13:13:23]sum+1 = 57601 [13:13:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 746.00 НСП 1% : 6.60 НДС 12% : 79.22 Наличными: 0.00 Безнал.: 746.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 70 25.10.2024 13:13 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50570 ФПД: 171370574822253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131324&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50570&fm=171370574822253&tin=02508201610067®Number=0000000000097022&sum=74600 0 [13:13:24]StoreToDocumentArchive [13:13:24]shift 493 fd 50570 [13:13:24]save to /storage/0493/doc_00050570 [13:13:24]save last doc name /storage/0493/doc_00050570 to /storage/kkm_last_doc_name [13:13:24]save OK [13:13:24]Clear old archive folders... [13:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=386 [13:13:24]tlvbuf is 01E3A800 [13:13:24]SAM_PROTO_ClearQueue [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 09 00 00 [13:13:24]Write to MH i2c: E2 08 00 1F 08 80 09 00 00 00 00 00 00 99 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_ClearQueue done [13:13:24]KKMCreateOFDPacket [13:13:24]OFDProtocolAddRootSTLVToBuf [13:13:24]FM_MakeSignedData [13:13:24]FM_MakeSignedData [13:13:24]SAM_PROTO_SignData [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 01 02 [13:13:24]Write to MH i2c: E2 08 00 20 08 80 0D 01 02 00 00 00 00 A1 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=255 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 02 02 FA 03 00 82 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 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 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 35 34 34 39 30 30 30 30 30 30 39 39 36 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 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [13:13:24]Write to MH i2c: E2 02 01 21 08 80 0D 02 02 FA 00 03 00 82 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 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 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 35 34 34 39 30 30 30 30 30 30 39 39 36 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 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 D4 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=145 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 02 02 8C 06 00 94 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 23 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 74 99 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C5 00 00 35 04 06 00 9B DC 52 3C BB 6D [13:13:24]Write to MH i2c: E2 94 00 22 08 80 0D 02 02 8C 00 06 00 94 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 23 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 74 99 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C5 00 00 35 04 06 00 9B DC 52 3C BB 6D 00 00 4F [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 03 02 [13:13:24]Write to MH i2c: E2 08 00 23 08 80 0D 03 02 00 00 00 00 A6 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 0B 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 0B 00 23 08 00 EA 5F 1F FF 67 AF F7 97 90 00 B2 [13:13:24]RAPDU: EA 5F 1F FF 67 AF F7 97 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_SignData done [13:13:24]FM_MakeSignedData done [13:13:24]CreateOFDProtocolMessage [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 11 00 00 [13:13:24]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 17 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 ED [13:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:13:24]wFMCommunicate OK [13:13:24]CreateOFDProtocolMessage done [13:13:24]OFDSenderStorePacket 50570 [13:13:24]StoreOFDPacket docnum=50570 [13:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 96 01 00 00 55 5C 8E 01 C1 7E 5A 03 01 00 03 00 82 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 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 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 35 34 34 39 30 30 30 30 30 30 39 39 36 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 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 23 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 74 99 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C5 00 00 35 04 06 00 9B DC 52 3C BB 6D EA 5F 1F FF 67 AF F7 97 [13:13:24]CheckFolder [13:13:24]dirname=/storage/ofd_packets [13:13:24]CheckFolder done [13:13:24]ProducePacketName [13:13:24]name=ofd_packets/00050570 [13:13:24]NVStorageSaveData ofd_packets/00050570 [13:13:24]File name is /storage/ofd_packets/00050570 [13:13:24]Write 436 bytes [13:13:24]NVStorageSaveData done [13:13:24]OFDSenderStorePacket done [13:13:24]KKMCreateOFDPacket done [13:13:24]NVStorageSaveData kkm_last_timestamp [13:13:24]File name is /storage/kkm_last_timestamp [13:13:24]Write 4 bytes [13:13:24]NVStorageSaveData done [13:13:24]ExternCall_PrintAddStr [13:13:24]wPrintStart [13:13:24]Write to MH i2c: 01 00 00 25 08 2D [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 [13:13:25]MH_I2C_Read... [13:13:25]OFD Sender: Processing packet 50570 [packets to send 7, broken 6] [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00050570 [13:13:25]OFD Sender: To server: pG, [13:13:25]CommunicateWithHost lk.salyk.kg:30040 [13:13:25]ConnectInit lk.salyk.kg [13:13:25]Read from MH i2c: 01 07 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [13:13:25]RasterBufferAndPrint [13:13:25]line Счет N : (3)164479 [13:13:25]line ИНН: 02508201610067 [13:13:25]line Контрольно-Кассовый Чек [13:13:25]line ПРОДАЖА [13:13:25]line Товар: 48743587 [13:13:25]line Сигареты Winston XStyle Silver [13:13:25]line 4.000 * 144.00 [13:13:25]line = 576.00 [13:13:25]line НДС 12% НСП 1% [13:13:25]line > о реализуемом товаре [13:13:25]line Товар: 5449000000996 [13:13:25]line Напиток Кока-Кола 0,33л [13:13:25]line 2.000 * 85.00 [13:13:25]line = 170.00 [13:13:25]line НДС 12% НСП 1% [13:13:25]line > о реализуемом товаре [13:13:25]line ИТОГО: 746.00 [13:13:25]line НСП 1% : 6.60 [13:13:25]line НДС 12% : 79.22 [13:13:25]line Наличными: 0.00 [13:13:25]line Безнал.: 746.00 [13:13:25]line Место: АЗС № 80 "Партнер Нефть" [13:13:25]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:13:25]line СНО: Общий режим [13:13:25]line Чек 70 25.10.2024 13:13 [13:13:25]line Смена: 493 ФФД: 1.0 [13:13:25]line ЗНМ: 0300000090 [13:13:25]line РНМ: 0000000000097022 [13:13:25]line Версия ККМ: 001 [13:13:25]line Платежная система: Mbank [13:13:25]line ФМ: 0000000000875000 [13:13:25]line ФД: 50570 [13:13:25]line ФПД: 171370574822253 [13:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131324&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50570&fm=171370574822253&tin=02508201610067®Number=0000000000097022&sum=74600 [13:13:25]line 0 [13:13:25]written 0, free lines is 4095 [13:13:25]Connected sock=10 [13:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 96 01 00 00 55 5C 8E 01 C1 7E 5A 03 01 00 03 00 82 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 A0 0F 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 00 E1 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 35 34 34 39 30 30 30 30 30 30 39 39 36 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 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 23 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 74 99 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C5 00 00 35 04 06 00 9B DC 52 3C BB 6D EA 5F 1F FF 67 AF F7 97 [13:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A1 EC 47 00 F2 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8A C5 00 00 F4 03 04 00 05 45 1B 67 B6 04 01 00 00 7E 7F 40 A0 B8 5C 0C 9F [13:13:25]CommunicateWithHost err = 0 [13:13:25]CheckOFDResponse [13:13:25]1017 (14) - 77093643461234 [13:13:25]1041 (16) - 0000000000875000 [13:13:25]1040 (4) - 50570 [13:13:25]1012 (4) - 25.10.2024 07:13 [13:13:25]1206 (1) - 0 [13:13:25]OFD Sender: Remove packet 50570 [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00050570 [13:13:25]NVStorageDeleteData [13:13:25]Write to MH i2c: 01 00 00 55 08 5D [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 55 08 00 00 00 00 00 BA 0C 2A [13:13:25]RasterBufferAndPrint [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]written 0, free lines is 3267 [13:13:25]process_action close_receipt done [13:13:25]requested_data is exist [13:13:25]produce_requested_data [13:13:25]requested_item fm.sn is exist - process it [13:13:25]wFMCommunicate request_size=4 [13:13:25]MH_SAM_APDU [13:13:25]CAPDU: 80 11 00 00 [13:13:25]Write to MH i2c: E2 08 00 5C 08 80 11 00 00 00 00 00 00 DE [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 [13:13:25]MH_I2C_Read... [13:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:25]Read from MH i2c: E2 17 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 17 00 5C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 25 [13:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:13:25]wFMCommunicate OK [13:13:25]requested_item fd.num is exist - process it [13:13:25]SAM_PROTO_GetFieldsCounters [13:13:25]wFMCommunicate request_size=4 [13:13:25]MH_SAM_APDU [13:13:25]CAPDU: 80 13 00 00 [13:13:25]Write to MH i2c: E2 08 00 5D 08 80 13 00 00 00 00 00 00 E1 [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 62 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 62 00 5D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [13:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:26]wFMCommunicate OK [13:13:26]SAM_PROTO_GetFieldsCounters done [13:13:26]requested_item shift.num is exist - process it [13:13:26]requested_item shift.opened is exist - process it [13:13:26]req_shift_opened [13:13:26]FM_GetShiftState [13:13:26]SAM_PROTO_GetShiftState [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 13 01 00 [13:13:26]Write to MH i2c: E2 08 00 5E 08 80 13 01 00 00 00 00 00 E3 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]OFD Sender: No OFD packet to send [13:13:26]Read from MH i2c: E2 0E 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 0E 00 5E 08 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DB [13:13:26]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:13:26]wFMCommunicate OK [13:13:26]SAM_PROTO_GetShiftState done [13:13:26]FM_GetShiftState done [13:13:26]req_shift_opened done [13:13:26]requested_item shift.open_date is exist - process it [13:13:26]req_shift_open_date [13:13:26]req_shift_open_date done [13:13:26]produce_requested_data done [13:13:26]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50570,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [13:13:26]process_action_free close_receipt [13:13:26]json_value_free [13:13:26]json_value_free done [13:13:26]process_json_proto returns [13:13:26]Send response to host [13:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50570,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [13:13:26]free response buf [13:13:26]execute_script done [13:13:26]execute_script returns [13:13:26]free content buf [13:13:26]Sock 7.Close socket [13:13:26]Sock 7.Thread stoped [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:15:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=15 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 15 02 00 0A 07 04 06 00 E0 28 01 00 00 00 [13:15:19]Write to MH i2c: E2 12 00 66 08 80 15 02 00 0A 00 07 04 06 00 E0 28 01 00 00 00 00 00 1C [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=15 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [13:15:19]Write to MH i2c: E2 12 00 67 08 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 46 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=11 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [13:15:19]Write to MH i2c: E2 0E 00 68 08 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 22 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 68 08 00 90 00 E4 [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=13 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 15 02 00 08 F4 03 04 00 E8 99 1B 67 [13:15:19]Write to MH i2c: E2 10 00 69 08 80 15 02 00 08 00 F4 03 04 00 E8 99 1B 67 00 00 FF [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 69 08 00 90 00 E5 [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=25 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [13:15:19]Write to MH i2c: E2 1C 00 6A 08 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 4F [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 03 00 6A 08 00 90 00 E6 [13:15:19]RAPDU: 90 00 [13:15:19]wFMCommunicate OK [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 15 03 00 [13:15:19]Write to MH i2c: E2 08 00 6B 08 80 15 03 00 00 00 00 00 F4 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 40 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 40 00 6B 08 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 47 00 00 00 35 04 06 00 47 39 A1 FC 29 E7 90 00 90 [13:15:20]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 47 00 00 00 35 04 06 00 47 39 A1 FC 29 E7 90 00 [13:15:20]wFMCommunicate OK [13:15:20]SAM_PROTO_ProcessDocument answer len = 59 [13:15:20]SAM_PROTO_ProcessDocument done [13:15:20]SetTLVBufToDocument [13:15:20]Processing tag 1209 (04B9) [13:15:20]Malloc new data [13:15:20]Processing tag 1041 (0411) [13:15:20]Processing tag 1040 (0410) [13:15:20]Malloc new data [13:15:20]Processing tag 1038 (040E) [13:15:20]Malloc new data [13:15:20]Processing tag 1042 (0412) [13:15:20]Malloc new data [13:15:20]Processing tag 1077 (0435) [13:15:20]Malloc new data [13:15:20]SetTLVBufToDocument err=0 [13:15:20]KKMLoadAndSignReceiptData store KKM data [13:15:20]KKMLoadAndSignReceiptData err=0 [13:15:20]wFMCommunicate request_size=4 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 11 00 00 [13:15:20]Write to MH i2c: E2 08 00 6C 08 80 11 00 00 00 00 00 00 EE [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 17 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 17 00 6C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 35 [13:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:15:20]wFMCommunicate OK [13:15:20]Счет N : (3)164480 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 4700002083334 Водка Level 0,7л 1.000 * 630.00 = 630.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620006996716 Водка Талка 0,1л 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 760.00 НСП 1% : 6.72 НДС 12% : 80.70 Наличными: 760.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 71 25.10.2024 13:15 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50571 ФПД: 78312856365543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131520&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50571&fm=78312856365543&tin=02508201610067®Number=0000000000097022&sum=76000 0 [13:15:20]StoreToDocumentArchive [13:15:20]shift 493 fd 50571 [13:15:20]save to /storage/0493/doc_00050571 [13:15:20]save last doc name /storage/0493/doc_00050571 to /storage/kkm_last_doc_name [13:15:20]save OK [13:15:20]Clear old archive folders... [13:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=363 [13:15:20]tlvbuf is 01E3A340 [13:15:20]SAM_PROTO_ClearQueue [13:15:20]wFMCommunicate request_size=4 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 09 00 00 [13:15:20]Write to MH i2c: E2 08 00 6D 08 80 09 00 00 00 00 00 00 E7 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 03 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [13:15:20]RAPDU: 90 00 [13:15:20]wFMCommunicate OK [13:15:20]SAM_PROTO_ClearQueue done [13:15:20]KKMCreateOFDPacket [13:15:20]OFDProtocolAddRootSTLVToBuf [13:15:20]FM_MakeSignedData [13:15:20]FM_MakeSignedData [13:15:20]SAM_PROTO_SignData [13:15:20]wFMCommunicate request_size=4 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 0D 01 02 [13:15:20]Write to MH i2c: E2 08 00 6E 08 80 0D 01 02 00 00 00 00 EF [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 03 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [13:15:20]RAPDU: 90 00 [13:15:20]wFMCommunicate OK [13:15:20]wFMCommunicate request_size=255 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 0D 02 02 FA 03 00 6B 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 1F [13:15:20]Write to MH i2c: E2 02 01 6F 08 80 0D 02 02 FA 00 03 00 6B 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 1F 00 00 E2 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 03 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [13:15:20]RAPDU: 90 00 [13:15:20]wFMCommunicate OK [13:15:20]wFMCommunicate request_size=122 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 0D 02 02 75 00 00 00 00 07 04 06 00 E0 28 01 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 E8 99 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C5 00 00 35 04 06 00 47 39 A1 FC 29 E7 [13:15:20]Write to MH i2c: E2 7D 00 70 08 80 0D 02 02 75 00 00 00 00 00 07 04 06 00 E0 28 01 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 E8 99 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C5 00 00 35 04 06 00 47 39 A1 FC 29 E7 00 00 C3 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 03 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [13:15:20]RAPDU: 90 00 [13:15:20]wFMCommunicate OK [13:15:20]wFMCommunicate request_size=4 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 0D 03 02 [13:15:20]Write to MH i2c: E2 08 00 71 08 80 0D 03 02 00 00 00 00 F4 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 0B 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 0B 00 71 08 00 82 63 E2 10 50 C1 E2 F4 90 00 B3 [13:15:20]RAPDU: 82 63 E2 10 50 C1 E2 F4 90 00 [13:15:20]wFMCommunicate OK [13:15:20]SAM_PROTO_SignData done [13:15:20]FM_MakeSignedData done [13:15:20]CreateOFDProtocolMessage [13:15:20]wFMCommunicate request_size=4 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 11 00 00 [13:15:20]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 17 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3B [13:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:15:20]wFMCommunicate OK [13:15:20]CreateOFDProtocolMessage done [13:15:20]OFDSenderStorePacket 50571 [13:15:20]StoreOFDPacket docnum=50571 [13:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 7F 01 00 00 14 D3 77 01 8F C8 5A 03 01 00 03 00 6B 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 1F 00 00 00 00 07 04 06 00 E0 28 01 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 E8 99 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C5 00 00 35 04 06 00 47 39 A1 FC 29 E7 82 63 E2 10 50 C1 E2 F4 [13:15:20]CheckFolder [13:15:20]dirname=/storage/ofd_packets [13:15:20]CheckFolder done [13:15:20]ProducePacketName [13:15:20]name=ofd_packets/00050571 [13:15:20]NVStorageSaveData ofd_packets/00050571 [13:15:20]File name is /storage/ofd_packets/00050571 [13:15:20]Write 413 bytes [13:15:20]NVStorageSaveData done [13:15:20]OFDSenderStorePacket done [13:15:20]KKMCreateOFDPacket done [13:15:20]NVStorageSaveData kkm_last_timestamp [13:15:20]File name is /storage/kkm_last_timestamp [13:15:20]Write 4 bytes [13:15:20]NVStorageSaveData done [13:15:20]ExternCall_PrintAddStr [13:15:20]wPrintStart [13:15:20]Write to MH i2c: 01 00 00 73 08 7B [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 07 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [13:15:20]RasterBufferAndPrint [13:15:20]line Счет N : (3)164480 [13:15:20]line ИНН: 02508201610067 [13:15:20]line Контрольно-Кассовый Чек [13:15:20]line ПРОДАЖА [13:15:20]line Товар: 4700002083334 [13:15:20]line Водка Level 0,7л [13:15:20]line 1.000 * 630.00 [13:15:20]line = 630.00 [13:15:20]line НДС 12% НСП 1% [13:15:20]line > о реализуемом товаре [13:15:20]line Товар: 4620006996716 [13:15:20]line Водка Талка 0,1л [13:15:20]line 1.000 * 130.00 [13:15:20]line = 130.00 [13:15:20]line НДС 12% НСП 1% [13:15:20]line > о реализуемом товаре [13:15:21]line ИТОГО: 760.00 [13:15:21]line НСП 1% : 6.72 [13:15:21]line НДС 12% : 80.70 [13:15:21]line Наличными: 760.00 [13:15:21]line Безнал.: 0.00 [13:15:21]line Место: АЗС № 80 "Партнер Нефть" [13:15:21]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:15:21]line СНО: Общий режим [13:15:21]line Чек 71 25.10.2024 13:15 [13:15:21]line Смена: 493 ФФД: 1.0 [13:15:21]line ЗНМ: 0300000090 [13:15:21]line РНМ: 0000000000097022 [13:15:21]line Версия ККМ: 001 [13:15:21]line ФМ: 0000000000875000 [13:15:21]line ФД: 50571 [13:15:21]line ФПД: 78312856365543 [13:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131520&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50571&fm=78312856365543&tin=02508201610067®Number=0000000000097022&sum=76000 [13:15:21]line 0 [13:15:21]OFD Sender: Processing packet 50571 [packets to send 7, broken 6] [13:15:21]ProducePacketName [13:15:21]name=ofd_packets/00050571 [13:15:21]OFD Sender: To server: pG, [13:15:21]CommunicateWithHost lk.salyk.kg:30040 [13:15:21]ConnectInit lk.salyk.kg [13:15:21]written 0, free lines is 4095 [13:15:21]Connected sock=11 [13:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 7F 01 00 00 14 D3 77 01 8F C8 5A 03 01 00 03 00 6B 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 1F 00 00 00 00 07 04 06 00 E0 28 01 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 E8 99 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8B C5 00 00 35 04 06 00 47 39 A1 FC 29 E7 82 63 E2 10 50 C1 E2 F4 [13:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C9 21 47 00 CC 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 38 37 35 30 30 30 10 04 04 00 8B C5 00 00 F4 03 04 00 79 45 1B 67 B6 04 01 00 00 55 68 A8 42 95 C1 2B 78 [13:15:21]CommunicateWithHost err = 0 [13:15:21]CheckOFDResponse [13:15:21]1017 (14) - 77093643461234 [13:15:21]1041 (16) - 0000000000875000 [13:15:21]1040 (4) - 50571 [13:15:21]1012 (4) - 25.10.2024 07:15 [13:15:21]1206 (1) - 0 [13:15:21]OFD Sender: Remove packet 50571 [13:15:21]ProducePacketName [13:15:21]name=ofd_packets/00050571 [13:15:21]NVStorageDeleteData [13:15:21]Write to MH i2c: 01 00 00 A1 08 A9 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 A1 08 00 00 00 00 00 E3 0C 9F [13:15:21]RasterBufferAndPrint [13:15:21]line [13:15:21]line [13:15:21]line [13:15:21]line [13:15:21]line [13:15:21]written 0, free lines is 3308 [13:15:21]process_action close_receipt done [13:15:21]requested_data is exist [13:15:21]produce_requested_data [13:15:21]requested_item fm.sn is exist - process it [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 11 00 00 [13:15:21]Write to MH i2c: E2 08 00 A8 08 80 11 00 00 00 00 00 00 2A [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 17 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 17 00 A8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 71 [13:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:15:21]wFMCommunicate OK [13:15:21]requested_item fd.num is exist - process it [13:15:21]SAM_PROTO_GetFieldsCounters [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 13 00 00 [13:15:21]Write to MH i2c: E2 08 00 A9 08 80 13 00 00 00 00 00 00 2D [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 62 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 62 00 A9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [13:15:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:21]wFMCommunicate OK [13:15:21]SAM_PROTO_GetFieldsCounters done [13:15:21]requested_item shift.num is exist - process it [13:15:21]requested_item shift.opened is exist - process it [13:15:21]req_shift_opened [13:15:21]FM_GetShiftState [13:15:21]SAM_PROTO_GetShiftState [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 13 01 00 [13:15:21]Write to MH i2c: E2 08 00 AA 08 80 13 01 00 00 00 00 00 2F [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0E 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0E 00 AA 08 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 27 [13:15:22]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:15:22]wFMCommunicate OK [13:15:22]SAM_PROTO_GetShiftState done [13:15:22]FM_GetShiftState done [13:15:22]req_shift_opened done [13:15:22]requested_item shift.open_date is exist - process it [13:15:22]req_shift_open_date [13:15:22]req_shift_open_date done [13:15:22]produce_requested_data done [13:15:22]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50571,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [13:15:22]process_action_free close_receipt [13:15:22]json_value_free [13:15:22]json_value_free done [13:15:22]process_json_proto returns [13:15:22]Send response to host [13:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50571,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [13:15:22]free response buf [13:15:22]execute_script done [13:15:22]execute_script returns [13:15:22]free content buf [13:15:22]Sock 9.Close socket [13:15:22]Sock 9.Thread stoped [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:23]ConnectInit Can't connect to host [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:31]accept exits with 10 [13:17:31]New connection [13:17:31]New thread 3066645860 created [13:17:31]Thread 3066789220 joined [13:17:31]Waiting for new connection... [13:17:31] Sock 10.Parse request [13:17:31]Sock 10.Check first char [13:17:31]Sock 10.First char is OK [13:17:31]request: POST /json_proto HTTP/1.0 [13:17:31]Method: POST [13:17:31]URL: /json_proto [13:17:31]Method is POST - this is cgi request [13:17:31]url: /json_proto [13:17:31]query_string will be loaded in cgi processing [13:17:31]execute_cgi json_proto POST (null) [13:17:31]execute_cgi path=json_proto method=POST [13:17:31]POST find Content-Length [13:17:31]Host: 172.17.49.196:8080 [13:17:31]Content-Length: 757 [13:17:31]Content-Type: application/json [13:17:31] [13:17:31]POST finish read [13:17:31]Found Content-Length = 757 [13:17:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164481", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:31]execute_script... [13:17:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164481", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:31]POST & json_proto [13:17:31]process_json_proto [13:17:31]json parsed OK: [13:17:31]protocol is kg_v1.0 [13:17:31]action value=close_receipt [13:17:31]process_action close_receipt [13:17:31]cmd_close_receipt [13:17:31]MH_GetDate [13:17:31]Write to MH i2c: F0 00 00 AB 08 A2 [13:17:31]Write i2c OK [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: F0 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: F0 09 00 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: F0 09 00 AB 08 00 6D 9A 1B 67 BD 3B 11 67 A4 [13:17:31]GetLastDocTimeStamp 1729862120 [13:17:31]current date 1729862253 [13:17:31]FM_GetShiftState [13:17:31]SAM_PROTO_GetShiftState [13:17:31]wFMCommunicate request_size=4 [13:17:31]MH_SAM_APDU [13:17:31]CAPDU: 80 13 01 00 [13:17:31]Write to MH i2c: E2 08 00 AC 08 80 13 01 00 00 00 00 00 31 [13:17:31]Write i2c OK [13:17:31]MH_I2C_Read... [13:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:31]Read from MH i2c: E2 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 0E 00 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 0E 00 AC 08 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 29 [13:17:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:17:31]wFMCommunicate OK [13:17:31]SAM_PROTO_GetShiftState done [13:17:31]FM_GetShiftState done [13:17:31]opened in 1729815177 [13:17:31]opened+sec_in_day 1729901577 [13:17:31]quantity*price = 5000 [13:17:31]sum+1 = 5001 [13:17:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 72 25.10.2024 13:17 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50572 ФПД: 206960900621395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131733&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50572&fm=206960900621395&tin=02508201610067®Number=0000000000097022&sum=5000 0 [13:17:33]StoreToDocumentArchive [13:17:33]shift 493 fd 50572 [13:17:33]save to /storage/0493/doc_00050572 [13:17:33]save last doc name /storage/0493/doc_00050572 to /storage/kkm_last_doc_name [13:17:33]save OK [13:17:33]Clear old archive folders... [13:17:33]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:17:33]tlvbuf is 01E7ACC0 [13:17:33]SAM_PROTO_ClearQueue [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 09 00 00 [13:17:33]Write to MH i2c: E2 08 00 B9 08 80 09 00 00 00 00 00 00 33 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 B9 08 00 90 00 35 [13:17:33]RAPDU: 90 00 [13:17:33]wFMCommunicate OK [13:17:33]SAM_PROTO_ClearQueue done [13:17:33]KKMCreateOFDPacket [13:17:33]OFDProtocolAddRootSTLVToBuf [13:17:33]FM_MakeSignedData [13:17:33]FM_MakeSignedData [13:17:33]SAM_PROTO_SignData [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 0D 01 02 [13:17:33]Write to MH i2c: E2 08 00 BA 08 80 0D 01 02 00 00 00 00 3B [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 BA 08 00 90 00 36 [13:17:33]RAPDU: 90 00 [13:17:33]wFMCommunicate OK [13:17:33]wFMCommunicate request_size=255 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6D 9A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [13:17:33]Write to MH i2c: E2 02 01 BB 08 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6D 9A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 0C [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 BB 08 00 90 00 37 [13:17:33]RAPDU: 90 00 [13:17:33]wFMCommunicate OK [13:17:33]wFMCommunicate request_size=28 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 0D 02 02 17 37 35 30 30 30 10 04 04 00 8C C5 00 00 35 04 06 00 BC 3A D6 F6 C4 53 [13:17:33]Write to MH i2c: E2 1F 00 BC 08 80 0D 02 02 17 00 37 35 30 30 30 10 04 04 00 8C C5 00 00 35 04 06 00 BC 3A D6 F6 C4 53 00 00 E9 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 03 00 BC 08 00 90 00 38 [13:17:33]RAPDU: 90 00 [13:17:33]wFMCommunicate OK [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 0D 03 02 [13:17:33]Write to MH i2c: E2 08 00 BD 08 80 0D 03 02 00 00 00 00 40 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 0B 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 0B 00 BD 08 00 AC 8C EB 74 ED 12 FC FB 90 00 CE [13:17:33]RAPDU: AC 8C EB 74 ED 12 FC FB 90 00 [13:17:33]wFMCommunicate OK [13:17:33]SAM_PROTO_SignData done [13:17:33]FM_MakeSignedData done [13:17:33]CreateOFDProtocolMessage [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 11 00 00 [13:17:33]Write to MH i2c: E2 08 00 BE 08 80 11 00 00 00 00 00 00 40 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 17 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 17 00 BE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 87 [13:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:17:33]wFMCommunicate OK [13:17:33]CreateOFDProtocolMessage done [13:17:33]OFDSenderStorePacket 50572 [13:17:33]StoreOFDPacket docnum=50572 [13:17:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 21 01 00 00 2B DB 19 01 AA C0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6D 9A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8C C5 00 00 35 04 06 00 BC 3A D6 F6 C4 53 AC 8C EB 74 ED 12 FC FB [13:17:33]CheckFolder [13:17:33]dirname=/storage/ofd_packets [13:17:33]CheckFolder done [13:17:33]ProducePacketName [13:17:33]name=ofd_packets/00050572 [13:17:33]NVStorageSaveData ofd_packets/00050572 [13:17:33]File name is /storage/ofd_packets/00050572 [13:17:33]Write 319 bytes [13:17:33]NVStorageSaveData done [13:17:33]OFDSenderStorePacket done [13:17:33]KKMCreateOFDPacket done [13:17:33]NVStorageSaveData kkm_last_timestamp [13:17:33]File name is /storage/kkm_last_timestamp [13:17:33]Write 4 bytes [13:17:33]NVStorageSaveData done [13:17:33]ExternCall_PrintAddStr [13:17:33]wPrintStart [13:17:33]Write to MH i2c: 01 00 00 BF 08 C7 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: 01 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: 01 07 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: 01 07 00 BF 08 00 00 00 00 00 FF 0F DC [13:17:33]RasterBufferAndPrint [13:17:33]line Счет N : (3)164481 [13:17:33]line ИНН: 02508201610067 [13:17:33]line Контрольно-Кассовый Чек [13:17:33]line ПРОДАЖА [13:17:33]line Товар: 4700000160358 [13:17:33]line Вода Легенда 1л [13:17:33]line 1.000 * 50.00 [13:17:33]line = 50.00 [13:17:33]line НДС 12% НСП 1% [13:17:33]line > о реализуемом товаре [13:17:33]line ИТОГО: 50.00 [13:17:33]line НСП 1% : 0.44 [13:17:33]line НДС 12% : 5.31 [13:17:33]line Наличными: 0.00 [13:17:33]line Безнал.: 50.00 [13:17:33]line Место: АЗС № 80 "Партнер Нефть" [13:17:33]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:17:33]line СНО: Общий режим [13:17:33]line Чек 72 25.10.2024 13:17 [13:17:33]line Смена: 493 ФФД: 1.0 [13:17:33]line ЗНМ: 0300000090 [13:17:33]line РНМ: 0000000000097022 [13:17:33]line Версия ККМ: 001 [13:17:33]line Платежная система: Mbank [13:17:33]line ФМ: 0000000000875000 [13:17:33]line ФД: 50572 [13:17:33]line ФПД: 206960900621395 [13:17:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T131733&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50572&fm=206960900621395&tin=02508201610067®Number=0000000000097022&sum=5000 [13:17:33]line 0 [13:17:33]written 0, free lines is 4095 [13:17:33]OFD Sender: Processing packet 50572 [packets to send 7, broken 6] [13:17:33]ProducePacketName [13:17:33]name=ofd_packets/00050572 [13:17:33]OFD Sender: To server: pG, [13:17:33]CommunicateWithHost lk.salyk.kg:30040 [13:17:33]ConnectInit lk.salyk.kg [13:17:33]Connected sock=11 [13:17:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 21 01 00 00 2B DB 19 01 AA C0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6D 9A 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8C C5 00 00 35 04 06 00 BC 3A D6 F6 C4 53 AC 8C EB 74 ED 12 FC FB [13:17:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 53 21 47 00 E8 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 38 37 35 30 30 30 10 04 04 00 8C C5 00 00 F4 03 04 00 FE 45 1B 67 B6 04 01 00 00 99 13 FC 37 D0 44 8D 34 [13:17:34]CommunicateWithHost err = 0 [13:17:34]CheckOFDResponse [13:17:34]1017 (14) - 77093643461234 [13:17:34]1041 (16) - 0000000000875000 [13:17:34]1040 (4) - 50572 [13:17:34]1012 (4) - 25.10.2024 07:17 [13:17:34]1206 (1) - 0 [13:17:34]OFD Sender: Remove packet 50572 [13:17:34]ProducePacketName [13:17:34]name=ofd_packets/00050572 [13:17:34]NVStorageDeleteData [13:17:34]Write to MH i2c: 01 00 00 E8 08 F0 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: 01 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: 01 07 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: 01 07 00 E8 08 00 00 00 00 00 30 0D 34 [13:17:34]RasterBufferAndPrint [13:17:34]line [13:17:34]line [13:17:34]line [13:17:34]line [13:17:34]line [13:17:34]written 0, free lines is 3394 [13:17:34]process_action close_receipt done [13:17:34]requested_data is exist [13:17:34]produce_requested_data [13:17:34]requested_item fm.sn is exist - process it [13:17:34]wFMCommunicate request_size=4 [13:17:34]MH_SAM_APDU [13:17:34]CAPDU: 80 11 00 00 [13:17:34]Write to MH i2c: E2 08 00 EF 08 80 11 00 00 00 00 00 00 71 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:34]Read from MH i2c: E2 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 17 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 17 00 EF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B8 [13:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:17:34]wFMCommunicate OK [13:17:34]requested_item fd.num is exist - process it [13:17:34]SAM_PROTO_GetFieldsCounters [13:17:34]wFMCommunicate request_size=4 [13:17:34]MH_SAM_APDU [13:17:34]CAPDU: 80 13 00 00 [13:17:34]Write to MH i2c: E2 08 00 F0 08 80 13 00 00 00 00 00 00 74 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:34]Read from MH i2c: E2 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 62 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 62 00 F0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [13:17:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:34]wFMCommunicate OK [13:17:34]SAM_PROTO_GetFieldsCounters done [13:17:34]requested_item shift.num is exist - process it [13:17:34]requested_item shift.opened is exist - process it [13:17:34]req_shift_opened [13:17:34]FM_GetShiftState [13:17:34]SAM_PROTO_GetShiftState [13:17:34]wFMCommunicate request_size=4 [13:17:34]MH_SAM_APDU [13:17:34]CAPDU: 80 13 01 00 [13:17:34]Write to MH i2c: E2 08 00 F1 08 80 13 01 00 00 00 00 00 76 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:34]Read from MH i2c: E2 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 0E 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 0E 00 F1 08 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6E [13:17:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:17:34]wFMCommunicate OK [13:17:34]SAM_PROTO_GetShiftState done [13:17:34]FM_GetShiftState done [13:17:34]req_shift_opened done [13:17:34]requested_item shift.open_date is exist - process it [13:17:34]req_shift_open_date [13:17:34]req_shift_open_date done [13:17:34]produce_requested_data done [13:17:34]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50572,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [13:17:34]process_action_free close_receipt [13:17:34]json_value_free [13:17:34]json_value_free done [13:17:34]process_json_proto returns [13:17:34]Send response to host [13:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50572,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [13:17:34]free response buf [13:17:34]execute_script done [13:17:34]execute_script returns [13:17:34]free content buf [13:17:34]Sock 10.Close socket [13:17:34]Sock 10.Thread stoped [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:41]ConnectInit Can't connect to host [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:53]accept exits with 9 [13:22:53]New connection [13:22:53]New thread 3066789220 created [13:22:53]Thread 3066645860 joined [13:22:53]Waiting for new connection... [13:22:53] Sock 9.Parse request [13:22:53]Sock 9.Check first char [13:22:53]Sock 9.First char is OK [13:22:53]request: POST /json_proto HTTP/1.0 [13:22:53]Method: POST [13:22:53]URL: /json_proto [13:22:53]Method is POST - this is cgi request [13:22:53]url: /json_proto [13:22:53]query_string will be loaded in cgi processing [13:22:53]execute_cgi json_proto POST (null) [13:22:53]execute_cgi path=json_proto method=POST [13:22:53]POST find Content-Length [13:22:53]Host: 172.17.49.196:8080 [13:22:53]Content-Length: 829 [13:22:53]Content-Type: application/json [13:22:53] [13:22:53]POST finish read [13:22:53]Found Content-Length = 829 [13:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164482", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 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: Mbank", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:53]execute_script... [13:22:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164482", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 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: Mbank", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:53]POST & json_proto [13:22:53]process_json_proto [13:22:53]json parsed OK: [13:22:53]protocol is kg_v1.0 [13:22:53]action value=close_receipt [13:22:53]process_action close_receipt [13:22:53]cmd_close_receipt [13:22:53]MH_GetDate [13:22:53]Write to MH i2c: F0 00 00 F2 08 E9 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: F0 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: F0 09 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: F0 09 00 F2 08 00 AF 9B 1B 67 BD 3B 11 67 2E [13:22:53]GetLastDocTimeStamp 1729862253 [13:22:53]current date 1729862575 [13:22:53]FM_GetShiftState [13:22:53]SAM_PROTO_GetShiftState [13:22:53]wFMCommunicate request_size=4 [13:22:53]MH_SAM_APDU [13:22:53]CAPDU: 80 13 01 00 [13:22:53]Write to MH i2c: E2 08 00 F3 08 80 13 01 00 00 00 00 00 78 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:53]Read from MH i2c: E2 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 0E 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 0E 00 F3 08 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 70 [13:22:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:22:53]wFMCommunicate OK [13:22:53]SAM_PROTO_GetShiftState done [13:22:53]FM_GetShiftState done [13:22:53]opened in 1729815177 [13:22:53]opened+sec_in_day 1729901577 [13:22:53]quantity*price = 12500 [13:22:53]sum+1 = 12501 [13:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 73 25.10.2024 13:22 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50573 ФПД: 144548788271662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T132255&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50573&fm=144548788271662&tin=02508201610067®Number=0000000000097022&sum=12500 0 [13:22:55]StoreToDocumentArchive [13:22:55]shift 493 fd 50573 [13:22:55]save to /storage/0493/doc_00050573 [13:22:55]save last doc name /storage/0493/doc_00050573 to /storage/kkm_last_doc_name [13:22:55]save OK [13:22:55]Clear old archive folders... [13:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=298 [13:22:55]tlvbuf is 01E68830 [13:22:55]SAM_PROTO_ClearQueue [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 09 00 00 [13:22:55]Write to MH i2c: E2 08 00 00 09 80 09 00 00 00 00 00 00 7B [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 00 09 00 90 00 7D [13:22:55]RAPDU: 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_ClearQueue done [13:22:55]KKMCreateOFDPacket [13:22:55]OFDProtocolAddRootSTLVToBuf [13:22:55]FM_MakeSignedData [13:22:55]FM_MakeSignedData [13:22:55]SAM_PROTO_SignData [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 0D 01 02 [13:22:55]Write to MH i2c: E2 08 00 01 09 80 0D 01 02 00 00 00 00 83 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 01 09 00 90 00 7E [13:22:55]RAPDU: 90 00 [13:22:55]wFMCommunicate OK [13:22:55]wFMCommunicate request_size=255 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 49 00 00 00 F4 03 04 00 AF 9B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [13:22:55]Write to MH i2c: E2 02 01 02 09 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 49 00 00 00 F4 03 04 00 AF 9B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 EA [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 02 09 00 90 00 7F [13:22:55]RAPDU: 90 00 [13:22:55]wFMCommunicate OK [13:22:55]wFMCommunicate request_size=57 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C5 00 00 35 04 06 00 83 77 63 2D 7A 2E [13:22:55]Write to MH i2c: E2 3C 00 03 09 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C5 00 00 35 04 06 00 83 77 63 2D 7A 2E 00 00 B6 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [13:22:55]RAPDU: 90 00 [13:22:55]wFMCommunicate OK [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 0D 03 02 [13:22:55]Write to MH i2c: E2 08 00 04 09 80 0D 03 02 00 00 00 00 88 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0B 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0B 00 04 09 00 DD 37 92 18 29 7A F2 58 90 00 34 [13:22:55]RAPDU: DD 37 92 18 29 7A F2 58 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_SignData done [13:22:55]FM_MakeSignedData done [13:22:55]CreateOFDProtocolMessage [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 11 00 00 [13:22:55]Write to MH i2c: E2 08 00 05 09 80 11 00 00 00 00 00 00 88 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 17 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 17 00 05 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CF [13:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:22:55]wFMCommunicate OK [13:22:55]CreateOFDProtocolMessage done [13:22:55]OFDSenderStorePacket 50573 [13:22:55]StoreOFDPacket docnum=50573 [13:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 E1 62 36 01 30 47 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 49 00 00 00 F4 03 04 00 AF 9B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C5 00 00 35 04 06 00 83 77 63 2D 7A 2E DD 37 92 18 29 7A F2 58 [13:22:55]CheckFolder [13:22:55]dirname=/storage/ofd_packets [13:22:55]CheckFolder done [13:22:55]ProducePacketName [13:22:55]name=ofd_packets/00050573 [13:22:55]NVStorageSaveData ofd_packets/00050573 [13:22:55]File name is /storage/ofd_packets/00050573 [13:22:55]Write 348 bytes [13:22:55]NVStorageSaveData done [13:22:55]OFDSenderStorePacket done [13:22:55]KKMCreateOFDPacket done [13:22:55]NVStorageSaveData kkm_last_timestamp [13:22:55]File name is /storage/kkm_last_timestamp [13:22:55]Write 4 bytes [13:22:55]NVStorageSaveData done [13:22:55]ExternCall_PrintAddStr [13:22:55]wPrintStart [13:22:55]Write to MH i2c: 01 00 00 06 09 0F [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: 01 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: 01 07 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: 01 07 00 06 09 00 00 00 00 00 FF 0F 24 [13:22:55]RasterBufferAndPrint [13:22:55]line Счет N : (3)164482 [13:22:55]line ИНН: 02508201610067 [13:22:55]line Контрольно-Кассовый Чек [13:22:55]line ПРОДАЖА [13:22:55]line Товар: 4870202522701 [13:22:55]line Напиток Maxi Чай черный Малина 1,2 [13:22:55]line 1.000 * 125.00 [13:22:55]line = 125.00 [13:22:55]line НДС 12% НСП 1% [13:22:55]line > о реализуемом товаре [13:22:55]line ИТОГО: 125.00 [13:22:55]line НСП 1% : 1.11 [13:22:55]line НДС 12% : 13.27 [13:22:55]line Наличными: 0.00 [13:22:55]line Безнал.: 125.00 [13:22:55]line Место: АЗС № 80 "Партнер Нефть" [13:22:55]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:22:55]line СНО: Общий режим [13:22:55]line Чек 73 25.10.2024 13:22 [13:22:55]line Смена: 493 ФФД: 1.0 [13:22:55]line ЗНМ: 0300000090 [13:22:55]line РНМ: 0000000000097022 [13:22:55]line Версия ККМ: 001 [13:22:55]line Платежная система: Mbank [13:22:55]line ФМ: 0000000000875000 [13:22:55]line ФД: 50573 [13:22:55]line ФПД: 144548788271662 [13:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T132255&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50573&fm=144548788271662&tin=02508201610067®Number=0000000000097022&sum=12500 [13:22:56]line 0 [13:22:56]OFD Sender: Processing packet 50573 [packets to send 7, broken 6] [13:22:56]ProducePacketName [13:22:56]name=ofd_packets/00050573 [13:22:56]OFD Sender: To server: pG, [13:22:56]CommunicateWithHost lk.salyk.kg:30040 [13:22:56]ConnectInit lk.salyk.kg [13:22:56]written 0, free lines is 4095 [13:22:56]Connected sock=10 [13:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 E1 62 36 01 30 47 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 49 00 00 00 F4 03 04 00 AF 9B 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8D C5 00 00 35 04 06 00 83 77 63 2D 7A 2E DD 37 92 18 29 7A F2 58 [13:22:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 85 BC 47 00 05 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 38 37 35 30 30 30 10 04 04 00 8D C5 00 00 F4 03 04 00 40 47 1B 67 B6 04 01 00 00 27 F2 B1 B9 5D 7A A9 C1 [13:22:56]CommunicateWithHost err = 0 [13:22:56]CheckOFDResponse [13:22:56]1017 (14) - 77093643461234 [13:22:56]1041 (16) - 0000000000875000 [13:22:56]1040 (4) - 50573 [13:22:56]1012 (4) - 25.10.2024 07:22 [13:22:56]1206 (1) - 0 [13:22:56]OFD Sender: Remove packet 50573 [13:22:56]ProducePacketName [13:22:56]name=ofd_packets/00050573 [13:22:56]NVStorageDeleteData [13:22:56]Write to MH i2c: 01 00 00 30 09 39 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 30 09 00 00 00 00 00 F7 0C 43 [13:22:56]RasterBufferAndPrint [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]written 0, free lines is 3327 [13:22:56]process_action close_receipt done [13:22:56]requested_data is exist [13:22:56]produce_requested_data [13:22:56]requested_item fm.sn is exist - process it [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 11 00 00 [13:22:56]Write to MH i2c: E2 08 00 37 09 80 11 00 00 00 00 00 00 BA [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 17 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 17 00 37 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 01 [13:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:22:56]wFMCommunicate OK [13:22:56]requested_item fd.num is exist - process it [13:22:56]SAM_PROTO_GetFieldsCounters [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 13 00 00 [13:22:56]Write to MH i2c: E2 08 00 38 09 80 13 00 00 00 00 00 00 BD [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 62 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 62 00 38 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [13:22:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_GetFieldsCounters done [13:22:56]requested_item shift.num is exist - process it [13:22:56]requested_item shift.opened is exist - process it [13:22:56]req_shift_opened [13:22:56]FM_GetShiftState [13:22:56]SAM_PROTO_GetShiftState [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 13 01 00 [13:22:56]Write to MH i2c: E2 08 00 39 09 80 13 01 00 00 00 00 00 BF [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0E 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0E 00 39 09 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B7 [13:22:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_GetShiftState done [13:22:56]FM_GetShiftState done [13:22:56]req_shift_opened done [13:22:56]requested_item shift.open_date is exist - process it [13:22:56]req_shift_open_date [13:22:56]req_shift_open_date done [13:22:56]produce_requested_data done [13:22:56]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50573,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [13:22:56]process_action_free close_receipt [13:22:56]json_value_free [13:22:56]json_value_free done [13:22:56]process_json_proto returns [13:22:56]Send response to host [13:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50573,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [13:22:56]free response buf [13:22:56]execute_script done [13:22:56]execute_script returns [13:22:56]free content buf [13:22:56]Sock 9.Close socket [13:22:56]Sock 9.Thread stoped [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]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:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:44]accept exits with 7 [13:36:44]New connection [13:36:44]New thread 3066645860 created [13:36:44]Thread 3066789220 joined [13:36:44]Waiting for new connection... [13:36:44] Sock 7.Parse request [13:36:44]Sock 7.Check first char [13:36:44]Sock 7.First char is OK [13:36:44]request: POST /json_proto HTTP/1.0 [13:36:44]Method: POST [13:36:44]URL: /json_proto [13:36:44]Method is POST - this is cgi request [13:36:44]url: /json_proto [13:36:44]query_string will be loaded in cgi processing [13:36:44]execute_cgi json_proto POST (null) [13:36:44]execute_cgi path=json_proto method=POST [13:36:44]POST find Content-Length [13:36:44]Host: 172.17.49.196:8080 [13:36:44]Content-Length: 1959 [13:36:44]Content-Type: application/json [13:36:44] [13:36:44]POST finish read [13:36:44]Found Content-Length = 1959 [13:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164483", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010748616", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u041C\u0410\u0425 - \u043E\u0445\u043E\u0442\u043D\u0438\u0447\u044C\u0438 \u043A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 40", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 2.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 286.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:44]execute_script... [13:36: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)164483", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010748616", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u041C\u0410\u0425 - \u043E\u0445\u043E\u0442\u043D\u0438\u0447\u044C\u0438 \u043A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 40", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 2.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 286.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:45]POST & json_proto [13:36:45]process_json_proto [13:36:45]json parsed OK: [13:36:45]protocol is kg_v1.0 [13:36:45]action value=close_receipt [13:36:45]process_action close_receipt [13:36:45]cmd_close_receipt [13:36:45]MH_GetDate [13:36:45]Write to MH i2c: F0 00 00 3A 09 32 [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: F0 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: F0 09 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: F0 09 00 3A 09 00 EE 9E 1B 67 BD 3B 11 67 B9 [13:36:45]GetLastDocTimeStamp 1729862575 [13:36:45]current date 1729863406 [13:36:45]FM_GetShiftState [13:36:45]SAM_PROTO_GetShiftState [13:36:45]wFMCommunicate request_size=4 [13:36:45]MH_SAM_APDU [13:36:45]CAPDU: 80 13 01 00 [13:36:45]Write to MH i2c: E2 08 00 3B 09 80 13 01 00 00 00 00 00 C1 [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:45]Read from MH i2c: E2 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 0E 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 0E 00 3B 09 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B9 [13:36:45]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:36:45]wFMCommunicate OK [13:36:45]SAM_PROTO_GetShiftState done [13:36:45]FM_GetShiftState done [13:36:45]opened in 1729815177 [13:36:45]opened+sec_in_day 1729901577 [13:36:45]quantity*price = 4900 [13:36:45]sum+1 = 4901 [13:36:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 84.00 = 84.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607010748616 Сух Кириешки МАХ - охотничьи колбаски 40 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329000476 Сух Кириешки шашлык 40г 2.000 * 21.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681086 Grizzly волнистые Сыр с халапеньо 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 286.00 НСП 1% : 2.53 НДС 12% : 30.37 Наличными: 286.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 74 25.10.2024 13:36 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50574 ФПД: 106029677600620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T133646&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50574&fm=106029677600620&tin=02508201610067®Number=0000000000097022&sum=28600 0 [13:36:46]StoreToDocumentArchive [13:36:46]shift 493 fd 50574 [13:36:46]save to /storage/0493/doc_00050574 [13:36:46]save last doc name /storage/0493/doc_00050574 to /storage/kkm_last_doc_name [13:36:46]save OK [13:36:46]Clear old archive folders... [13:36:46]ProcessDocumentItem done err = 0, tmpTLVsize=801 [13:36:46]tlvbuf is 01E68400 [13:36:46]SAM_PROTO_ClearQueue [13:36:46]wFMCommunicate request_size=4 [13:36:46]MH_SAM_APDU [13:36:46]CAPDU: 80 09 00 00 [13:36:46]Write to MH i2c: E2 08 00 48 09 80 09 00 00 00 00 00 00 C3 [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:46]Read from MH i2c: E2 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [13:36:46]RAPDU: 90 00 [13:36:46]wFMCommunicate OK [13:36:46]SAM_PROTO_ClearQueue done [13:36:46]KKMCreateOFDPacket [13:36:46]OFDProtocolAddRootSTLVToBuf [13:36:46]FM_MakeSignedData [13:36:46]FM_MakeSignedData [13:36:46]SAM_PROTO_SignData [13:36:46]wFMCommunicate request_size=4 [13:36:46]MH_SAM_APDU [13:36:46]CAPDU: 80 0D 01 02 [13:36:46]Write to MH i2c: E2 08 00 49 09 80 0D 01 02 00 00 00 00 CB [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:46]Read from MH i2c: E2 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 49 09 00 90 00 C6 [13:36:46]RAPDU: 90 00 [13:36:46]wFMCommunicate OK [13:36:46]wFMCommunicate request_size=255 [13:36:46]MH_SAM_APDU [13:36:46]CAPDU: 80 0D 02 02 FA 03 00 21 03 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [13:36:46]Write to MH i2c: E2 02 01 4A 09 80 0D 02 02 FA 00 03 00 21 03 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 DC [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:46]Read from MH i2c: E2 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: E2 03 00 4A 09 00 90 00 C7 [13:36:46]RAPDU: 90 00 [13:36:46]wFMCommunicate OK [13:36:46]wFMCommunicate request_size=255 [13:36:46]MH_SAM_APDU [13:36:46]CAPDU: 80 0D 02 02 FA 04 8B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 38 36 31 36 06 04 47 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 9C D0 90 D0 A5 20 2D 20 D0 BE D1 85 D0 BE D1 82 D0 BD D0 B8 D1 87 D1 8C D0 B8 20 D0 BA D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 34 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [13:36:46]Write to MH i2c: E2 02 01 4B 09 80 0D 02 02 FA 00 04 8B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 38 36 31 36 06 04 47 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 9C D0 90 D0 A5 20 2D 20 D0 BE D1 85 D0 BE D1 82 D0 BD D0 B8 D1 87 D1 8C D0 B8 20 D0 BA D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 34 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 95 [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 4B 09 00 90 00 C8 [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]wFMCommunicate request_size=255 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 0D 02 02 FA BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 B8 6F 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 EE 9E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 [13:36:47]Write to MH i2c: E2 02 01 4C 09 80 0D 02 02 FA 00 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 B8 6F 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 EE 9E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 00 70 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]OFD Sender: No OFD packet to send [13:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 4C 09 00 90 00 C9 [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]wFMCommunicate request_size=60 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C5 00 00 35 04 06 00 60 6E F5 44 DF 6C [13:36:47]Write to MH i2c: E2 3F 00 4D 09 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C5 00 00 35 04 06 00 60 6E F5 44 DF 6C 00 00 87 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 03 00 4D 09 00 90 00 CA [13:36:47]RAPDU: 90 00 [13:36:47]wFMCommunicate OK [13:36:47]wFMCommunicate request_size=4 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 0D 03 02 [13:36:47]Write to MH i2c: E2 08 00 4E 09 80 0D 03 02 00 00 00 00 D2 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 0B 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 0B 00 4E 09 00 38 18 BC 41 93 7C 21 FD 90 00 4D [13:36:47]RAPDU: 38 18 BC 41 93 7C 21 FD 90 00 [13:36:47]wFMCommunicate OK [13:36:47]SAM_PROTO_SignData done [13:36:47]FM_MakeSignedData done [13:36:47]CreateOFDProtocolMessage [13:36:47]wFMCommunicate request_size=4 [13:36:47]MH_SAM_APDU [13:36:47]CAPDU: 80 11 00 00 [13:36:47]Write to MH i2c: E2 08 00 4F 09 80 11 00 00 00 00 00 00 D2 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:47]Read from MH i2c: E2 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 17 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: E2 17 00 4F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 19 [13:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:36:47]wFMCommunicate OK [13:36:47]CreateOFDProtocolMessage done [13:36:47]OFDSenderStorePacket 50574 [13:36:47]StoreOFDPacket docnum=50574 [13:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 03 00 00 A5 A7 2D 03 E0 46 5A 03 01 00 03 00 21 03 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 38 36 31 36 06 04 47 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 9C D0 90 D0 A5 20 2D 20 D0 BE D1 85 D0 BE D1 82 D0 BD D0 B8 D1 87 D1 8C D0 B8 20 D0 BA D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 34 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 B8 6F 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 EE 9E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C5 00 00 35 04 06 00 60 6E F5 44 DF 6C 38 18 BC 41 93 7C 21 FD [13:36:47]CheckFolder [13:36:47]dirname=/storage/ofd_packets [13:36:47]CheckFolder done [13:36:47]ProducePacketName [13:36:47]name=ofd_packets/00050574 [13:36:47]NVStorageSaveData ofd_packets/00050574 [13:36:47]File name is /storage/ofd_packets/00050574 [13:36:47]Write 851 bytes [13:36:47]NVStorageSaveData done [13:36:47]OFDSenderStorePacket done [13:36:47]KKMCreateOFDPacket done [13:36:47]NVStorageSaveData kkm_last_timestamp [13:36:47]File name is /storage/kkm_last_timestamp [13:36:47]Write 4 bytes [13:36:47]NVStorageSaveData done [13:36:47]ExternCall_PrintAddStr [13:36:47]wPrintStart [13:36:47]Write to MH i2c: 01 00 00 50 09 59 [13:36:47]Write i2c OK [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 07 00 [13:36:47]MH_I2C_Read... [13:36:47]Read from MH i2c: 01 07 00 50 09 00 00 00 00 00 FF 0F 6E [13:36:47]RasterBufferAndPrint [13:36:47]line Счет N : (3)164483 [13:36:47]line ИНН: 02508201610067 [13:36:47]line Контрольно-Кассовый Чек [13:36:47]line ПРОДАЖА [13:36:47]line Товар: 4700000310036 [13:36:47]line Вода Жалалабат 27 0,5л [13:36:47]line 1.000 * 49.00 [13:36:47]line = 49.00 [13:36:47]line НДС 12% НСП 1% [13:36:47]line > о реализуемом товаре [13:36:47]line Товар: 4870001571030 [13:36:47]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [13:36:47]line 1.000 * 84.00 [13:36:47]line = 84.00 [13:36:47]line НДС 12% НСП 1% [13:36:47]line > о реализуемом товаре [13:36:47]line Товар: 4607010748616 [13:36:47]line Сух Кириешки МАХ - охотничьи колбаски 40 [13:36:47]line 1.000 * 21.00 [13:36:47]line = 21.00 [13:36:47]line НДС 12% НСП 1% [13:36:47]line > о реализуемом товаре [13:36:47]line Товар: 4690329000476 [13:36:48]line Сух Кириешки шашлык 40г [13:36:48]line 2.000 * 21.00 [13:36:48]line = 42.00 [13:36:48]line НДС 12% НСП 1% [13:36:48]line > о реализуемом товаре [13:36:48]line Товар: 4870235681086 [13:36:48]line Grizzly волнистые Сыр с халапеньо 55 гр [13:36:48]line 1.000 * 90.00 [13:36:48]line = 90.00 [13:36:48]line НДС 12% НСП 1% [13:36:48]line > о реализуемом товаре [13:36:48]line ИТОГО: 286.00 [13:36:48]line НСП 1% : 2.53 [13:36:48]line НДС 12% : 30.37 [13:36:48]line Наличными: 286.00 [13:36:48]line Безнал.: 0.00 [13:36:48]line Место: АЗС № 80 "Партнер Нефть" [13:36:48]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [13:36:48]line СНО: Общий режим [13:36:48]line Чек 74 25.10.2024 13:36 [13:36:48]line Смена: 493 ФФД: 1.0 [13:36:48]line ЗНМ: 0300000090 [13:36:48]line РНМ: 0000000000097022 [13:36:48]line Версия ККМ: 001 [13:36:48]line ФМ: 0000000000875000 [13:36:48]line ФД: 50574 [13:36:48]line ФПД: 106029677600620 [13:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T133646&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50574&fm=106029677600620&tin=02508201610067®Number=0000000000097022&sum=28600 [13:36:48]OFD Sender: Processing packet 50574 [packets to send 7, broken 6] [13:36:48]ProducePacketName [13:36:48]name=ofd_packets/00050574 [13:36:48]OFD Sender: To server: pG, [13:36:48]CommunicateWithHost lk.salyk.kg:30040 [13:36:48]ConnectInit lk.salyk.kg [13:36:48]line 0 [13:36:48]written 0, free lines is 4095 [13:36:48]Connected sock=10 [13:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 03 00 00 A5 A7 2D 03 E0 46 5A 03 01 00 03 00 21 03 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 38 36 31 36 06 04 47 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 9C D0 90 D0 A5 20 2D 20 D0 BE D1 85 D0 BE D1 82 D0 BD D0 B8 D1 87 D1 8C D0 B8 20 D0 BA D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 34 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 B8 6F 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 EE 9E 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C5 00 00 35 04 06 00 60 6E F5 44 DF 6C 38 18 BC 41 93 7C 21 FD [13:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 EC 67 47 00 B7 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8E C5 00 00 F4 03 04 00 80 4A 1B 67 B6 04 01 00 00 B6 5E 13 78 94 DE 33 DD [13:36:48]CommunicateWithHost err = 0 [13:36:48]CheckOFDResponse [13:36:48]1017 (14) - 77093643461234 [13:36:48]1041 (16) - 0000000000875000 [13:36:48]1040 (4) - 50574 [13:36:48]1012 (4) - 25.10.2024 07:36 [13:36:48]1206 (1) - 0 [13:36:48]OFD Sender: Remove packet 50574 [13:36:48]ProducePacketName [13:36:48]name=ofd_packets/00050574 [13:36:48]NVStorageDeleteData [13:36:48]Write to MH i2c: 01 00 00 93 09 9C [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 07 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 F5 0B A3 [13:36:48]RasterBufferAndPrint [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]line [13:36:48]written 0, free lines is 3070 [13:36:48]process_action close_receipt done [13:36:48]requested_data is exist [13:36:48]produce_requested_data [13:36:48]requested_item fm.sn is exist - process it [13:36:48]wFMCommunicate request_size=4 [13:36:48]MH_SAM_APDU [13:36:48]CAPDU: 80 11 00 00 [13:36:48]Write to MH i2c: E2 08 00 9A 09 80 11 00 00 00 00 00 00 1D [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:48]Read from MH i2c: E2 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: E2 17 00 [13:36:48]MH_I2C_Read... [13:36:48]Read from MH i2c: E2 17 00 9A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 64 [13:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [13:36:48]wFMCommunicate OK [13:36:48]requested_item fd.num is exist - process it [13:36:48]SAM_PROTO_GetFieldsCounters [13:36:48]wFMCommunicate request_size=4 [13:36:48]MH_SAM_APDU [13:36:48]CAPDU: 80 13 00 00 [13:36:48]Write to MH i2c: E2 08 00 9B 09 80 13 00 00 00 00 00 00 20 [13:36:48]Write i2c OK [13:36:48]MH_I2C_Read... [13:36:48]OFD Sender: No OFD packet to send [13:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:49]Read from MH i2c: E2 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 62 00 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 62 00 9B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:36:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:49]wFMCommunicate OK [13:36:49]SAM_PROTO_GetFieldsCounters done [13:36:49]requested_item shift.num is exist - process it [13:36:49]requested_item shift.opened is exist - process it [13:36:49]req_shift_opened [13:36:49]FM_GetShiftState [13:36:49]SAM_PROTO_GetShiftState [13:36:49]wFMCommunicate request_size=4 [13:36:49]MH_SAM_APDU [13:36:49]CAPDU: 80 13 01 00 [13:36:49]Write to MH i2c: E2 08 00 9C 09 80 13 01 00 00 00 00 00 22 [13:36:49]Write i2c OK [13:36:49]MH_I2C_Read... [13:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:49]Read from MH i2c: E2 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 0E 00 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 0E 00 9C 09 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 1A [13:36:49]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [13:36:49]wFMCommunicate OK [13:36:49]SAM_PROTO_GetShiftState done [13:36:49]FM_GetShiftState done [13:36:49]req_shift_opened done [13:36:49]requested_item shift.open_date is exist - process it [13:36:49]req_shift_open_date [13:36:49]req_shift_open_date done [13:36:49]produce_requested_data done [13:36:49]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50574,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [13:36:49]process_action_free close_receipt [13:36:49]json_value_free [13:36:49]json_value_free done [13:36:49]process_json_proto returns [13:36:49]Send response to host [13:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50574,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [13:36:49]free response buf [13:36:49]execute_script done [13:36:49]execute_script returns [13:36:49]free content buf [13:36:49]Sock 7.Close socket [13:36:49]Sock 7.Thread stoped [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:35]accept exits with 9 [14:02:35]New connection [14:02:35]New thread 3066789220 created [14:02:35]Thread 3066645860 joined [14:02:35]Waiting for new connection... [14:02:35] Sock 9.Parse request [14:02:35]Sock 9.Check first char [14:02:35]Sock 9.First char is OK [14:02:35]request: POST /json_proto HTTP/1.0 [14:02:35]Method: POST [14:02:35]URL: /json_proto [14:02:35]Method is POST - this is cgi request [14:02:35]url: /json_proto [14:02:35]query_string will be loaded in cgi processing [14:02:35]execute_cgi json_proto POST (null) [14:02:35]execute_cgi path=json_proto method=POST [14:02:35]POST find Content-Length [14:02:35]Host: 172.17.49.196:8080 [14:02:35]Content-Length: 675 [14:02:35]Content-Type: application/json [14:02:35] [14:02:35]POST finish read [14:02:35]Found Content-Length = 675 [14:02:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164484", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:35]execute_script... [14: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)164484", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:35]POST & json_proto [14:02:35]process_json_proto [14:02:35]json parsed OK: [14:02:35]protocol is kg_v1.0 [14:02:35]action value=close_receipt [14:02:35]process_action close_receipt [14:02:35]cmd_close_receipt [14:02:35]MH_GetDate [14:02:35]Write to MH i2c: F0 00 00 9D 09 95 [14:02:35]Write i2c OK [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: F0 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: F0 09 00 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: F0 09 00 9D 09 00 FD A4 1B 67 BD 3B 11 67 31 [14:02:35]GetLastDocTimeStamp 1729863406 [14:02:35]current date 1729864957 [14:02:35]FM_GetShiftState [14:02:35]SAM_PROTO_GetShiftState [14:02:35]wFMCommunicate request_size=4 [14:02:35]MH_SAM_APDU [14:02:35]CAPDU: 80 13 01 00 [14:02:35]Write to MH i2c: E2 08 00 9E 09 80 13 01 00 00 00 00 00 24 [14:02:35]Write i2c OK [14:02:35]MH_I2C_Read... [14:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:35]Read from MH i2c: E2 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: E2 0E 00 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: E2 0E 00 9E 09 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 1C [14:02:35]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:02:35]wFMCommunicate OK [14:02:35]SAM_PROTO_GetShiftState done [14:02:35]FM_GetShiftState done [14:02:35]opened in 1729815177 [14:02:35]opened+sec_in_day 1729901577 [14:02:35]quantity*price = 12000 [14:02:35]sum+1 = 12001 [14:02:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 75 25.10.2024 14:02 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50575 ФПД: 104065740444091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140237&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50575&fm=104065740444091&tin=02508201610067®Number=0000000000097022&sum=12000 0 [14:02:36]StoreToDocumentArchive [14:02:36]shift 493 fd 50575 [14:02:36]save to /storage/0493/doc_00050575 [14:02:36]save last doc name /storage/0493/doc_00050575 to /storage/kkm_last_doc_name [14:02:36]save OK [14:02:36]Clear old archive folders... [14:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:02:36]tlvbuf is 01E19020 [14:02:36]SAM_PROTO_ClearQueue [14:02:36]wFMCommunicate request_size=4 [14:02:36]MH_SAM_APDU [14:02:36]CAPDU: 80 09 00 00 [14:02:36]Write to MH i2c: E2 08 00 AB 09 80 09 00 00 00 00 00 00 26 [14:02:36]Write i2c OK [14:02:36]MH_I2C_Read... [14:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:36]Read from MH i2c: E2 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 03 00 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 03 00 AB 09 00 90 00 28 [14:02:36]RAPDU: 90 00 [14:02:36]wFMCommunicate OK [14:02:36]SAM_PROTO_ClearQueue done [14:02:36]KKMCreateOFDPacket [14:02:36]OFDProtocolAddRootSTLVToBuf [14:02:36]FM_MakeSignedData [14:02:36]FM_MakeSignedData [14:02:36]SAM_PROTO_SignData [14:02:36]wFMCommunicate request_size=4 [14:02:36]MH_SAM_APDU [14:02:36]CAPDU: 80 0D 01 02 [14:02:36]Write to MH i2c: E2 08 00 AC 09 80 0D 01 02 00 00 00 00 2E [14:02:36]Write i2c OK [14:02:36]MH_I2C_Read... [14:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:36]Read from MH i2c: E2 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 03 00 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 03 00 AC 09 00 90 00 29 [14:02:36]RAPDU: 90 00 [14:02:36]wFMCommunicate OK [14:02:36]wFMCommunicate request_size=255 [14:02:36]MH_SAM_APDU [14:02:36]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FD A4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 [14:02:36]Write to MH i2c: E2 02 01 AD 09 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FD A4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 00 00 94 [14:02:36]Write i2c OK [14:02:36]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [14:02:37]RAPDU: 90 00 [14:02:37]wFMCommunicate OK [14:02:37]wFMCommunicate request_size=46 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 0D 02 02 29 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C5 00 00 35 04 06 00 5E A5 B1 7E 11 BB [14:02:37]Write to MH i2c: E2 31 00 AE 09 80 0D 02 02 29 00 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C5 00 00 35 04 06 00 5E A5 B1 7E 11 BB 00 00 F9 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 03 00 AE 09 00 90 00 2B [14:02:37]RAPDU: 90 00 [14:02:37]wFMCommunicate OK [14:02:37]wFMCommunicate request_size=4 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 0D 03 02 [14:02:37]Write to MH i2c: E2 08 00 AF 09 80 0D 03 02 00 00 00 00 33 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 0B 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 0B 00 AF 09 00 72 56 9D B6 8F 85 27 42 90 00 CC [14:02:37]RAPDU: 72 56 9D B6 8F 85 27 42 90 00 [14:02:37]wFMCommunicate OK [14:02:37]SAM_PROTO_SignData done [14:02:37]FM_MakeSignedData done [14:02:37]CreateOFDProtocolMessage [14:02:37]wFMCommunicate request_size=4 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 11 00 00 [14:02:37]Write to MH i2c: E2 08 00 B0 09 80 11 00 00 00 00 00 00 33 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 17 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 17 00 B0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7A [14:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:02:37]wFMCommunicate OK [14:02:37]CreateOFDProtocolMessage done [14:02:37]OFDSenderStorePacket 50575 [14:02:37]StoreOFDPacket docnum=50575 [14:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 33 01 00 00 EF 2C 2B 01 FF 6F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FD A4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C5 00 00 35 04 06 00 5E A5 B1 7E 11 BB 72 56 9D B6 8F 85 27 42 [14:02:37]CheckFolder [14:02:37]dirname=/storage/ofd_packets [14:02:37]CheckFolder done [14:02:37]ProducePacketName [14:02:37]name=ofd_packets/00050575 [14:02:37]NVStorageSaveData ofd_packets/00050575 [14:02:37]File name is /storage/ofd_packets/00050575 [14:02:37]Write 337 bytes [14:02:37]NVStorageSaveData done [14:02:37]OFDSenderStorePacket done [14:02:37]KKMCreateOFDPacket done [14:02:37]NVStorageSaveData kkm_last_timestamp [14:02:37]File name is /storage/kkm_last_timestamp [14:02:37]Write 4 bytes [14:02:37]NVStorageSaveData done [14:02:37]ExternCall_PrintAddStr [14:02:37]wPrintStart [14:02:37]Write to MH i2c: 01 00 00 B1 09 BA [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: 01 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: 01 07 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: 01 07 00 B1 09 00 00 00 00 00 FF 0F CF [14:02:37]RasterBufferAndPrint [14:02:37]line Счет N : (3)164484 [14:02:37]line ИНН: 02508201610067 [14:02:37]line Контрольно-Кассовый Чек [14:02:37]line ПРОДАЖА [14:02:37]line Товар: 5449000189332 [14:02:37]line Холодный чай Fuse персик 1л [14:02:37]line 1.000 * 120.00 [14:02:37]line = 120.00 [14:02:37]line НДС 12% НСП 1% [14:02:37]line > о реализуемом товаре [14:02:37]line ИТОГО: 120.00 [14:02:37]line НСП 1% : 1.06 [14:02:37]line НДС 12% : 12.74 [14:02:37]line Наличными: 120.00 [14:02:37]line Безнал.: 0.00 [14:02:37]line Место: АЗС № 80 "Партнер Нефть" [14:02:37]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:02:37]line СНО: Общий режим [14:02:37]line Чек 75 25.10.2024 14:02 [14:02:37]line Смена: 493 ФФД: 1.0 [14:02:37]line ЗНМ: 0300000090 [14:02:37]line РНМ: 0000000000097022 [14:02:37]line Версия ККМ: 001 [14:02:37]line ФМ: 0000000000875000 [14:02:37]line ФД: 50575 [14:02:37]line ФПД: 104065740444091 [14:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140237&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50575&fm=104065740444091&tin=02508201610067®Number=0000000000097022&sum=12000 [14:02:37]line 0 [14:02:37]OFD Sender: Processing packet 50575 [packets to send 7, broken 6] [14:02:37]ProducePacketName [14:02:37]name=ofd_packets/00050575 [14:02:37]OFD Sender: To server: pG, [14:02:37]CommunicateWithHost lk.salyk.kg:30040 [14:02:37]ConnectInit lk.salyk.kg [14:02:37]written 0, free lines is 4095 [14:02:38]Write to MH i2c: 01 00 00 D9 09 E2 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 07 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 07 00 D9 09 00 00 00 00 00 0F 0D 05 [14:02:38]RasterBufferAndPrint [14:02:38]line [14:02:38]line [14:02:38]line [14:02:38]line [14:02:38]line [14:02:38]written 0, free lines is 3349 [14:02:38]process_action close_receipt done [14:02:38]requested_data is exist [14:02:38]produce_requested_data [14:02:38]requested_item fm.sn is exist - process it [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 11 00 00 [14:02:38]Write to MH i2c: E2 08 00 E0 09 80 11 00 00 00 00 00 00 63 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 17 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 17 00 E0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AA [14:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:02:38]wFMCommunicate OK [14:02:38]requested_item fd.num is exist - process it [14:02:38]SAM_PROTO_GetFieldsCounters [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 13 00 00 [14:02:38]Write to MH i2c: E2 08 00 E1 09 80 13 00 00 00 00 00 00 66 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 62 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 62 00 E1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [14:02:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 8F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:38]wFMCommunicate OK [14:02:38]SAM_PROTO_GetFieldsCounters done [14:02:38]requested_item shift.num is exist - process it [14:02:38]requested_item shift.opened is exist - process it [14:02:38]req_shift_opened [14:02:38]FM_GetShiftState [14:02:38]SAM_PROTO_GetShiftState [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 13 01 00 [14:02:38]Write to MH i2c: E2 08 00 E2 09 80 13 01 00 00 00 00 00 68 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 0E 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 0E 00 E2 09 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 60 [14:02:38]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:02:38]wFMCommunicate OK [14:02:38]SAM_PROTO_GetShiftState done [14:02:38]FM_GetShiftState done [14:02:38]req_shift_opened done [14:02:38]requested_item shift.open_date is exist - process it [14:02:38]req_shift_open_date [14:02:38]req_shift_open_date done [14:02:38]produce_requested_data done [14:02:38]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50575,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:02:38]process_action_free close_receipt [14:02:38]json_value_free [14:02:38]json_value_free done [14:02:38]process_json_proto returns [14:02:38]Send response to host [14:02:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50575,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:02:38]free response buf [14:02:38]execute_script done [14:02:38]execute_script returns [14:02:38]free content buf [14:02:38]Sock 9.Close socket [14:02:38]Sock 9.Thread stoped [14:02:49]accept exits with 7 [14:02:49]New connection [14:02:49]New thread 3066645860 created [14:02:49]Thread 3066789220 joined [14:02:49]Waiting for new connection... [14:02:49] Sock 7.Parse request [14:02:49]Sock 7.Check first char [14:02:49]Sock 7.First char is OK [14:02:49]request: POST /json_proto HTTP/1.0 [14:02:49]Method: POST [14:02:49]URL: /json_proto [14:02:49]Method is POST - this is cgi request [14:02:49]url: /json_proto [14:02:49]query_string will be loaded in cgi processing [14:02:49]execute_cgi json_proto POST (null) [14:02:49]execute_cgi path=json_proto method=POST [14:02:49]POST find Content-Length [14:02:49]Host: 172.17.49.196:8080 [14:02:49]Content-Length: 662 [14:02:49]Content-Type: application/json [14:02:49] [14:02:49]POST finish read [14:02:49]Found Content-Length = 662 [14:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164485", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 54.00, "quantity" : 1.000, "sum" : 54.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 54.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:49]execute_script... [14:02: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)164485", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 54.00, "quantity" : 1.000, "sum" : 54.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 54.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:49]POST & json_proto [14:02:49]process_json_proto [14:02:49]json parsed OK: [14:02:49]protocol is kg_v1.0 [14:02:49]action value=close_receipt [14:02:49]process_action close_receipt [14:02:49]cmd_close_receipt [14:02:49]MH_GetDate [14:02:49]Write to MH i2c: F0 00 00 E3 09 DB [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: F0 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: F0 09 00 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: F0 09 00 E3 09 00 0B A5 1B 67 BD 3B 11 67 86 [14:02:49]GetLastDocTimeStamp 1729864957 [14:02:49]current date 1729864971 [14:02:49]FM_GetShiftState [14:02:49]SAM_PROTO_GetShiftState [14:02:49]wFMCommunicate request_size=4 [14:02:49]MH_SAM_APDU [14:02:49]CAPDU: 80 13 01 00 [14:02:49]Write to MH i2c: E2 08 00 E4 09 80 13 01 00 00 00 00 00 6A [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:49]Read from MH i2c: E2 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: E2 0E 00 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: E2 0E 00 E4 09 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 62 [14:02:49]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:02:49]wFMCommunicate OK [14:02:49]SAM_PROTO_GetShiftState done [14:02:49]FM_GetShiftState done [14:02:49]opened in 1729815177 [14:02:49]opened+sec_in_day 1729901577 [14:02:49]quantity*price = 5400 [14:02:49]sum+1 = 5401 [14:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 54.00 НСП 1% : 0.48 НДС 12% : 5.73 Наличными: 54.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 76 25.10.2024 14:02 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50576 ФПД: 169785184158306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140251&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50576&fm=169785184158306&tin=02508201610067®Number=0000000000097022&sum=5400 0 [14:02:50]StoreToDocumentArchive [14:02:50]shift 493 fd 50576 [14:02:50]save to /storage/0493/doc_00050576 [14:02:50]save last doc name /storage/0493/doc_00050576 to /storage/kkm_last_doc_name [14:02:50]save OK [14:02:50]Clear old archive folders... [14:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=281 [14:02:50]tlvbuf is 01E56800 [14:02:50]SAM_PROTO_ClearQueue [14:02:50]wFMCommunicate request_size=4 [14:02:50]MH_SAM_APDU [14:02:50]CAPDU: 80 09 00 00 [14:02:50]Write to MH i2c: E2 08 00 F1 09 80 09 00 00 00 00 00 00 6C [14:02:50]Write i2c OK [14:02:50]MH_I2C_Read... [14:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:50]Read from MH i2c: E2 [14:02:50]MH_I2C_Read... [14:02:50]Read from MH i2c: E2 03 00 [14:02:50]MH_I2C_Read... [14:02:50]Read from MH i2c: E2 03 00 F1 09 00 90 00 6E [14:02:50]RAPDU: 90 00 [14:02:50]wFMCommunicate OK [14:02:50]SAM_PROTO_ClearQueue done [14:02:50]KKMCreateOFDPacket [14:02:50]OFDProtocolAddRootSTLVToBuf [14:02:50]FM_MakeSignedData [14:02:50]FM_MakeSignedData [14:02:50]SAM_PROTO_SignData [14:02:50]wFMCommunicate request_size=4 [14:02:50]MH_SAM_APDU [14:02:50]CAPDU: 80 0D 01 02 [14:02:50]Write to MH i2c: E2 08 00 F2 09 80 0D 01 02 00 00 00 00 74 [14:02:50]Write i2c OK [14:02:50]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 03 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [14:02:51]RAPDU: 90 00 [14:02:51]wFMCommunicate OK [14:02:51]wFMCommunicate request_size=255 [14:02:51]MH_SAM_APDU [14:02:51]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 02 00 00 00 00 07 04 06 00 18 15 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 0B A5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 [14:02:51]Write to MH i2c: E2 02 01 F3 09 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 02 00 00 00 00 07 04 06 00 18 15 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 0B A5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 00 F5 [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 03 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 03 00 F3 09 00 90 00 70 [14:02:51]RAPDU: 90 00 [14:02:51]wFMCommunicate OK [14:02:51]wFMCommunicate request_size=40 [14:02:51]MH_SAM_APDU [14:02:51]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C5 00 00 35 04 06 00 9A 6B 31 97 02 62 [14:02:51]Write to MH i2c: E2 2B 00 F4 09 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C5 00 00 35 04 06 00 9A 6B 31 97 02 62 00 00 AE [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 03 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 03 00 F4 09 00 90 00 71 [14:02:51]RAPDU: 90 00 [14:02:51]wFMCommunicate OK [14:02:51]wFMCommunicate request_size=4 [14:02:51]MH_SAM_APDU [14:02:51]CAPDU: 80 0D 03 02 [14:02:51]Write to MH i2c: E2 08 00 F5 09 80 0D 03 02 00 00 00 00 79 [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 0B 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 0B 00 F5 09 00 C1 49 C4 9F A1 A1 BF 28 90 00 10 [14:02:51]RAPDU: C1 49 C4 9F A1 A1 BF 28 90 00 [14:02:51]wFMCommunicate OK [14:02:51]SAM_PROTO_SignData done [14:02:51]FM_MakeSignedData done [14:02:51]CreateOFDProtocolMessage [14:02:51]wFMCommunicate request_size=4 [14:02:51]MH_SAM_APDU [14:02:51]CAPDU: 80 11 00 00 [14:02:51]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 17 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 17 00 F6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C0 [14:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:02:51]wFMCommunicate OK [14:02:51]CreateOFDProtocolMessage done [14:02:51]OFDSenderStorePacket 50576 [14:02:51]StoreOFDPacket docnum=50576 [14:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2D 01 00 00 D2 F0 25 01 6C F9 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 02 00 00 00 00 07 04 06 00 18 15 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 0B A5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C5 00 00 35 04 06 00 9A 6B 31 97 02 62 C1 49 C4 9F A1 A1 BF 28 [14:02:51]CheckFolder [14:02:51]dirname=/storage/ofd_packets [14:02:51]CheckFolder done [14:02:51]ProducePacketName [14:02:51]name=ofd_packets/00050576 [14:02:51]NVStorageSaveData ofd_packets/00050576 [14:02:51]File name is /storage/ofd_packets/00050576 [14:02:51]Write 331 bytes [14:02:51]NVStorageSaveData done [14:02:51]OFDSenderStorePacket done [14:02:51]KKMCreateOFDPacket done [14:02:51]NVStorageSaveData kkm_last_timestamp [14:02:51]File name is /storage/kkm_last_timestamp [14:02:51]Write 4 bytes [14:02:51]NVStorageSaveData done [14:02:51]ExternCall_PrintAddStr [14:02:51]wPrintStart [14:02:51]Write to MH i2c: 01 00 00 F7 09 00 [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: 01 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: 01 07 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: 01 07 00 F7 09 00 00 00 00 00 FF 0F 15 [14:02:51]RasterBufferAndPrint [14:02:51]line Счет N : (3)164485 [14:02:51]line ИНН: 02508201610067 [14:02:51]line Контрольно-Кассовый Чек [14:02:51]line ПРОДАЖА [14:02:51]line Товар: 4011100977952 [14:02:51]line Шок Батончик Твикс 55г [14:02:51]line 1.000 * 54.00 [14:02:51]line = 54.00 [14:02:51]line НДС 12% НСП 1% [14:02:51]line > о реализуемом товаре [14:02:51]line ИТОГО: 54.00 [14:02:51]line НСП 1% : 0.48 [14:02:51]line НДС 12% : 5.73 [14:02:51]line Наличными: 54.00 [14:02:51]line Безнал.: 0.00 [14:02:51]line Место: АЗС № 80 "Партнер Нефть" [14:02:51]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:02:51]line СНО: Общий режим [14:02:51]line Чек 76 25.10.2024 14:02 [14:02:51]line Смена: 493 ФФД: 1.0 [14:02:51]line ЗНМ: 0300000090 [14:02:51]line РНМ: 0000000000097022 [14:02:51]line Версия ККМ: 001 [14:02:51]line ФМ: 0000000000875000 [14:02:51]line ФД: 50576 [14:02:51]line ФПД: 169785184158306 [14:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140251&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50576&fm=169785184158306&tin=02508201610067®Number=0000000000097022&sum=5400 [14:02:51]line 0 [14:02:51]written 0, free lines is 4095 [14:02:52]Write to MH i2c: 01 00 00 1F 0A 29 [14:02:52]Write i2c OK [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: 01 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: 01 07 00 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 0E 0D 4B [14:02:52]RasterBufferAndPrint [14:02:52]line [14:02:52]line [14:02:52]line [14:02:52]line [14:02:52]line [14:02:52]written 0, free lines is 3348 [14:02:52]process_action close_receipt done [14:02:52]requested_data is exist [14:02:52]produce_requested_data [14:02:52]requested_item fm.sn is exist - process it [14:02:52]wFMCommunicate request_size=4 [14:02:52]MH_SAM_APDU [14:02:52]CAPDU: 80 11 00 00 [14:02:52]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [14:02:52]Write i2c OK [14:02:52]MH_I2C_Read... [14:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:52]Read from MH i2c: E2 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: E2 17 00 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F1 [14:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:02:52]wFMCommunicate OK [14:02:52]requested_item fd.num is exist - process it [14:02:52]SAM_PROTO_GetFieldsCounters [14:02:52]wFMCommunicate request_size=4 [14:02:52]MH_SAM_APDU [14:02:52]CAPDU: 80 13 00 00 [14:02:52]Write to MH i2c: E2 08 00 27 0A 80 13 00 00 00 00 00 00 AD [14:02:52]Write i2c OK [14:02:52]MH_I2C_Read... [14:02:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:52]Read from MH i2c: E2 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: E2 62 00 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: E2 62 00 27 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 90 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [14:02:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 90 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:52]wFMCommunicate OK [14:02:52]SAM_PROTO_GetFieldsCounters done [14:02:52]requested_item shift.num is exist - process it [14:02:52]requested_item shift.opened is exist - process it [14:02:52]req_shift_opened [14:02:52]FM_GetShiftState [14:02:52]SAM_PROTO_GetShiftState [14:02:52]wFMCommunicate request_size=4 [14:02:52]MH_SAM_APDU [14:02:52]CAPDU: 80 13 01 00 [14:02:52]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [14:02:52]Write i2c OK [14:02:52]MH_I2C_Read... [14:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:52]Read from MH i2c: E2 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: E2 0E 00 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A7 [14:02:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:02:52]wFMCommunicate OK [14:02:52]SAM_PROTO_GetShiftState done [14:02:52]FM_GetShiftState done [14:02:52]req_shift_opened done [14:02:52]requested_item shift.open_date is exist - process it [14:02:52]req_shift_open_date [14:02:52]req_shift_open_date done [14:02:52]produce_requested_data done [14:02:52]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50576,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:02:52]process_action_free close_receipt [14:02:52]json_value_free [14:02:52]json_value_free done [14:02:52]process_json_proto returns [14:02:52]Send response to host [14:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50576,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:02:52]free response buf [14:02:52]execute_script done [14:02:52]execute_script returns [14:02:52]free content buf [14:02:52]Sock 7.Close socket [14:02:52]Sock 7.Thread stoped [14:04:51]ConnectInit Can't connect to host [14:04:51]CommunicateWithHost connect error [14:04:51]CommunicateWithHost err = -1 [14:04:51]OFD Sender: Server communicate error [14:04:51]OFD Sender: Processing packet 50575 [packets to send 8, broken 6] [14:04:51]ProducePacketName [14:04:51]name=ofd_packets/00050575 [14:04:51]OFD Sender: To server: pG, [14:04:51]CommunicateWithHost lk.salyk.kg:30040 [14:04:51]ConnectInit lk.salyk.kg [14:04:51]Connected sock=7 [14:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 33 01 00 00 EF 2C 2B 01 FF 6F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FD A4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C5 00 00 35 04 06 00 5E A5 B1 7E 11 BB 72 56 9D B6 8F 85 27 42 [14:04:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 12 D4 47 00 19 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 8F C5 00 00 F4 03 04 00 14 51 1B 67 B6 04 01 00 00 1A 56 00 CF DE C6 B1 92 [14:04:51]CommunicateWithHost err = 0 [14:04:51]CheckOFDResponse [14:04:51]1017 (14) - 77093643461234 [14:04:51]1041 (16) - 0000000000875000 [14:04:51]1040 (4) - 50575 [14:04:51]1012 (4) - 25.10.2024 08:04 [14:04:51]1206 (1) - 0 [14:04:51]OFD Sender: Remove packet 50575 [14:04:51]ProducePacketName [14:04:51]name=ofd_packets/00050575 [14:04:51]NVStorageDeleteData [14:04:52]OFD Sender: Processing packet 50576 [packets to send 7, broken 6] [14:04:52]ProducePacketName [14:04:52]name=ofd_packets/00050576 [14:04:52]OFD Sender: To server: pG, [14:04:52]CommunicateWithHost lk.salyk.kg:30040 [14:04:52]ConnectInit lk.salyk.kg [14:04:52]Connected sock=7 [14:04:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2D 01 00 00 D2 F0 25 01 6C F9 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 02 00 00 00 00 07 04 06 00 18 15 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 0B A5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C5 00 00 35 04 06 00 9A 6B 31 97 02 62 C1 49 C4 9F A1 A1 BF 28 [14:04:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 44 E1 47 00 E1 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 90 C5 00 00 F4 03 04 00 14 51 1B 67 B6 04 01 00 00 1E 72 CE AE A6 0D 2B B0 [14:04:52]CommunicateWithHost err = 0 [14:04:52]CheckOFDResponse [14:04:52]1017 (14) - 77093643461234 [14:04:52]1041 (16) - 0000000000875000 [14:04:52]1040 (4) - 50576 [14:04:52]1012 (4) - 25.10.2024 08:04 [14:04:52]1206 (1) - 0 [14:04:52]OFD Sender: Remove packet 50576 [14:04:52]ProducePacketName [14:04:52]name=ofd_packets/00050576 [14:04:52]NVStorageDeleteData [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07: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:13]accept exits with 9 [14:09:13]New connection [14:09:13]New thread 3066789220 created [14:09:13]Thread 3066645860 joined [14:09:13]Waiting for new connection... [14:09:13] Sock 9.Parse request [14:09:13]Sock 9.Check first char [14:09:13]Sock 9.First char is OK [14:09:13]request: POST /json_proto HTTP/1.0 [14:09:13]Method: POST [14:09:13]URL: /json_proto [14:09:13]Method is POST - this is cgi request [14:09:13]url: /json_proto [14:09:13]query_string will be loaded in cgi processing [14:09:13]execute_cgi json_proto POST (null) [14:09:13]execute_cgi path=json_proto method=POST [14:09:13]POST find Content-Length [14:09:13]Host: 172.17.49.196:8080 [14:09:13]Content-Length: 683 [14:09:13]Content-Type: application/json [14:09:13] [14:09:13]POST finish read [14:09:13]Found Content-Length = 683 [14:09:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164486", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:13]execute_script... [14:09:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164486", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:13]POST & json_proto [14:09:13]process_json_proto [14:09:13]json parsed OK: [14:09:13]protocol is kg_v1.0 [14:09:13]action value=close_receipt [14:09:13]process_action close_receipt [14:09:13]cmd_close_receipt [14:09:13]MH_GetDate [14:09:13]Write to MH i2c: F0 00 00 29 0A 22 [14:09:13]Write i2c OK [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: F0 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: F0 09 00 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: F0 09 00 29 0A 00 8B A6 1B 67 BD 3B 11 67 4E [14:09:13]GetLastDocTimeStamp 1729864971 [14:09:13]current date 1729865355 [14:09:13]FM_GetShiftState [14:09:13]SAM_PROTO_GetShiftState [14:09:13]wFMCommunicate request_size=4 [14:09:13]MH_SAM_APDU [14:09:13]CAPDU: 80 13 01 00 [14:09:13]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [14:09:13]Write i2c OK [14:09:13]MH_I2C_Read... [14:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:13]Read from MH i2c: E2 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: E2 0E 00 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A9 [14:09:13]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:09:13]wFMCommunicate OK [14:09:13]SAM_PROTO_GetShiftState done [14:09:13]FM_GetShiftState done [14:09:13]opened in 1729815177 [14:09:13]opened+sec_in_day 1729901577 [14:09:13]quantity*price = 10400 [14:09:13]sum+1 = 10401 [14:09:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 77 25.10.2024 14:09 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50577 ФПД: 130878712729699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140915&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50577&fm=130878712729699&tin=02508201610067®Number=0000000000097022&sum=10400 0 [14:09:14]StoreToDocumentArchive [14:09:14]shift 493 fd 50577 [14:09:14]save to /storage/0493/doc_00050577 [14:09:14]save last doc name /storage/0493/doc_00050577 to /storage/kkm_last_doc_name [14:09:14]save OK [14:09:14]Clear old archive folders... [14:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=291 [14:09:14]tlvbuf is 01E41440 [14:09:14]SAM_PROTO_ClearQueue [14:09:14]wFMCommunicate request_size=4 [14:09:14]MH_SAM_APDU [14:09:14]CAPDU: 80 09 00 00 [14:09:14]Write to MH i2c: E2 08 00 37 0A 80 09 00 00 00 00 00 00 B3 [14:09:14]Write i2c OK [14:09:14]MH_I2C_Read... [14:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:14]Read from MH i2c: E2 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 03 00 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [14:09:14]RAPDU: 90 00 [14:09:14]wFMCommunicate OK [14:09:14]SAM_PROTO_ClearQueue done [14:09:14]KKMCreateOFDPacket [14:09:14]OFDProtocolAddRootSTLVToBuf [14:09:14]FM_MakeSignedData [14:09:14]FM_MakeSignedData [14:09:14]SAM_PROTO_SignData [14:09:14]wFMCommunicate request_size=4 [14:09:14]MH_SAM_APDU [14:09:14]CAPDU: 80 0D 01 02 [14:09:14]Write to MH i2c: E2 08 00 38 0A 80 0D 01 02 00 00 00 00 BB [14:09:14]Write i2c OK [14:09:14]MH_I2C_Read... [14:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:14]Read from MH i2c: E2 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 03 00 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 03 00 38 0A 00 90 00 B6 [14:09:14]RAPDU: 90 00 [14:09:14]wFMCommunicate OK [14:09:14]wFMCommunicate request_size=255 [14:09:14]MH_SAM_APDU [14:09:14]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 8B A6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [14:09:14]Write to MH i2c: E2 02 01 39 0A 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 8B A6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 6F [14:09:14]Write i2c OK [14:09:14]MH_I2C_Read... [14:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:15]Read from MH i2c: E2 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 03 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [14:09:15]RAPDU: 90 00 [14:09:15]wFMCommunicate OK [14:09:15]wFMCommunicate request_size=50 [14:09:15]MH_SAM_APDU [14:09:15]CAPDU: 80 0D 02 02 2D 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C5 00 00 35 04 06 00 77 08 93 2E 50 63 [14:09:15]Write to MH i2c: E2 35 00 3A 0A 80 0D 02 02 2D 00 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C5 00 00 35 04 06 00 77 08 93 2E 50 63 00 00 55 [14:09:15]Write i2c OK [14:09:15]MH_I2C_Read... [14:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:15]Read from MH i2c: E2 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 03 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [14:09:15]RAPDU: 90 00 [14:09:15]wFMCommunicate OK [14:09:15]wFMCommunicate request_size=4 [14:09:15]MH_SAM_APDU [14:09:15]CAPDU: 80 0D 03 02 [14:09:15]Write to MH i2c: E2 08 00 3B 0A 80 0D 03 02 00 00 00 00 C0 [14:09:15]Write i2c OK [14:09:15]MH_I2C_Read... [14:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:15]Read from MH i2c: E2 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 0B 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 0B 00 3B 0A 00 F3 F6 9B 14 E3 99 D3 0F 90 00 B7 [14:09:15]RAPDU: F3 F6 9B 14 E3 99 D3 0F 90 00 [14:09:15]wFMCommunicate OK [14:09:15]SAM_PROTO_SignData done [14:09:15]FM_MakeSignedData done [14:09:15]CreateOFDProtocolMessage [14:09:15]wFMCommunicate request_size=4 [14:09:15]MH_SAM_APDU [14:09:15]CAPDU: 80 11 00 00 [14:09:15]Write to MH i2c: E2 08 00 3C 0A 80 11 00 00 00 00 00 00 C0 [14:09:15]Write i2c OK [14:09:15]MH_I2C_Read... [14:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:15]Read from MH i2c: E2 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 17 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 17 00 3C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 07 [14:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:09:15]wFMCommunicate OK [14:09:15]CreateOFDProtocolMessage done [14:09:15]OFDSenderStorePacket 50577 [14:09:15]StoreOFDPacket docnum=50577 [14:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 37 01 00 00 8A 71 2F 01 B2 A2 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 8B A6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C5 00 00 35 04 06 00 77 08 93 2E 50 63 F3 F6 9B 14 E3 99 D3 0F [14:09:15]CheckFolder [14:09:15]dirname=/storage/ofd_packets [14:09:15]CheckFolder done [14:09:15]ProducePacketName [14:09:15]name=ofd_packets/00050577 [14:09:15]NVStorageSaveData ofd_packets/00050577 [14:09:15]File name is /storage/ofd_packets/00050577 [14:09:15]Write 341 bytes [14:09:15]NVStorageSaveData done [14:09:15]OFDSenderStorePacket done [14:09:15]KKMCreateOFDPacket done [14:09:15]NVStorageSaveData kkm_last_timestamp [14:09:15]File name is /storage/kkm_last_timestamp [14:09:15]Write 4 bytes [14:09:15]NVStorageSaveData done [14:09:15]ExternCall_PrintAddStr [14:09:15]wPrintStart [14:09:15]Write to MH i2c: 01 00 00 3D 0A 47 [14:09:15]Write i2c OK [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: 01 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: 01 07 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [14:09:15]RasterBufferAndPrint [14:09:15]line Счет N : (3)164486 [14:09:15]line ИНН: 02508201610067 [14:09:15]line Контрольно-Кассовый Чек [14:09:15]line ПРОДАЖА [14:09:15]line Товар: 4870202522015 [14:09:15]line Напиток Maxi Чай Грушевый 1,2л [14:09:15]line 1.000 * 104.00 [14:09:15]line = 104.00 [14:09:15]line НДС 12% НСП 1% [14:09:15]line > о реализуемом товаре [14:09:15]line ИТОГО: 104.00 [14:09:15]line НСП 1% : 0.92 [14:09:15]line НДС 12% : 11.04 [14:09:15]line Наличными: 104.00 [14:09:15]line Безнал.: 0.00 [14:09:15]line Место: АЗС № 80 "Партнер Нефть" [14:09:15]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:09:15]line СНО: Общий режим [14:09:15]line Чек 77 25.10.2024 14:09 [14:09:15]line Смена: 493 ФФД: 1.0 [14:09:15]line ЗНМ: 0300000090 [14:09:15]line РНМ: 0000000000097022 [14:09:15]line Версия ККМ: 001 [14:09:15]line ФМ: 0000000000875000 [14:09:15]line ФД: 50577 [14:09:15]line ФПД: 130878712729699 [14:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T140915&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50577&fm=130878712729699&tin=02508201610067®Number=0000000000097022&sum=10400 [14:09:15]OFD Sender: Processing packet 50577 [packets to send 7, broken 6] [14:09:15]ProducePacketName [14:09:15]name=ofd_packets/00050577 [14:09:15]OFD Sender: To server: pG, [14:09:15]CommunicateWithHost lk.salyk.kg:30040 [14:09:15]ConnectInit lk.salyk.kg [14:09:15]line 0 [14:09:15]written 0, free lines is 4095 [14:09:15]Connected sock=10 [14:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 37 01 00 00 8A 71 2F 01 B2 A2 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 8B A6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C5 00 00 35 04 06 00 77 08 93 2E 50 63 F3 F6 9B 14 E3 99 D3 0F [14:09:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 51 68 47 00 B8 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 91 C5 00 00 F4 03 04 00 1C 52 1B 67 B6 04 01 00 00 4F 99 56 84 19 18 EF DD [14:09:16]CommunicateWithHost err = 0 [14:09:16]CheckOFDResponse [14:09:16]1017 (14) - 77093643461234 [14:09:16]1041 (16) - 0000000000875000 [14:09:16]1040 (4) - 50577 [14:09:16]1012 (4) - 25.10.2024 08:09 [14:09:16]1206 (1) - 0 [14:09:16]OFD Sender: Remove packet 50577 [14:09:16]ProducePacketName [14:09:16]name=ofd_packets/00050577 [14:09:16]NVStorageDeleteData [14:09:16]Write to MH i2c: 01 00 00 66 0A 70 [14:09:16]Write i2c OK [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: 01 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: 01 07 00 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: 01 07 00 66 0A 00 00 00 00 00 02 0D 86 [14:09:16]RasterBufferAndPrint [14:09:16]line [14:09:16]line [14:09:16]line [14:09:16]line [14:09:16]line [14:09:16]written 0, free lines is 3336 [14:09:16]process_action close_receipt done [14:09:16]requested_data is exist [14:09:16]produce_requested_data [14:09:16]requested_item fm.sn is exist - process it [14:09:16]wFMCommunicate request_size=4 [14:09:16]MH_SAM_APDU [14:09:16]CAPDU: 80 11 00 00 [14:09:16]Write to MH i2c: E2 08 00 6D 0A 80 11 00 00 00 00 00 00 F1 [14:09:16]Write i2c OK [14:09:16]MH_I2C_Read... [14:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:16]Read from MH i2c: E2 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 17 00 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 17 00 6D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 38 [14:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:09:16]wFMCommunicate OK [14:09:16]requested_item fd.num is exist - process it [14:09:16]SAM_PROTO_GetFieldsCounters [14:09:16]wFMCommunicate request_size=4 [14:09:16]MH_SAM_APDU [14:09:16]CAPDU: 80 13 00 00 [14:09:16]Write to MH i2c: E2 08 00 6E 0A 80 13 00 00 00 00 00 00 F4 [14:09:16]Write i2c OK [14:09:16]MH_I2C_Read... [14:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:16]Read from MH i2c: E2 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 62 00 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 62 00 6E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 91 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 91 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:16]wFMCommunicate OK [14:09:16]SAM_PROTO_GetFieldsCounters done [14:09:16]requested_item shift.num is exist - process it [14:09:16]requested_item shift.opened is exist - process it [14:09:16]req_shift_opened [14:09:16]FM_GetShiftState [14:09:16]SAM_PROTO_GetShiftState [14:09:16]wFMCommunicate request_size=4 [14:09:16]MH_SAM_APDU [14:09:16]CAPDU: 80 13 01 00 [14:09:16]Write to MH i2c: E2 08 00 6F 0A 80 13 01 00 00 00 00 00 F6 [14:09:16]Write i2c OK [14:09:16]MH_I2C_Read... [14:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:16]Read from MH i2c: E2 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 0E 00 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 0E 00 6F 0A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 EE [14:09:16]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:09:16]wFMCommunicate OK [14:09:16]SAM_PROTO_GetShiftState done [14:09:16]FM_GetShiftState done [14:09:16]req_shift_opened done [14:09:16]requested_item shift.open_date is exist - process it [14:09:16]req_shift_open_date [14:09:16]req_shift_open_date done [14:09:16]produce_requested_data done [14:09:16]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50577,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:09:16]process_action_free close_receipt [14:09:16]json_value_free [14:09:16]json_value_free done [14:09:16]process_json_proto returns [14:09:16]Send response to host [14:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50577,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:09:16]free response buf [14:09:16]execute_script done [14:09:16]execute_script returns [14:09:16]free content buf [14:09:16]Sock 9.Close socket [14:09:16]Sock 9.Thread stoped [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:13:58]accept exits with 7 [14:13:58]New connection [14:13:58]New thread 3066645860 created [14:13:58]Thread 3066789220 joined [14:13:58]Waiting for new connection... [14:13:58] Sock 7.Parse request [14:13:58]Sock 7.Check first char [14:13:58]Sock 7.First char is OK [14:13:58]request: POST /json_proto HTTP/1.0 [14:13:58]Method: POST [14:13:58]URL: /json_proto [14:13:58]Method is POST - this is cgi request [14:13:58]url: /json_proto [14:13:58]query_string will be loaded in cgi processing [14:13:58]execute_cgi json_proto POST (null) [14:13:58]execute_cgi path=json_proto method=POST [14:13:58]POST find Content-Length [14:13:58]Host: 172.17.49.196:8080 [14:13:58]Content-Length: 807 [14:13:58]Content-Type: application/json [14:13:58] [14:13:58]POST finish read [14:13:58]Found Content-Length = 807 [14:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164487", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:58]execute_script... [14:13: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)164487", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:58]POST & json_proto [14:13:58]process_json_proto [14:13:58]json parsed OK: [14:13:58]protocol is kg_v1.0 [14:13:58]action value=close_receipt [14:13:58]process_action close_receipt [14:13:58]cmd_close_receipt [14:13:58]MH_GetDate [14:13:58]Write to MH i2c: F0 00 00 70 0A 69 [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: F0 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: F0 09 00 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: F0 09 00 70 0A 00 A8 A7 1B 67 BD 3B 11 67 B3 [14:13:58]GetLastDocTimeStamp 1729865355 [14:13:58]current date 1729865640 [14:13:58]FM_GetShiftState [14:13:58]SAM_PROTO_GetShiftState [14:13:58]wFMCommunicate request_size=4 [14:13:58]MH_SAM_APDU [14:13:58]CAPDU: 80 13 01 00 [14:13:58]Write to MH i2c: E2 08 00 71 0A 80 13 01 00 00 00 00 00 F8 [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:58]Read from MH i2c: E2 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: E2 0E 00 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: E2 0E 00 71 0A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F0 [14:13:58]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:13:58]wFMCommunicate OK [14:13:58]SAM_PROTO_GetShiftState done [14:13:58]FM_GetShiftState done [14:13:58]opened in 1729815177 [14:13:58]opened+sec_in_day 1729901577 [14:13:58]quantity*price = 6500 [14:13:58]sum+1 = 6501 [14:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 78 25.10.2024 14:14 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50578 ФПД: 75091954620131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T141400&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50578&fm=75091954620131&tin=02508201610067®Number=0000000000097022&sum=6500 0 [14:13:59]StoreToDocumentArchive [14:13:59]shift 493 fd 50578 [14:13:59]save to /storage/0493/doc_00050578 [14:13:59]save last doc name /storage/0493/doc_00050578 to /storage/kkm_last_doc_name [14:13:59]save OK [14:13:59]Clear old archive folders... [14:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=299 [14:14:00]tlvbuf is B6D80280 [14:14:00]SAM_PROTO_ClearQueue [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 09 00 00 [14:14:00]Write to MH i2c: E2 08 00 7E 0A 80 09 00 00 00 00 00 00 FA [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:00]Read from MH i2c: E2 03 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 7E 0A 00 90 00 FC [14:14:00]RAPDU: 90 00 [14:14:00]wFMCommunicate OK [14:14:00]SAM_PROTO_ClearQueue done [14:14:00]KKMCreateOFDPacket [14:14:00]OFDProtocolAddRootSTLVToBuf [14:14:00]FM_MakeSignedData [14:14:00]FM_MakeSignedData [14:14:00]SAM_PROTO_SignData [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 0D 01 02 [14:14:00]Write to MH i2c: E2 08 00 7F 0A 80 0D 01 02 00 00 00 00 02 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 7F 0A 00 90 00 FD [14:14:00]RAPDU: 90 00 [14:14:00]wFMCommunicate OK [14:14:00]wFMCommunicate request_size=255 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A8 A7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [14:14:00]Write to MH i2c: E2 02 01 80 0A 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A8 A7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 F0 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 80 0A 00 90 00 FE [14:14:00]RAPDU: 90 00 [14:14:00]wFMCommunicate OK [14:14:00]wFMCommunicate request_size=58 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C5 00 00 35 04 06 00 44 4B B5 47 D6 E3 [14:14:00]Write to MH i2c: E2 3D 00 81 0A 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C5 00 00 35 04 06 00 44 4B B5 47 D6 E3 00 00 7E [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 81 0A 00 90 00 FF [14:14:00]RAPDU: 90 00 [14:14:00]wFMCommunicate OK [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 0D 03 02 [14:14:00]Write to MH i2c: E2 08 00 82 0A 80 0D 03 02 00 00 00 00 07 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0B 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0B 00 82 0A 00 0E 23 DB 30 1F 52 67 13 90 00 2F [14:14:00]RAPDU: 0E 23 DB 30 1F 52 67 13 90 00 [14:14:00]wFMCommunicate OK [14:14:00]SAM_PROTO_SignData done [14:14:00]FM_MakeSignedData done [14:14:00]CreateOFDProtocolMessage [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 11 00 00 [14:14:00]Write to MH i2c: E2 08 00 83 0A 80 11 00 00 00 00 00 00 07 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 17 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 17 00 83 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4E [14:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:14:00]wFMCommunicate OK [14:14:00]CreateOFDProtocolMessage done [14:14:00]OFDSenderStorePacket 50578 [14:14:00]StoreOFDPacket docnum=50578 [14:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3F 01 00 00 00 7E 37 01 C4 2C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A8 A7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C5 00 00 35 04 06 00 44 4B B5 47 D6 E3 0E 23 DB 30 1F 52 67 13 [14:14:00]CheckFolder [14:14:00]dirname=/storage/ofd_packets [14:14:00]CheckFolder done [14:14:00]ProducePacketName [14:14:00]name=ofd_packets/00050578 [14:14:00]NVStorageSaveData ofd_packets/00050578 [14:14:00]File name is /storage/ofd_packets/00050578 [14:14:00]Write 349 bytes [14:14:00]NVStorageSaveData done [14:14:00]OFDSenderStorePacket done [14:14:00]KKMCreateOFDPacket done [14:14:00]NVStorageSaveData kkm_last_timestamp [14:14:00]File name is /storage/kkm_last_timestamp [14:14:00]Write 4 bytes [14:14:00]NVStorageSaveData done [14:14:00]ExternCall_PrintAddStr [14:14:00]wPrintStart [14:14:00]Write to MH i2c: 01 00 00 84 0A 8E [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 07 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 07 00 84 0A 00 00 00 00 00 FF 0F A3 [14:14:00]RasterBufferAndPrint [14:14:00]line Счет N : (3)164487 [14:14:00]line ИНН: 02508201610067 [14:14:00]line Контрольно-Кассовый Чек [14:14:00]line ПРОДАЖА [14:14:00]line Товар: 4620016300305 [14:14:00]line Салфетки Absolut classic вл а/бакт 20 шт [14:14:00]line 1.000 * 65.00 [14:14:00]line = 65.00 [14:14:00]line НДС 12% НСП 1% [14:14:00]line > о реализуемом товаре [14:14:00]line ИТОГО: 65.00 [14:14:00]line НСП 1% : 0.57 [14:14:00]line НДС 12% : 6.90 [14:14:00]line Наличными: 0.00 [14:14:00]line Безнал.: 65.00 [14:14:00]line Место: АЗС № 80 "Партнер Нефть" [14:14:00]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:14:00]line СНО: Общий режим [14:14:00]line Чек 78 25.10.2024 14:14 [14:14:00]line Смена: 493 ФФД: 1.0 [14:14:00]line ЗНМ: 0300000090 [14:14:00]line РНМ: 0000000000097022 [14:14:00]line Версия ККМ: 001 [14:14:00]line Платежная система: Mbank [14:14:00]line ФМ: 0000000000875000 [14:14:00]line ФД: 50578 [14:14:00]line ФПД: 75091954620131 [14:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T141400&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50578&fm=75091954620131&tin=02508201610067®Number=0000000000097022&sum=6500 [14:14:00]line 0 [14:14:00]OFD Sender: Processing packet 50578 [packets to send 7, broken 6] [14:14:00]ProducePacketName [14:14:00]name=ofd_packets/00050578 [14:14:00]OFD Sender: To server: pG, [14:14:00]CommunicateWithHost lk.salyk.kg:30040 [14:14:00]ConnectInit lk.salyk.kg [14:14:00]written 0, free lines is 4095 [14:14:00]Connected sock=10 [14:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3F 01 00 00 00 7E 37 01 C4 2C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A8 A7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C5 00 00 35 04 06 00 44 4B B5 47 D6 E3 0E 23 DB 30 1F 52 67 13 [14:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 55 2B 47 00 15 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 92 C5 00 00 F4 03 04 00 39 53 1B 67 B6 04 01 00 00 EB 39 9A 9A C2 73 EB AF [14:14:01]CommunicateWithHost err = 0 [14:14:01]CheckOFDResponse [14:14:01]1017 (14) - 77093643461234 [14:14:01]1041 (16) - 0000000000875000 [14:14:01]1040 (4) - 50578 [14:14:01]1012 (4) - 25.10.2024 08:13 [14:14:01]1206 (1) - 0 [14:14:01]OFD Sender: Remove packet 50578 [14:14:01]ProducePacketName [14:14:01]name=ofd_packets/00050578 [14:14:01]NVStorageDeleteData [14:14:01]Write to MH i2c: 01 00 00 AE 0A B8 [14:14:01]Write i2c OK [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: 01 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: 01 07 00 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 06 0D D2 [14:14:01]RasterBufferAndPrint [14:14:01]line [14:14:01]line [14:14:01]line [14:14:01]line [14:14:01]line [14:14:01]written 0, free lines is 3340 [14:14:01]process_action close_receipt done [14:14:01]requested_data is exist [14:14:01]produce_requested_data [14:14:01]requested_item fm.sn is exist - process it [14:14:01]wFMCommunicate request_size=4 [14:14:01]MH_SAM_APDU [14:14:01]CAPDU: 80 11 00 00 [14:14:01]Write to MH i2c: E2 08 00 B5 0A 80 11 00 00 00 00 00 00 39 [14:14:01]Write i2c OK [14:14:01]MH_I2C_Read... [14:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:01]Read from MH i2c: E2 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 17 00 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 17 00 B5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 80 [14:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:14:01]wFMCommunicate OK [14:14:01]requested_item fd.num is exist - process it [14:14:01]SAM_PROTO_GetFieldsCounters [14:14:01]wFMCommunicate request_size=4 [14:14:01]MH_SAM_APDU [14:14:01]CAPDU: 80 13 00 00 [14:14:01]Write to MH i2c: E2 08 00 B6 0A 80 13 00 00 00 00 00 00 3C [14:14:01]Write i2c OK [14:14:01]MH_I2C_Read... [14:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:01]Read from MH i2c: E2 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 62 00 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 62 00 B6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 92 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [14:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 92 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:01]wFMCommunicate OK [14:14:01]SAM_PROTO_GetFieldsCounters done [14:14:01]requested_item shift.num is exist - process it [14:14:01]requested_item shift.opened is exist - process it [14:14:01]req_shift_opened [14:14:01]FM_GetShiftState [14:14:01]SAM_PROTO_GetShiftState [14:14:01]wFMCommunicate request_size=4 [14:14:01]MH_SAM_APDU [14:14:01]CAPDU: 80 13 01 00 [14:14:01]Write to MH i2c: E2 08 00 B7 0A 80 13 01 00 00 00 00 00 3E [14:14:01]Write i2c OK [14:14:01]MH_I2C_Read... [14:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:01]Read from MH i2c: E2 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 0E 00 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 0E 00 B7 0A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 36 [14:14:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:14:01]wFMCommunicate OK [14:14:01]SAM_PROTO_GetShiftState done [14:14:01]FM_GetShiftState done [14:14:01]req_shift_opened done [14:14:01]requested_item shift.open_date is exist - process it [14:14:01]req_shift_open_date [14:14:01]req_shift_open_date done [14:14:01]produce_requested_data done [14:14:01]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50578,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:14:01]process_action_free close_receipt [14:14:01]json_value_free [14:14:01]json_value_free done [14:14:01]process_json_proto returns [14:14:01]Send response to host [14:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50578,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:14:01]free response buf [14:14:01]execute_script done [14:14:01]execute_script returns [14:14:01]free content buf [14:14:01]Sock 7.Close socket [14:14:01]Sock 7.Thread stoped [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:34]accept exits with 9 [14:36:34]New connection [14:36:34]New thread 3066789220 created [14:36:34]Thread 3066645860 joined [14:36:34]Waiting for new connection... [14:36:34] Sock 9.Parse request [14:36:34]Sock 9.Check first char [14:36:34]Sock 9.First char is OK [14:36:34]request: POST /json_proto HTTP/1.0 [14:36:34]Method: POST [14:36:34]URL: /json_proto [14:36:34]Method is POST - this is cgi request [14:36:34]url: /json_proto [14:36:34]query_string will be loaded in cgi processing [14:36:34]execute_cgi json_proto POST (null) [14:36:34]execute_cgi path=json_proto method=POST [14:36:34]POST find Content-Length [14:36:34]Host: 172.17.49.196:8080 [14:36:34]Content-Length: 1192 [14:36:34]Content-Type: application/json [14:36:34] [14:36:34]POST finish read [14:36:34]Found Content-Length = 1192 [14:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164488", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 317.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:34]execute_script... [14:36: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)164488", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 317.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:34]POST & json_proto [14:36:34]process_json_proto [14:36:34]json parsed OK: [14:36:34]protocol is kg_v1.0 [14:36:34]action value=close_receipt [14:36:34]process_action close_receipt [14:36:34]cmd_close_receipt [14:36:34]MH_GetDate [14:36:34]Write to MH i2c: F0 00 00 B8 0A B1 [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: F0 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: F0 09 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: F0 09 00 B8 0A 00 F4 AC 1B 67 BD 3B 11 67 4C [14:36:34]GetLastDocTimeStamp 1729865640 [14:36:34]current date 1729866996 [14:36:34]FM_GetShiftState [14:36:34]SAM_PROTO_GetShiftState [14:36:34]wFMCommunicate request_size=4 [14:36:34]MH_SAM_APDU [14:36:34]CAPDU: 80 13 01 00 [14:36:34]Write to MH i2c: E2 08 00 B9 0A 80 13 01 00 00 00 00 00 40 [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 0E 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 0E 00 B9 0A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 38 [14:36:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:36:34]wFMCommunicate OK [14:36:34]SAM_PROTO_GetShiftState done [14:36:34]FM_GetShiftState done [14:36:34]opened in 1729815177 [14:36:34]opened+sec_in_day 1729901577 [14:36:34]quantity*price = 7900 [14:36:34]sum+1 = 7901 [14:36:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310258 Напиток Лимонад Келечек 1л 1.000 * 79.00 = 79.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 317.00 НСП 1% : 2.81 НДС 12% : 33.66 Наличными: 317.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 79 25.10.2024 14:36 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50579 ФПД: 193954654156343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T143636&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50579&fm=193954654156343&tin=02508201610067®Number=0000000000097022&sum=31700 0 [14:36:35]StoreToDocumentArchive [14:36:35]shift 493 fd 50579 [14:36:35]save to /storage/0493/doc_00050579 [14:36:35]save last doc name /storage/0493/doc_00050579 to /storage/kkm_last_doc_name [14:36:35]save OK [14:36:35]Clear old archive folders... [14:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=500 [14:36:35]tlvbuf is 01E6D500 [14:36:35]SAM_PROTO_ClearQueue [14:36:35]wFMCommunicate request_size=4 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 09 00 00 [14:36:35]Write to MH i2c: E2 08 00 C6 0A 80 09 00 00 00 00 00 00 42 [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:35]Read from MH i2c: E2 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 03 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 03 00 C6 0A 00 90 00 44 [14:36:35]RAPDU: 90 00 [14:36:35]wFMCommunicate OK [14:36:35]SAM_PROTO_ClearQueue done [14:36:35]KKMCreateOFDPacket [14:36:35]OFDProtocolAddRootSTLVToBuf [14:36:35]FM_MakeSignedData [14:36:35]FM_MakeSignedData [14:36:35]SAM_PROTO_SignData [14:36:35]wFMCommunicate request_size=4 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 0D 01 02 [14:36:35]Write to MH i2c: E2 08 00 C7 0A 80 0D 01 02 00 00 00 00 4A [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:35]Read from MH i2c: E2 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 03 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 03 00 C7 0A 00 90 00 45 [14:36:35]RAPDU: 90 00 [14:36:35]wFMCommunicate OK [14:36:35]wFMCommunicate request_size=255 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 0D 02 02 FA 03 00 F4 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 [14:36:35]Write to MH i2c: E2 02 01 C8 0A 80 0D 02 02 FA 00 03 00 F4 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 00 00 10 [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 [14:36:35]MH_I2C_Read... [14:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:35]Read from MH i2c: E2 03 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 03 00 C8 0A 00 90 00 46 [14:36:35]RAPDU: 90 00 [14:36:35]wFMCommunicate OK [14:36:35]wFMCommunicate request_size=255 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 0D 02 02 FA 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0D 00 00 00 00 07 04 06 00 D4 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 4F 00 00 00 F4 03 04 00 F4 AC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C5 00 00 35 04 06 00 B0 66 [14:36:35]Write to MH i2c: E2 02 01 C9 0A 80 0D 02 02 FA 00 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0D 00 00 00 00 07 04 06 00 D4 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 4F 00 00 00 F4 03 04 00 F4 AC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C5 00 00 35 04 06 00 B0 66 00 00 CD [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 C9 0A 00 90 00 47 [14:36:36]RAPDU: 90 00 [14:36:36]wFMCommunicate OK [14:36:36]wFMCommunicate request_size=9 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 0D 02 02 04 96 43 76 37 [14:36:36]Write to MH i2c: E2 0C 00 CA 0A 80 0D 02 02 04 00 96 43 76 37 00 00 DC [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 CA 0A 00 90 00 48 [14:36:36]RAPDU: 90 00 [14:36:36]wFMCommunicate OK [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 0D 03 02 [14:36:36]Write to MH i2c: E2 08 00 CB 0A 80 0D 03 02 00 00 00 00 50 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0B 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0B 00 CB 0A 00 DE DB D1 9B 09 A8 7C 4C 90 00 EF [14:36:36]RAPDU: DE DB D1 9B 09 A8 7C 4C 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_SignData done [14:36:36]FM_MakeSignedData done [14:36:36]CreateOFDProtocolMessage [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 11 00 00 [14:36:36]Write to MH i2c: E2 08 00 CC 0A 80 11 00 00 00 00 00 00 50 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 17 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 17 00 CC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 97 [14:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:36:36]wFMCommunicate OK [14:36:36]CreateOFDProtocolMessage done [14:36:36]OFDSenderStorePacket 50579 [14:36:36]StoreOFDPacket docnum=50579 [14:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 08 02 00 00 BC 7E 00 02 9E CD 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0D 00 00 00 00 07 04 06 00 D4 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 4F 00 00 00 F4 03 04 00 F4 AC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C5 00 00 35 04 06 00 B0 66 96 43 76 37 DE DB D1 9B 09 A8 7C 4C [14:36:36]CheckFolder [14:36:36]dirname=/storage/ofd_packets [14:36:36]CheckFolder done [14:36:36]ProducePacketName [14:36:36]name=ofd_packets/00050579 [14:36:36]NVStorageSaveData ofd_packets/00050579 [14:36:36]File name is /storage/ofd_packets/00050579 [14:36:36]Write 550 bytes [14:36:36]NVStorageSaveData done [14:36:36]OFDSenderStorePacket done [14:36:36]KKMCreateOFDPacket done [14:36:36]NVStorageSaveData kkm_last_timestamp [14:36:36]File name is /storage/kkm_last_timestamp [14:36:36]Write 4 bytes [14:36:36]NVStorageSaveData done [14:36:36]ExternCall_PrintAddStr [14:36:36]wPrintStart [14:36:36]Write to MH i2c: 01 00 00 CD 0A D7 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: 01 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: 01 07 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 FF 0F EC [14:36:36]RasterBufferAndPrint [14:36:36]line Счет N : (3)164488 [14:36:36]line ИНН: 02508201610067 [14:36:36]line Контрольно-Кассовый Чек [14:36:36]line ПРОДАЖА [14:36:36]line Товар: 4700000310043 [14:36:36]line Вода Жалалабат 27 1л [14:36:36]line 1.000 * 79.00 [14:36:36]line = 79.00 [14:36:36]line НДС 12% НСП 1% [14:36:36]line > о реализуемом товаре [14:36:36]line Товар: 4700000310258 [14:36:36]line Напиток Лимонад Келечек 1л [14:36:36]line 1.000 * 79.00 [14:36:36]line = 79.00 [14:36:36]line НДС 12% НСП 1% [14:36:36]line > о реализуемом товаре [14:36:36]line Товар: 4640030091645 [14:36:36]line Сигареты ESSE Exchange M [14:36:36]line 1.000 * 159.00 [14:36:36]line = 159.00 [14:36:36]line НДС 12% НСП 1% [14:36:36]line > о реализуемом товаре [14:36:36]line ИТОГО: 317.00 [14:36:36]line НСП 1% : 2.81 [14:36:36]line НДС 12% : 33.66 [14:36:36]line Наличными: 317.00 [14:36:36]line Безнал.: 0.00 [14:36:36]line Место: АЗС № 80 "Партнер Нефть" [14:36:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:36:36]line СНО: Общий режим [14:36:36]line Чек 79 25.10.2024 14:36 [14:36:36]line Смена: 493 ФФД: 1.0 [14:36:36]line ЗНМ: 0300000090 [14:36:36]line РНМ: 0000000000097022 [14:36:36]line Версия ККМ: 001 [14:36:36]line ФМ: 0000000000875000 [14:36:36]line ФД: 50579 [14:36:36]line ФПД: 193954654156343 [14:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T143636&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50579&fm=193954654156343&tin=02508201610067®Number=0000000000097022&sum=31700 [14:36:36]line 0 [14:36:36]OFD Sender: Processing packet 50579 [packets to send 7, broken 6] [14:36:36]ProducePacketName [14:36:36]name=ofd_packets/00050579 [14:36:36]OFD Sender: To server: pG, [14:36:36]CommunicateWithHost lk.salyk.kg:30040 [14:36:36]ConnectInit lk.salyk.kg [14:36:36]written 0, free lines is 4095 [14:36:36]Connected sock=10 [14:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 08 02 00 00 BC 7E 00 02 9E CD 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0D 00 00 00 00 07 04 06 00 D4 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 4F 00 00 00 F4 03 04 00 F4 AC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C5 00 00 35 04 06 00 B0 66 96 43 76 37 DE DB D1 9B 09 A8 7C 4C [14:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D1 F0 47 00 E2 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 93 C5 00 00 F4 03 04 00 85 58 1B 67 B6 04 01 00 00 55 F8 78 36 4F 9B FD C5 [14:36:37]CommunicateWithHost err = 0 [14:36:37]CheckOFDResponse [14:36:37]1017 (14) - 77093643461234 [14:36:37]1041 (16) - 0000000000875000 [14:36:37]1040 (4) - 50579 [14:36:37]1012 (4) - 25.10.2024 08:36 [14:36:37]1206 (1) - 0 [14:36:37]OFD Sender: Remove packet 50579 [14:36:37]ProducePacketName [14:36:37]name=ofd_packets/00050579 [14:36:37]NVStorageDeleteData [14:36:37]Write to MH i2c: 01 00 00 01 0B 0C [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 07 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 79 0C 98 [14:36:37]RasterBufferAndPrint [14:36:37]line [14:36:37]line [14:36:37]line [14:36:37]line [14:36:37]line [14:36:37]written 0, free lines is 3200 [14:36:37]process_action close_receipt done [14:36:37]requested_data is exist [14:36:37]produce_requested_data [14:36:37]requested_item fm.sn is exist - process it [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 11 00 00 [14:36:37]Write to MH i2c: E2 08 00 08 0B 80 11 00 00 00 00 00 00 8D [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 17 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 17 00 08 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D4 [14:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:36:37]wFMCommunicate OK [14:36:37]requested_item fd.num is exist - process it [14:36:37]SAM_PROTO_GetFieldsCounters [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 13 00 00 [14:36:37]Write to MH i2c: E2 08 00 09 0B 80 13 00 00 00 00 00 00 90 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 62 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 62 00 09 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 93 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [14:36:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 93 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:37]wFMCommunicate OK [14:36:37]SAM_PROTO_GetFieldsCounters done [14:36:37]requested_item shift.num is exist - process it [14:36:37]requested_item shift.opened is exist - process it [14:36:37]req_shift_opened [14:36:37]FM_GetShiftState [14:36:37]SAM_PROTO_GetShiftState [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 13 01 00 [14:36:37]Write to MH i2c: E2 08 00 0A 0B 80 13 01 00 00 00 00 00 92 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]OFD Sender: No OFD packet to send [14:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0E 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0E 00 0A 0B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8A [14:36:37]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:36:37]wFMCommunicate OK [14:36:37]SAM_PROTO_GetShiftState done [14:36:37]FM_GetShiftState done [14:36:37]req_shift_opened done [14:36:37]requested_item shift.open_date is exist - process it [14:36:37]req_shift_open_date [14:36:37]req_shift_open_date done [14:36:37]produce_requested_data done [14:36:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50579,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:36:37]process_action_free close_receipt [14:36:37]json_value_free [14:36:37]json_value_free done [14:36:37]process_json_proto returns [14:36:37]Send response to host [14:36:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50579,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:36:37]free response buf [14:36:37]execute_script done [14:36:37]execute_script returns [14:36:37]free content buf [14:36:37]Sock 9.Close socket [14:36:37]Sock 9.Thread stoped [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]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:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:33]accept exits with 7 [14:40:33]New connection [14:40:33]New thread 3066645860 created [14:40:33]Thread 3066789220 joined [14:40:33]Waiting for new connection... [14:40:33] Sock 7.Parse request [14:40:33]Sock 7.Check first char [14:40:33]Sock 7.First char is OK [14:40:33]request: POST /json_proto HTTP/1.0 [14:40:33]Method: POST [14:40:33]URL: /json_proto [14:40:33]Method is POST - this is cgi request [14:40:33]url: /json_proto [14:40:33]query_string will be loaded in cgi processing [14:40:33]execute_cgi json_proto POST (null) [14:40:33]execute_cgi path=json_proto method=POST [14:40:33]POST find Content-Length [14:40:33]Host: 172.17.49.196:8080 [14:40:33]Content-Length: 620 [14:40:33]Content-Type: application/json [14:40:33] [14:40:33]POST finish read [14:40:33]Found Content-Length = 620 [14:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164489", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:33]execute_script... [14:40: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)164489", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:33]POST & json_proto [14:40:33]process_json_proto [14:40:33]json parsed OK: [14:40:33]protocol is kg_v1.0 [14:40:33]action value=close_receipt [14:40:33]process_action close_receipt [14:40:33]cmd_close_receipt [14:40:33]MH_GetDate [14:40:33]Write to MH i2c: F0 00 00 0B 0B 05 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: F0 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: F0 09 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: F0 09 00 0B 0B 00 E3 AD 1B 67 BD 3B 11 67 90 [14:40:33]GetLastDocTimeStamp 1729866996 [14:40:33]current date 1729867235 [14:40:33]FM_GetShiftState [14:40:33]SAM_PROTO_GetShiftState [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 13 01 00 [14:40:33]Write to MH i2c: E2 08 00 0C 0B 80 13 01 00 00 00 00 00 94 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 0E 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 0E 00 0C 0B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8C [14:40:33]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:40:33]wFMCommunicate OK [14:40:33]SAM_PROTO_GetShiftState done [14:40:33]FM_GetShiftState done [14:40:33]opened in 1729815177 [14:40:33]opened+sec_in_day 1729901577 [14:40:33]quantity*price = 9900 [14:40:33]sum+1 = 9901 [14:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 80 25.10.2024 14:40 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50580 ФПД: 69115545778458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144035&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50580&fm=69115545778458&tin=02508201610067®Number=0000000000097022&sum=9900 0 [14:40:34]StoreToDocumentArchive [14:40:34]shift 493 fd 50580 [14:40:34]save to /storage/0493/doc_00050580 [14:40:34]save last doc name /storage/0493/doc_00050580 to /storage/kkm_last_doc_name [14:40:34]save OK [14:40:34]Clear old archive folders... [14:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:40:34]tlvbuf is 01E8BB70 [14:40:34]SAM_PROTO_ClearQueue [14:40:34]wFMCommunicate request_size=4 [14:40:34]MH_SAM_APDU [14:40:34]CAPDU: 80 09 00 00 [14:40:34]Write to MH i2c: E2 08 00 19 0B 80 09 00 00 00 00 00 00 96 [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:34]Read from MH i2c: E2 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: E2 03 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: E2 03 00 19 0B 00 90 00 98 [14:40:34]RAPDU: 90 00 [14:40:34]wFMCommunicate OK [14:40:34]SAM_PROTO_ClearQueue done [14:40:34]KKMCreateOFDPacket [14:40:34]OFDProtocolAddRootSTLVToBuf [14:40:34]FM_MakeSignedData [14:40:34]FM_MakeSignedData [14:40:34]SAM_PROTO_SignData [14:40:34]wFMCommunicate request_size=4 [14:40:34]MH_SAM_APDU [14:40:34]CAPDU: 80 0D 01 02 [14:40:34]Write to MH i2c: E2 08 00 1A 0B 80 0D 01 02 00 00 00 00 9E [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:34]Read from MH i2c: E2 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: E2 03 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: E2 03 00 1A 0B 00 90 00 99 [14:40:34]RAPDU: 90 00 [14:40:34]wFMCommunicate OK [14:40:34]wFMCommunicate request_size=255 [14:40:34]MH_SAM_APDU [14:40:34]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 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 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 E3 AD 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 [14:40:34]Write to MH i2c: E2 02 01 1B 0B 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 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 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 E3 AD 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 00 00 2D [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 1B 0B 00 90 00 9A [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]wFMCommunicate request_size=38 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C5 00 00 35 04 06 00 3E DC 37 8D F9 1A [14:40:35]Write to MH i2c: E2 29 00 1C 0B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C5 00 00 35 04 06 00 3E DC 37 8D F9 1A 00 00 68 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 1C 0B 00 90 00 9B [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 03 02 [14:40:35]Write to MH i2c: E2 08 00 1D 0B 80 0D 03 02 00 00 00 00 A3 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 0B 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 0B 00 1D 0B 00 FC 1C E3 05 17 6B AE 7A 90 00 4E [14:40:35]RAPDU: FC 1C E3 05 17 6B AE 7A 90 00 [14:40:35]wFMCommunicate OK [14:40:35]SAM_PROTO_SignData done [14:40:35]FM_MakeSignedData done [14:40:35]CreateOFDProtocolMessage [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 11 00 00 [14:40:35]Write to MH i2c: E2 08 00 1E 0B 80 11 00 00 00 00 00 00 A3 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 1E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EA [14:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:40:35]wFMCommunicate OK [14:40:35]CreateOFDProtocolMessage done [14:40:35]OFDSenderStorePacket 50580 [14:40:35]StoreOFDPacket docnum=50580 [14:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2B 01 00 00 51 A4 23 01 EE 10 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 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 E3 AD 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C5 00 00 35 04 06 00 3E DC 37 8D F9 1A FC 1C E3 05 17 6B AE 7A [14:40:35]CheckFolder [14:40:35]dirname=/storage/ofd_packets [14:40:35]CheckFolder done [14:40:35]ProducePacketName [14:40:35]name=ofd_packets/00050580 [14:40:35]NVStorageSaveData ofd_packets/00050580 [14:40:35]File name is /storage/ofd_packets/00050580 [14:40:35]Write 329 bytes [14:40:35]NVStorageSaveData done [14:40:35]OFDSenderStorePacket done [14:40:35]KKMCreateOFDPacket done [14:40:35]NVStorageSaveData kkm_last_timestamp [14:40:35]File name is /storage/kkm_last_timestamp [14:40:35]Write 4 bytes [14:40:35]NVStorageSaveData done [14:40:35]ExternCall_PrintAddStr [14:40:35]wPrintStart [14:40:35]Write to MH i2c: 01 00 00 1F 0B 2A [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 07 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 FF 0F 3F [14:40:35]RasterBufferAndPrint [14:40:35]line Счет N : (3)164489 [14:40:35]line ИНН: 02508201610067 [14:40:35]line Контрольно-Кассовый Чек [14:40:35]line ПРОДАЖА [14:40:35]line Товар: 4650243871781 [14:40:35]line Gorilla эн нап Orange 0,45 ж/б [14:40:35]line 1.000 * 99.00 [14:40:35]line = 99.00 [14:40:35]line НДС 12% НСП 1% [14:40:35]line > о реализуемом товаре [14:40:35]line ИТОГО: 99.00 [14:40:35]line НСП 1% : 0.88 [14:40:35]line НДС 12% : 10.51 [14:40:35]line Наличными: 99.00 [14:40:35]line Безнал.: 0.00 [14:40:35]line Место: АЗС № 80 "Партнер Нефть" [14:40:35]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:40:35]line СНО: Общий режим [14:40:35]line Чек 80 25.10.2024 14:40 [14:40:35]line Смена: 493 ФФД: 1.0 [14:40:35]line ЗНМ: 0300000090 [14:40:35]line РНМ: 0000000000097022 [14:40:35]line Версия ККМ: 001 [14:40:35]line ФМ: 0000000000875000 [14:40:35]line ФД: 50580 [14:40:35]line ФПД: 69115545778458 [14:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T144035&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50580&fm=69115545778458&tin=02508201610067®Number=0000000000097022&sum=9900 [14:40:35]OFD Sender: Processing packet 50580 [packets to send 7, broken 6] [14:40:35]ProducePacketName [14:40:35]name=ofd_packets/00050580 [14:40:35]OFD Sender: To server: pG, [14:40:35]CommunicateWithHost lk.salyk.kg:30040 [14:40:35]ConnectInit lk.salyk.kg [14:40:35]line 0 [14:40:35]written 0, free lines is 4095 [14:40:35]Connected sock=10 [14:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2B 01 00 00 51 A4 23 01 EE 10 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 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 1B 04 00 00 00 00 07 04 06 00 AC 26 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 E3 AD 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C5 00 00 35 04 06 00 3E DC 37 8D F9 1A FC 1C E3 05 17 6B AE 7A [14:40:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 59 A3 47 00 F0 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 94 C5 00 00 F4 03 04 00 74 59 1B 67 B6 04 01 00 00 CA 5F 41 61 34 8E 35 C3 [14:40:36]CommunicateWithHost err = 0 [14:40:36]CheckOFDResponse [14:40:36]1017 (14) - 77093643461234 [14:40:36]1041 (16) - 0000000000875000 [14:40:36]1040 (4) - 50580 [14:40:36]1012 (4) - 25.10.2024 08:40 [14:40:36]1206 (1) - 0 [14:40:36]OFD Sender: Remove packet 50580 [14:40:36]ProducePacketName [14:40:36]name=ofd_packets/00050580 [14:40:36]NVStorageDeleteData [14:40:36]Write to MH i2c: 01 00 00 47 0B 52 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 07 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 20 0D 86 [14:40:36]RasterBufferAndPrint [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]written 0, free lines is 3366 [14:40:36]process_action close_receipt done [14:40:36]requested_data is exist [14:40:36]produce_requested_data [14:40:36]requested_item fm.sn is exist - process it [14:40:36]wFMCommunicate request_size=4 [14:40:36]MH_SAM_APDU [14:40:36]CAPDU: 80 11 00 00 [14:40:36]Write to MH i2c: E2 08 00 4E 0B 80 11 00 00 00 00 00 00 D3 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 [14:40:36]MH_I2C_Read... [14:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:36]Read from MH i2c: E2 17 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 17 00 4E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1A [14:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:40:36]wFMCommunicate OK [14:40:36]requested_item fd.num is exist - process it [14:40:36]SAM_PROTO_GetFieldsCounters [14:40:36]wFMCommunicate request_size=4 [14:40:36]MH_SAM_APDU [14:40:36]CAPDU: 80 13 00 00 [14:40:36]Write to MH i2c: E2 08 00 4F 0B 80 13 00 00 00 00 00 00 D6 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:36]Read from MH i2c: E2 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 62 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 62 00 4F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 94 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 94 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:36]wFMCommunicate OK [14:40:36]SAM_PROTO_GetFieldsCounters done [14:40:36]requested_item shift.num is exist - process it [14:40:36]requested_item shift.opened is exist - process it [14:40:36]req_shift_opened [14:40:36]FM_GetShiftState [14:40:36]SAM_PROTO_GetShiftState [14:40:36]wFMCommunicate request_size=4 [14:40:36]MH_SAM_APDU [14:40:36]CAPDU: 80 13 01 00 [14:40:36]Write to MH i2c: E2 08 00 50 0B 80 13 01 00 00 00 00 00 D8 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:36]Read from MH i2c: E2 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 0E 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 0E 00 50 0B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D0 [14:40:36]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:40:36]wFMCommunicate OK [14:40:36]SAM_PROTO_GetShiftState done [14:40:36]FM_GetShiftState done [14:40:36]req_shift_opened done [14:40:36]requested_item shift.open_date is exist - process it [14:40:36]req_shift_open_date [14:40:36]req_shift_open_date done [14:40:36]produce_requested_data done [14:40:36]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50580,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:40:36]process_action_free close_receipt [14:40:36]json_value_free [14:40:36]json_value_free done [14:40:36]process_json_proto returns [14:40:36]Send response to host [14:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50580,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:40:36]free response buf [14:40:36]execute_script done [14:40:36]execute_script returns [14:40:36]free content buf [14:40:36]Sock 7.Close socket [14:40:36]Sock 7.Thread stoped [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]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:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:55:59]accept exits with 9 [14:55:59]New connection [14:55:59]New thread 3066789220 created [14:55:59]Thread 3066645860 joined [14:55:59]Waiting for new connection... [14:55:59] Sock 9.Parse request [14:55:59]Sock 9.Check first char [14:55:59]Sock 9.First char is OK [14:55:59]request: POST /json_proto HTTP/1.0 [14:55:59]Method: POST [14:55:59]URL: /json_proto [14:55:59]Method is POST - this is cgi request [14:55:59]url: /json_proto [14:55:59]query_string will be loaded in cgi processing [14:55:59]execute_cgi json_proto POST (null) [14:55:59]execute_cgi path=json_proto method=POST [14:55:59]POST find Content-Length [14:55:59]Host: 172.17.49.196:8080 [14:55:59]Content-Length: 641 [14:55:59]Content-Type: application/json [14:55:59] [14:55:59]POST finish read [14:55:59]Found Content-Length = 641 [14:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164490", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "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:55:59]execute_script... [14:55: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)164490", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "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:55:59]POST & json_proto [14:55:59]process_json_proto [14:55:59]json parsed OK: [14:55:59]protocol is kg_v1.0 [14:55:59]action value=close_receipt [14:55:59]process_action close_receipt [14:55:59]cmd_close_receipt [14:55:59]MH_GetDate [14:55:59]Write to MH i2c: F0 00 00 51 0B 4B [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: F0 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: F0 09 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: F0 09 00 51 0B 00 81 B1 1B 67 BD 3B 11 67 78 [14:55:59]GetLastDocTimeStamp 1729867235 [14:55:59]current date 1729868161 [14:55:59]FM_GetShiftState [14:55:59]SAM_PROTO_GetShiftState [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 13 01 00 [14:55:59]Write to MH i2c: E2 08 00 52 0B 80 13 01 00 00 00 00 00 DA [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 52 0B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D2 [14:55:59]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetShiftState done [14:55:59]FM_GetShiftState done [14:55:59]opened in 1729815177 [14:55:59]opened+sec_in_day 1729901577 [14:55:59]quantity*price = 4000 [14:55:59]sum+1 = 4001 [14:55:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 81 25.10.2024 14:56 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50581 ФПД: 171737577388375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145601&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50581&fm=171737577388375&tin=02508201610067®Number=0000000000097022&sum=4000 0 [14:56:00]StoreToDocumentArchive [14:56:00]shift 493 fd 50581 [14:56:00]save to /storage/0493/doc_00050581 [14:56:00]save last doc name /storage/0493/doc_00050581 to /storage/kkm_last_doc_name [14:56:00]save OK [14:56:00]Clear old archive folders... [14:56:00]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:56:00]tlvbuf is 01E19270 [14:56:00]SAM_PROTO_ClearQueue [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 09 00 00 [14:56:00]Write to MH i2c: E2 08 00 5F 0B 80 09 00 00 00 00 00 00 DC [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 03 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [14:56:00]RAPDU: 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_ClearQueue done [14:56:00]KKMCreateOFDPacket [14:56:00]OFDProtocolAddRootSTLVToBuf [14:56:00]FM_MakeSignedData [14:56:00]FM_MakeSignedData [14:56:00]SAM_PROTO_SignData [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 0D 01 02 [14:56:00]Write to MH i2c: E2 08 00 60 0B 80 0D 01 02 00 00 00 00 E4 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 03 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 03 00 60 0B 00 90 00 DF [14:56:00]RAPDU: 90 00 [14:56:00]wFMCommunicate OK [14:56:00]wFMCommunicate request_size=255 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 51 00 00 00 F4 03 04 00 81 B1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [14:56:00]Write to MH i2c: E2 02 01 61 0B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 51 00 00 00 F4 03 04 00 81 B1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 F2 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:01]Read from MH i2c: E2 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 03 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [14:56:01]RAPDU: 90 00 [14:56:01]wFMCommunicate OK [14:56:01]wFMCommunicate request_size=31 [14:56:01]MH_SAM_APDU [14:56:01]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 30 10 04 04 00 95 C5 00 00 35 04 06 00 9C 31 C5 4B 79 57 [14:56:01]Write to MH i2c: E2 22 00 62 0B 80 0D 02 02 1A 00 30 30 38 37 35 30 30 30 10 04 04 00 95 C5 00 00 35 04 06 00 9C 31 C5 4B 79 57 00 00 0D [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:01]Read from MH i2c: E2 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 03 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 03 00 62 0B 00 90 00 E1 [14:56:01]RAPDU: 90 00 [14:56:01]wFMCommunicate OK [14:56:01]wFMCommunicate request_size=4 [14:56:01]MH_SAM_APDU [14:56:01]CAPDU: 80 0D 03 02 [14:56:01]Write to MH i2c: E2 08 00 63 0B 80 0D 03 02 00 00 00 00 E9 [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:01]Read from MH i2c: E2 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 0B 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 0B 00 63 0B 00 42 AE 25 D7 8B 97 F1 0B 90 00 F4 [14:56:01]RAPDU: 42 AE 25 D7 8B 97 F1 0B 90 00 [14:56:01]wFMCommunicate OK [14:56:01]SAM_PROTO_SignData done [14:56:01]FM_MakeSignedData done [14:56:01]CreateOFDProtocolMessage [14:56:01]wFMCommunicate request_size=4 [14:56:01]MH_SAM_APDU [14:56:01]CAPDU: 80 11 00 00 [14:56:01]Write to MH i2c: E2 08 00 64 0B 80 11 00 00 00 00 00 00 E9 [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:01]Read from MH i2c: E2 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 17 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 17 00 64 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 30 [14:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:56:01]wFMCommunicate OK [14:56:01]CreateOFDProtocolMessage done [14:56:01]OFDSenderStorePacket 50581 [14:56:01]StoreOFDPacket docnum=50581 [14:56:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 70 73 1C 01 55 4A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 51 00 00 00 F4 03 04 00 81 B1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 95 C5 00 00 35 04 06 00 9C 31 C5 4B 79 57 42 AE 25 D7 8B 97 F1 0B [14:56:01]CheckFolder [14:56:01]dirname=/storage/ofd_packets [14:56:01]CheckFolder done [14:56:01]ProducePacketName [14:56:01]name=ofd_packets/00050581 [14:56:01]NVStorageSaveData ofd_packets/00050581 [14:56:01]File name is /storage/ofd_packets/00050581 [14:56:01]Write 322 bytes [14:56:01]NVStorageSaveData done [14:56:01]OFDSenderStorePacket done [14:56:01]KKMCreateOFDPacket done [14:56:01]NVStorageSaveData kkm_last_timestamp [14:56:01]File name is /storage/kkm_last_timestamp [14:56:01]Write 4 bytes [14:56:01]NVStorageSaveData done [14:56:01]ExternCall_PrintAddStr [14:56:01]wPrintStart [14:56:01]Write to MH i2c: 01 00 00 65 0B 70 [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: 01 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: 01 07 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: 01 07 00 65 0B 00 00 00 00 00 FF 0F 85 [14:56:01]RasterBufferAndPrint [14:56:01]line Счет N : (3)164490 [14:56:01]line ИНН: 02508201610067 [14:56:01]line Контрольно-Кассовый Чек [14:56:01]line ПРОДАЖА [14:56:01]line Товар: 40822426 [14:56:01]line Вода Бонаква 0,5л б/г [14:56:01]line 1.000 * 40.00 [14:56:01]line = 40.00 [14:56:01]line НДС 12% НСП 1% [14:56:01]line > о реализуемом товаре [14:56:01]line ИТОГО: 40.00 [14:56:01]line НСП 1% : 0.35 [14:56:01]line НДС 12% : 4.25 [14:56:01]line Наличными: 40.00 [14:56:01]line Безнал.: 0.00 [14:56:01]line Место: АЗС № 80 "Партнер Нефть" [14:56:01]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:56:01]line СНО: Общий режим [14:56:01]line Чек 81 25.10.2024 14:56 [14:56:01]line Смена: 493 ФФД: 1.0 [14:56:01]line ЗНМ: 0300000090 [14:56:01]line РНМ: 0000000000097022 [14:56:01]line Версия ККМ: 001 [14:56:01]line ФМ: 0000000000875000 [14:56:01]line ФД: 50581 [14:56:01]line ФПД: 171737577388375 [14:56:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145601&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50581&fm=171737577388375&tin=02508201610067®Number=0000000000097022&sum=4000 [14:56:01]line 0 [14:56:01]written 0, free lines is 4095 [14:56:01]OFD Sender: Processing packet 50581 [packets to send 7, broken 6] [14:56:01]ProducePacketName [14:56:01]name=ofd_packets/00050581 [14:56:01]OFD Sender: To server: pG, [14:56:01]CommunicateWithHost lk.salyk.kg:30040 [14:56:01]ConnectInit lk.salyk.kg [14:56:01]Connected sock=11 [14:56:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 70 73 1C 01 55 4A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 51 00 00 00 F4 03 04 00 81 B1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 95 C5 00 00 35 04 06 00 9C 31 C5 4B 79 57 42 AE 25 D7 8B 97 F1 0B [14:56:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CC C9 47 00 8C FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 95 C5 00 00 F4 03 04 00 12 5D 1B 67 B6 04 01 00 00 74 73 1C BD 9C 02 98 95 [14:56:01]CommunicateWithHost err = 0 [14:56:01]CheckOFDResponse [14:56:01]1017 (14) - 77093643461234 [14:56:01]1041 (16) - 0000000000875000 [14:56:01]1040 (4) - 50581 [14:56:01]1012 (4) - 25.10.2024 08:55 [14:56:01]1206 (1) - 0 [14:56:01]OFD Sender: Remove packet 50581 [14:56:01]ProducePacketName [14:56:01]name=ofd_packets/00050581 [14:56:01]NVStorageDeleteData [14:56:01]Write to MH i2c: 01 00 00 8D 0B 98 [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: 01 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: 01 07 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: 01 07 00 8D 0B 00 00 00 00 00 08 0D B4 [14:56:01]RasterBufferAndPrint [14:56:01]line [14:56:01]line [14:56:01]line [14:56:01]line [14:56:01]line [14:56:01]written 0, free lines is 3342 [14:56:01]process_action close_receipt done [14:56:01]requested_data is exist [14:56:01]produce_requested_data [14:56:01]requested_item fm.sn is exist - process it [14:56:01]wFMCommunicate request_size=4 [14:56:01]MH_SAM_APDU [14:56:01]CAPDU: 80 11 00 00 [14:56:01]Write to MH i2c: E2 08 00 94 0B 80 11 00 00 00 00 00 00 19 [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:01]Read from MH i2c: E2 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 17 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 17 00 94 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 60 [14:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:56:01]wFMCommunicate OK [14:56:01]requested_item fd.num is exist - process it [14:56:01]SAM_PROTO_GetFieldsCounters [14:56:01]wFMCommunicate request_size=4 [14:56:01]MH_SAM_APDU [14:56:01]CAPDU: 80 13 00 00 [14:56:01]Write to MH i2c: E2 08 00 95 0B 80 13 00 00 00 00 00 00 1C [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:02]Read from MH i2c: E2 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 62 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 62 00 95 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 95 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [14:56:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 95 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:02]wFMCommunicate OK [14:56:02]SAM_PROTO_GetFieldsCounters done [14:56:02]requested_item shift.num is exist - process it [14:56:02]requested_item shift.opened is exist - process it [14:56:02]req_shift_opened [14:56:02]FM_GetShiftState [14:56:02]SAM_PROTO_GetShiftState [14:56:02]wFMCommunicate request_size=4 [14:56:02]MH_SAM_APDU [14:56:02]CAPDU: 80 13 01 00 [14:56:02]Write to MH i2c: E2 08 00 96 0B 80 13 01 00 00 00 00 00 1E [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:02]Read from MH i2c: E2 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 0E 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 0E 00 96 0B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 16 [14:56:02]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:56:02]wFMCommunicate OK [14:56:02]SAM_PROTO_GetShiftState done [14:56:02]FM_GetShiftState done [14:56:02]req_shift_opened done [14:56:02]requested_item shift.open_date is exist - process it [14:56:02]req_shift_open_date [14:56:02]req_shift_open_date done [14:56:02]produce_requested_data done [14:56:02]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50581,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:56:02]process_action_free close_receipt [14:56:02]json_value_free [14:56:02]json_value_free done [14:56:02]process_json_proto returns [14:56:02]Send response to host [14:56:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50581,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:56:02]free response buf [14:56:02]execute_script done [14:56:02]execute_script returns [14:56:02]free content buf [14:56:02]Sock 9.Close socket [14:56:02]Sock 9.Thread stoped [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:22]accept exits with 7 [14:56:22]New connection [14:56:22]New thread 3066645860 created [14:56:22]Thread 3066789220 joined [14:56:22]Waiting for new connection... [14:56:22] Sock 7.Parse request [14:56:22]Sock 7.Check first char [14:56:22]Sock 7.First char is OK [14:56:22]request: POST /json_proto HTTP/1.0 [14:56:22]Method: POST [14:56:22]URL: /json_proto [14:56:22]Method is POST - this is cgi request [14:56:22]url: /json_proto [14:56:22]query_string will be loaded in cgi processing [14:56:22]execute_cgi json_proto POST (null) [14:56:22]execute_cgi path=json_proto method=POST [14:56:22]POST find Content-Length [14:56:22]Host: 172.17.49.196:8080 [14:56:22]Content-Length: 633 [14:56:22]Content-Type: application/json [14:56:22] [14:56:22]POST finish read [14:56:22]Found Content-Length = 633 [14:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164491", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:22]execute_script... [14: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 : (3)164491", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:22]POST & json_proto [14:56:22]process_json_proto [14:56:22]json parsed OK: [14:56:22]protocol is kg_v1.0 [14:56:22]action value=close_receipt [14:56:22]process_action close_receipt [14:56:22]cmd_close_receipt [14:56:22]MH_GetDate [14:56:22]Write to MH i2c: F0 00 00 97 0B 91 [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: F0 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: F0 09 00 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: F0 09 00 97 0B 00 98 B1 1B 67 BD 3B 11 67 D5 [14:56:22]GetLastDocTimeStamp 1729868161 [14:56:22]current date 1729868184 [14:56:22]FM_GetShiftState [14:56:22]SAM_PROTO_GetShiftState [14:56:22]wFMCommunicate request_size=4 [14:56:22]MH_SAM_APDU [14:56:22]CAPDU: 80 13 01 00 [14:56:22]Write to MH i2c: E2 08 00 98 0B 80 13 01 00 00 00 00 00 20 [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:22]Read from MH i2c: E2 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: E2 0E 00 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: E2 0E 00 98 0B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 18 [14:56:22]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:56:22]wFMCommunicate OK [14:56:22]SAM_PROTO_GetShiftState done [14:56:22]FM_GetShiftState done [14:56:22]opened in 1729815177 [14:56:22]opened+sec_in_day 1729901577 [14:56:22]quantity*price = 13900 [14:56:22]sum+1 = 13901 [14:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 82 25.10.2024 14:56 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50582 ФПД: 205095438584835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145624&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50582&fm=205095438584835&tin=02508201610067®Number=0000000000097022&sum=13900 0 [14:56:23]StoreToDocumentArchive [14:56:23]shift 493 fd 50582 [14:56:23]save to /storage/0493/doc_00050582 [14:56:23]save last doc name /storage/0493/doc_00050582 to /storage/kkm_last_doc_name [14:56:23]save OK [14:56:23]Clear old archive folders... [14:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=285 [14:56:23]tlvbuf is 01E55870 [14:56:23]SAM_PROTO_ClearQueue [14:56:23]wFMCommunicate request_size=4 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 09 00 00 [14:56:23]Write to MH i2c: E2 08 00 A5 0B 80 09 00 00 00 00 00 00 22 [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 03 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 03 00 A5 0B 00 90 00 24 [14:56:24]RAPDU: 90 00 [14:56:24]wFMCommunicate OK [14:56:24]SAM_PROTO_ClearQueue done [14:56:24]KKMCreateOFDPacket [14:56:24]OFDProtocolAddRootSTLVToBuf [14:56:24]FM_MakeSignedData [14:56:24]FM_MakeSignedData [14:56:24]SAM_PROTO_SignData [14:56:24]wFMCommunicate request_size=4 [14:56:24]MH_SAM_APDU [14:56:24]CAPDU: 80 0D 01 02 [14:56:24]Write to MH i2c: E2 08 00 A6 0B 80 0D 01 02 00 00 00 00 2A [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 03 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 03 00 A6 0B 00 90 00 25 [14:56:24]RAPDU: 90 00 [14:56:24]wFMCommunicate OK [14:56:24]wFMCommunicate request_size=255 [14:56:24]MH_SAM_APDU [14:56:24]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 52 00 00 00 F4 03 04 00 98 B1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 [14:56:24]Write to MH i2c: E2 02 01 A7 0B 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 52 00 00 00 F4 03 04 00 98 B1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 00 00 7F [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 03 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [14:56:24]RAPDU: 90 00 [14:56:24]wFMCommunicate OK [14:56:24]wFMCommunicate request_size=44 [14:56:24]MH_SAM_APDU [14:56:24]CAPDU: 80 0D 02 02 27 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C5 00 00 35 04 06 00 BA 88 80 C3 0C 03 [14:56:24]Write to MH i2c: E2 2F 00 A8 0B 80 0D 02 02 27 00 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C5 00 00 35 04 06 00 BA 88 80 C3 0C 03 00 00 2C [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 03 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [14:56:24]RAPDU: 90 00 [14:56:24]wFMCommunicate OK [14:56:24]wFMCommunicate request_size=4 [14:56:24]MH_SAM_APDU [14:56:24]CAPDU: 80 0D 03 02 [14:56:24]Write to MH i2c: E2 08 00 A9 0B 80 0D 03 02 00 00 00 00 2F [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 0B 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 0B 00 A9 0B 00 80 8D 9E D6 E2 69 A7 F7 90 00 9A [14:56:24]RAPDU: 80 8D 9E D6 E2 69 A7 F7 90 00 [14:56:24]wFMCommunicate OK [14:56:24]SAM_PROTO_SignData done [14:56:24]FM_MakeSignedData done [14:56:24]CreateOFDProtocolMessage [14:56:24]wFMCommunicate request_size=4 [14:56:24]MH_SAM_APDU [14:56:24]CAPDU: 80 11 00 00 [14:56:24]Write to MH i2c: E2 08 00 AA 0B 80 11 00 00 00 00 00 00 2F [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 17 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 17 00 AA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 76 [14:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:56:24]wFMCommunicate OK [14:56:24]CreateOFDProtocolMessage done [14:56:24]OFDSenderStorePacket 50582 [14:56:24]StoreOFDPacket docnum=50582 [14:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 03 45 29 01 E4 56 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 52 00 00 00 F4 03 04 00 98 B1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C5 00 00 35 04 06 00 BA 88 80 C3 0C 03 80 8D 9E D6 E2 69 A7 F7 [14:56:24]CheckFolder [14:56:24]dirname=/storage/ofd_packets [14:56:24]CheckFolder done [14:56:24]ProducePacketName [14:56:24]name=ofd_packets/00050582 [14:56:24]NVStorageSaveData ofd_packets/00050582 [14:56:24]File name is /storage/ofd_packets/00050582 [14:56:24]Write 335 bytes [14:56:24]NVStorageSaveData done [14:56:24]OFDSenderStorePacket done [14:56:24]KKMCreateOFDPacket done [14:56:24]NVStorageSaveData kkm_last_timestamp [14:56:24]File name is /storage/kkm_last_timestamp [14:56:24]Write 4 bytes [14:56:24]NVStorageSaveData done [14:56:24]ExternCall_PrintAddStr [14:56:24]wPrintStart [14:56:24]Write to MH i2c: 01 00 00 AB 0B B6 [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: 01 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: 01 07 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 FF 0F CB [14:56:24]RasterBufferAndPrint [14:56:24]line Счет N : (3)164491 [14:56:24]line ИНН: 02508201610067 [14:56:24]line Контрольно-Кассовый Чек [14:56:24]line ПРОДАЖА [14:56:24]line Товар: 48745291 [14:56:24]line Сигареты Parliament SOHO NYC COMPACT BLU [14:56:24]line 1.000 * 139.00 [14:56:24]line = 139.00 [14:56:24]line НДС 12% НСП 1% [14:56:24]line > о реализуемом товаре [14:56:24]line ИТОГО: 139.00 [14:56:24]line НСП 1% : 1.23 [14:56:24]line НДС 12% : 14.76 [14:56:24]line Наличными: 139.00 [14:56:24]line Безнал.: 0.00 [14:56:24]line Место: АЗС № 80 "Партнер Нефть" [14:56:24]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:56:24]line СНО: Общий режим [14:56:24]line Чек 82 25.10.2024 14:56 [14:56:24]line Смена: 493 ФФД: 1.0 [14:56:24]line ЗНМ: 0300000090 [14:56:24]line РНМ: 0000000000097022 [14:56:24]line Версия ККМ: 001 [14:56:24]line ФМ: 0000000000875000 [14:56:24]line ФД: 50582 [14:56:24]line ФПД: 205095438584835 [14:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145624&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50582&fm=205095438584835&tin=02508201610067®Number=0000000000097022&sum=13900 [14:56:24]line 0 [14:56:24]OFD Sender: Processing packet 50582 [packets to send 7, broken 6] [14:56:24]ProducePacketName [14:56:24]name=ofd_packets/00050582 [14:56:24]OFD Sender: To server: pG, [14:56:24]CommunicateWithHost lk.salyk.kg:30040 [14:56:24]ConnectInit lk.salyk.kg [14:56:24]written 0, free lines is 4095 [14:56:24]Connected sock=10 [14:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 03 45 29 01 E4 56 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 52 00 00 00 F4 03 04 00 98 B1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C5 00 00 35 04 06 00 BA 88 80 C3 0C 03 80 8D 9E D6 E2 69 A7 F7 [14:56:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AD 7F 47 00 93 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 96 C5 00 00 F4 03 04 00 29 5D 1B 67 B6 04 01 00 00 C2 38 A0 32 2C 1B 1A 00 [14:56:25]CommunicateWithHost err = 0 [14:56:25]CheckOFDResponse [14:56:25]1017 (14) - 77093643461234 [14:56:25]1041 (16) - 0000000000875000 [14:56:25]1040 (4) - 50582 [14:56:25]1012 (4) - 25.10.2024 08:56 [14:56:25]1206 (1) - 0 [14:56:25]OFD Sender: Remove packet 50582 [14:56:25]ProducePacketName [14:56:25]name=ofd_packets/00050582 [14:56:25]NVStorageDeleteData [14:56:25]Write to MH i2c: 01 00 00 D4 0B DF [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: 01 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: 01 07 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: 01 07 00 D4 0B 00 00 00 00 00 0C 0D FF [14:56:25]RasterBufferAndPrint [14:56:25]line [14:56:25]line [14:56:25]line [14:56:25]line [14:56:25]line [14:56:25]written 0, free lines is 3349 [14:56:25]process_action close_receipt done [14:56:25]requested_data is exist [14:56:25]produce_requested_data [14:56:25]requested_item fm.sn is exist - process it [14:56:25]wFMCommunicate request_size=4 [14:56:25]MH_SAM_APDU [14:56:25]CAPDU: 80 11 00 00 [14:56:25]Write to MH i2c: E2 08 00 DB 0B 80 11 00 00 00 00 00 00 60 [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:25]Read from MH i2c: E2 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 17 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 17 00 DB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A7 [14:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:56:25]wFMCommunicate OK [14:56:25]requested_item fd.num is exist - process it [14:56:25]SAM_PROTO_GetFieldsCounters [14:56:25]wFMCommunicate request_size=4 [14:56:25]MH_SAM_APDU [14:56:25]CAPDU: 80 13 00 00 [14:56:25]Write to MH i2c: E2 08 00 DC 0B 80 13 00 00 00 00 00 00 63 [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:25]Read from MH i2c: E2 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 62 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 62 00 DC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 96 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [14:56:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 96 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:25]wFMCommunicate OK [14:56:25]SAM_PROTO_GetFieldsCounters done [14:56:25]requested_item shift.num is exist - process it [14:56:25]requested_item shift.opened is exist - process it [14:56:25]req_shift_opened [14:56:25]FM_GetShiftState [14:56:25]SAM_PROTO_GetShiftState [14:56:25]wFMCommunicate request_size=4 [14:56:25]MH_SAM_APDU [14:56:25]CAPDU: 80 13 01 00 [14:56:25]Write to MH i2c: E2 08 00 DD 0B 80 13 01 00 00 00 00 00 65 [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:25]Read from MH i2c: E2 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 0E 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 0E 00 DD 0B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 5D [14:56:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:56:25]wFMCommunicate OK [14:56:25]SAM_PROTO_GetShiftState done [14:56:25]FM_GetShiftState done [14:56:25]req_shift_opened done [14:56:25]requested_item shift.open_date is exist - process it [14:56:25]req_shift_open_date [14:56:25]req_shift_open_date done [14:56:25]produce_requested_data done [14:56:25]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50582,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:56:25]process_action_free close_receipt [14:56:25]json_value_free [14:56:25]json_value_free done [14:56:25]process_json_proto returns [14:56:25]Send response to host [14:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50582,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:56:25]free response buf [14:56:25]execute_script done [14:56:25]execute_script returns [14:56:25]free content buf [14:56:25]Sock 7.Close socket [14:56:25]Sock 7.Thread stoped [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:31]accept exits with 9 [14:58:31]New connection [14:58:31]New thread 3066789220 created [14:58:31]Thread 3066645860 joined [14:58:31]Waiting for new connection... [14:58:31] Sock 9.Parse request [14:58:31]Sock 9.Check first char [14:58:31]Sock 9.First char is OK [14:58:31]request: POST /json_proto HTTP/1.0 [14:58:31]Method: POST [14:58:31]URL: /json_proto [14:58:31]Method is POST - this is cgi request [14:58:31]url: /json_proto [14:58:31]query_string will be loaded in cgi processing [14:58:31]execute_cgi json_proto POST (null) [14:58:31]execute_cgi path=json_proto method=POST [14:58:31]POST find Content-Length [14:58:31]Host: 172.17.49.196:8080 [14:58:31]Content-Length: 633 [14:58:31]Content-Type: application/json [14:58:31] [14:58:31]POST finish read [14:58:31]Found Content-Length = 633 [14:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164492", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:31]execute_script... [14: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 : (3)164492", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:31]POST & json_proto [14:58:31]process_json_proto [14:58:31]json parsed OK: [14:58:31]protocol is kg_v1.0 [14:58:31]action value=close_receipt [14:58:31]process_action close_receipt [14:58:31]cmd_close_receipt [14:58:31]MH_GetDate [14:58:31]Write to MH i2c: F0 00 00 DE 0B D8 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: F0 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: F0 09 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: F0 09 00 DE 0B 00 19 B2 1B 67 BD 3B 11 67 9E [14:58:31]GetLastDocTimeStamp 1729868184 [14:58:31]current date 1729868313 [14:58:31]FM_GetShiftState [14:58:31]SAM_PROTO_GetShiftState [14:58:31]wFMCommunicate request_size=4 [14:58:31]MH_SAM_APDU [14:58:31]CAPDU: 80 13 01 00 [14:58:31]Write to MH i2c: E2 08 00 DF 0B 80 13 01 00 00 00 00 00 67 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:31]Read from MH i2c: E2 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 0E 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 0E 00 DF 0B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 5F [14:58:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:58:31]wFMCommunicate OK [14:58:31]SAM_PROTO_GetShiftState done [14:58:31]FM_GetShiftState done [14:58:31]opened in 1729815177 [14:58:31]opened+sec_in_day 1729901577 [14:58:31]quantity*price = 7500 [14:58:31]sum+1 = 7501 [14:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 83 25.10.2024 14:58 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50583 ФПД: 84805626609551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145833&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50583&fm=84805626609551&tin=02508201610067®Number=0000000000097022&sum=7500 0 [14:58:32]StoreToDocumentArchive [14:58:32]shift 493 fd 50583 [14:58:32]save to /storage/0493/doc_00050583 [14:58:32]save last doc name /storage/0493/doc_00050583 to /storage/kkm_last_doc_name [14:58:32]save OK [14:58:32]Clear old archive folders... [14:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=268 [14:58:32]tlvbuf is 01E3DCD0 [14:58:32]SAM_PROTO_ClearQueue [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 09 00 00 [14:58:32]Write to MH i2c: E2 08 00 EC 0B 80 09 00 00 00 00 00 00 69 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 03 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 03 00 EC 0B 00 90 00 6B [14:58:32]RAPDU: 90 00 [14:58:32]wFMCommunicate OK [14:58:32]SAM_PROTO_ClearQueue done [14:58:32]KKMCreateOFDPacket [14:58:32]OFDProtocolAddRootSTLVToBuf [14:58:32]FM_MakeSignedData [14:58:32]FM_MakeSignedData [14:58:32]SAM_PROTO_SignData [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 0D 01 02 [14:58:32]Write to MH i2c: E2 08 00 ED 0B 80 0D 01 02 00 00 00 00 71 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 03 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 03 00 ED 0B 00 90 00 6C [14:58:32]RAPDU: 90 00 [14:58:32]wFMCommunicate OK [14:58:32]wFMCommunicate request_size=255 [14:58:32]MH_SAM_APDU [14:58:32]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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 19 B2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [14:58:32]Write to MH i2c: E2 02 01 EE 0B 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 19 B2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 55 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 EE 0B 00 90 00 6D [14:58:33]RAPDU: 90 00 [14:58:33]wFMCommunicate OK [14:58:33]wFMCommunicate request_size=27 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 0D 02 02 16 35 30 30 30 10 04 04 00 97 C5 00 00 35 04 06 00 4D 21 59 3F BF 8F [14:58:33]Write to MH i2c: E2 1E 00 EF 0B 80 0D 02 02 16 00 35 30 30 30 10 04 04 00 97 C5 00 00 35 04 06 00 4D 21 59 3F BF 8F 00 00 6C [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 EF 0B 00 90 00 6E [14:58:33]RAPDU: 90 00 [14:58:33]wFMCommunicate OK [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 0D 03 02 [14:58:33]Write to MH i2c: E2 08 00 F0 0B 80 0D 03 02 00 00 00 00 76 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0B 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0B 00 F0 0B 00 31 52 D8 62 10 92 5B 85 90 00 B6 [14:58:33]RAPDU: 31 52 D8 62 10 92 5B 85 90 00 [14:58:33]wFMCommunicate OK [14:58:33]SAM_PROTO_SignData done [14:58:33]FM_MakeSignedData done [14:58:33]CreateOFDProtocolMessage [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 11 00 00 [14:58:33]Write to MH i2c: E2 08 00 F1 0B 80 11 00 00 00 00 00 00 76 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 17 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 17 00 F1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BD [14:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:58:33]wFMCommunicate OK [14:58:33]CreateOFDProtocolMessage done [14:58:33]OFDSenderStorePacket 50583 [14:58:33]StoreOFDPacket docnum=50583 [14:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 B6 BB 18 01 A0 FC 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 19 B2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 97 C5 00 00 35 04 06 00 4D 21 59 3F BF 8F 31 52 D8 62 10 92 5B 85 [14:58:33]CheckFolder [14:58:33]dirname=/storage/ofd_packets [14:58:33]CheckFolder done [14:58:33]ProducePacketName [14:58:33]name=ofd_packets/00050583 [14:58:33]NVStorageSaveData ofd_packets/00050583 [14:58:33]File name is /storage/ofd_packets/00050583 [14:58:33]Write 318 bytes [14:58:33]NVStorageSaveData done [14:58:33]OFDSenderStorePacket done [14:58:33]KKMCreateOFDPacket done [14:58:33]NVStorageSaveData kkm_last_timestamp [14:58:33]File name is /storage/kkm_last_timestamp [14:58:33]Write 4 bytes [14:58:33]NVStorageSaveData done [14:58:33]ExternCall_PrintAddStr [14:58:33]wPrintStart [14:58:33]Write to MH i2c: 01 00 00 F2 0B FD [14:58:33]OFD Sender: Processing packet 50583 [packets to send 7, broken 6] [14:58:33]ProducePacketName [14:58:33]name=ofd_packets/00050583 [14:58:33]OFD Sender: To server: pG, [14:58:33]CommunicateWithHost lk.salyk.kg:30040 [14:58:33]ConnectInit lk.salyk.kg [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: 01 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: 01 07 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: 01 07 00 F2 0B 00 00 00 00 00 FF 0F 12 [14:58:33]RasterBufferAndPrint [14:58:33]line Счет N : (3)164492 [14:58:33]line ИНН: 02508201610067 [14:58:33]line Контрольно-Кассовый Чек [14:58:33]line ПРОДАЖА [14:58:33]line Товар: 40822938 [14:58:33]line Напиток Фанта 0,5л [14:58:33]line 1.000 * 75.00 [14:58:33]line = 75.00 [14:58:33]line НДС 12% НСП 1% [14:58:33]line > о реализуемом товаре [14:58:33]line ИТОГО: 75.00 [14:58:33]line НСП 1% : 0.66 [14:58:33]line НДС 12% : 7.96 [14:58:33]line Наличными: 75.00 [14:58:33]line Безнал.: 0.00 [14:58:33]line Место: АЗС № 80 "Партнер Нефть" [14:58:33]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [14:58:33]line СНО: Общий режим [14:58:33]line Чек 83 25.10.2024 14:58 [14:58:33]line Смена: 493 ФФД: 1.0 [14:58:33]line ЗНМ: 0300000090 [14:58:33]line РНМ: 0000000000097022 [14:58:33]line Версия ККМ: 001 [14:58:33]line ФМ: 0000000000875000 [14:58:33]line ФД: 50583 [14:58:33]line ФПД: 84805626609551 [14:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T145833&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50583&fm=84805626609551&tin=02508201610067®Number=0000000000097022&sum=7500 [14:58:33]line 0 [14:58:33]Connected sock=10 [14:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 B6 BB 18 01 A0 FC 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 19 B2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 97 C5 00 00 35 04 06 00 4D 21 59 3F BF 8F 31 52 D8 62 10 92 5B 85 [14:58:33]written 0, free lines is 4095 [14:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 82 41 47 00 BA 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 97 C5 00 00 F4 03 04 00 AA 5D 1B 67 B6 04 01 00 00 34 E6 77 C6 2C 56 AF FD [14:58:33]CommunicateWithHost err = 0 [14:58:33]CheckOFDResponse [14:58:33]1017 (14) - 77093643461234 [14:58:33]1041 (16) - 0000000000875000 [14:58:33]1040 (4) - 50583 [14:58:33]1012 (4) - 25.10.2024 08:58 [14:58:33]1206 (1) - 0 [14:58:33]OFD Sender: Remove packet 50583 [14:58:33]ProducePacketName [14:58:33]name=ofd_packets/00050583 [14:58:33]NVStorageDeleteData [14:58:34]Write to MH i2c: 01 00 00 1A 0C 26 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: 01 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: 01 07 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 0E 0D 48 [14:58:34]RasterBufferAndPrint [14:58:34]line [14:58:34]line [14:58:34]line [14:58:34]line [14:58:34]line [14:58:34]written 0, free lines is 3348 [14:58:34]process_action close_receipt done [14:58:34]requested_data is exist [14:58:34]produce_requested_data [14:58:34]requested_item fm.sn is exist - process it [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 11 00 00 [14:58:34]Write to MH i2c: E2 08 00 21 0C 80 11 00 00 00 00 00 00 A7 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 17 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 17 00 21 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EE [14:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [14:58:34]wFMCommunicate OK [14:58:34]requested_item fd.num is exist - process it [14:58:34]SAM_PROTO_GetFieldsCounters [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 13 00 00 [14:58:34]Write to MH i2c: E2 08 00 22 0C 80 13 00 00 00 00 00 00 AA [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 62 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 62 00 22 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 97 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [14:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 97 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:34]wFMCommunicate OK [14:58:34]SAM_PROTO_GetFieldsCounters done [14:58:34]requested_item shift.num is exist - process it [14:58:34]requested_item shift.opened is exist - process it [14:58:34]req_shift_opened [14:58:34]FM_GetShiftState [14:58:34]SAM_PROTO_GetShiftState [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 13 01 00 [14:58:34]Write to MH i2c: E2 08 00 23 0C 80 13 01 00 00 00 00 00 AC [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]OFD Sender: No OFD packet to send [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:34]Read from MH i2c: E2 0E 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 0E 00 23 0C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A4 [14:58:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [14:58:34]wFMCommunicate OK [14:58:34]SAM_PROTO_GetShiftState done [14:58:34]FM_GetShiftState done [14:58:34]req_shift_opened done [14:58:34]requested_item shift.open_date is exist - process it [14:58:34]req_shift_open_date [14:58:34]req_shift_open_date done [14:58:34]produce_requested_data done [14:58:34]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50583,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [14:58:34]process_action_free close_receipt [14:58:34]json_value_free [14:58:34]json_value_free done [14:58:34]process_json_proto returns [14:58:34]Send response to host [14:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50583,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [14:58:34]free response buf [14:58:34]execute_script done [14:58:34]execute_script returns [14:58:34]free content buf [14:58:34]Sock 9.Close socket [14:58:34]Sock 9.Thread stoped [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [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:28]accept exits with 7 [15:10:28]New connection [15:10:28]New thread 3066645860 created [15:10:28]Thread 3066789220 joined [15:10:28]Waiting for new connection... [15:10:28] Sock 7.Parse request [15:10:28]Sock 7.Check first char [15:10:28]Sock 7.First char is OK [15:10:28]request: POST /json_proto HTTP/1.0 [15:10:28]Method: POST [15:10:28]URL: /json_proto [15:10:28]Method is POST - this is cgi request [15:10:28]url: /json_proto [15:10:28]query_string will be loaded in cgi processing [15:10:28]execute_cgi json_proto POST (null) [15:10:28]execute_cgi path=json_proto method=POST [15:10:28]POST find Content-Length [15:10:28]Host: 172.17.49.196:8080 [15:10:28]Content-Length: 909 [15:10:28]Content-Type: application/json [15:10:28] [15:10:28]POST finish read [15:10:28]Found Content-Length = 909 [15:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164493", "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" : 4.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\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" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:28]execute_script... [15:10: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)164493", "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" : 4.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\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" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:28]POST & json_proto [15:10:28]process_json_proto [15:10:28]json parsed OK: [15:10:28]protocol is kg_v1.0 [15:10:28]action value=close_receipt [15:10:28]process_action close_receipt [15:10:28]cmd_close_receipt [15:10:28]MH_GetDate [15:10:28]Write to MH i2c: F0 00 00 24 0C 1F [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: F0 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: F0 09 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: F0 09 00 24 0C 00 E6 B4 1B 67 BD 3B 11 67 B4 [15:10:28]GetLastDocTimeStamp 1729868313 [15:10:28]current date 1729869030 [15:10:28]FM_GetShiftState [15:10:28]SAM_PROTO_GetShiftState [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 13 01 00 [15:10:28]Write to MH i2c: E2 08 00 25 0C 80 13 01 00 00 00 00 00 AE [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0E 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0E 00 25 0C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A6 [15:10:28]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:10:28]wFMCommunicate OK [15:10:28]SAM_PROTO_GetShiftState done [15:10:28]FM_GetShiftState done [15:10:28]opened in 1729815177 [15:10:28]opened+sec_in_day 1729901577 [15:10:28]quantity*price = 16000 [15:10:28]sum+1 = 16001 [15:10:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.02 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 84 25.10.2024 15:10 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50584 ФПД: 88340898061586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151030&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50584&fm=88340898061586&tin=02508201610067®Number=0000000000097022&sum=24500 0 [15:10:30]StoreToDocumentArchive [15:10:30]shift 493 fd 50584 [15:10:30]save to /storage/0493/doc_00050584 [15:10:30]save last doc name /storage/0493/doc_00050584 to /storage/kkm_last_doc_name [15:10:30]save OK [15:10:30]Clear old archive folders... [15:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=382 [15:10:30]tlvbuf is 01EAE6C0 [15:10:30]SAM_PROTO_ClearQueue [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 09 00 00 [15:10:30]Write to MH i2c: E2 08 00 32 0C 80 09 00 00 00 00 00 00 B0 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:30]Read from MH i2c: E2 03 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [15:10:30]RAPDU: 90 00 [15:10:30]wFMCommunicate OK [15:10:30]SAM_PROTO_ClearQueue done [15:10:30]KKMCreateOFDPacket [15:10:30]OFDProtocolAddRootSTLVToBuf [15:10:30]FM_MakeSignedData [15:10:30]FM_MakeSignedData [15:10:30]SAM_PROTO_SignData [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 0D 01 02 [15:10:30]Write to MH i2c: E2 08 00 33 0C 80 0D 01 02 00 00 00 00 B8 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [15:10:30]RAPDU: 90 00 [15:10:30]wFMCommunicate OK [15:10:30]wFMCommunicate request_size=255 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 0D 02 02 FA 03 00 7E 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 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 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 33 33 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 [15:10:30]Write to MH i2c: E2 02 01 34 0C 80 0D 02 02 FA 00 03 00 7E 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 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 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 33 33 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 18 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:30]Read from MH i2c: E2 03 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [15:10:30]RAPDU: 90 00 [15:10:30]wFMCommunicate OK [15:10:30]wFMCommunicate request_size=141 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E6 B4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C5 00 00 35 04 06 00 50 58 77 D9 1D 12 [15:10:30]Write to MH i2c: E2 90 00 35 0C 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E6 B4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C5 00 00 35 04 06 00 50 58 77 D9 1D 12 00 00 10 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [15:10:30]RAPDU: 90 00 [15:10:30]wFMCommunicate OK [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 0D 03 02 [15:10:30]Write to MH i2c: E2 08 00 36 0C 80 0D 03 02 00 00 00 00 BD [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 0B 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 0B 00 36 0C 00 24 C0 C4 79 45 56 E7 70 90 00 D1 [15:10:30]RAPDU: 24 C0 C4 79 45 56 E7 70 90 00 [15:10:30]wFMCommunicate OK [15:10:30]SAM_PROTO_SignData done [15:10:30]FM_MakeSignedData done [15:10:30]CreateOFDProtocolMessage [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 11 00 00 [15:10:30]Write to MH i2c: E2 08 00 37 0C 80 11 00 00 00 00 00 00 BD [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 17 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 17 00 37 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 04 [15:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:10:30]wFMCommunicate OK [15:10:30]CreateOFDProtocolMessage done [15:10:30]OFDSenderStorePacket 50584 [15:10:30]StoreOFDPacket docnum=50584 [15:10:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 92 01 00 00 96 7C 8A 01 96 89 5A 03 01 00 03 00 7E 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 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 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 33 33 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E6 B4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C5 00 00 35 04 06 00 50 58 77 D9 1D 12 24 C0 C4 79 45 56 E7 70 [15:10:30]CheckFolder [15:10:30]dirname=/storage/ofd_packets [15:10:30]CheckFolder done [15:10:30]ProducePacketName [15:10:30]name=ofd_packets/00050584 [15:10:30]NVStorageSaveData ofd_packets/00050584 [15:10:30]File name is /storage/ofd_packets/00050584 [15:10:30]Write 432 bytes [15:10:30]NVStorageSaveData done [15:10:30]OFDSenderStorePacket done [15:10:30]KKMCreateOFDPacket done [15:10:30]NVStorageSaveData kkm_last_timestamp [15:10:30]File name is /storage/kkm_last_timestamp [15:10:30]Write 4 bytes [15:10:30]NVStorageSaveData done [15:10:30]ExternCall_PrintAddStr [15:10:30]wPrintStart [15:10:30]Write to MH i2c: 01 00 00 38 0C 44 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 07 00 [15:10:30]MH_I2C_Read... [15:10:30]OFD Sender: Processing packet 50584 [packets to send 7, broken 6] [15:10:30]ProducePacketName [15:10:30]name=ofd_packets/00050584 [15:10:30]Read from MH i2c: OFD Sender: To server: pG, [15:10:30]01 CommunicateWithHost lk.salyk.kg:30040 [15:10:30]07 ConnectInit lk.salyk.kg [15:10:30]00 38 0C 00 00 00 00 00 FF 0F 59 [15:10:30]RasterBufferAndPrint [15:10:30]line Счет N : (3)164493 [15:10:30]line ИНН: 02508201610067 [15:10:30]line Контрольно-Кассовый Чек [15:10:30]line ПРОДАЖА [15:10:30]line Товар: 4700000160211 [15:10:30]line Вода Легенда 0,5л [15:10:30]line 4.000 * 40.00 [15:10:30]line = 160.00 [15:10:30]line НДС 12% НСП 1% [15:10:30]line > о реализуемом товаре [15:10:30]line Товар: 5449000000996 [15:10:30]line Напиток Кока-Кола 0,33л [15:10:30]line 1.000 * 85.00 [15:10:30]line = 85.00 [15:10:30]line НДС 12% НСП 1% [15:10:30]line > о реализуемом товаре [15:10:30]line ИТОГО: 245.00 [15:10:30]line НСП 1% : 2.17 [15:10:30]line НДС 12% : 26.02 [15:10:30]line Наличными: 245.00 [15:10:30]line Безнал.: 0.00 [15:10:30]line Место: АЗС № 80 "Партнер Нефть" [15:10:30]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:10:30]line СНО: Общий режим [15:10:30]line Чек 84 25.10.2024 15:10 [15:10:30]line Смена: 493 ФФД: 1.0 [15:10:30]line ЗНМ: 0300000090 [15:10:30]line РНМ: 0000000000097022 [15:10:30]line Версия ККМ: 001 [15:10:30]line ФМ: 0000000000875000 [15:10:30]line ФД: 50584 [15:10:30]line ФПД: 88340898061586 [15:10:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151030&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50584&fm=88340898061586&tin=02508201610067®Number=0000000000097022&sum=24500 [15:10:30]line 0 [15:10:30]written 0, free lines is 4095 [15:10:31]Connected sock=10 [15:10:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 92 01 00 00 96 7C 8A 01 96 89 5A 03 01 00 03 00 7E 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 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 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 33 33 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E6 B4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C5 00 00 35 04 06 00 50 58 77 D9 1D 12 24 C0 C4 79 45 56 E7 70 [15:10:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 63 78 47 00 05 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 98 C5 00 00 F4 03 04 00 77 60 1B 67 B6 04 01 00 00 BB 7A 03 4D C1 CC D4 BC [15:10:31]CommunicateWithHost err = 0 [15:10:31]CheckOFDResponse [15:10:31]1017 (14) - 77093643461234 [15:10:31]1041 (16) - 0000000000875000 [15:10:31]1040 (4) - 50584 [15:10:31]1012 (4) - 25.10.2024 09:10 [15:10:31]1206 (1) - 0 [15:10:31]OFD Sender: Remove packet 50584 [15:10:31]ProducePacketName [15:10:31]name=ofd_packets/00050584 [15:10:31]NVStorageDeleteData [15:10:31]Write to MH i2c: 01 00 00 66 0C 72 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: 01 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: 01 07 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: 01 07 00 66 0C 00 00 00 00 00 EA 0C 6F [15:10:31]RasterBufferAndPrint [15:10:31]line [15:10:31]line [15:10:31]line [15:10:31]line [15:10:31]line [15:10:31]written 0, free lines is 3312 [15:10:31]process_action close_receipt done [15:10:31]requested_data is exist [15:10:31]produce_requested_data [15:10:31]requested_item fm.sn is exist - process it [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 11 00 00 [15:10:31]Write to MH i2c: E2 08 00 6D 0C 80 11 00 00 00 00 00 00 F3 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 17 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 17 00 6D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3A [15:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:10:31]wFMCommunicate OK [15:10:31]requested_item fd.num is exist - process it [15:10:31]SAM_PROTO_GetFieldsCounters [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 13 00 00 [15:10:31]Write to MH i2c: E2 08 00 6E 0C 80 13 00 00 00 00 00 00 F6 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 62 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 62 00 6E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 98 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [15:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 98 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:31]wFMCommunicate OK [15:10:31]SAM_PROTO_GetFieldsCounters done [15:10:31]requested_item shift.num is exist - process it [15:10:31]requested_item shift.opened is exist - process it [15:10:31]req_shift_opened [15:10:31]FM_GetShiftState [15:10:31]SAM_PROTO_GetShiftState [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 13 01 00 [15:10:31]Write to MH i2c: E2 08 00 6F 0C 80 13 01 00 00 00 00 00 F8 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 0E 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 0E 00 6F 0C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F0 [15:10:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:10:31]wFMCommunicate OK [15:10:31]SAM_PROTO_GetShiftState done [15:10:31]FM_GetShiftState done [15:10:31]req_shift_opened done [15:10:31]requested_item shift.open_date is exist - process it [15:10:31]req_shift_open_date [15:10:31]req_shift_open_date done [15:10:31]produce_requested_data done [15:10:31]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50584,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:10:31]process_action_free close_receipt [15:10:31]json_value_free [15:10:31]json_value_free done [15:10:31]process_json_proto returns [15:10:31]Send response to host [15:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50584,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:10:31]free response buf [15:10:31]execute_script done [15:10:31]execute_script returns [15:10:31]free content buf [15:10:31]Sock 7.Close socket [15:10:31]Sock 7.Thread stoped [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:22]accept exits with 9 [15:11:22]New connection [15:11:22]New thread 3066789220 created [15:11:22]Thread 3066645860 joined [15:11:22]Waiting for new connection... [15:11:22] Sock 9.Parse request [15:11:22]Sock 9.Check first char [15:11:22]Sock 9.First char is OK [15:11:22]request: POST /json_proto HTTP/1.0 [15:11:22]Method: POST [15:11:22]URL: /json_proto [15:11:22]Method is POST - this is cgi request [15:11:22]url: /json_proto [15:11:22]query_string will be loaded in cgi processing [15:11:22]execute_cgi json_proto POST (null) [15:11:22]execute_cgi path=json_proto method=POST [15:11:22]POST find Content-Length [15:11:22]Host: 172.17.49.196:8080 [15:11:22]Content-Length: 726 [15:11:22]Content-Type: application/json [15:11:22] [15:11:22]POST finish read [15:11:22]Found Content-Length = 726 [15:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164494", "tax_sys" : 0, "items" : [ { "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:22]execute_script... [15:11: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)164494", "tax_sys" : 0, "items" : [ { "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:22]POST & json_proto [15:11:22]process_json_proto [15:11:22]json parsed OK: [15:11:22]protocol is kg_v1.0 [15:11:22]action value=close_receipt [15:11:22]process_action close_receipt [15:11:22]cmd_close_receipt [15:11:22]MH_GetDate [15:11:22]Write to MH i2c: F0 00 00 70 0C 6B [15:11:22]Write i2c OK [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: F0 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: F0 09 00 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: F0 09 00 70 0C 00 1C B5 1B 67 BD 3B 11 67 37 [15:11:22]GetLastDocTimeStamp 1729869030 [15:11:22]current date 1729869084 [15:11:22]FM_GetShiftState [15:11:22]SAM_PROTO_GetShiftState [15:11:22]wFMCommunicate request_size=4 [15:11:22]MH_SAM_APDU [15:11:22]CAPDU: 80 13 01 00 [15:11:22]Write to MH i2c: E2 08 00 71 0C 80 13 01 00 00 00 00 00 FA [15:11:22]Write i2c OK [15:11:22]MH_I2C_Read... [15:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:22]Read from MH i2c: E2 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: E2 0E 00 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: E2 0E 00 71 0C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F2 [15:11:22]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:11:22]wFMCommunicate OK [15:11:22]SAM_PROTO_GetShiftState done [15:11:22]FM_GetShiftState done [15:11:22]opened in 1729815177 [15:11:22]opened+sec_in_day 1729901577 [15:11:22]quantity*price = 4500 [15:11:22]sum+1 = 4501 [15:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 85 25.10.2024 15:11 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50585 ФПД: 250668266267245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151124&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50585&fm=250668266267245&tin=02508201610067®Number=0000000000097022&sum=4500 0 [15:11:23]StoreToDocumentArchive [15:11:23]shift 493 fd 50585 [15:11:23]save to /storage/0493/doc_00050585 [15:11:23]save last doc name /storage/0493/doc_00050585 to /storage/kkm_last_doc_name [15:11:23]save OK [15:11:23]Clear old archive folders... [15:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=262 [15:11:23]tlvbuf is 01E8C7D0 [15:11:23]SAM_PROTO_ClearQueue [15:11:23]wFMCommunicate request_size=4 [15:11:23]MH_SAM_APDU [15:11:23]CAPDU: 80 09 00 00 [15:11:23]Write to MH i2c: E2 08 00 7E 0C 80 09 00 00 00 00 00 00 FC [15:11:23]Write i2c OK [15:11:23]MH_I2C_Read... [15:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:23]Read from MH i2c: E2 [15:11:23]MH_I2C_Read... [15:11:23]Read from MH i2c: E2 03 00 [15:11:23]MH_I2C_Read... [15:11:23]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [15:11:23]RAPDU: 90 00 [15:11:23]wFMCommunicate OK [15:11:23]SAM_PROTO_ClearQueue done [15:11:23]KKMCreateOFDPacket [15:11:23]OFDProtocolAddRootSTLVToBuf [15:11:23]FM_MakeSignedData [15:11:23]FM_MakeSignedData [15:11:23]SAM_PROTO_SignData [15:11:23]wFMCommunicate request_size=4 [15:11:23]MH_SAM_APDU [15:11:23]CAPDU: 80 0D 01 02 [15:11:23]Write to MH i2c: E2 08 00 7F 0C 80 0D 01 02 00 00 00 00 04 [15:11:23]Write i2c OK [15:11:23]MH_I2C_Read... [15:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:23]Read from MH i2c: E2 [15:11:23]MH_I2C_Read... [15:11:23]Read from MH i2c: E2 03 00 [15:11:23]MH_I2C_Read... [15:11:23]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [15:11:23]RAPDU: 90 00 [15:11:23]wFMCommunicate OK [15:11:23]wFMCommunicate request_size=255 [15:11:23]MH_SAM_APDU [15:11:23]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 1C B5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 [15:11:23]Write to MH i2c: E2 02 01 80 0C 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 1C B5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 00 00 9F [15:11:23]Write i2c OK [15:11:23]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [15:11:24]RAPDU: 90 00 [15:11:24]wFMCommunicate OK [15:11:24]wFMCommunicate request_size=21 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 0D 02 02 10 04 00 99 C5 00 00 35 04 06 00 E3 FB 40 F7 A2 6D [15:11:24]Write to MH i2c: E2 18 00 81 0C 80 0D 02 02 10 00 04 00 99 C5 00 00 35 04 06 00 E3 FB 40 F7 A2 6D 00 00 EC [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 81 0C 00 90 00 01 [15:11:24]RAPDU: 90 00 [15:11:24]wFMCommunicate OK [15:11:24]wFMCommunicate request_size=4 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 0D 03 02 [15:11:24]Write to MH i2c: E2 08 00 82 0C 80 0D 03 02 00 00 00 00 09 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 0B 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 0B 00 82 0C 00 E8 16 F4 AE 1F D5 C3 19 90 00 7A [15:11:24]RAPDU: E8 16 F4 AE 1F D5 C3 19 90 00 [15:11:24]wFMCommunicate OK [15:11:24]SAM_PROTO_SignData done [15:11:24]FM_MakeSignedData done [15:11:24]CreateOFDProtocolMessage [15:11:24]wFMCommunicate request_size=4 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 11 00 00 [15:11:24]Write to MH i2c: E2 08 00 83 0C 80 11 00 00 00 00 00 00 09 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 17 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 17 00 83 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 50 [15:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:11:24]wFMCommunicate OK [15:11:24]CreateOFDProtocolMessage done [15:11:24]OFDSenderStorePacket 50585 [15:11:24]StoreOFDPacket docnum=50585 [15:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1A 01 00 00 8D 76 12 01 B5 7F 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 1C B5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 99 C5 00 00 35 04 06 00 E3 FB 40 F7 A2 6D E8 16 F4 AE 1F D5 C3 19 [15:11:24]CheckFolder [15:11:24]dirname=/storage/ofd_packets [15:11:24]CheckFolder done [15:11:24]ProducePacketName [15:11:24]name=ofd_packets/00050585 [15:11:24]NVStorageSaveData ofd_packets/00050585 [15:11:24]File name is /storage/ofd_packets/00050585 [15:11:24]Write 312 bytes [15:11:24]NVStorageSaveData done [15:11:24]OFDSenderStorePacket done [15:11:24]KKMCreateOFDPacket done [15:11:24]NVStorageSaveData kkm_last_timestamp [15:11:24]File name is /storage/kkm_last_timestamp [15:11:24]Write 4 bytes [15:11:24]NVStorageSaveData done [15:11:24]ExternCall_PrintAddStr [15:11:24]wPrintStart [15:11:24]Write to MH i2c: 01 00 00 84 0C 90 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: 01 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: 01 07 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: 01 07 00 84 0C 00 00 00 00 00 FF 0F A5 [15:11:24]RasterBufferAndPrint [15:11:24]line Счет N : (3)164494 [15:11:24]line ИНН: 02508201610067 [15:11:24]line Контрольно-Кассовый Чек [15:11:24]line ПРОДАЖА [15:11:24]line Товар: 40099484 [15:11:24]line Жев Orbit White под [15:11:24]line 1.000 * 45.00 [15:11:24]line = 45.00 [15:11:24]line НДС 12% НСП 1% [15:11:24]line > о реализуемом товаре [15:11:24]line ИТОГО: 45.00 [15:11:24]line НСП 1% : 0.40 [15:11:24]line НДС 12% : 4.78 [15:11:24]line Наличными: 0.00 [15:11:24]line Безнал.: 45.00 [15:11:24]line Место: АЗС № 80 "Партнер Нефть" [15:11:24]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:11:24]line СНО: Общий режим [15:11:24]line Чек 85 25.10.2024 15:11 [15:11:24]line Смена: 493 ФФД: 1.0 [15:11:24]line ЗНМ: 0300000090 [15:11:24]line РНМ: 0000000000097022 [15:11:24]line Версия ККМ: 001 [15:11:24]line Платежная система: Mbank [15:11:24]line ФМ: 0000000000875000 [15:11:24]line ФД: 50585 [15:11:24]line ФПД: 250668266267245 [15:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T151124&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50585&fm=250668266267245&tin=02508201610067®Number=0000000000097022&sum=4500 [15:11:24]OFD Sender: Processing packet 50585 [packets to send 7, broken 6] [15:11:24]ProducePacketName [15:11:24]name=ofd_packets/00050585 [15:11:24]OFD Sender: To server: pG, [15:11:24]CommunicateWithHost lk.salyk.kg:30040 [15:11:24]ConnectInit lk.salyk.kg [15:11:24]line 0 [15:11:24]written 0, free lines is 4095 [15:11:24]Connected sock=7 [15:11:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1A 01 00 00 8D 76 12 01 B5 7F 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 1C B5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 99 C5 00 00 35 04 06 00 E3 FB 40 F7 A2 6D E8 16 F4 AE 1F D5 C3 19 [15:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 4D BE 47 00 A2 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 99 C5 00 00 F4 03 04 00 AD 60 1B 67 B6 04 01 00 00 EB 8C 09 15 E6 1D 5A 2B [15:11:25]CommunicateWithHost err = 0 [15:11:25]CheckOFDResponse [15:11:25]1017 (14) - 77093643461234 [15:11:25]1041 (16) - 0000000000875000 [15:11:25]1040 (4) - 50585 [15:11:25]1012 (4) - 25.10.2024 09:11 [15:11:25]1206 (1) - 0 [15:11:25]OFD Sender: Remove packet 50585 [15:11:25]ProducePacketName [15:11:25]name=ofd_packets/00050585 [15:11:25]NVStorageDeleteData [15:11:25]Write to MH i2c: 01 00 00 AD 0C B9 [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 07 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 22 0D EF [15:11:25]RasterBufferAndPrint [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]written 0, free lines is 3370 [15:11:25]process_action close_receipt done [15:11:25]requested_data is exist [15:11:25]produce_requested_data [15:11:25]requested_item fm.sn is exist - process it [15:11:25]wFMCommunicate request_size=4 [15:11:25]MH_SAM_APDU [15:11:25]CAPDU: 80 11 00 00 [15:11:25]Write to MH i2c: E2 08 00 B4 0C 80 11 00 00 00 00 00 00 3A [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:25]Read from MH i2c: E2 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 17 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 17 00 B4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 81 [15:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:11:25]wFMCommunicate OK [15:11:25]requested_item fd.num is exist - process it [15:11:25]SAM_PROTO_GetFieldsCounters [15:11:25]wFMCommunicate request_size=4 [15:11:25]MH_SAM_APDU [15:11:25]CAPDU: 80 13 00 00 [15:11:25]Write to MH i2c: E2 08 00 B5 0C 80 13 00 00 00 00 00 00 3D [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:25]Read from MH i2c: E2 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 62 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 62 00 B5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 99 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [15:11:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 99 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:25]wFMCommunicate OK [15:11:25]SAM_PROTO_GetFieldsCounters done [15:11:25]requested_item shift.num is exist - process it [15:11:25]requested_item shift.opened is exist - process it [15:11:25]req_shift_opened [15:11:25]FM_GetShiftState [15:11:25]SAM_PROTO_GetShiftState [15:11:25]wFMCommunicate request_size=4 [15:11:25]MH_SAM_APDU [15:11:25]CAPDU: 80 13 01 00 [15:11:25]Write to MH i2c: E2 08 00 B6 0C 80 13 01 00 00 00 00 00 3F [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:25]Read from MH i2c: E2 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 0E 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 0E 00 B6 0C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 37 [15:11:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:11:25]wFMCommunicate OK [15:11:25]SAM_PROTO_GetShiftState done [15:11:25]FM_GetShiftState done [15:11:25]req_shift_opened done [15:11:25]requested_item shift.open_date is exist - process it [15:11:25]req_shift_open_date [15:11:25]req_shift_open_date done [15:11:25]produce_requested_data done [15:11:25]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50585,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:11:25]process_action_free close_receipt [15:11:25]json_value_free [15:11:25]json_value_free done [15:11:25]process_json_proto returns [15:11:25]Send response to host [15:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50585,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:11:25]free response buf [15:11:25]execute_script done [15:11:25]execute_script returns [15:11:25]free content buf [15:11:25]Sock 9.Close socket [15:11:25]Sock 9.Thread stoped [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16: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:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:29]accept exits with 10 [15:23:29]New connection [15:23:29]New thread 3066645860 created [15:23:29]Thread 3066789220 joined [15:23:29]Waiting for new connection... [15:23:29] Sock 10.Parse request [15:23:29]Sock 10.Check first char [15:23:29]Sock 10.First char is OK [15:23:29]request: POST /json_proto HTTP/1.0 [15:23:29]Method: POST [15:23:29]URL: /json_proto [15:23:29]Method is POST - this is cgi request [15:23:29]url: /json_proto [15:23:29]query_string will be loaded in cgi processing [15:23:29]execute_cgi json_proto POST (null) [15:23:29]execute_cgi path=json_proto method=POST [15:23:29]POST find Content-Length [15:23:29]Host: 172.17.49.196:8080 [15:23:29]Content-Length: 623 [15:23:29]Content-Type: application/json [15:23:29] [15:23:29]POST finish read [15:23:29]Found Content-Length = 623 [15:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164495", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:29]execute_script... [15:23: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)164495", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:29]POST & json_proto [15:23:29]process_json_proto [15:23:29]json parsed OK: [15:23:29]protocol is kg_v1.0 [15:23:29]action value=close_receipt [15:23:29]process_action close_receipt [15:23:29]cmd_close_receipt [15:23:29]MH_GetDate [15:23:29]Write to MH i2c: F0 00 00 B7 0C B2 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 09 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 09 00 B7 0C 00 F3 B7 1B 67 BD 3B 11 67 57 [15:23:29]GetLastDocTimeStamp 1729869084 [15:23:29]current date 1729869811 [15:23:29]FM_GetShiftState [15:23:29]SAM_PROTO_GetShiftState [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 13 01 00 [15:23:29]Write to MH i2c: E2 08 00 B8 0C 80 13 01 00 00 00 00 00 41 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 B8 0C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 39 [15:23:29]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:23:29]wFMCommunicate OK [15:23:29]SAM_PROTO_GetShiftState done [15:23:29]FM_GetShiftState done [15:23:29]opened in 1729815177 [15:23:29]opened+sec_in_day 1729901577 [15:23:29]quantity*price = 28800 [15:23:29]sum+1 = 28801 [15:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 86 25.10.2024 15:23 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50586 ФПД: 77511079286252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152331&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50586&fm=77511079286252&tin=02508201610067®Number=0000000000097022&sum=28800 0 [15:23:30]StoreToDocumentArchive [15:23:30]shift 493 fd 50586 [15:23:30]save to /storage/0493/doc_00050586 [15:23:30]save last doc name /storage/0493/doc_00050586 to /storage/kkm_last_doc_name [15:23:30]save OK [15:23:30]Clear old archive folders... [15:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:23:30]tlvbuf is 01E3DE40 [15:23:30]SAM_PROTO_ClearQueue [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 09 00 00 [15:23:30]Write to MH i2c: E2 08 00 C5 0C 80 09 00 00 00 00 00 00 43 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_ClearQueue done [15:23:30]KKMCreateOFDPacket [15:23:30]OFDProtocolAddRootSTLVToBuf [15:23:30]FM_MakeSignedData [15:23:30]FM_MakeSignedData [15:23:30]SAM_PROTO_SignData [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 01 02 [15:23:30]Write to MH i2c: E2 08 00 C6 0C 80 0D 01 02 00 00 00 00 4B [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=255 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 F3 B7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [15:23:30]Write to MH i2c: E2 02 01 C7 0C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 F3 B7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 8E [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]wFMCommunicate request_size=34 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C5 00 00 35 04 06 00 46 7E F4 58 D5 EC [15:23:31]Write to MH i2c: E2 25 00 C8 0C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C5 00 00 35 04 06 00 46 7E F4 58 D5 EC 00 00 33 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]OFD Sender: No OFD packet to send [15:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]wFMCommunicate request_size=4 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 03 02 [15:23:31]Write to MH i2c: E2 08 00 C9 0C 80 0D 03 02 00 00 00 00 50 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 0B 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 0B 00 C9 0C 00 37 F6 A1 16 D2 37 B5 79 90 00 6C [15:23:31]RAPDU: 37 F6 A1 16 D2 37 B5 79 90 00 [15:23:31]wFMCommunicate OK [15:23:31]SAM_PROTO_SignData done [15:23:31]FM_MakeSignedData done [15:23:31]CreateOFDProtocolMessage [15:23:31]wFMCommunicate request_size=4 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 11 00 00 [15:23:31]Write to MH i2c: E2 08 00 CA 0C 80 11 00 00 00 00 00 00 50 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 17 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 17 00 CA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 97 [15:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:23:31]wFMCommunicate OK [15:23:31]CreateOFDProtocolMessage done [15:23:31]OFDSenderStorePacket 50586 [15:23:31]StoreOFDPacket docnum=50586 [15:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 CC 50 1F 01 CF 55 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 F3 B7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C5 00 00 35 04 06 00 46 7E F4 58 D5 EC 37 F6 A1 16 D2 37 B5 79 [15:23:31]CheckFolder [15:23:31]dirname=/storage/ofd_packets [15:23:31]CheckFolder done [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00050586 [15:23:31]NVStorageSaveData ofd_packets/00050586 [15:23:31]File name is /storage/ofd_packets/00050586 [15:23:31]Write 325 bytes [15:23:31]NVStorageSaveData done [15:23:31]OFDSenderStorePacket done [15:23:31]KKMCreateOFDPacket done [15:23:31]NVStorageSaveData kkm_last_timestamp [15:23:31]File name is /storage/kkm_last_timestamp [15:23:31]Write 4 bytes [15:23:31]NVStorageSaveData done [15:23:31]ExternCall_PrintAddStr [15:23:31]wPrintStart [15:23:31]Write to MH i2c: 01 00 00 CB 0C D7 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 FF 0F EC [15:23:31]RasterBufferAndPrint [15:23:31]line Счет N : (3)164495 [15:23:31]line ИНН: 02508201610067 [15:23:31]line Контрольно-Кассовый Чек [15:23:31]line ПРОДАЖА [15:23:31]line Товар: 48743587 [15:23:31]line Сигареты Winston XStyle Silver [15:23:31]line 2.000 * 144.00 [15:23:31]line = 288.00 [15:23:31]line НДС 12% НСП 1% [15:23:31]line > о реализуемом товаре [15:23:31]line ИТОГО: 288.00 [15:23:31]line НСП 1% : 2.55 [15:23:31]line НДС 12% : 30.58 [15:23:31]line Наличными: 288.00 [15:23:31]line Безнал.: 0.00 [15:23:31]line Место: АЗС № 80 "Партнер Нефть" [15:23:31]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:23:31]line СНО: Общий режим [15:23:31]line Чек 86 25.10.2024 15:23 [15:23:31]line Смена: 493 ФФД: 1.0 [15:23:31]line ЗНМ: 0300000090 [15:23:31]line РНМ: 0000000000097022 [15:23:31]line Версия ККМ: 001 [15:23:31]line ФМ: 0000000000875000 [15:23:31]line ФД: 50586 [15:23:31]line ФПД: 77511079286252 [15:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152331&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50586&fm=77511079286252&tin=02508201610067®Number=0000000000097022&sum=28800 [15:23:31]OFD Sender: Processing packet 50586 [packets to send 7, broken 6] [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00050586 [15:23:31]OFD Sender: To server: pG, [15:23:31]CommunicateWithHost lk.salyk.kg:30040 [15:23:31]ConnectInit lk.salyk.kg [15:23:31]line 0 [15:23:31]written 0, free lines is 4095 [15:23:31]Connected sock=9 [15:23:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 CC 50 1F 01 CF 55 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 F3 B7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C5 00 00 35 04 06 00 46 7E F4 58 D5 EC 37 F6 A1 16 D2 37 B5 79 [15:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 1C 8C 47 00 CA 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9A C5 00 00 F4 03 04 00 84 63 1B 67 B6 04 01 00 00 81 DE 89 4C 90 C7 FE 7A [15:23:31]CommunicateWithHost err = 0 [15:23:31]CheckOFDResponse [15:23:31]1017 (14) - 77093643461234 [15:23:31]1041 (16) - 0000000000875000 [15:23:31]1040 (4) - 50586 [15:23:31]1012 (4) - 25.10.2024 09:23 [15:23:31]1206 (1) - 0 [15:23:31]OFD Sender: Remove packet 50586 [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00050586 [15:23:31]NVStorageDeleteData [15:23:32]Write to MH i2c: 01 00 00 F4 0C 00 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 13 0D 27 [15:23:32]RasterBufferAndPrint [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]written 0, free lines is 3353 [15:23:32]process_action close_receipt done [15:23:32]requested_data is exist [15:23:32]produce_requested_data [15:23:32]requested_item fm.sn is exist - process it [15:23:32]wFMCommunicate request_size=4 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 11 00 00 [15:23:32]Write to MH i2c: E2 08 00 FB 0C 80 11 00 00 00 00 00 00 81 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:32]Read from MH i2c: E2 17 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 17 00 FB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C8 [15:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:23:32]wFMCommunicate OK [15:23:32]requested_item fd.num is exist - process it [15:23:32]SAM_PROTO_GetFieldsCounters [15:23:32]wFMCommunicate request_size=4 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 13 00 00 [15:23:32]Write to MH i2c: E2 08 00 FC 0C 80 13 00 00 00 00 00 00 84 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 62 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 62 00 FC 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:23:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9A C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:32]wFMCommunicate OK [15:23:32]SAM_PROTO_GetFieldsCounters done [15:23:32]requested_item shift.num is exist - process it [15:23:32]requested_item shift.opened is exist - process it [15:23:32]req_shift_opened [15:23:32]FM_GetShiftState [15:23:32]SAM_PROTO_GetShiftState [15:23:32]wFMCommunicate request_size=4 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 13 01 00 [15:23:32]Write to MH i2c: E2 08 00 FD 0C 80 13 01 00 00 00 00 00 86 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 0E 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 0E 00 FD 0C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 7E [15:23:32]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:23:32]wFMCommunicate OK [15:23:32]SAM_PROTO_GetShiftState done [15:23:32]FM_GetShiftState done [15:23:32]req_shift_opened done [15:23:32]requested_item shift.open_date is exist - process it [15:23:32]req_shift_open_date [15:23:32]req_shift_open_date done [15:23:32]produce_requested_data done [15:23:32]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50586,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:23:32]process_action_free close_receipt [15:23:32]json_value_free [15:23:32]json_value_free done [15:23:32]process_json_proto returns [15:23:32]Send response to host [15:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50586,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:23:32]free response buf [15:23:32]execute_script done [15:23:32]execute_script returns [15:23:32]free content buf [15:23:32]Sock 10.Close socket [15:23:32]Sock 10.Thread stoped [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]accept exits with 7 [15:29:52]New connection [15:29:52]New thread 3066789220 created [15:29:52]Thread 3066645860 joined [15:29:52]Waiting for new connection... [15:29:52] Sock 7.Parse request [15:29:52]Sock 7.Check first char [15:29:52]Sock 7.First char is OK [15:29:52]request: POST /json_proto HTTP/1.0 [15:29:52]Method: POST [15:29:52]URL: /json_proto [15:29:52]Method is POST - this is cgi request [15:29:52]url: /json_proto [15:29:52]query_string will be loaded in cgi processing [15:29:52]execute_cgi json_proto POST (null) [15:29:52]execute_cgi path=json_proto method=POST [15:29:52]POST find Content-Length [15:29:52]Host: 172.17.49.196:8080 [15:29:52]Content-Length: 639 [15:29:52]Content-Type: application/json [15:29:52] [15:29:52]POST finish read [15:29:52]Found Content-Length = 639 [15:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164496", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "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" ] } } [15:29:52]execute_script... [15:29:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164496", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "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" ] } } [15:29:52]POST & json_proto [15:29:52]process_json_proto [15:29:52]json parsed OK: [15:29:52]protocol is kg_v1.0 [15:29:52]action value=close_receipt [15:29:52]process_action close_receipt [15:29:52]cmd_close_receipt [15:29:52]MH_GetDate [15:29:52]Write to MH i2c: F0 00 00 FE 0C F9 [15:29:52]Write i2c OK [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: F0 [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: F0 09 00 [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: F0 09 00 FE 0C 00 72 B9 1B 67 BD 3B 11 67 1F [15:29:52]GetLastDocTimeStamp 1729869811 [15:29:52]current date 1729870194 [15:29:52]FM_GetShiftState [15:29:52]SAM_PROTO_GetShiftState [15:29:52]wFMCommunicate request_size=4 [15:29:52]MH_SAM_APDU [15:29:52]CAPDU: 80 13 01 00 [15:29:52]Write to MH i2c: E2 08 00 FF 0C 80 13 01 00 00 00 00 00 88 [15:29:52]Write i2c OK [15:29:52]MH_I2C_Read... [15:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:52]Read from MH i2c: E2 [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: E2 0E 00 [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: E2 0E 00 FF 0C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 80 [15:29:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:29:52]wFMCommunicate OK [15:29:52]SAM_PROTO_GetShiftState done [15:29:52]FM_GetShiftState done [15:29:52]opened in 1729815177 [15:29:52]opened+sec_in_day 1729901577 [15:29:52]quantity*price = 4000 [15:29:52]sum+1 = 4001 [15:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 87 25.10.2024 15:29 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50587 ФПД: 188472090619510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152954&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50587&fm=188472090619510&tin=02508201610067®Number=0000000000097022&sum=4000 0 [15:29:53]StoreToDocumentArchive [15:29:53]shift 493 fd 50587 [15:29:53]save to /storage/0493/doc_00050587 [15:29:53]save last doc name /storage/0493/doc_00050587 to /storage/kkm_last_doc_name [15:29:53]save OK [15:29:53]Clear old archive folders... [15:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=278 [15:29:53]tlvbuf is 01E19EA0 [15:29:53]SAM_PROTO_ClearQueue [15:29:53]wFMCommunicate request_size=4 [15:29:53]MH_SAM_APDU [15:29:53]CAPDU: 80 09 00 00 [15:29:53]Write to MH i2c: E2 08 00 0C 0D 80 09 00 00 00 00 00 00 8B [15:29:53]Write i2c OK [15:29:53]MH_I2C_Read... [15:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:53]Read from MH i2c: E2 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: E2 03 00 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: E2 03 00 0C 0D 00 90 00 8D [15:29:53]RAPDU: 90 00 [15:29:53]wFMCommunicate OK [15:29:53]SAM_PROTO_ClearQueue done [15:29:53]KKMCreateOFDPacket [15:29:53]OFDProtocolAddRootSTLVToBuf [15:29:53]FM_MakeSignedData [15:29:53]FM_MakeSignedData [15:29:53]SAM_PROTO_SignData [15:29:53]wFMCommunicate request_size=4 [15:29:53]MH_SAM_APDU [15:29:53]CAPDU: 80 0D 01 02 [15:29:53]Write to MH i2c: E2 08 00 0D 0D 80 0D 01 02 00 00 00 00 93 [15:29:53]Write i2c OK [15:29:53]MH_I2C_Read... [15:29:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:53]Read from MH i2c: E2 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: E2 03 00 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [15:29:53]RAPDU: 90 00 [15:29:53]wFMCommunicate OK [15:29:53]wFMCommunicate request_size=255 [15:29:53]MH_SAM_APDU [15:29:53]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 57 00 00 00 F4 03 04 00 72 B9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 [15:29:53]Write to MH i2c: E2 02 01 0E 0D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 57 00 00 00 F4 03 04 00 72 B9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 00 00 FC [15:29:53]Write i2c OK [15:29:53]MH_I2C_Read... [15:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:54]Read from MH i2c: E2 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 03 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [15:29:54]RAPDU: 90 00 [15:29:54]wFMCommunicate OK [15:29:54]wFMCommunicate request_size=37 [15:29:54]MH_SAM_APDU [15:29:54]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C5 00 00 35 04 06 00 AB 6A 14 02 EE 76 [15:29:54]Write to MH i2c: E2 28 00 0F 0D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C5 00 00 35 04 06 00 AB 6A 14 02 EE 76 00 00 D0 [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:54]Read from MH i2c: E2 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 03 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [15:29:54]RAPDU: 90 00 [15:29:54]wFMCommunicate OK [15:29:54]wFMCommunicate request_size=4 [15:29:54]MH_SAM_APDU [15:29:54]CAPDU: 80 0D 03 02 [15:29:54]Write to MH i2c: E2 08 00 10 0D 80 0D 03 02 00 00 00 00 98 [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:54]Read from MH i2c: E2 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 0B 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 0B 00 10 0D 00 2E 92 80 22 30 B6 8B 93 90 00 FF [15:29:54]RAPDU: 2E 92 80 22 30 B6 8B 93 90 00 [15:29:54]wFMCommunicate OK [15:29:54]SAM_PROTO_SignData done [15:29:54]FM_MakeSignedData done [15:29:54]CreateOFDProtocolMessage [15:29:54]wFMCommunicate request_size=4 [15:29:54]MH_SAM_APDU [15:29:54]CAPDU: 80 11 00 00 [15:29:54]Write to MH i2c: E2 08 00 11 0D 80 11 00 00 00 00 00 00 98 [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:54]Read from MH i2c: E2 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 17 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 17 00 11 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DF [15:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:29:54]wFMCommunicate OK [15:29:54]CreateOFDProtocolMessage done [15:29:54]OFDSenderStorePacket 50587 [15:29:54]StoreOFDPacket docnum=50587 [15:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2A 01 00 00 8C 12 22 01 F6 36 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 57 00 00 00 F4 03 04 00 72 B9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C5 00 00 35 04 06 00 AB 6A 14 02 EE 76 2E 92 80 22 30 B6 8B 93 [15:29:54]CheckFolder [15:29:54]dirname=/storage/ofd_packets [15:29:54]CheckFolder done [15:29:54]ProducePacketName [15:29:54]name=ofd_packets/00050587 [15:29:54]NVStorageSaveData ofd_packets/00050587 [15:29:54]File name is /storage/ofd_packets/00050587 [15:29:54]Write 328 bytes [15:29:54]NVStorageSaveData done [15:29:54]OFDSenderStorePacket done [15:29:54]KKMCreateOFDPacket done [15:29:54]NVStorageSaveData kkm_last_timestamp [15:29:54]File name is /storage/kkm_last_timestamp [15:29:54]Write 4 bytes [15:29:54]NVStorageSaveData done [15:29:54]ExternCall_PrintAddStr [15:29:54]wPrintStart [15:29:54]Write to MH i2c: 01 00 00 12 0D 1F [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 07 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 07 00 12 0D 00 00 00 00 00 FF 0F 34 [15:29:54]RasterBufferAndPrint [15:29:54]line Счет N : (3)164496 [15:29:54]line ИНН: 02508201610067 [15:29:54]line Контрольно-Кассовый Чек [15:29:54]line ПРОДАЖА [15:29:54]line Товар: 4870001157913 [15:29:54]line Вода ASU 0,5л c без газа [15:29:54]line 1.000 * 40.00 [15:29:54]line = 40.00 [15:29:54]line НДС 12% НСП 1% [15:29:54]line > о реализуемом товаре [15:29:54]line ИТОГО: 40.00 [15:29:54]line НСП 1% : 0.35 [15:29:54]line НДС 12% : 4.25 [15:29:54]line Наличными: 40.00 [15:29:54]line Безнал.: 0.00 [15:29:54]line Место: АЗС № 80 "Партнер Нефть" [15:29:54]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:29:54]line СНО: Общий режим [15:29:54]line Чек 87 25.10.2024 15:29 [15:29:54]line Смена: 493 ФФД: 1.0 [15:29:54]line ЗНМ: 0300000090 [15:29:54]line РНМ: 0000000000097022 [15:29:54]line Версия ККМ: 001 [15:29:54]line ФМ: 0000000000875000 [15:29:54]line ФД: 50587 [15:29:54]line ФПД: 188472090619510 [15:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T152954&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50587&fm=188472090619510&tin=02508201610067®Number=0000000000097022&sum=4000 [15:29:54]line 0 [15:29:54]OFD Sender: Processing packet 50587 [packets to send 7, broken 6] [15:29:54]ProducePacketName [15:29:54]name=ofd_packets/00050587 [15:29:54]OFD Sender: To server: pG, [15:29:54]CommunicateWithHost lk.salyk.kg:30040 [15:29:54]ConnectInit lk.salyk.kg [15:29:54]written 0, free lines is 4095 [15:29:54]Connected sock=10 [15:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2A 01 00 00 8C 12 22 01 F6 36 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 57 00 00 00 F4 03 04 00 72 B9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C5 00 00 35 04 06 00 AB 6A 14 02 EE 76 2E 92 80 22 30 B6 8B 93 [15:29:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 EB CA 47 00 FA FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9B C5 00 00 F4 03 04 00 03 65 1B 67 B6 04 01 00 00 0E B4 EB A2 7D 19 B6 56 [15:29:55]CommunicateWithHost err = 0 [15:29:55]CheckOFDResponse [15:29:55]1017 (14) - 77093643461234 [15:29:55]1041 (16) - 0000000000875000 [15:29:55]1040 (4) - 50587 [15:29:55]1012 (4) - 25.10.2024 09:29 [15:29:55]1206 (1) - 0 [15:29:55]OFD Sender: Remove packet 50587 [15:29:55]ProducePacketName [15:29:55]name=ofd_packets/00050587 [15:29:55]NVStorageDeleteData [15:29:55]Write to MH i2c: 01 00 00 3A 0D 47 [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 07 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 07 00 3A 0D 00 00 00 00 00 0F 0D 6A [15:29:55]RasterBufferAndPrint [15:29:55]line [15:29:55]line [15:29:55]line [15:29:55]line [15:29:55]line [15:29:55]written 0, free lines is 3349 [15:29:55]process_action close_receipt done [15:29:55]requested_data is exist [15:29:55]produce_requested_data [15:29:55]requested_item fm.sn is exist - process it [15:29:55]wFMCommunicate request_size=4 [15:29:55]MH_SAM_APDU [15:29:55]CAPDU: 80 11 00 00 [15:29:55]Write to MH i2c: E2 08 00 41 0D 80 11 00 00 00 00 00 00 C8 [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:55]Read from MH i2c: E2 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 17 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 17 00 41 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 0F [15:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:29:55]wFMCommunicate OK [15:29:55]requested_item fd.num is exist - process it [15:29:55]SAM_PROTO_GetFieldsCounters [15:29:55]wFMCommunicate request_size=4 [15:29:55]MH_SAM_APDU [15:29:55]CAPDU: 80 13 00 00 [15:29:55]Write to MH i2c: E2 08 00 42 0D 80 13 00 00 00 00 00 00 CB [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:55]Read from MH i2c: E2 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 62 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 62 00 42 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [15:29:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9B C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:55]wFMCommunicate OK [15:29:55]SAM_PROTO_GetFieldsCounters done [15:29:55]requested_item shift.num is exist - process it [15:29:55]requested_item shift.opened is exist - process it [15:29:55]req_shift_opened [15:29:55]FM_GetShiftState [15:29:55]SAM_PROTO_GetShiftState [15:29:55]wFMCommunicate request_size=4 [15:29:55]MH_SAM_APDU [15:29:55]CAPDU: 80 13 01 00 [15:29:55]Write to MH i2c: E2 08 00 43 0D 80 13 01 00 00 00 00 00 CD [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:55]Read from MH i2c: E2 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 0E 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 0E 00 43 0D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 C5 [15:29:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:29:55]wFMCommunicate OK [15:29:55]SAM_PROTO_GetShiftState done [15:29:55]FM_GetShiftState done [15:29:55]req_shift_opened done [15:29:55]requested_item shift.open_date is exist - process it [15:29:55]req_shift_open_date [15:29:55]req_shift_open_date done [15:29:55]produce_requested_data done [15:29:55]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50587,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:29:55]process_action_free close_receipt [15:29:55]json_value_free [15:29:55]json_value_free done [15:29:55]process_json_proto returns [15:29:55]Send response to host [15:29:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50587,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:29:55]free response buf [15:29:55]execute_script done [15:29:55]execute_script returns [15:29:55]free content buf [15:29:55]Sock 7.Close socket [15:29:55]Sock 7.Thread stoped [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:01]accept exits with 9 [15:31:01]New connection [15:31:01]New thread 3066645860 created [15:31:01]Thread 3066789220 joined [15:31:01]Waiting for new connection... [15:31:01] Sock 9.Parse request [15:31:01]Sock 9.Check first char [15:31:01]Sock 9.First char is OK [15:31:01]request: POST /json_proto HTTP/1.0 [15:31:01]Method: POST [15:31:01]URL: /json_proto [15:31:01]Method is POST - this is cgi request [15:31:01]url: /json_proto [15:31:01]query_string will be loaded in cgi processing [15:31:01]execute_cgi json_proto POST (null) [15:31:01]execute_cgi path=json_proto method=POST [15:31:01]POST find Content-Length [15:31:01]Host: 172.17.49.196:8080 [15:31:01]Content-Length: 674 [15:31:01]Content-Type: application/json [15:31:01] [15:31:01]POST finish read [15:31:01]Found Content-Length = 674 [15:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164497", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:01]execute_script... [15:31: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)164497", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:01]POST & json_proto [15:31:01]process_json_proto [15:31:01]json parsed OK: [15:31:01]protocol is kg_v1.0 [15:31:01]action value=close_receipt [15:31:01]process_action close_receipt [15:31:01]cmd_close_receipt [15:31:01]MH_GetDate [15:31:01]Write to MH i2c: F0 00 00 44 0D 40 [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: F0 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: F0 09 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: F0 09 00 44 0D 00 B7 B9 1B 67 BD 3B 11 67 AB [15:31:01]GetLastDocTimeStamp 1729870194 [15:31:01]current date 1729870263 [15:31:01]FM_GetShiftState [15:31:01]SAM_PROTO_GetShiftState [15:31:01]wFMCommunicate request_size=4 [15:31:01]MH_SAM_APDU [15:31:01]CAPDU: 80 13 01 00 [15:31:01]Write to MH i2c: E2 08 00 45 0D 80 13 01 00 00 00 00 00 CF [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:01]Read from MH i2c: E2 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 0E 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 0E 00 45 0D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 C7 [15:31:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:31:01]wFMCommunicate OK [15:31:01]SAM_PROTO_GetShiftState done [15:31:01]FM_GetShiftState done [15:31:01]opened in 1729815177 [15:31:01]opened+sec_in_day 1729901577 [15:31:01]quantity*price = 7500 [15:31:01]sum+1 = 7501 [15:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 88 25.10.2024 15:31 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50588 ФПД: 257287507222695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T153103&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50588&fm=257287507222695&tin=02508201610067®Number=0000000000097022&sum=7500 0 [15:31:02]StoreToDocumentArchive [15:31:02]shift 493 fd 50588 [15:31:02]save to /storage/0493/doc_00050588 [15:31:02]save last doc name /storage/0493/doc_00050588 to /storage/kkm_last_doc_name [15:31:02]save OK [15:31:02]Clear old archive folders... [15:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=289 [15:31:02]tlvbuf is 01E8BA80 [15:31:02]SAM_PROTO_ClearQueue [15:31:02]wFMCommunicate request_size=4 [15:31:02]MH_SAM_APDU [15:31:02]CAPDU: 80 09 00 00 [15:31:02]Write to MH i2c: E2 08 00 52 0D 80 09 00 00 00 00 00 00 D1 [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:02]Read from MH i2c: E2 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 03 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [15:31:02]RAPDU: 90 00 [15:31:02]wFMCommunicate OK [15:31:02]SAM_PROTO_ClearQueue done [15:31:02]KKMCreateOFDPacket [15:31:02]OFDProtocolAddRootSTLVToBuf [15:31:02]FM_MakeSignedData [15:31:02]FM_MakeSignedData [15:31:02]SAM_PROTO_SignData [15:31:02]wFMCommunicate request_size=4 [15:31:02]MH_SAM_APDU [15:31:02]CAPDU: 80 0D 01 02 [15:31:02]Write to MH i2c: E2 08 00 53 0D 80 0D 01 02 00 00 00 00 D9 [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:02]Read from MH i2c: E2 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 03 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 03 00 53 0D 00 90 00 D4 [15:31:02]RAPDU: 90 00 [15:31:02]wFMCommunicate OK [15:31:02]wFMCommunicate request_size=255 [15:31:02]MH_SAM_APDU [15:31:02]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B7 B9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [15:31:02]Write to MH i2c: E2 02 01 54 0D 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B7 B9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 78 [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [15:31:03]RAPDU: 90 00 [15:31:03]wFMCommunicate OK [15:31:03]wFMCommunicate request_size=48 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 0D 02 02 2B 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C5 00 00 35 04 06 00 EA 00 6A 79 20 A7 [15:31:03]Write to MH i2c: E2 33 00 55 0D 80 0D 02 02 2B 00 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C5 00 00 35 04 06 00 EA 00 6A 79 20 A7 00 00 BB [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [15:31:03]RAPDU: 90 00 [15:31:03]wFMCommunicate OK [15:31:03]wFMCommunicate request_size=4 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 0D 03 02 [15:31:03]Write to MH i2c: E2 08 00 56 0D 80 0D 03 02 00 00 00 00 DE [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 0B 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 0B 00 56 0D 00 A6 09 73 1B E4 09 B1 74 90 00 2E [15:31:03]RAPDU: A6 09 73 1B E4 09 B1 74 90 00 [15:31:03]wFMCommunicate OK [15:31:03]SAM_PROTO_SignData done [15:31:03]FM_MakeSignedData done [15:31:03]CreateOFDProtocolMessage [15:31:03]wFMCommunicate request_size=4 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 11 00 00 [15:31:03]Write to MH i2c: E2 08 00 57 0D 80 11 00 00 00 00 00 00 DE [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 17 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 17 00 57 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 25 [15:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:31:03]wFMCommunicate OK [15:31:03]CreateOFDProtocolMessage done [15:31:03]OFDSenderStorePacket 50588 [15:31:03]StoreOFDPacket docnum=50588 [15:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 01 00 00 F2 40 2D 01 55 50 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B7 B9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C5 00 00 35 04 06 00 EA 00 6A 79 20 A7 A6 09 73 1B E4 09 B1 74 [15:31:03]CheckFolder [15:31:03]dirname=/storage/ofd_packets [15:31:03]CheckFolder done [15:31:03]ProducePacketName [15:31:03]name=ofd_packets/00050588 [15:31:03]NVStorageSaveData ofd_packets/00050588 [15:31:03]File name is /storage/ofd_packets/00050588 [15:31:03]Write 339 bytes [15:31:03]NVStorageSaveData done [15:31:03]OFDSenderStorePacket done [15:31:03]KKMCreateOFDPacket done [15:31:03]NVStorageSaveData kkm_last_timestamp [15:31:03]File name is /storage/kkm_last_timestamp [15:31:03]Write 4 bytes [15:31:03]NVStorageSaveData done [15:31:03]ExternCall_PrintAddStr [15:31:03]wPrintStart [15:31:03]Write to MH i2c: 01 00 00 58 0D 65 [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: 01 [15:31:03]MH_I2C_Read... [15:31:03]OFD Sender: Processing packet 50588 [packets to send 7, broken 6] [15:31:03]Read from MH i2c: 01 07 00 [15:31:03]MH_I2C_Read... [15:31:03]ProducePacketName [15:31:03]name=ofd_packets/00050588 [15:31:03]OFD Sender: To server: pG, [15:31:03]CommunicateWithHost lk.salyk.kg:30040 [15:31:03]ConnectInit lk.salyk.kg [15:31:03]Read from MH i2c: 01 07 00 58 0D 00 00 00 00 00 FF 0F 7A [15:31:03]RasterBufferAndPrint [15:31:03]line Счет N : (3)164497 [15:31:03]line ИНН: 02508201610067 [15:31:03]line Контрольно-Кассовый Чек [15:31:03]line ПРОДАЖА [15:31:03]line Товар: 5449000189325 [15:31:03]line Холодный чай Fuse персик 0,5л [15:31:03]line 1.000 * 75.00 [15:31:03]line = 75.00 [15:31:03]line НДС 12% НСП 1% [15:31:03]line > о реализуемом товаре [15:31:03]line ИТОГО: 75.00 [15:31:03]line НСП 1% : 0.66 [15:31:03]line НДС 12% : 7.96 [15:31:03]line Наличными: 75.00 [15:31:03]line Безнал.: 0.00 [15:31:03]line Место: АЗС № 80 "Партнер Нефть" [15:31:03]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:31:03]line СНО: Общий режим [15:31:03]line Чек 88 25.10.2024 15:31 [15:31:03]line Смена: 493 ФФД: 1.0 [15:31:03]line ЗНМ: 0300000090 [15:31:03]line РНМ: 0000000000097022 [15:31:03]line Версия ККМ: 001 [15:31:03]line ФМ: 0000000000875000 [15:31:03]line ФД: 50588 [15:31:03]line ФПД: 257287507222695 [15:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T153103&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50588&fm=257287507222695&tin=02508201610067®Number=0000000000097022&sum=7500 [15:31:03]Connected sock=10 [15:31:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 01 00 00 F2 40 2D 01 55 50 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B7 B9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C5 00 00 35 04 06 00 EA 00 6A 79 20 A7 A6 09 73 1B E4 09 B1 74 [15:31:03]line 0 [15:31:03]written 0, free lines is 4095 [15:31:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 5F BD 47 00 45 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9C C5 00 00 F4 03 04 00 48 65 1B 67 B6 04 01 00 00 D8 F4 06 6E 23 54 A3 EC [15:31:03]CommunicateWithHost err = 0 [15:31:03]CheckOFDResponse [15:31:03]1017 (14) - 77093643461234 [15:31:03]1041 (16) - 0000000000875000 [15:31:03]1040 (4) - 50588 [15:31:03]1012 (4) - 25.10.2024 09:30 [15:31:03]1206 (1) - 0 [15:31:03]OFD Sender: Remove packet 50588 [15:31:03]ProducePacketName [15:31:03]name=ofd_packets/00050588 [15:31:03]NVStorageDeleteData [15:31:04]Write to MH i2c: 01 00 00 81 0D 8E [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 81 0D 00 00 00 00 00 02 0D A4 [15:31:04]RasterBufferAndPrint [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]written 0, free lines is 3336 [15:31:04]process_action close_receipt done [15:31:04]requested_data is exist [15:31:04]produce_requested_data [15:31:04]requested_item fm.sn is exist - process it [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 11 00 00 [15:31:04]Write to MH i2c: E2 08 00 88 0D 80 11 00 00 00 00 00 00 0F [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 17 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 17 00 88 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 56 [15:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:31:04]wFMCommunicate OK [15:31:04]requested_item fd.num is exist - process it [15:31:04]SAM_PROTO_GetFieldsCounters [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 13 00 00 [15:31:04]Write to MH i2c: E2 08 00 89 0D 80 13 00 00 00 00 00 00 12 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 62 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 62 00 89 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [15:31:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9C C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:04]wFMCommunicate OK [15:31:04]SAM_PROTO_GetFieldsCounters done [15:31:04]requested_item shift.num is exist - process it [15:31:04]requested_item shift.opened is exist - process it [15:31:04]req_shift_opened [15:31:04]FM_GetShiftState [15:31:04]SAM_PROTO_GetShiftState [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 13 01 00 [15:31:04]Write to MH i2c: E2 08 00 8A 0D 80 13 01 00 00 00 00 00 14 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]OFD Sender: No OFD packet to send [15:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 0E 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 0E 00 8A 0D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 0C [15:31:04]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:31:04]wFMCommunicate OK [15:31:04]SAM_PROTO_GetShiftState done [15:31:04]FM_GetShiftState done [15:31:04]req_shift_opened done [15:31:04]requested_item shift.open_date is exist - process it [15:31:04]req_shift_open_date [15:31:04]req_shift_open_date done [15:31:04]produce_requested_data done [15:31:04]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50588,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:31:04]process_action_free close_receipt [15:31:04]json_value_free [15:31:04]json_value_free done [15:31:04]process_json_proto returns [15:31:04]Send response to host [15:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50588,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:31:04]free response buf [15:31:04]execute_script done [15:31:04]execute_script returns [15:31:04]free content buf [15:31:04]Sock 9.Close socket [15:31:04]Sock 9.Thread stoped [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:41]accept exits with 7 [15:32:41]New connection [15:32:41]New thread 3066789220 created [15:32:41]Thread 3066645860 joined [15:32:41]Waiting for new connection... [15:32:41] Sock 7.Parse request [15:32:41]Sock 7.Check first char [15:32:41]Sock 7.First char is OK [15:32:41]request: POST /json_proto HTTP/1.0 [15:32:41]Method: POST [15:32:41]URL: /json_proto [15:32:41]Method is POST - this is cgi request [15:32:41]url: /json_proto [15:32:41]query_string will be loaded in cgi processing [15:32:41]execute_cgi json_proto POST (null) [15:32:41]execute_cgi path=json_proto method=POST [15:32:41]POST find Content-Length [15:32:41]Host: 172.17.49.196:8080 [15:32:41]Content-Length: 1523 [15:32:41]Content-Type: application/json [15:32:41] [15:32:41]POST finish read [15:32:41]Found Content-Length = 1523 [15:32:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164498", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 2.000, "sum" : 98.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 451.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:41]execute_script... [15:32: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)164498", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 2.000, "sum" : 98.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 451.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:41]POST & json_proto [15:32:41]process_json_proto [15:32:41]json parsed OK: [15:32:41]protocol is kg_v1.0 [15:32:41]action value=close_receipt [15:32:41]process_action close_receipt [15:32:41]cmd_close_receipt [15:32:41]MH_GetDate [15:32:41]Write to MH i2c: F0 00 00 8B 0D 87 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: F0 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: F0 09 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: F0 09 00 8B 0D 00 1B BA 1B 67 BD 3B 11 67 57 [15:32:41]GetLastDocTimeStamp 1729870263 [15:32:41]current date 1729870363 [15:32:41]FM_GetShiftState [15:32:41]SAM_PROTO_GetShiftState [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 13 01 00 [15:32:41]Write to MH i2c: E2 08 00 8C 0D 80 13 01 00 00 00 00 00 16 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 0E 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 0E 00 8C 0D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 0E [15:32:41]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:32:41]wFMCommunicate OK [15:32:41]SAM_PROTO_GetShiftState done [15:32:41]FM_GetShiftState done [15:32:41]opened in 1729815177 [15:32:41]opened+sec_in_day 1729901577 [15:32:41]quantity*price = 10400 [15:32:41]sum+1 = 10401 [15:32:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 80942726 Р/ж mentos мята ролл 16г 2.000 * 49.00 = 98.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 451.00 НСП 1% : 4.00 НДС 12% : 47.89 Наличными: 451.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 89 25.10.2024 15:32 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50589 ФПД: 194416434257087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T153243&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50589&fm=194416434257087&tin=02508201610067®Number=0000000000097022&sum=45100 0 [15:32:42]StoreToDocumentArchive [15:32:42]shift 493 fd 50589 [15:32:42]save to /storage/0493/doc_00050589 [15:32:42]save last doc name /storage/0493/doc_00050589 to /storage/kkm_last_doc_name [15:32:42]save OK [15:32:42]Clear old archive folders... [15:32:42]ProcessDocumentItem done err = 0, tmpTLVsize=642 [15:32:42]tlvbuf is 01EABB20 [15:32:42]SAM_PROTO_ClearQueue [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 09 00 00 [15:32:42]Write to MH i2c: E2 08 00 99 0D 80 09 00 00 00 00 00 00 18 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 99 0D 00 90 00 1A [15:32:42]RAPDU: 90 00 [15:32:42]wFMCommunicate OK [15:32:42]SAM_PROTO_ClearQueue done [15:32:42]KKMCreateOFDPacket [15:32:42]OFDProtocolAddRootSTLVToBuf [15:32:42]FM_MakeSignedData [15:32:42]FM_MakeSignedData [15:32:42]SAM_PROTO_SignData [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 0D 01 02 [15:32:42]Write to MH i2c: E2 08 00 9A 0D 80 0D 01 02 00 00 00 00 20 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [15:32:42]RAPDU: 90 00 [15:32:42]wFMCommunicate OK [15:32:42]wFMCommunicate request_size=255 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 0D 02 02 FA 03 00 82 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 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 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 [15:32:42]Write to MH i2c: E2 02 01 9B 0D 80 0D 02 02 FA 00 03 00 82 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 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 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 00 00 AB [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 03 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [15:32:43]RAPDU: 90 00 [15:32:43]wFMCommunicate OK [15:32:43]wFMCommunicate request_size=255 [15:32:43]MH_SAM_APDU [15:32:43]CAPDU: 80 0D 02 02 FA BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [15:32:43]Write to MH i2c: E2 02 01 9C 0D 80 0D 02 02 FA 00 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 27 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 03 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [15:32:43]RAPDU: 90 00 [15:32:43]wFMCommunicate OK [15:32:43]wFMCommunicate request_size=151 [15:32:43]MH_SAM_APDU [15:32:43]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 90 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 12 00 00 00 00 07 04 06 00 2C B0 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 1B BA 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C5 00 00 35 04 06 00 B0 D2 1A 80 9C BF [15:32:43]Write to MH i2c: E2 9A 00 9D 0D 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 90 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 12 00 00 00 00 07 04 06 00 2C B0 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 1B BA 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C5 00 00 35 04 06 00 B0 D2 1A 80 9C BF 00 00 14 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 03 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [15:32:43]RAPDU: 90 00 [15:32:43]wFMCommunicate OK [15:32:43]wFMCommunicate request_size=4 [15:32:43]MH_SAM_APDU [15:32:43]CAPDU: 80 0D 03 02 [15:32:43]Write to MH i2c: E2 08 00 9E 0D 80 0D 03 02 00 00 00 00 26 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 0B 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 0B 00 9E 0D 00 8E D5 B7 F2 4F D6 DE AE 90 00 E4 [15:32:43]RAPDU: 8E D5 B7 F2 4F D6 DE AE 90 00 [15:32:43]wFMCommunicate OK [15:32:43]SAM_PROTO_SignData done [15:32:43]FM_MakeSignedData done [15:32:43]CreateOFDProtocolMessage [15:32:43]wFMCommunicate request_size=4 [15:32:43]MH_SAM_APDU [15:32:43]CAPDU: 80 11 00 00 [15:32:43]Write to MH i2c: E2 08 00 9F 0D 80 11 00 00 00 00 00 00 26 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 17 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 17 00 9F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6D [15:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:32:43]wFMCommunicate OK [15:32:43]CreateOFDProtocolMessage done [15:32:43]OFDSenderStorePacket 50589 [15:32:43]StoreOFDPacket docnum=50589 [15:32:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 96 02 00 00 32 B9 8E 02 17 3F 5A 03 01 00 03 00 82 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 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 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 12 00 00 00 00 07 04 06 00 2C B0 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 1B BA 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C5 00 00 35 04 06 00 B0 D2 1A 80 9C BF 8E D5 B7 F2 4F D6 DE AE [15:32:43]CheckFolder [15:32:43]dirname=/storage/ofd_packets [15:32:43]CheckFolder done [15:32:43]ProducePacketName [15:32:43]name=ofd_packets/00050589 [15:32:43]NVStorageSaveData ofd_packets/00050589 [15:32:43]File name is /storage/ofd_packets/00050589 [15:32:43]Write 692 bytes [15:32:43]NVStorageSaveData done [15:32:43]OFDSenderStorePacket done [15:32:43]KKMCreateOFDPacket done [15:32:43]NVStorageSaveData kkm_last_timestamp [15:32:43]File name is /storage/kkm_last_timestamp [15:32:43]Write 4 bytes [15:32:43]NVStorageSaveData done [15:32:43]ExternCall_PrintAddStr [15:32:43]wPrintStart [15:32:43]Write to MH i2c: 01 00 00 A0 0D AD [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 07 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 07 00 A0 0D 00 00 00 00 00 FF 0F C2 [15:32:43]RasterBufferAndPrint [15:32:43]line Счет N : (3)164498 [15:32:43]line ИНН: 02508201610067 [15:32:43]line Контрольно-Кассовый Чек [15:32:43]line ПРОДАЖА [15:32:43]line Товар: 4870202522015 [15:32:43]line Напиток Maxi Чай Грушевый 1,2л [15:32:43]line 1.000 * 104.00 [15:32:43]line = 104.00 [15:32:43]line НДС 12% НСП 1% [15:32:43]line > о реализуемом товаре [15:32:43]line Товар: 5449000027450 [15:32:43]line Напиток FuzeTea чай манго,ром 0,5л [15:32:43]line 2.000 * 75.00 [15:32:43]line = 150.00 [15:32:43]line НДС 12% НСП 1% [15:32:43]line > о реализуемом товаре [15:32:43]line Товар: 4870022003312 [15:32:44]line Gorilla эн нап манго-кокос 0,45 ж/б [15:32:44]line 1.000 * 99.00 [15:32:44]line = 99.00 [15:32:44]line НДС 12% НСП 1% [15:32:44]line > о реализуемом товаре [15:32:44]line Товар: 80942726 [15:32:44]line Р/ж mentos мята ролл 16г [15:32:44]line 2.000 * 49.00 [15:32:44]line = 98.00 [15:32:44]line НДС 12% НСП 1% [15:32:44]line > о реализуемом товаре [15:32:44]line ИТОГО: 451.00 [15:32:44]line НСП 1% : 4.00 [15:32:44]line НДС 12% : 47.89 [15:32:44]line Наличными: 451.00 [15:32:44]line Безнал.: 0.00 [15:32:44]line Место: АЗС № 80 "Партнер Нефть" [15:32:44]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:32:44]line СНО: Общий режим [15:32:44]line Чек 89 25.10.2024 15:32 [15:32:44]line Смена: 493 ФФД: 1.0 [15:32:44]line ЗНМ: 0300000090 [15:32:44]line РНМ: 0000000000097022 [15:32:44]line Версия ККМ: 001 [15:32:44]line ФМ: 0000000000875000 [15:32:44]line ФД: 50589 [15:32:44]line ФПД: 194416434257087 [15:32:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T153243&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50589&fm=194416434257087&tin=02508201610067®Number=0000000000097022&sum=45100 [15:32:44]line 0 [15:32:44]OFD Sender: Processing packet 50589 [packets to send 7, broken 6] [15:32:44]ProducePacketName [15:32:44]name=ofd_packets/00050589 [15:32:44]OFD Sender: To server: pG, [15:32:44]CommunicateWithHost lk.salyk.kg:30040 [15:32:44]ConnectInit lk.salyk.kg [15:32:44]written 0, free lines is 4095 [15:32:44]Connected sock=10 [15:32:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 96 02 00 00 32 B9 8E 02 17 3F 5A 03 01 00 03 00 82 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 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 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 12 00 00 00 00 07 04 06 00 2C B0 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 1B BA 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C5 00 00 35 04 06 00 B0 D2 1A 80 9C BF 8E D5 B7 F2 4F D6 DE AE [15:32:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 1D 17 47 00 0D 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9D C5 00 00 F4 03 04 00 AC 65 1B 67 B6 04 01 00 00 CD 7E 2F 85 49 5E AE 91 [15:32:44]CommunicateWithHost err = 0 [15:32:44]CheckOFDResponse [15:32:44]1017 (14) - 77093643461234 [15:32:44]1041 (16) - 0000000000875000 [15:32:44]1040 (4) - 50589 [15:32:44]1012 (4) - 25.10.2024 09:32 [15:32:44]1206 (1) - 0 [15:32:44]OFD Sender: Remove packet 50589 [15:32:44]ProducePacketName [15:32:44]name=ofd_packets/00050589 [15:32:44]NVStorageDeleteData [15:32:44]Write to MH i2c: 01 00 00 DD 0D EA [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: 01 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: 01 07 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: 01 07 00 DD 0D 00 00 00 00 00 00 0C FD [15:32:44]RasterBufferAndPrint [15:32:44]line [15:32:44]line [15:32:44]line [15:32:44]line [15:32:44]line [15:32:44]written 0, free lines is 3083 [15:32:44]process_action close_receipt done [15:32:44]requested_data is exist [15:32:44]produce_requested_data [15:32:44]requested_item fm.sn is exist - process it [15:32:44]wFMCommunicate request_size=4 [15:32:44]MH_SAM_APDU [15:32:44]CAPDU: 80 11 00 00 [15:32:44]Write to MH i2c: E2 08 00 E4 0D 80 11 00 00 00 00 00 00 6B [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:44]Read from MH i2c: E2 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 17 00 [15:32:44]MH_I2C_Read... [15:32:44]Read from MH i2c: E2 17 00 E4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B2 [15:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:32:44]wFMCommunicate OK [15:32:44]requested_item fd.num is exist - process it [15:32:44]SAM_PROTO_GetFieldsCounters [15:32:44]wFMCommunicate request_size=4 [15:32:44]MH_SAM_APDU [15:32:44]CAPDU: 80 13 00 00 [15:32:44]Write to MH i2c: E2 08 00 E5 0D 80 13 00 00 00 00 00 00 6E [15:32:44]Write i2c OK [15:32:44]MH_I2C_Read... [15:32:44]OFD Sender: No OFD packet to send [15:32:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:45]Read from MH i2c: E2 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 62 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 62 00 E5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [15:32:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9D C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:45]wFMCommunicate OK [15:32:45]SAM_PROTO_GetFieldsCounters done [15:32:45]requested_item shift.num is exist - process it [15:32:45]requested_item shift.opened is exist - process it [15:32:45]req_shift_opened [15:32:45]FM_GetShiftState [15:32:45]SAM_PROTO_GetShiftState [15:32:45]wFMCommunicate request_size=4 [15:32:45]MH_SAM_APDU [15:32:45]CAPDU: 80 13 01 00 [15:32:45]Write to MH i2c: E2 08 00 E6 0D 80 13 01 00 00 00 00 00 70 [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:45]Read from MH i2c: E2 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 0E 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 0E 00 E6 0D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 68 [15:32:45]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:32:45]wFMCommunicate OK [15:32:45]SAM_PROTO_GetShiftState done [15:32:45]FM_GetShiftState done [15:32:45]req_shift_opened done [15:32:45]requested_item shift.open_date is exist - process it [15:32:45]req_shift_open_date [15:32:45]req_shift_open_date done [15:32:45]produce_requested_data done [15:32:45]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50589,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:32:45]process_action_free close_receipt [15:32:45]json_value_free [15:32:45]json_value_free done [15:32:45]process_json_proto returns [15:32:45]Send response to host [15:32:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50589,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:32:45]free response buf [15:32:45]execute_script done [15:32:45]execute_script returns [15:32:45]free content buf [15:32:45]Sock 7.Close socket [15:32:45]Sock 7.Thread stoped [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:31]accept exits with 9 [15:52:31]New connection [15:52:31]New thread 3066645860 created [15:52:31]Thread 3066789220 joined [15:52:31]Waiting for new connection... [15:52:31] Sock 9.Parse request [15:52:31]Sock 9.Check first char [15:52:31]Sock 9.First char is OK [15:52:31]request: POST /json_proto HTTP/1.0 [15:52:31]Method: POST [15:52:31]URL: /json_proto [15:52:31]Method is POST - this is cgi request [15:52:31]url: /json_proto [15:52:31]query_string will be loaded in cgi processing [15:52:31]execute_cgi json_proto POST (null) [15:52:31]execute_cgi path=json_proto method=POST [15:52:31]POST find Content-Length [15:52:31]Host: 172.17.49.196:8080 [15:52:31]Content-Length: 646 [15:52:31]Content-Type: application/json [15:52:31] [15:52:31]POST finish read [15:52:31]Found Content-Length = 646 [15:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164499", "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" ] } } [15:52:31]execute_script... [15:52:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164499", "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" ] } } [15:52:31]POST & json_proto [15:52:31]process_json_proto [15:52:31]json parsed OK: [15:52:31]protocol is kg_v1.0 [15:52:31]action value=close_receipt [15:52:31]process_action close_receipt [15:52:31]cmd_close_receipt [15:52:31]MH_GetDate [15:52:31]Write to MH i2c: F0 00 00 E7 0D E3 [15:52:31]Write i2c OK [15:52:31]MH_I2C_Read... [15:52:31]Read from MH i2c: F0 [15:52:31]MH_I2C_Read... [15:52:31]Read from MH i2c: F0 09 00 [15:52:31]MH_I2C_Read... [15:52:31]Read from MH i2c: F0 09 00 E7 0D 00 C1 BE 1B 67 BD 3B 11 67 5D [15:52:31]GetLastDocTimeStamp 1729870363 [15:52:31]current date 1729871553 [15:52:31]FM_GetShiftState [15:52:31]SAM_PROTO_GetShiftState [15:52:31]wFMCommunicate request_size=4 [15:52:31]MH_SAM_APDU [15:52:31]CAPDU: 80 13 01 00 [15:52:31]Write to MH i2c: E2 08 00 E8 0D 80 13 01 00 00 00 00 00 72 [15:52:31]Write i2c OK [15:52:31]MH_I2C_Read... [15:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:31]Read from MH i2c: E2 [15:52:31]MH_I2C_Read... [15:52:31]Read from MH i2c: E2 0E 00 [15:52:31]MH_I2C_Read... [15:52:31]Read from MH i2c: E2 0E 00 E8 0D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6A [15:52:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:52:31]wFMCommunicate OK [15:52:31]SAM_PROTO_GetShiftState done [15:52:31]FM_GetShiftState done [15:52:31]opened in 1729815177 [15:52:31]opened+sec_in_day 1729901577 [15:52:31]quantity*price = 13000 [15:52:31]sum+1 = 13001 [15:52:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 90 25.10.2024 15:52 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50590 ФПД: 147927613644647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155233&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50590&fm=147927613644647&tin=02508201610067®Number=0000000000097022&sum=13000 0 [15:52:32]StoreToDocumentArchive [15:52:32]shift 493 fd 50590 [15:52:32]save to /storage/0493/doc_00050590 [15:52:32]save last doc name /storage/0493/doc_00050590 to /storage/kkm_last_doc_name [15:52:32]save OK [15:52:32]Clear old archive folders... [15:52:32]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:52:32]tlvbuf is 01E47D20 [15:52:32]SAM_PROTO_ClearQueue [15:52:32]wFMCommunicate request_size=4 [15:52:32]MH_SAM_APDU [15:52:32]CAPDU: 80 09 00 00 [15:52:32]Write to MH i2c: E2 08 00 F5 0D 80 09 00 00 00 00 00 00 74 [15:52:32]Write i2c OK [15:52:32]MH_I2C_Read... [15:52:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:32]Read from MH i2c: E2 [15:52:32]MH_I2C_Read... [15:52:32]Read from MH i2c: E2 03 00 [15:52:32]MH_I2C_Read... [15:52:32]Read from MH i2c: E2 03 00 F5 0D 00 90 00 76 [15:52:32]RAPDU: 90 00 [15:52:32]wFMCommunicate OK [15:52:32]SAM_PROTO_ClearQueue done [15:52:32]KKMCreateOFDPacket [15:52:32]OFDProtocolAddRootSTLVToBuf [15:52:32]FM_MakeSignedData [15:52:32]FM_MakeSignedData [15:52:32]SAM_PROTO_SignData [15:52:32]wFMCommunicate request_size=4 [15:52:32]MH_SAM_APDU [15:52:32]CAPDU: 80 0D 01 02 [15:52:32]Write to MH i2c: E2 08 00 F6 0D 80 0D 01 02 00 00 00 00 7C [15:52:32]Write i2c OK [15:52:32]MH_I2C_Read... [15:52:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:32]Read from MH i2c: E2 [15:52:32]MH_I2C_Read... [15:52:32]Read from MH i2c: E2 03 00 [15:52:32]MH_I2C_Read... [15:52:32]Read from MH i2c: E2 03 00 F6 0D 00 90 00 77 [15:52:32]RAPDU: 90 00 [15:52:32]wFMCommunicate OK [15:52:32]wFMCommunicate request_size=255 [15:52:32]MH_SAM_APDU [15:52:32]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 5A 00 00 00 F4 03 04 00 C1 BE 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [15:52:32]Write to MH i2c: E2 02 01 F7 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 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 5A 00 00 00 F4 03 04 00 C1 BE 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 CF [15:52:32]Write i2c OK [15:52:32]MH_I2C_Read... [15:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:33]Read from MH i2c: E2 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 03 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 03 00 F7 0D 00 90 00 78 [15:52:33]RAPDU: 90 00 [15:52:33]wFMCommunicate OK [15:52:33]wFMCommunicate request_size=41 [15:52:33]MH_SAM_APDU [15:52:33]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9E C5 00 00 35 04 06 00 86 8A 14 DD 1F 67 [15:52:33]Write to MH i2c: E2 2C 00 F8 0D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9E C5 00 00 35 04 06 00 86 8A 14 DD 1F 67 00 00 2C [15:52:33]Write i2c OK [15:52:33]MH_I2C_Read... [15:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:33]Read from MH i2c: E2 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 03 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 03 00 F8 0D 00 90 00 79 [15:52:33]RAPDU: 90 00 [15:52:33]wFMCommunicate OK [15:52:33]wFMCommunicate request_size=4 [15:52:33]MH_SAM_APDU [15:52:33]CAPDU: 80 0D 03 02 [15:52:33]Write to MH i2c: E2 08 00 F9 0D 80 0D 03 02 00 00 00 00 81 [15:52:33]Write i2c OK [15:52:33]MH_I2C_Read... [15:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:33]Read from MH i2c: E2 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 0B 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 0B 00 F9 0D 00 AE 86 21 42 57 A2 E2 A1 90 00 95 [15:52:33]RAPDU: AE 86 21 42 57 A2 E2 A1 90 00 [15:52:33]wFMCommunicate OK [15:52:33]SAM_PROTO_SignData done [15:52:33]FM_MakeSignedData done [15:52:33]CreateOFDProtocolMessage [15:52:33]wFMCommunicate request_size=4 [15:52:33]MH_SAM_APDU [15:52:33]CAPDU: 80 11 00 00 [15:52:33]Write to MH i2c: E2 08 00 FA 0D 80 11 00 00 00 00 00 00 81 [15:52:33]Write i2c OK [15:52:33]MH_I2C_Read... [15:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:33]Read from MH i2c: E2 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 17 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 17 00 FA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C8 [15:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:52:33]wFMCommunicate OK [15:52:33]CreateOFDProtocolMessage done [15:52:33]OFDSenderStorePacket 50590 [15:52:33]StoreOFDPacket docnum=50590 [15:52:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 CB A7 26 01 C6 D2 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 5A 00 00 00 F4 03 04 00 C1 BE 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9E C5 00 00 35 04 06 00 86 8A 14 DD 1F 67 AE 86 21 42 57 A2 E2 A1 [15:52:33]CheckFolder [15:52:33]dirname=/storage/ofd_packets [15:52:33]CheckFolder done [15:52:33]ProducePacketName [15:52:33]name=ofd_packets/00050590 [15:52:33]NVStorageSaveData ofd_packets/00050590 [15:52:33]File name is /storage/ofd_packets/00050590 [15:52:33]Write 332 bytes [15:52:33]NVStorageSaveData done [15:52:33]OFDSenderStorePacket done [15:52:33]KKMCreateOFDPacket done [15:52:33]NVStorageSaveData kkm_last_timestamp [15:52:33]File name is /storage/kkm_last_timestamp [15:52:33]Write 4 bytes [15:52:33]NVStorageSaveData done [15:52:33]ExternCall_PrintAddStr [15:52:33]wPrintStart [15:52:33]Write to MH i2c: 01 00 00 FB 0D 08 [15:52:33]Write i2c OK [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: 01 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: 01 07 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: 01 07 00 FB 0D 00 00 00 00 00 FF 0F 1D [15:52:33]RasterBufferAndPrint [15:52:33]line Счет N : (3)164499 [15:52:33]line ИНН: 02508201610067 [15:52:33]line Контрольно-Кассовый Чек [15:52:33]line ПРОДАЖА [15:52:33]line Товар: 2000036220012 [15:52:33]line Кофе Капучино XL(GABB TRADE) [15:52:33]line 1.000 * 130.00 [15:52:33]line = 130.00 [15:52:33]line НДС 12% НСП 1% [15:52:33]line > о реализуемом товаре [15:52:33]line ИТОГО: 130.00 [15:52:33]line НСП 1% : 1.15 [15:52:33]line НДС 12% : 13.80 [15:52:33]line Наличными: 130.00 [15:52:33]line Безнал.: 0.00 [15:52:33]line Место: АЗС № 80 "Партнер Нефть" [15:52:33]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:52:33]line СНО: Общий режим [15:52:33]line Чек 90 25.10.2024 15:52 [15:52:33]line Смена: 493 ФФД: 1.0 [15:52:33]line ЗНМ: 0300000090 [15:52:33]line РНМ: 0000000000097022 [15:52:33]line Версия ККМ: 001 [15:52:33]line ФМ: 0000000000875000 [15:52:33]line ФД: 50590 [15:52:33]line ФПД: 147927613644647 [15:52:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155233&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50590&fm=147927613644647&tin=02508201610067®Number=0000000000097022&sum=13000 [15:52:33]line 0 [15:52:33]OFD Sender: Processing packet 50590 [packets to send 7, broken 6] [15:52:33]ProducePacketName [15:52:33]name=ofd_packets/00050590 [15:52:33]OFD Sender: To server: pG, [15:52:33]CommunicateWithHost lk.salyk.kg:30040 [15:52:33]ConnectInit lk.salyk.kg [15:52:33]written 0, free lines is 4095 [15:52:33]Connected sock=10 [15:52:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 CB A7 26 01 C6 D2 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 5A 00 00 00 F4 03 04 00 C1 BE 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9E C5 00 00 35 04 06 00 86 8A 14 DD 1F 67 AE 86 21 42 57 A2 E2 A1 [15:52:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 B6 9D 47 00 81 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9E C5 00 00 F4 03 04 00 52 6A 1B 67 B6 04 01 00 00 B0 8F C8 0B 60 10 2E 95 [15:52:33]CommunicateWithHost err = 0 [15:52:33]CheckOFDResponse [15:52:33]1017 (14) - 77093643461234 [15:52:33]1041 (16) - 0000000000875000 [15:52:33]1040 (4) - 50590 [15:52:33]1012 (4) - 25.10.2024 09:52 [15:52:33]1206 (1) - 0 [15:52:33]OFD Sender: Remove packet 50590 [15:52:33]ProducePacketName [15:52:33]name=ofd_packets/00050590 [15:52:33]NVStorageDeleteData [15:52:34]Write to MH i2c: 01 00 00 24 0E 32 [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: 01 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: 01 07 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: 01 07 00 24 0E 00 00 00 00 00 11 0D 57 [15:52:34]RasterBufferAndPrint [15:52:34]line [15:52:34]line [15:52:34]line [15:52:34]line [15:52:34]line [15:52:34]written 0, free lines is 3351 [15:52:34]process_action close_receipt done [15:52:34]requested_data is exist [15:52:34]produce_requested_data [15:52:34]requested_item fm.sn is exist - process it [15:52:34]wFMCommunicate request_size=4 [15:52:34]MH_SAM_APDU [15:52:34]CAPDU: 80 11 00 00 [15:52:34]Write to MH i2c: E2 08 00 2B 0E 80 11 00 00 00 00 00 00 B3 [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 17 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 17 00 2B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FA [15:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:52:34]wFMCommunicate OK [15:52:34]requested_item fd.num is exist - process it [15:52:34]SAM_PROTO_GetFieldsCounters [15:52:34]wFMCommunicate request_size=4 [15:52:34]MH_SAM_APDU [15:52:34]CAPDU: 80 13 00 00 [15:52:34]Write to MH i2c: E2 08 00 2C 0E 80 13 00 00 00 00 00 00 B6 [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 62 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 62 00 2C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [15:52:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9E C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:34]wFMCommunicate OK [15:52:34]SAM_PROTO_GetFieldsCounters done [15:52:34]requested_item shift.num is exist - process it [15:52:34]requested_item shift.opened is exist - process it [15:52:34]req_shift_opened [15:52:34]FM_GetShiftState [15:52:34]SAM_PROTO_GetShiftState [15:52:34]wFMCommunicate request_size=4 [15:52:34]MH_SAM_APDU [15:52:34]CAPDU: 80 13 01 00 [15:52:34]Write to MH i2c: E2 08 00 2D 0E 80 13 01 00 00 00 00 00 B8 [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 0E 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 0E 00 2D 0E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B0 [15:52:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:52:34]wFMCommunicate OK [15:52:34]SAM_PROTO_GetShiftState done [15:52:34]FM_GetShiftState done [15:52:34]req_shift_opened done [15:52:34]requested_item shift.open_date is exist - process it [15:52:34]req_shift_open_date [15:52:34]req_shift_open_date done [15:52:34]produce_requested_data done [15:52:34]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50590,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:52:34]process_action_free close_receipt [15:52:34]json_value_free [15:52:34]json_value_free done [15:52:34]process_json_proto returns [15:52:34]Send response to host [15:52:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50590,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:52:34]free response buf [15:52:34]execute_script done [15:52:34]execute_script returns [15:52:34]free content buf [15:52:34]Sock 9.Close socket [15:52:34]Sock 9.Thread stoped [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:58]accept exits with 7 [15:57:58]New connection [15:57:58]New thread 3066789220 created [15:57:58]Thread 3066645860 joined [15:57:58]Waiting for new connection... [15:57:58] Sock 7.Parse request [15:57:58]Sock 7.Check first char [15:57:58]Sock 7.First char is OK [15:57:58]request: POST /json_proto HTTP/1.0 [15:57:58]Method: POST [15:57:58]URL: /json_proto [15:57:58]Method is POST - this is cgi request [15:57:58]url: /json_proto [15:57:58]query_string will be loaded in cgi processing [15:57:58]execute_cgi json_proto POST (null) [15:57:58]execute_cgi path=json_proto method=POST [15:57:58]POST find Content-Length [15:57:58]Host: 172.17.49.196:8080 [15:57:58]Content-Length: 1267 [15:57:58]Content-Type: application/json [15:57:58] [15:57:58]POST finish read [15:57:58]Found Content-Length = 1267 [15:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164500", "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" : 120.00, "quantity" : 1.000, "sum" : 120.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 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:58]execute_script... [15:57: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)164500", "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" : 120.00, "quantity" : 1.000, "sum" : 120.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 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:58]POST & json_proto [15:57:58]process_json_proto [15:57:58]json parsed OK: [15:57:58]protocol is kg_v1.0 [15:57:58]action value=close_receipt [15:57:58]process_action close_receipt [15:57:58]cmd_close_receipt [15:57:58]MH_GetDate [15:57:58]Write to MH i2c: F0 00 00 2E 0E 2B [15:57:58]Write i2c OK [15:57:58]MH_I2C_Read... [15:57:58]Read from MH i2c: F0 [15:57:58]MH_I2C_Read... [15:57:58]Read from MH i2c: F0 09 00 [15:57:58]MH_I2C_Read... [15:57:58]Read from MH i2c: F0 09 00 2E 0E 00 08 C0 1B 67 BD 3B 11 67 EE [15:57:58]GetLastDocTimeStamp 1729871553 [15:57:58]current date 1729871880 [15:57:58]FM_GetShiftState [15:57:58]SAM_PROTO_GetShiftState [15:57:58]wFMCommunicate request_size=4 [15:57:58]MH_SAM_APDU [15:57:58]CAPDU: 80 13 01 00 [15:57:58]Write to MH i2c: E2 08 00 2F 0E 80 13 01 00 00 00 00 00 BA [15:57:58]Write i2c OK [15:57:58]MH_I2C_Read... [15:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:58]Read from MH i2c: E2 [15:57:58]MH_I2C_Read... [15:57:58]Read from MH i2c: E2 0E 00 [15:57:58]MH_I2C_Read... [15:57:58]Read from MH i2c: E2 0E 00 2F 0E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B2 [15:57:58]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:57:58]wFMCommunicate OK [15:57:58]SAM_PROTO_GetShiftState done [15:57:58]FM_GetShiftState done [15:57:58]opened in 1729815177 [15:57:58]opened+sec_in_day 1729901577 [15:57:58]quantity*price = 12000 [15:57:58]sum+1 = 12001 [15:57:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 198.00 НСП 1% : 1.75 НДС 12% : 21.02 Наличными: 198.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 91 25.10.2024 15:58 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50591 ФПД: 8294211449459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155800&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50591&fm=8294211449459&tin=02508201610067®Number=0000000000097022&sum=19800 0 [15:57:59]StoreToDocumentArchive [15:57:59]shift 493 fd 50591 [15:57:59]save to /storage/0493/doc_00050591 [15:57:59]save last doc name /storage/0493/doc_00050591 to /storage/kkm_last_doc_name [15:57:59]save OK [15:57:59]Clear old archive folders... [15:57:59]ProcessDocumentItem done err = 0, tmpTLVsize=524 [15:57:59]tlvbuf is 01E3DA40 [15:57:59]SAM_PROTO_ClearQueue [15:57:59]wFMCommunicate request_size=4 [15:57:59]MH_SAM_APDU [15:57:59]CAPDU: 80 09 00 00 [15:57:59]Write to MH i2c: E2 08 00 3C 0E 80 09 00 00 00 00 00 00 BC [15:57:59]Write i2c OK [15:57:59]MH_I2C_Read... [15:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:59]Read from MH i2c: E2 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: E2 03 00 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: E2 03 00 3C 0E 00 90 00 BE [15:57:59]RAPDU: 90 00 [15:57:59]wFMCommunicate OK [15:57:59]SAM_PROTO_ClearQueue done [15:57:59]KKMCreateOFDPacket [15:57:59]OFDProtocolAddRootSTLVToBuf [15:57:59]FM_MakeSignedData [15:57:59]FM_MakeSignedData [15:57:59]SAM_PROTO_SignData [15:57:59]wFMCommunicate request_size=4 [15:57:59]MH_SAM_APDU [15:57:59]CAPDU: 80 0D 01 02 [15:57:59]Write to MH i2c: E2 08 00 3D 0E 80 0D 01 02 00 00 00 00 C4 [15:57:59]Write i2c OK [15:57:59]MH_I2C_Read... [15:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:59]Read from MH i2c: E2 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: E2 03 00 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [15:57:59]RAPDU: 90 00 [15:57:59]wFMCommunicate OK [15:57:59]wFMCommunicate request_size=255 [15:57:59]MH_SAM_APDU [15:57:59]CAPDU: 80 0D 02 02 FA 03 00 0C 02 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 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 [15:57:59]Write to MH i2c: E2 02 01 3E 0E 80 0D 02 02 FA 00 03 00 0C 02 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 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 00 00 0C [15:57:59]Write i2c OK [15:57:59]MH_I2C_Read... [15:57:59]OFD Sender: No OFD packet to send [15:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:59]Read from MH i2c: E2 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: E2 03 00 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: E2 03 00 3E 0E 00 90 00 C0 [15:57:59]RAPDU: 90 00 [15:57:59]wFMCommunicate OK [15:57:59]wFMCommunicate request_size=255 [15:57:59]MH_SAM_APDU [15:57:59]CAPDU: 80 0D 02 02 FA 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 08 C0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [15:57:59]Write to MH i2c: E2 02 01 3F 0E 80 0D 02 02 FA 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 08 C0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 FE [15:57:59]Write i2c OK [15:57:59]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 03 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 03 00 3F 0E 00 90 00 C1 [15:58:00]RAPDU: 90 00 [15:58:00]wFMCommunicate OK [15:58:00]wFMCommunicate request_size=33 [15:58:00]MH_SAM_APDU [15:58:00]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C5 00 00 35 04 06 00 07 8B 25 86 F2 73 [15:58:00]Write to MH i2c: E2 24 00 40 0E 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C5 00 00 35 04 06 00 07 8B 25 86 F2 73 00 00 51 [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 03 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 03 00 40 0E 00 90 00 C2 [15:58:00]RAPDU: 90 00 [15:58:00]wFMCommunicate OK [15:58:00]wFMCommunicate request_size=4 [15:58:00]MH_SAM_APDU [15:58:00]CAPDU: 80 0D 03 02 [15:58:00]Write to MH i2c: E2 08 00 41 0E 80 0D 03 02 00 00 00 00 CA [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 0B 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 0B 00 41 0E 00 6D 45 2B 32 35 1A 19 52 90 00 94 [15:58:00]RAPDU: 6D 45 2B 32 35 1A 19 52 90 00 [15:58:00]wFMCommunicate OK [15:58:00]SAM_PROTO_SignData done [15:58:00]FM_MakeSignedData done [15:58:00]CreateOFDProtocolMessage [15:58:00]wFMCommunicate request_size=4 [15:58:00]MH_SAM_APDU [15:58:00]CAPDU: 80 11 00 00 [15:58:00]Write to MH i2c: E2 08 00 42 0E 80 11 00 00 00 00 00 00 CA [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 17 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 17 00 42 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 11 [15:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:58:00]wFMCommunicate OK [15:58:00]CreateOFDProtocolMessage done [15:58:00]OFDSenderStorePacket 50591 [15:58:00]StoreOFDPacket docnum=50591 [15:58:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 02 00 00 AB 59 18 02 CF 92 5A 03 01 00 03 00 0C 02 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 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 08 C0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C5 00 00 35 04 06 00 07 8B 25 86 F2 73 6D 45 2B 32 35 1A 19 52 [15:58:00]CheckFolder [15:58:00]dirname=/storage/ofd_packets [15:58:00]CheckFolder done [15:58:00]ProducePacketName [15:58:00]name=ofd_packets/00050591 [15:58:00]NVStorageSaveData ofd_packets/00050591 [15:58:00]File name is /storage/ofd_packets/00050591 [15:58:00]Write 574 bytes [15:58:00]NVStorageSaveData done [15:58:00]OFDSenderStorePacket done [15:58:00]KKMCreateOFDPacket done [15:58:00]NVStorageSaveData kkm_last_timestamp [15:58:00]File name is /storage/kkm_last_timestamp [15:58:00]Write 4 bytes [15:58:00]NVStorageSaveData done [15:58:00]ExternCall_PrintAddStr [15:58:00]wPrintStart [15:58:00]Write to MH i2c: 01 00 00 43 0E 51 [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: 01 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: 01 07 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: 01 07 00 43 0E 00 00 00 00 00 FF 0F 66 [15:58:00]RasterBufferAndPrint [15:58:00]line Счет N : (3)164500 [15:58:00]line ИНН: 02508201610067 [15:58:00]line Контрольно-Кассовый Чек [15:58:00]line ПРОДАЖА [15:58:00]line Товар: 5449000027474 [15:58:00]line Напиток FuzeTea зел чай манго,ромашка 1л [15:58:00]line 1.000 * 120.00 [15:58:00]line = 120.00 [15:58:00]line НДС 12% НСП 1% [15:58:00]line > о реализуемом товаре [15:58:00]line Товар: 4700000160358 [15:58:00]line Вода Легенда 1л [15:58:00]line 1.000 * 50.00 [15:58:00]line = 50.00 [15:58:00]line НДС 12% НСП 1% [15:58:00]line > о реализуемом товаре [15:58:00]line Товар: 2000053020015 [15:58:00]line Бумажные стаканы 250мл 1шт [15:58:00]line 4.000 * 7.00 [15:58:00]line = 28.00 [15:58:00]line НДС 12% НСП 1% [15:58:00]line > о реализуемом товаре [15:58:00]line ИТОГО: 198.00 [15:58:00]line НСП 1% : 1.75 [15:58:00]line НДС 12% : 21.02 [15:58:00]line Наличными: 198.00 [15:58:00]line Безнал.: 0.00 [15:58:00]line Место: АЗС № 80 "Партнер Нефть" [15:58:00]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:58:00]line СНО: Общий режим [15:58:00]line Чек 91 25.10.2024 15:58 [15:58:00]line Смена: 493 ФФД: 1.0 [15:58:00]line ЗНМ: 0300000090 [15:58:00]line РНМ: 0000000000097022 [15:58:00]line Версия ККМ: 001 [15:58:00]line ФМ: 0000000000875000 [15:58:00]line ФД: 50591 [15:58:00]line ФПД: 8294211449459 [15:58:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155800&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50591&fm=8294211449459&tin=02508201610067®Number=0000000000097022&sum=19800 [15:58:00]line 0 [15:58:00]OFD Sender: Processing packet 50591 [packets to send 7, broken 6] [15:58:00]ProducePacketName [15:58:00]name=ofd_packets/00050591 [15:58:00]OFD Sender: To server: pG, [15:58:00]CommunicateWithHost lk.salyk.kg:30040 [15:58:00]ConnectInit lk.salyk.kg [15:58:00]written 0, free lines is 4095 [15:58:00]Connected sock=10 [15:58:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 02 00 00 AB 59 18 02 CF 92 5A 03 01 00 03 00 0C 02 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 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 08 C0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C5 00 00 35 04 06 00 07 8B 25 86 F2 73 6D 45 2B 32 35 1A 19 52 [15:58:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 BB E2 47 00 60 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 9F C5 00 00 F4 03 04 00 99 6B 1B 67 B6 04 01 00 00 26 12 DE 19 71 BE F6 3E [15:58:01]CommunicateWithHost err = 0 [15:58:01]CheckOFDResponse [15:58:01]1017 (14) - 77093643461234 [15:58:01]1041 (16) - 0000000000875000 [15:58:01]1040 (4) - 50591 [15:58:01]1012 (4) - 25.10.2024 09:57 [15:58:01]1206 (1) - 0 [15:58:01]OFD Sender: Remove packet 50591 [15:58:01]ProducePacketName [15:58:01]name=ofd_packets/00050591 [15:58:01]NVStorageDeleteData [15:58:01]Write to MH i2c: 01 00 00 79 0E 87 [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: 01 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: 01 07 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: 01 07 00 79 0E 00 00 00 00 00 48 0C E2 [15:58:01]RasterBufferAndPrint [15:58:01]line [15:58:01]line [15:58:01]line [15:58:01]line [15:58:01]line [15:58:01]written 0, free lines is 3151 [15:58:01]process_action close_receipt done [15:58:01]requested_data is exist [15:58:01]produce_requested_data [15:58:01]requested_item fm.sn is exist - process it [15:58:01]wFMCommunicate request_size=4 [15:58:01]MH_SAM_APDU [15:58:01]CAPDU: 80 11 00 00 [15:58:01]Write to MH i2c: E2 08 00 80 0E 80 11 00 00 00 00 00 00 08 [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:01]Read from MH i2c: E2 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 17 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 17 00 80 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4F [15:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:58:01]wFMCommunicate OK [15:58:01]requested_item fd.num is exist - process it [15:58:01]SAM_PROTO_GetFieldsCounters [15:58:01]wFMCommunicate request_size=4 [15:58:01]MH_SAM_APDU [15:58:01]CAPDU: 80 13 00 00 [15:58:01]Write to MH i2c: E2 08 00 81 0E 80 13 00 00 00 00 00 00 0B [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:01]Read from MH i2c: E2 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 62 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 62 00 81 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [15:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 9F C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:01]wFMCommunicate OK [15:58:01]SAM_PROTO_GetFieldsCounters done [15:58:01]requested_item shift.num is exist - process it [15:58:01]requested_item shift.opened is exist - process it [15:58:01]req_shift_opened [15:58:01]FM_GetShiftState [15:58:01]SAM_PROTO_GetShiftState [15:58:01]wFMCommunicate request_size=4 [15:58:01]MH_SAM_APDU [15:58:01]CAPDU: 80 13 01 00 [15:58:01]Write to MH i2c: E2 08 00 82 0E 80 13 01 00 00 00 00 00 0D [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]OFD Sender: No OFD packet to send [15:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:01]Read from MH i2c: E2 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 0E 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 0E 00 82 0E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 05 [15:58:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:58:01]wFMCommunicate OK [15:58:01]SAM_PROTO_GetShiftState done [15:58:01]FM_GetShiftState done [15:58:01]req_shift_opened done [15:58:01]requested_item shift.open_date is exist - process it [15:58:01]req_shift_open_date [15:58:01]req_shift_open_date done [15:58:01]produce_requested_data done [15:58:01]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50591,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:58:01]process_action_free close_receipt [15:58:01]json_value_free [15:58:01]json_value_free done [15:58:01]process_json_proto returns [15:58:01]Send response to host [15:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50591,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:58:01]free response buf [15:58:01]execute_script done [15:58:01]execute_script returns [15:58:01]free content buf [15:58:01]Sock 7.Close socket [15:58:01]Sock 7.Thread stoped [15:58:05]accept exits with 9 [15:58:05]New connection [15:58:05]New thread 3066645860 created [15:58:05]Thread 3066789220 joined [15:58:05]Waiting for new connection... [15:58:05] Sock 9.Parse request [15:58:05]Sock 9.Check first char [15:58:05]Sock 9.First char is OK [15:58:05]request: POST /json_proto HTTP/1.0 [15:58:05]Method: POST [15:58:05]URL: /json_proto [15:58:05]Method is POST - this is cgi request [15:58:05]url: /json_proto [15:58:05]query_string will be loaded in cgi processing [15:58:05]execute_cgi json_proto POST (null) [15:58:05]execute_cgi path=json_proto method=POST [15:58:05]POST find Content-Length [15:58:05]Host: 172.17.49.196:8080 [15:58:05]Content-Length: 623 [15:58:05]Content-Type: application/json [15:58:05] [15:58:05]POST finish read [15:58:05]Found Content-Length = 623 [15:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164501", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:05]execute_script... [15:58:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164501", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:05]POST & json_proto [15:58:05]process_json_proto [15:58:05]json parsed OK: [15:58:05]protocol is kg_v1.0 [15:58:05]action value=close_receipt [15:58:05]process_action close_receipt [15:58:05]cmd_close_receipt [15:58:05]MH_GetDate [15:58:05]Write to MH i2c: F0 00 00 83 0E 80 [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: F0 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: F0 09 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: F0 09 00 83 0E 00 0F C0 1B 67 BD 3B 11 67 4A [15:58:05]GetLastDocTimeStamp 1729871880 [15:58:05]current date 1729871887 [15:58:05]FM_GetShiftState [15:58:05]SAM_PROTO_GetShiftState [15:58:05]wFMCommunicate request_size=4 [15:58:05]MH_SAM_APDU [15:58:05]CAPDU: 80 13 01 00 [15:58:05]Write to MH i2c: E2 08 00 84 0E 80 13 01 00 00 00 00 00 0F [15:58:05]Write i2c OK [15:58:05]MH_I2C_Read... [15:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:05]Read from MH i2c: E2 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 0E 00 [15:58:05]MH_I2C_Read... [15:58:05]Read from MH i2c: E2 0E 00 84 0E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 07 [15:58:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [15:58:05]wFMCommunicate OK [15:58:05]SAM_PROTO_GetShiftState done [15:58:05]FM_GetShiftState done [15:58:05]opened in 1729815177 [15:58:05]opened+sec_in_day 1729901577 [15:58:05]quantity*price = 14400 [15:58:05]sum+1 = 14401 [15:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 92 25.10.2024 15:58 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50592 ФПД: 151508930187209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155807&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50592&fm=151508930187209&tin=02508201610067®Number=0000000000097022&sum=14400 0 [15:58:06]StoreToDocumentArchive [15:58:06]shift 493 fd 50592 [15:58:06]save to /storage/0493/doc_00050592 [15:58:06]save last doc name /storage/0493/doc_00050592 to /storage/kkm_last_doc_name [15:58:06]OFD Sender: No OFD packet to send [15:58:06]save OK [15:58:06]Clear old archive folders... [15:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:58:06]tlvbuf is 01EC4240 [15:58:06]SAM_PROTO_ClearQueue [15:58:06]wFMCommunicate request_size=4 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 09 00 00 [15:58:06]Write to MH i2c: E2 08 00 91 0E 80 09 00 00 00 00 00 00 11 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:06]Read from MH i2c: E2 03 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 03 00 91 0E 00 90 00 13 [15:58:06]RAPDU: 90 00 [15:58:06]wFMCommunicate OK [15:58:06]SAM_PROTO_ClearQueue done [15:58:06]KKMCreateOFDPacket [15:58:06]OFDProtocolAddRootSTLVToBuf [15:58:06]FM_MakeSignedData [15:58:06]FM_MakeSignedData [15:58:06]SAM_PROTO_SignData [15:58:06]wFMCommunicate request_size=4 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 0D 01 02 [15:58:06]Write to MH i2c: E2 08 00 92 0E 80 0D 01 02 00 00 00 00 19 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:06]Read from MH i2c: E2 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 03 00 [15:58:06]MH_I2C_Read... [15:58:06]Read from MH i2c: E2 03 00 92 0E 00 90 00 14 [15:58:06]RAPDU: 90 00 [15:58:06]wFMCommunicate OK [15:58:06]wFMCommunicate request_size=255 [15:58:06]MH_SAM_APDU [15:58:06]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 0F C0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [15:58:06]Write to MH i2c: E2 02 01 93 0E 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 0F C0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 B4 [15:58:06]Write i2c OK [15:58:06]MH_I2C_Read... [15:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:07]Read from MH i2c: E2 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 03 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 03 00 93 0E 00 90 00 15 [15:58:07]RAPDU: 90 00 [15:58:07]wFMCommunicate OK [15:58:07]wFMCommunicate request_size=34 [15:58:07]MH_SAM_APDU [15:58:07]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C5 00 00 35 04 06 00 89 CB EB F6 CF C9 [15:58:07]Write to MH i2c: E2 25 00 94 0E 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C5 00 00 35 04 06 00 89 CB EB F6 CF C9 00 00 03 [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:07]Read from MH i2c: E2 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 03 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [15:58:07]RAPDU: 90 00 [15:58:07]wFMCommunicate OK [15:58:07]wFMCommunicate request_size=4 [15:58:07]MH_SAM_APDU [15:58:07]CAPDU: 80 0D 03 02 [15:58:07]Write to MH i2c: E2 08 00 95 0E 80 0D 03 02 00 00 00 00 1E [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:07]Read from MH i2c: E2 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 0B 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 0B 00 95 0E 00 B7 AF 05 BA 62 B6 B6 E4 90 00 F6 [15:58:07]RAPDU: B7 AF 05 BA 62 B6 B6 E4 90 00 [15:58:07]wFMCommunicate OK [15:58:07]SAM_PROTO_SignData done [15:58:07]FM_MakeSignedData done [15:58:07]CreateOFDProtocolMessage [15:58:07]wFMCommunicate request_size=4 [15:58:07]MH_SAM_APDU [15:58:07]CAPDU: 80 11 00 00 [15:58:07]Write to MH i2c: E2 08 00 96 0E 80 11 00 00 00 00 00 00 1E [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:07]Read from MH i2c: E2 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 17 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 17 00 96 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 65 [15:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:58:07]wFMCommunicate OK [15:58:07]CreateOFDProtocolMessage done [15:58:07]OFDSenderStorePacket 50592 [15:58:07]StoreOFDPacket docnum=50592 [15:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 66 9C 1F 01 08 57 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 0F C0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C5 00 00 35 04 06 00 89 CB EB F6 CF C9 B7 AF 05 BA 62 B6 B6 E4 [15:58:07]CheckFolder [15:58:07]dirname=/storage/ofd_packets [15:58:07]CheckFolder done [15:58:07]ProducePacketName [15:58:07]name=ofd_packets/00050592 [15:58:07]NVStorageSaveData ofd_packets/00050592 [15:58:07]File name is /storage/ofd_packets/00050592 [15:58:07]Write 325 bytes [15:58:07]NVStorageSaveData done [15:58:07]OFDSenderStorePacket done [15:58:07]KKMCreateOFDPacket done [15:58:07]NVStorageSaveData kkm_last_timestamp [15:58:07]File name is /storage/kkm_last_timestamp [15:58:07]Write 4 bytes [15:58:07]NVStorageSaveData done [15:58:07]ExternCall_PrintAddStr [15:58:07]wPrintStart [15:58:07]Write to MH i2c: 01 00 00 97 0E A5 [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 07 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 07 00 97 0E 00 00 00 00 00 FF 0F BA [15:58:07]RasterBufferAndPrint [15:58:07]line Счет N : (3)164501 [15:58:07]line ИНН: 02508201610067 [15:58:07]line Контрольно-Кассовый Чек [15:58:07]line ПРОДАЖА [15:58:07]line Товар: 48743587 [15:58:07]line Сигареты Winston XStyle Silver [15:58:07]line 1.000 * 144.00 [15:58:07]line = 144.00 [15:58:07]line НДС 12% НСП 1% [15:58:07]line > о реализуемом товаре [15:58:07]line ИТОГО: 144.00 [15:58:07]line НСП 1% : 1.27 [15:58:07]line НДС 12% : 15.29 [15:58:07]line Наличными: 144.00 [15:58:07]line Безнал.: 0.00 [15:58:07]line Место: АЗС № 80 "Партнер Нефть" [15:58:07]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [15:58:07]line СНО: Общий режим [15:58:07]line Чек 92 25.10.2024 15:58 [15:58:07]line Смена: 493 ФФД: 1.0 [15:58:07]line ЗНМ: 0300000090 [15:58:07]line РНМ: 0000000000097022 [15:58:07]line Версия ККМ: 001 [15:58:07]line ФМ: 0000000000875000 [15:58:07]line ФД: 50592 [15:58:07]line ФПД: 151508930187209 [15:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T155807&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50592&fm=151508930187209&tin=02508201610067®Number=0000000000097022&sum=14400 [15:58:07]line 0 [15:58:07]written 0, free lines is 4095 [15:58:07]OFD Sender: Processing packet 50592 [packets to send 7, broken 6] [15:58:07]ProducePacketName [15:58:07]name=ofd_packets/00050592 [15:58:07]OFD Sender: To server: pG, [15:58:07]CommunicateWithHost lk.salyk.kg:30040 [15:58:07]ConnectInit lk.salyk.kg [15:58:07]Connected sock=10 [15:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 66 9C 1F 01 08 57 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 0F C0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C5 00 00 35 04 06 00 89 CB EB F6 CF C9 B7 AF 05 BA 62 B6 B6 E4 [15:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 68 0D 47 00 3A AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A0 C5 00 00 F4 03 04 00 A0 6B 1B 67 B6 04 01 00 00 16 A2 59 D1 CE 8F 1F 4D [15:58:07]CommunicateWithHost err = 0 [15:58:07]CheckOFDResponse [15:58:07]1017 (14) - 77093643461234 [15:58:07]1041 (16) - 0000000000875000 [15:58:07]1040 (4) - 50592 [15:58:07]1012 (4) - 25.10.2024 09:57 [15:58:07]1206 (1) - 0 [15:58:07]OFD Sender: Remove packet 50592 [15:58:07]ProducePacketName [15:58:07]name=ofd_packets/00050592 [15:58:07]NVStorageDeleteData [15:58:07]Write to MH i2c: 01 00 00 C0 0E CE [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 07 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: 01 07 00 C0 0E 00 00 00 00 00 0E 0D F0 [15:58:07]RasterBufferAndPrint [15:58:07]line [15:58:07]line [15:58:07]line [15:58:07]line [15:58:07]line [15:58:07]written 0, free lines is 3360 [15:58:07]process_action close_receipt done [15:58:07]requested_data is exist [15:58:07]produce_requested_data [15:58:07]requested_item fm.sn is exist - process it [15:58:07]wFMCommunicate request_size=4 [15:58:07]MH_SAM_APDU [15:58:07]CAPDU: 80 11 00 00 [15:58:07]Write to MH i2c: E2 08 00 C7 0E 80 11 00 00 00 00 00 00 4F [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:07]Read from MH i2c: E2 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 17 00 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 17 00 C7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 96 [15:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [15:58:07]wFMCommunicate OK [15:58:07]requested_item fd.num is exist - process it [15:58:07]SAM_PROTO_GetFieldsCounters [15:58:07]wFMCommunicate request_size=4 [15:58:07]MH_SAM_APDU [15:58:07]CAPDU: 80 13 00 00 [15:58:07]Write to MH i2c: E2 08 00 C8 0E 80 13 00 00 00 00 00 00 52 [15:58:07]Write i2c OK [15:58:07]MH_I2C_Read... [15:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:07]Read from MH i2c: E2 [15:58:07]MH_I2C_Read... [15:58:07]Read from MH i2c: E2 62 00 [15:58:07]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 62 00 C8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [15:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:08]wFMCommunicate OK [15:58:08]SAM_PROTO_GetFieldsCounters done [15:58:08]requested_item shift.num is exist - process it [15:58:08]requested_item shift.opened is exist - process it [15:58:08]req_shift_opened [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 C9 0E 80 13 01 00 00 00 00 00 54 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 [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 0E 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 0E 00 C9 0E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4C [15:58:08]RAPDU: 09 00 01 89 E2 1A 67 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]req_shift_opened done [15:58:08]requested_item shift.open_date is exist - process it [15:58:08]req_shift_open_date [15:58:08]req_shift_open_date done [15:58:08]produce_requested_data done [15:58:08]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50592,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [15:58:08]process_action_free close_receipt [15:58:08]json_value_free [15:58:08]json_value_free done [15:58:08]process_json_proto returns [15:58:08]Send response to host [15:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50592,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [15:58:08]free response buf [15:58:08]execute_script done [15:58:08]execute_script returns [15:58:08]free content buf [15:58:08]Sock 9.Close socket [15:58:08]Sock 9.Thread stoped [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:25]accept exits with 7 [16:20:25]New connection [16:20:25]New thread 3066789220 created [16:20:25]Thread 3066645860 joined [16:20:25]Waiting for new connection... [16:20:25] Sock 7.Parse request [16:20:25]Sock 7.Check first char [16:20:25]Sock 7.First char is OK [16:20:25]request: POST /json_proto HTTP/1.0 [16:20:25]Method: POST [16:20:25]URL: /json_proto [16:20:25]Method is POST - this is cgi request [16:20:25]url: /json_proto [16:20:25]query_string will be loaded in cgi processing [16:20:25]execute_cgi json_proto POST (null) [16:20:25]execute_cgi path=json_proto method=POST [16:20:25]POST find Content-Length [16:20:25]Host: 172.17.49.196:8080 [16:20:25]Content-Length: 1098 [16:20:25]Content-Type: application/json [16:20:25] [16:20:25]POST finish read [16:20:25]Found Content-Length = 1098 [16:20:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164502", "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": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:25]execute_script... [16: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)164502", "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": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:25]POST & json_proto [16:20:25]process_json_proto [16:20:25]json parsed OK: [16:20:25]protocol is kg_v1.0 [16:20:25]action value=close_receipt [16:20:25]process_action close_receipt [16:20:25]cmd_close_receipt [16:20:25]MH_GetDate [16:20:25]Write to MH i2c: F0 00 00 CA 0E C7 [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: F0 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: F0 09 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: F0 09 00 CA 0E 00 4B C5 1B 67 BD 3B 11 67 D2 [16:20:25]GetLastDocTimeStamp 1729871887 [16:20:25]current date 1729873227 [16:20:25]FM_GetShiftState [16:20:25]SAM_PROTO_GetShiftState [16:20:25]wFMCommunicate request_size=4 [16:20:25]MH_SAM_APDU [16:20:25]CAPDU: 80 13 01 00 [16:20:25]Write to MH i2c: E2 08 00 CB 0E 80 13 01 00 00 00 00 00 56 [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:25]Read from MH i2c: E2 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 0E 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 0E 00 CB 0E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4E [16:20:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:20:25]wFMCommunicate OK [16:20:25]SAM_PROTO_GetShiftState done [16:20:25]FM_GetShiftState done [16:20:25]opened in 1729815177 [16:20:25]opened+sec_in_day 1729901577 [16:20:25]quantity*price = 4000 [16:20:25]sum+1 = 4001 [16:20:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310173 Вода Адыгене 0,5л б/г 1.000 * 39.00 = 39.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173808 Жев Orbit Sweet Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 124.00 НСП 1% : 1.09 НДС 12% : 13.17 Наличными: 124.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 93 25.10.2024 16:20 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50593 ФПД: 169456883216838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162027&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50593&fm=169456883216838&tin=02508201610067®Number=0000000000097022&sum=12400 0 [16:20:26]StoreToDocumentArchive [16:20:26]shift 493 fd 50593 [16:20:26]save to /storage/0493/doc_00050593 [16:20:26]save last doc name /storage/0493/doc_00050593 to /storage/kkm_last_doc_name [16:20:26]save OK [16:20:26]Clear old archive folders... [16:20:26]ProcessDocumentItem done err = 0, tmpTLVsize=468 [16:20:26]tlvbuf is 01E5A200 [16:20:26]SAM_PROTO_ClearQueue [16:20:26]wFMCommunicate request_size=4 [16:20:26]MH_SAM_APDU [16:20:26]CAPDU: 80 09 00 00 [16:20:26]Write to MH i2c: E2 08 00 D8 0E 80 09 00 00 00 00 00 00 58 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:26]Read from MH i2c: E2 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [16:20:26]RAPDU: 90 00 [16:20:26]wFMCommunicate OK [16:20:26]SAM_PROTO_ClearQueue done [16:20:26]KKMCreateOFDPacket [16:20:26]OFDProtocolAddRootSTLVToBuf [16:20:26]FM_MakeSignedData [16:20:26]FM_MakeSignedData [16:20:26]SAM_PROTO_SignData [16:20:26]wFMCommunicate request_size=4 [16:20:26]MH_SAM_APDU [16:20:26]CAPDU: 80 0D 01 02 [16:20:26]Write to MH i2c: E2 08 00 D9 0E 80 0D 01 02 00 00 00 00 60 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:26]Read from MH i2c: E2 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 D9 0E 00 90 00 5B [16:20:26]RAPDU: 90 00 [16:20:26]wFMCommunicate OK [16:20:26]wFMCommunicate request_size=255 [16:20:26]MH_SAM_APDU [16:20:26]CAPDU: 80 0D 02 02 FA 03 00 D4 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 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 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 [16:20:26]Write to MH i2c: E2 02 01 DA 0E 80 0D 02 02 FA 00 03 00 D4 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 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 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 00 00 62 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:26]Read from MH i2c: E2 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 DA 0E 00 90 00 5C [16:20:26]RAPDU: 90 00 [16:20:26]wFMCommunicate OK [16:20:26]wFMCommunicate request_size=227 [16:20:26]MH_SAM_APDU [16:20:26]CAPDU: 80 0D 02 02 DE 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 70 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 5D 00 00 00 F4 03 04 00 4B C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C5 00 00 35 04 06 00 9A 1E C1 54 31 C6 [16:20:26]Write to MH i2c: E2 E6 00 DB 0E 80 0D 02 02 DE 00 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 70 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 5D 00 00 00 F4 03 04 00 4B C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C5 00 00 35 04 06 00 9A 1E C1 54 31 C6 00 00 42 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 03 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 03 00 DB 0E 00 90 00 5D [16:20:27]RAPDU: 90 00 [16:20:27]wFMCommunicate OK [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 0D 03 02 [16:20:27]Write to MH i2c: E2 08 00 DC 0E 80 0D 03 02 00 00 00 00 65 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 0B 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 0B 00 DC 0E 00 49 E1 A5 4F 4A 2A A5 05 90 00 A2 [16:20:27]RAPDU: 49 E1 A5 4F 4A 2A A5 05 90 00 [16:20:27]wFMCommunicate OK [16:20:27]SAM_PROTO_SignData done [16:20:27]FM_MakeSignedData done [16:20:27]CreateOFDProtocolMessage [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 11 00 00 [16:20:27]Write to MH i2c: E2 08 00 DD 0E 80 11 00 00 00 00 00 00 65 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 17 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 17 00 DD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AC [16:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:20:27]wFMCommunicate OK [16:20:27]CreateOFDProtocolMessage done [16:20:27]OFDSenderStorePacket 50593 [16:20:27]StoreOFDPacket docnum=50593 [16:20:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 E8 01 00 00 44 FC E0 01 D5 89 5A 03 01 00 03 00 D4 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 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 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 70 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 5D 00 00 00 F4 03 04 00 4B C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C5 00 00 35 04 06 00 9A 1E C1 54 31 C6 49 E1 A5 4F 4A 2A A5 05 [16:20:27]CheckFolder [16:20:27]dirname=/storage/ofd_packets [16:20:27]CheckFolder done [16:20:27]ProducePacketName [16:20:27]name=ofd_packets/00050593 [16:20:27]NVStorageSaveData ofd_packets/00050593 [16:20:27]File name is /storage/ofd_packets/00050593 [16:20:27]Write 518 bytes [16:20:27]NVStorageSaveData done [16:20:27]OFDSenderStorePacket done [16:20:27]KKMCreateOFDPacket done [16:20:27]NVStorageSaveData kkm_last_timestamp [16:20:27]File name is /storage/kkm_last_timestamp [16:20:27]Write 4 bytes [16:20:27]NVStorageSaveData done [16:20:27]ExternCall_PrintAddStr [16:20:27]wPrintStart [16:20:27]Write to MH i2c: 01 00 00 DE 0E EC [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 07 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 07 00 DE 0E 00 00 00 00 00 FF 0F 01 [16:20:27]RasterBufferAndPrint [16:20:27]line Счет N : (3)164502 [16:20:27]line ИНН: 02508201610067 [16:20:27]line Контрольно-Кассовый Чек [16:20:27]line ПРОДАЖА [16:20:27]line Товар: 4700000160211 [16:20:27]line Вода Легенда 0,5л [16:20:27]line 1.000 * 40.00 [16:20:27]line = 40.00 [16:20:27]line НДС 12% НСП 1% [16:20:27]line > о реализуемом товаре [16:20:27]line Товар: 4700000310173 [16:20:27]line Вода Адыгене 0,5л б/г [16:20:27]line 1.000 * 39.00 [16:20:27]line = 39.00 [16:20:27]line НДС 12% НСП 1% [16:20:27]line > о реализуемом товаре [16:20:27]line Товар: 50173808 [16:20:27]line Жев Orbit Sweet Mint [16:20:27]line 1.000 * 45.00 [16:20:27]line = 45.00 [16:20:27]line НДС 12% НСП 1% [16:20:27]line > о реализуемом товаре [16:20:27]line ИТОГО: 124.00 [16:20:27]line НСП 1% : 1.09 [16:20:27]line НДС 12% : 13.17 [16:20:27]line Наличными: 124.00 [16:20:27]line Безнал.: 0.00 [16:20:27]line Место: АЗС № 80 "Партнер Нефть" [16:20:27]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:20:27]line СНО: Общий режим [16:20:27]line Чек 93 25.10.2024 16:20 [16:20:27]line Смена: 493 ФФД: 1.0 [16:20:27]line ЗНМ: 0300000090 [16:20:27]line РНМ: 0000000000097022 [16:20:27]line Версия ККМ: 001 [16:20:27]line ФМ: 0000000000875000 [16:20:27]line ФД: 50593 [16:20:27]line ФПД: 169456883216838 [16:20:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162027&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50593&fm=169456883216838&tin=02508201610067®Number=0000000000097022&sum=12400 [16:20:27]line 0 [16:20:27]written 0, free lines is 4095 [16:20:27]OFD Sender: Processing packet 50593 [packets to send 7, broken 6] [16:20:27]ProducePacketName [16:20:27]name=ofd_packets/00050593 [16:20:27]OFD Sender: To server: pG, [16:20:27]CommunicateWithHost lk.salyk.kg:30040 [16:20:27]ConnectInit lk.salyk.kg [16:20:27]Connected sock=10 [16:20:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 E8 01 00 00 44 FC E0 01 D5 89 5A 03 01 00 03 00 D4 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 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 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 70 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 5D 00 00 00 F4 03 04 00 4B C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C5 00 00 35 04 06 00 9A 1E C1 54 31 C6 49 E1 A5 4F 4A 2A A5 05 [16:20:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 13 C2 47 00 B6 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A1 C5 00 00 F4 03 04 00 DC 70 1B 67 B6 04 01 00 00 AA 0C 5F 42 23 F6 CC 7E [16:20:27]CommunicateWithHost err = 0 [16:20:27]CheckOFDResponse [16:20:27]1017 (14) - 77093643461234 [16:20:27]1041 (16) - 0000000000875000 [16:20:27]1040 (4) - 50593 [16:20:27]1012 (4) - 25.10.2024 10:20 [16:20:27]1206 (1) - 0 [16:20:27]OFD Sender: Remove packet 50593 [16:20:27]ProducePacketName [16:20:27]name=ofd_packets/00050593 [16:20:27]NVStorageDeleteData [16:20:27]Write to MH i2c: 01 00 00 12 0F 21 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 07 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 07 00 12 0F 00 00 00 00 00 8F 0C C3 [16:20:27]RasterBufferAndPrint [16:20:27]line [16:20:27]line [16:20:27]line [16:20:27]line [16:20:27]line [16:20:27]written 0, free lines is 3224 [16:20:27]process_action close_receipt done [16:20:27]requested_data is exist [16:20:27]produce_requested_data [16:20:27]requested_item fm.sn is exist - process it [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 11 00 00 [16:20:27]Write to MH i2c: E2 08 00 19 0F 80 11 00 00 00 00 00 00 A2 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 17 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 17 00 19 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E9 [16:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:20:27]wFMCommunicate OK [16:20:27]requested_item fd.num is exist - process it [16:20:27]SAM_PROTO_GetFieldsCounters [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 13 00 00 [16:20:27]Write to MH i2c: E2 08 00 1A 0F 80 13 00 00 00 00 00 00 A5 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 62 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 62 00 1A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:20:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:28]wFMCommunicate OK [16:20:28]SAM_PROTO_GetFieldsCounters done [16:20:28]requested_item shift.num is exist - process it [16:20:28]requested_item shift.opened is exist - process it [16:20:28]req_shift_opened [16:20:28]FM_GetShiftState [16:20:28]SAM_PROTO_GetShiftState [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 13 01 00 [16:20:28]Write to MH i2c: E2 08 00 1B 0F 80 13 01 00 00 00 00 00 A7 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0E 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0E 00 1B 0F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 9F [16:20:28]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:20:28]wFMCommunicate OK [16:20:28]SAM_PROTO_GetShiftState done [16:20:28]FM_GetShiftState done [16:20:28]req_shift_opened done [16:20:28]requested_item shift.open_date is exist - process it [16:20:28]req_shift_open_date [16:20:28]req_shift_open_date done [16:20:28]produce_requested_data done [16:20:28]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50593,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:20:28]process_action_free close_receipt [16:20:28]json_value_free [16:20:28]json_value_free done [16:20:28]process_json_proto returns [16:20:28]Send response to host [16:20:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50593,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:20:28]free response buf [16:20:28]execute_script done [16:20:28]execute_script returns [16:20:28]free content buf [16:20:28]Sock 7.Close socket [16:20:28]Sock 7.Thread stoped [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:15]accept exits with 9 [16:21:15]New connection [16:21:15]New thread 3066645860 created [16:21:15]Thread 3066789220 joined [16:21:15]Waiting for new connection... [16:21:15] Sock 9.Parse request [16:21:15]Sock 9.Check first char [16:21:15]Sock 9.First char is OK [16:21:15]request: POST /json_proto HTTP/1.0 [16:21:15]Method: POST [16:21:15]URL: /json_proto [16:21:15]Method is POST - this is cgi request [16:21:15]url: /json_proto [16:21:15]query_string will be loaded in cgi processing [16:21:15]execute_cgi json_proto POST (null) [16:21:15]execute_cgi path=json_proto method=POST [16:21:15]POST find Content-Length [16:21:15]Host: 172.17.49.196:8080 [16:21:15]Content-Length: 641 [16:21:15]Content-Type: application/json [16:21:15] [16:21:15]POST finish read [16:21:15]Found Content-Length = 641 [16:21:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164503", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "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" ] } } [16:21:15]execute_script... [16:21: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)164503", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "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" ] } } [16:21:15]POST & json_proto [16:21:15]process_json_proto [16:21:15]json parsed OK: [16:21:15]protocol is kg_v1.0 [16:21:15]action value=close_receipt [16:21:15]process_action close_receipt [16:21:15]cmd_close_receipt [16:21:15]MH_GetDate [16:21:15]Write to MH i2c: F0 00 00 1C 0F 1A [16:21:15]Write i2c OK [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: F0 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: F0 09 00 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: F0 09 00 1C 0F 00 7D C5 1B 67 BD 3B 11 67 57 [16:21:15]GetLastDocTimeStamp 1729873227 [16:21:15]current date 1729873277 [16:21:15]FM_GetShiftState [16:21:15]SAM_PROTO_GetShiftState [16:21:15]wFMCommunicate request_size=4 [16:21:15]MH_SAM_APDU [16:21:15]CAPDU: 80 13 01 00 [16:21:15]Write to MH i2c: E2 08 00 1D 0F 80 13 01 00 00 00 00 00 A9 [16:21:15]Write i2c OK [16:21:15]MH_I2C_Read... [16:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:15]Read from MH i2c: E2 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: E2 0E 00 [16:21:15]MH_I2C_Read... [16:21:15]Read from MH i2c: E2 0E 00 1D 0F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A1 [16:21:15]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:21:15]wFMCommunicate OK [16:21:15]SAM_PROTO_GetShiftState done [16:21:15]FM_GetShiftState done [16:21:15]opened in 1729815177 [16:21:15]opened+sec_in_day 1729901577 [16:21:15]quantity*price = 4000 [16:21:15]sum+1 = 4001 [16:21:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 94 25.10.2024 16:21 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50594 ФПД: 72221700951841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162117&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50594&fm=72221700951841&tin=02508201610067®Number=0000000000097022&sum=4000 0 [16:21:16]StoreToDocumentArchive [16:21:16]shift 493 fd 50594 [16:21:16]save to /storage/0493/doc_00050594 [16:21:16]save last doc name /storage/0493/doc_00050594 to /storage/kkm_last_doc_name [16:21:16]save OK [16:21:16]Clear old archive folders... [16:21:16]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:21:16]tlvbuf is 01E5A1D0 [16:21:16]SAM_PROTO_ClearQueue [16:21:16]wFMCommunicate request_size=4 [16:21:16]MH_SAM_APDU [16:21:16]CAPDU: 80 09 00 00 [16:21:16]Write to MH i2c: E2 08 00 2A 0F 80 09 00 00 00 00 00 00 AB [16:21:16]Write i2c OK [16:21:16]MH_I2C_Read... [16:21:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:16]Read from MH i2c: E2 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 03 00 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [16:21:16]RAPDU: 90 00 [16:21:16]wFMCommunicate OK [16:21:16]SAM_PROTO_ClearQueue done [16:21:16]KKMCreateOFDPacket [16:21:16]OFDProtocolAddRootSTLVToBuf [16:21:16]FM_MakeSignedData [16:21:16]FM_MakeSignedData [16:21:16]SAM_PROTO_SignData [16:21:16]wFMCommunicate request_size=4 [16:21:16]MH_SAM_APDU [16:21:16]CAPDU: 80 0D 01 02 [16:21:16]Write to MH i2c: E2 08 00 2B 0F 80 0D 01 02 00 00 00 00 B3 [16:21:16]Write i2c OK [16:21:16]MH_I2C_Read... [16:21:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:16]Read from MH i2c: E2 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 03 00 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [16:21:16]RAPDU: 90 00 [16:21:16]wFMCommunicate OK [16:21:16]wFMCommunicate request_size=255 [16:21:16]MH_SAM_APDU [16:21:16]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 5E 00 00 00 F4 03 04 00 7D C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [16:21:16]Write to MH i2c: E2 02 01 2C 0F 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 5E 00 00 00 F4 03 04 00 7D C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 DE [16:21:16]Write i2c OK [16:21:16]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 03 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [16:21:17]RAPDU: 90 00 [16:21:17]wFMCommunicate OK [16:21:17]wFMCommunicate request_size=31 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 30 10 04 04 00 A2 C5 00 00 35 04 06 00 41 AF 6C D4 8F 21 [16:21:17]Write to MH i2c: E2 22 00 2D 0F 80 0D 02 02 1A 00 30 30 38 37 35 30 30 30 10 04 04 00 A2 C5 00 00 35 04 06 00 41 AF 6C D4 8F 21 00 00 1C [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 03 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [16:21:17]RAPDU: 90 00 [16:21:17]wFMCommunicate OK [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 0D 03 02 [16:21:17]Write to MH i2c: E2 08 00 2E 0F 80 0D 03 02 00 00 00 00 B8 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0B 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0B 00 2E 0F 00 3D 81 88 68 7D 9A CD 79 90 00 C4 [16:21:17]RAPDU: 3D 81 88 68 7D 9A CD 79 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_SignData done [16:21:17]FM_MakeSignedData done [16:21:17]CreateOFDProtocolMessage [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 11 00 00 [16:21:17]Write to MH i2c: E2 08 00 2F 0F 80 11 00 00 00 00 00 00 B8 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 2F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FF [16:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:21:17]wFMCommunicate OK [16:21:17]CreateOFDProtocolMessage done [16:21:17]OFDSenderStorePacket 50594 [16:21:17]StoreOFDPacket docnum=50594 [16:21:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 12 A6 1C 01 46 E1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 5E 00 00 00 F4 03 04 00 7D C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A2 C5 00 00 35 04 06 00 41 AF 6C D4 8F 21 3D 81 88 68 7D 9A CD 79 [16:21:17]CheckFolder [16:21:17]dirname=/storage/ofd_packets [16:21:17]CheckFolder done [16:21:17]ProducePacketName [16:21:17]name=ofd_packets/00050594 [16:21:17]NVStorageSaveData ofd_packets/00050594 [16:21:17]File name is /storage/ofd_packets/00050594 [16:21:17]Write 322 bytes [16:21:17]NVStorageSaveData done [16:21:17]OFDSenderStorePacket done [16:21:17]KKMCreateOFDPacket done [16:21:17]NVStorageSaveData kkm_last_timestamp [16:21:17]File name is /storage/kkm_last_timestamp [16:21:17]Write 4 bytes [16:21:17]NVStorageSaveData done [16:21:17]ExternCall_PrintAddStr [16:21:17]wPrintStart [16:21:17]Write to MH i2c: 01 00 00 30 0F 3F [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 07 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 07 00 30 0F 00 00 00 00 00 FF 0F 54 [16:21:17]RasterBufferAndPrint [16:21:17]line Счет N : (3)164503 [16:21:17]line ИНН: 02508201610067 [16:21:17]line Контрольно-Кассовый Чек [16:21:17]line ПРОДАЖА [16:21:17]line Товар: 40822426 [16:21:17]line Вода Бонаква 0,5л б/г [16:21:17]line 1.000 * 40.00 [16:21:17]line = 40.00 [16:21:17]line НДС 12% НСП 1% [16:21:17]line > о реализуемом товаре [16:21:17]line ИТОГО: 40.00 [16:21:17]line НСП 1% : 0.35 [16:21:17]line НДС 12% : 4.25 [16:21:17]line Наличными: 40.00 [16:21:17]line Безнал.: 0.00 [16:21:17]line Место: АЗС № 80 "Партнер Нефть" [16:21:17]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:21:17]line СНО: Общий режим [16:21:17]line Чек 94 25.10.2024 16:21 [16:21:17]line Смена: 493 ФФД: 1.0 [16:21:17]line ЗНМ: 0300000090 [16:21:17]line РНМ: 0000000000097022 [16:21:17]line Версия ККМ: 001 [16:21:17]line ФМ: 0000000000875000 [16:21:17]line ФД: 50594 [16:21:17]line ФПД: 72221700951841 [16:21:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162117&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50594&fm=72221700951841&tin=02508201610067®Number=0000000000097022&sum=4000 [16:21:17]line 0 [16:21:17]written 0, free lines is 4095 [16:21:17]OFD Sender: Processing packet 50594 [packets to send 7, broken 6] [16:21:17]ProducePacketName [16:21:17]name=ofd_packets/00050594 [16:21:17]OFD Sender: To server: pG, [16:21:17]CommunicateWithHost lk.salyk.kg:30040 [16:21:17]ConnectInit lk.salyk.kg [16:21:17]Connected sock=10 [16:21:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 12 A6 1C 01 46 E1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 5E 00 00 00 F4 03 04 00 7D C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A2 C5 00 00 35 04 06 00 41 AF 6C D4 8F 21 3D 81 88 68 7D 9A CD 79 [16:21:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 31 19 47 00 AA E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A2 C5 00 00 F4 03 04 00 0E 71 1B 67 B6 04 01 00 00 17 68 D8 EF 7E 9F 64 B5 [16:21:17]CommunicateWithHost err = 0 [16:21:17]CheckOFDResponse [16:21:17]1017 (14) - 77093643461234 [16:21:17]1041 (16) - 0000000000875000 [16:21:17]1040 (4) - 50594 [16:21:17]1012 (4) - 25.10.2024 10:21 [16:21:17]1206 (1) - 0 [16:21:17]OFD Sender: Remove packet 50594 [16:21:17]ProducePacketName [16:21:17]name=ofd_packets/00050594 [16:21:17]NVStorageDeleteData [16:21:17]Write to MH i2c: 01 00 00 58 0F 67 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 07 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 07 00 58 0F 00 00 00 00 00 20 0D 9B [16:21:17]RasterBufferAndPrint [16:21:17]line [16:21:17]line [16:21:17]line [16:21:17]line [16:21:17]line [16:21:17]written 0, free lines is 3366 [16:21:17]process_action close_receipt done [16:21:17]requested_data is exist [16:21:17]produce_requested_data [16:21:17]requested_item fm.sn is exist - process it [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 11 00 00 [16:21:17]Write to MH i2c: E2 08 00 5F 0F 80 11 00 00 00 00 00 00 E8 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 5F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 2F [16:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:21:17]wFMCommunicate OK [16:21:17]requested_item fd.num is exist - process it [16:21:17]SAM_PROTO_GetFieldsCounters [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 00 00 [16:21:17]Write to MH i2c: E2 08 00 60 0F 80 13 00 00 00 00 00 00 EB [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 60 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [16:21:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetFieldsCounters done [16:21:17]requested_item shift.num is exist - process it [16:21:17]requested_item shift.opened is exist - process it [16:21:17]req_shift_opened [16:21:17]FM_GetShiftState [16:21:17]SAM_PROTO_GetShiftState [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 01 00 [16:21:17]Write to MH i2c: E2 08 00 61 0F 80 13 01 00 00 00 00 00 ED [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 61 0F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E5 [16:21:17]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetShiftState done [16:21:17]FM_GetShiftState done [16:21:17]req_shift_opened done [16:21:17]requested_item shift.open_date is exist - process it [16:21:17]req_shift_open_date [16:21:17]req_shift_open_date done [16:21:17]produce_requested_data done [16:21:17]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50594,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:21:17]process_action_free close_receipt [16:21:17]json_value_free [16:21:17]json_value_free done [16:21:17]process_json_proto returns [16:21:17]Send response to host [16:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50594,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:21:17]free response buf [16:21:17]execute_script done [16:21:17]execute_script returns [16:21:17]free content buf [16:21:17]Sock 9.Close socket [16:21:17]Sock 9.Thread stoped [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:54]accept exits with 7 [16:21:54]New connection [16:21:54]New thread 3066789220 created [16:21:54]Thread 3066645860 joined [16:21:54]Waiting for new connection... [16:21:54] Sock 7.Parse request [16:21:54]Sock 7.Check first char [16:21:54]Sock 7.First char is OK [16:21:54]request: POST /json_proto HTTP/1.0 [16:21:54]Method: POST [16:21:54]URL: /json_proto [16:21:54]Method is POST - this is cgi request [16:21:54]url: /json_proto [16:21:54]query_string will be loaded in cgi processing [16:21:54]execute_cgi json_proto POST (null) [16:21:54]execute_cgi path=json_proto method=POST [16:21:54]POST find Content-Length [16:21:54]Host: 172.17.49.196:8080 [16:21:54]Content-Length: 768 [16:21:54]Content-Type: application/json [16:21:54] [16:21:54]POST finish read [16:21:54]Found Content-Length = 768 [16:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:54]execute_script... [16:21:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:54]POST & json_proto [16:21:54]process_json_proto [16:21:54]json parsed OK: [16:21:54]protocol is kg_v1.0 [16:21:54]action value=close_receipt [16:21:54]process_action close_receipt [16:21:54]cmd_close_receipt [16:21:54]MH_GetDate [16:21:54]Write to MH i2c: F0 00 00 62 0F 60 [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: F0 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: F0 09 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: F0 09 00 62 0F 00 A4 C5 1B 67 BD 3B 11 67 C4 [16:21:54]GetLastDocTimeStamp 1729873277 [16:21:54]current date 1729873316 [16:21:54]FM_GetShiftState [16:21:54]SAM_PROTO_GetShiftState [16:21:54]wFMCommunicate request_size=4 [16:21:54]MH_SAM_APDU [16:21:54]CAPDU: 80 13 01 00 [16:21:54]Write to MH i2c: E2 08 00 63 0F 80 13 01 00 00 00 00 00 EF [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:54]Read from MH i2c: E2 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 0E 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 0E 00 63 0F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E7 [16:21:54]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:21:54]wFMCommunicate OK [16:21:54]SAM_PROTO_GetShiftState done [16:21:54]FM_GetShiftState done [16:21:54]opened in 1729815177 [16:21:54]opened+sec_in_day 1729901577 [16:21:54]quantity*price = 50041 [16:21:54]sum+1 = 50042 [16:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 95 25.10.2024 16:21 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50595 ФПД: 276322865195282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162156&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50595&fm=276322865195282&tin=02508201610067®Number=0000000000097022&sum=50041 [16:21:55]StoreToDocumentArchive [16:21:55]shift 493 fd 50595 [16:21:55]save to /storage/0493/doc_00050595 [16:21:55]save last doc name /storage/0493/doc_00050595 to /storage/kkm_last_doc_name [16:21:55]save OK [16:21:55]Clear old archive folders... [16:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:55]tlvbuf is 01E4B520 [16:21:55]SAM_PROTO_ClearQueue [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 09 00 00 [16:21:55]Write to MH i2c: E2 08 00 70 0F 80 09 00 00 00 00 00 00 F1 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 70 0F 00 90 00 F3 [16:21:55]RAPDU: 90 00 [16:21:55]wFMCommunicate OK [16:21:55]SAM_PROTO_ClearQueue done [16:21:55]KKMCreateOFDPacket [16:21:55]OFDProtocolAddRootSTLVToBuf [16:21:55]FM_MakeSignedData [16:21:55]FM_MakeSignedData [16:21:55]SAM_PROTO_SignData [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 0D 01 02 [16:21:55]Write to MH i2c: E2 08 00 71 0F 80 0D 01 02 00 00 00 00 F9 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 71 0F 00 90 00 F4 [16:21:55]RAPDU: 90 00 [16:21:55]wFMCommunicate OK [16:21:55]wFMCommunicate request_size=255 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C5 00 00 35 04 06 00 FB [16:21:55]Write to MH i2c: E2 02 01 72 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C5 00 00 35 04 06 00 FB 00 00 63 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [16:21:55]RAPDU: 90 00 [16:21:55]wFMCommunicate OK [16:21:55]wFMCommunicate request_size=10 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 0D 02 02 05 50 6E 39 29 12 [16:21:55]Write to MH i2c: E2 0D 00 73 0F 80 0D 02 02 05 00 50 6E 39 29 12 00 00 38 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [16:21:55]RAPDU: 90 00 [16:21:55]wFMCommunicate OK [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 0D 03 02 [16:21:55]Write to MH i2c: E2 08 00 74 0F 80 0D 03 02 00 00 00 00 FE [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 0B 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 0B 00 74 0F 00 3A 28 35 B0 18 DD 65 2C 90 00 CC [16:21:55]RAPDU: 3A 28 35 B0 18 DD 65 2C 90 00 [16:21:55]wFMCommunicate OK [16:21:55]SAM_PROTO_SignData done [16:21:55]FM_MakeSignedData done [16:21:55]CreateOFDProtocolMessage [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 11 00 00 [16:21:55]Write to MH i2c: E2 08 00 75 0F 80 11 00 00 00 00 00 00 FE [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 17 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 17 00 75 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 45 [16:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:21:55]wFMCommunicate OK [16:21:55]CreateOFDProtocolMessage done [16:21:55]OFDSenderStorePacket 50595 [16:21:55]StoreOFDPacket docnum=50595 [16:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 C2 7F 07 01 FC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C5 00 00 35 04 06 00 FB 50 6E 39 29 12 3A 28 35 B0 18 DD 65 2C [16:21:55]CheckFolder [16:21:55]dirname=/storage/ofd_packets [16:21:55]CheckFolder done [16:21:55]ProducePacketName [16:21:55]name=ofd_packets/00050595 [16:21:55]NVStorageSaveData ofd_packets/00050595 [16:21:55]File name is /storage/ofd_packets/00050595 [16:21:55]Write 301 bytes [16:21:55]NVStorageSaveData done [16:21:55]OFDSenderStorePacket done [16:21:55]KKMCreateOFDPacket done [16:21:55]NVStorageSaveData kkm_last_timestamp [16:21:55]File name is /storage/kkm_last_timestamp [16:21:55]Write 4 bytes [16:21:55]NVStorageSaveData done [16:21:55]ExternCall_PrintAddStr [16:21:55]wPrintStart [16:21:55]Write to MH i2c: 01 00 00 76 0F 85 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 07 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 07 00 76 0F 00 00 00 00 00 FF 0F 9A [16:21:55]RasterBufferAndPrint [16:21:55]line Счет N : (1)15442555 [16:21:55]line ИНН: 02508201610067 [16:21:55]line Контрольно-Кассовый Чек [16:21:55]line ПРОДАЖА [16:21:55]line ТРК (МРК, ГНК) : 23 [16:21:55]line Товар: 2710124130 [16:21:55]line Аи-92-К-4 [16:21:55]line 7.480 * 66.90 [16:21:55]line = 500.41 [16:21:55]line НДС 12% НСП 1% [16:21:55]line > о реализуемом товаре [16:21:55]line ИТОГО: 500.41 [16:21:55]line НСП 1% : 4.43 [16:21:55]line НДС 12% : 53.14 [16:21:55]line Наличными: 0.00 [16:21:55]line Безнал.: 500.41 [16:21:55]line Место: АЗС № 80 "Партнер Нефть" [16:21:55]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:21:55]line СНО: Общий режим [16:21:55]line Чек 95 25.10.2024 16:21 [16:21:55]line Смена: 493 ФФД: 1.0 [16:21:55]line ЗНМ: 0300000090 [16:21:55]line РНМ: 0000000000097022 [16:21:55]line Версия ККМ: 001 [16:21:56]line Платежная система: Mbank [16:21:56]line ФМ: 0000000000875000 [16:21:56]line ФД: 50595 [16:21:56]line ФПД: 276322865195282 [16:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162156&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50595&fm=276322865195282&tin=02508201610067®Number=0000000000097022&sum=50041 [16:21:56]OFD Sender: Processing packet 50595 [packets to send 7, broken 6] [16:21:56]ProducePacketName [16:21:56]name=ofd_packets/00050595 [16:21:56]OFD Sender: To server: pG, [16:21:56]CommunicateWithHost lk.salyk.kg:30040 [16:21:56]ConnectInit lk.salyk.kg [16:21:56]written 0, free lines is 4095 [16:21:56]Connected sock=10 [16:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 C2 7F 07 01 FC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C5 00 00 35 04 06 00 FB 50 6E 39 29 12 3A 28 35 B0 18 DD 65 2C [16:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 5D 83 47 00 71 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A3 C5 00 00 F4 03 04 00 34 71 1B 67 B6 04 01 00 00 34 94 EA 5D A7 E3 3D 03 [16:21:56]CommunicateWithHost err = 0 [16:21:56]CheckOFDResponse [16:21:56]1017 (14) - 77093643461234 [16:21:56]1041 (16) - 0000000000875000 [16:21:56]1040 (4) - 50595 [16:21:56]1012 (4) - 25.10.2024 10:21 [16:21:56]1206 (1) - 0 [16:21:56]OFD Sender: Remove packet 50595 [16:21:56]ProducePacketName [16:21:56]name=ofd_packets/00050595 [16:21:56]NVStorageDeleteData [16:21:56]Write to MH i2c: 01 00 00 9F 0F AE [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 17 0D D9 [16:21:56]RasterBufferAndPrint [16:21:56]line [16:21:56]line [16:21:56]line [16:21:56]line [16:21:56]line [16:21:56]written 0, free lines is 3357 [16:21:56]process_action close_receipt done [16:21:56]requested_data is exist [16:21:56]produce_requested_data [16:21:56]requested_item fm.sn is exist - process it [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 11 00 00 [16:21:56]Write to MH i2c: E2 08 00 A6 0F 80 11 00 00 00 00 00 00 2F [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 A6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 76 [16:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:21:56]wFMCommunicate OK [16:21:56]requested_item fd.num is exist - process it [16:21:56]SAM_PROTO_GetFieldsCounters [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 13 00 00 [16:21:56]Write to MH i2c: E2 08 00 A7 0F 80 13 00 00 00 00 00 00 32 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 62 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 62 00 A7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [16:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_GetFieldsCounters done [16:21:56]requested_item shift.num is exist - process it [16:21:56]requested_item shift.opened is exist - process it [16:21:56]req_shift_opened [16:21:56]FM_GetShiftState [16:21:56]SAM_PROTO_GetShiftState [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 13 01 00 [16:21:56]Write to MH i2c: E2 08 00 A8 0F 80 13 01 00 00 00 00 00 34 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0E 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0E 00 A8 0F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2C [16:21:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_GetShiftState done [16:21:56]FM_GetShiftState done [16:21:56]req_shift_opened done [16:21:56]requested_item shift.open_date is exist - process it [16:21:56]req_shift_open_date [16:21:56]req_shift_open_date done [16:21:56]produce_requested_data done [16:21:56]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50595,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:21:56]process_action_free close_receipt [16:21:56]json_value_free [16:21:56]json_value_free done [16:21:56]process_json_proto returns [16:21:56]Send response to host [16:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50595,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:21:56]free response buf [16:21:56]execute_script done [16:21:56]execute_script returns [16:21:56]free content buf [16:21:56]Sock 7.Close socket [16:21:56]Sock 7.Thread stoped [16:21:57]OFD Sender: No OFD packet to send [16:21:59]accept exits with 9 [16:21:59]New connection [16:21:59]New thread 3066645860 created [16:21:59]Thread 3066789220 joined [16:21:59]Waiting for new connection... [16:21:59] Sock 9.Parse request [16:21:59]Sock 9.Check first char [16:21:59]Sock 9.First char is OK [16:21:59]request: POST /json_proto HTTP/1.0 [16:21:59]Method: POST [16:21:59]URL: /json_proto [16:21:59]Method is POST - this is cgi request [16:21:59]url: /json_proto [16:21:59]query_string will be loaded in cgi processing [16:21:59]execute_cgi json_proto POST (null) [16:21:59]execute_cgi path=json_proto method=POST [16:21:59]POST find Content-Length [16:21:59]Host: 172.17.49.196:8080 [16:21:59]Content-Length: 684 [16:21:59]Content-Type: application/json [16:21:59] [16:21:59]POST finish read [16:21:59]Found Content-Length = 684 [16:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 38.770, "sum" : 2876.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2876.00, "total" : 2876.00, "payments": [ { "type": 0, "sum" : 2876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:59]execute_script... [16:21:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 38.770, "sum" : 2876.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2876.00, "total" : 2876.00, "payments": [ { "type": 0, "sum" : 2876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:59]POST & json_proto [16:21:59]process_json_proto [16:21:59]json parsed OK: [16:21:59]protocol is kg_v1.0 [16:21:59]action value=close_receipt [16:21:59]process_action close_receipt [16:21:59]cmd_close_receipt [16:21:59]MH_GetDate [16:21:59]Write to MH i2c: F0 00 00 A9 0F A7 [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: F0 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: F0 09 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: F0 09 00 A9 0F 00 A9 C5 1B 67 BD 3B 11 67 10 [16:21:59]GetLastDocTimeStamp 1729873316 [16:21:59]current date 1729873321 [16:21:59]FM_GetShiftState [16:21:59]SAM_PROTO_GetShiftState [16:21:59]wFMCommunicate request_size=4 [16:21:59]MH_SAM_APDU [16:21:59]CAPDU: 80 13 01 00 [16:21:59]Write to MH i2c: E2 08 00 AA 0F 80 13 01 00 00 00 00 00 36 [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 [16:21:59]MH_I2C_Read... [16:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:59]Read from MH i2c: E2 0E 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 0E 00 AA 0F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2E [16:21:59]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:21:59]wFMCommunicate OK [16:21:59]SAM_PROTO_GetShiftState done [16:21:59]FM_GetShiftState done [16:21:59]opened in 1729815177 [16:21:59]opened+sec_in_day 1729901577 [16:21:59]quantity*price = 287673 [16:21:59]sum+1 = 287674 [16:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 2876.00 Внесено: 2876.00 СДАЧА: 0.00 НСП 1% : 25.46 НДС 12% : 305.49 Наличными: 2876.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 96 25.10.2024 16:22 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50596 ФПД: 249125055832580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162201&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50596&fm=249125055832580&tin=02508201610067®Number=0000000000097022&sum=287600 [16:22:00]StoreToDocumentArchive [16:22:00]shift 493 fd 50596 [16:22:00]save to /storage/0493/doc_00050596 [16:22:00]save last doc name /storage/0493/doc_00050596 to /storage/kkm_last_doc_name [16:22:00]save OK [16:22:00]Clear old archive folders... [16:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:00]tlvbuf is 01E782E0 [16:22:00]SAM_PROTO_ClearQueue [16:22:00]wFMCommunicate request_size=4 [16:22:00]MH_SAM_APDU [16:22:00]CAPDU: 80 09 00 00 [16:22:00]Write to MH i2c: E2 08 00 B7 0F 80 09 00 00 00 00 00 00 38 [16:22:00]Write i2c OK [16:22:00]MH_I2C_Read... [16:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:00]Read from MH i2c: E2 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 03 00 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [16:22:00]RAPDU: 90 00 [16:22:00]wFMCommunicate OK [16:22:00]SAM_PROTO_ClearQueue done [16:22:00]KKMCreateOFDPacket [16:22:00]OFDProtocolAddRootSTLVToBuf [16:22:00]FM_MakeSignedData [16:22:00]FM_MakeSignedData [16:22:00]SAM_PROTO_SignData [16:22:00]wFMCommunicate request_size=4 [16:22:00]MH_SAM_APDU [16:22:00]CAPDU: 80 0D 01 02 [16:22:00]Write to MH i2c: E2 08 00 B8 0F 80 0D 01 02 00 00 00 00 40 [16:22:00]Write i2c OK [16:22:00]MH_I2C_Read... [16:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:00]Read from MH i2c: E2 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 03 00 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 03 00 B8 0F 00 90 00 3B [16:22:00]RAPDU: 90 00 [16:22:00]wFMCommunicate OK [16:22:00]wFMCommunicate request_size=255 [16:22:00]MH_SAM_APDU [16:22:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 72 97 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B9 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 77 00 00 00 00 07 04 06 00 70 63 04 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 A9 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C5 00 00 35 04 06 00 E2 [16:22:00]Write to MH i2c: E2 02 01 B9 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 72 97 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B9 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 77 00 00 00 00 07 04 06 00 70 63 04 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 A9 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C5 00 00 35 04 06 00 E2 00 00 7A [16:22:00]Write i2c OK [16:22:00]MH_I2C_Read... [16:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:00]Read from MH i2c: E2 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 03 00 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [16:22:00]RAPDU: 90 00 [16:22:00]wFMCommunicate OK [16:22:00]wFMCommunicate request_size=10 [16:22:00]MH_SAM_APDU [16:22:00]CAPDU: 80 0D 02 02 05 93 F2 75 22 04 [16:22:00]Write to MH i2c: E2 0D 00 BA 0F 80 0D 02 02 05 00 93 F2 75 22 04 00 00 6D [16:22:00]Write i2c OK [16:22:00]MH_I2C_Read... [16:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:00]Read from MH i2c: E2 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 03 00 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [16:22:00]RAPDU: 90 00 [16:22:00]wFMCommunicate OK [16:22:00]wFMCommunicate request_size=4 [16:22:00]MH_SAM_APDU [16:22:00]CAPDU: 80 0D 03 02 [16:22:00]Write to MH i2c: E2 08 00 BB 0F 80 0D 03 02 00 00 00 00 45 [16:22:00]Write i2c OK [16:22:00]MH_I2C_Read... [16:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:00]Read from MH i2c: E2 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 0B 00 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 0B 00 BB 0F 00 CD 55 22 7B 5A DF 60 6B 90 00 09 [16:22:00]RAPDU: CD 55 22 7B 5A DF 60 6B 90 00 [16:22:00]wFMCommunicate OK [16:22:00]SAM_PROTO_SignData done [16:22:00]FM_MakeSignedData done [16:22:00]CreateOFDProtocolMessage [16:22:00]wFMCommunicate request_size=4 [16:22:00]MH_SAM_APDU [16:22:00]CAPDU: 80 11 00 00 [16:22:00]Write to MH i2c: E2 08 00 BC 0F 80 11 00 00 00 00 00 00 45 [16:22:00]Write i2c OK [16:22:00]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 17 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 17 00 BC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8C [16:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:22:01]wFMCommunicate OK [16:22:01]CreateOFDProtocolMessage done [16:22:01]OFDSenderStorePacket 50596 [16:22:01]StoreOFDPacket docnum=50596 [16:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 EF 7A 07 01 E9 E8 5A 03 01 00 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 33 FF 03 08 00 03 72 97 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B9 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 77 00 00 00 00 07 04 06 00 70 63 04 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 A9 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C5 00 00 35 04 06 00 E2 93 F2 75 22 04 CD 55 22 7B 5A DF 60 6B [16:22:01]CheckFolder [16:22:01]dirname=/storage/ofd_packets [16:22:01]CheckFolder done [16:22:01]ProducePacketName [16:22:01]name=ofd_packets/00050596 [16:22:01]NVStorageSaveData ofd_packets/00050596 [16:22:01]File name is /storage/ofd_packets/00050596 [16:22:01]Write 301 bytes [16:22:01]NVStorageSaveData done [16:22:01]OFDSenderStorePacket done [16:22:01]KKMCreateOFDPacket done [16:22:01]NVStorageSaveData kkm_last_timestamp [16:22:01]File name is /storage/kkm_last_timestamp [16:22:01]Write 4 bytes [16:22:01]NVStorageSaveData done [16:22:01]ExternCall_PrintAddStr [16:22:01]wPrintStart [16:22:01]Write to MH i2c: 01 00 00 BD 0F CC [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 07 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 07 00 BD 0F 00 00 00 00 00 FF 0F E1 [16:22:01]RasterBufferAndPrint [16:22:01]line Счет N : (1)15442554 [16:22:01]line ИНН: 02508201610067 [16:22:01]line Контрольно-Кассовый Чек [16:22:01]line ПРОДАЖА [16:22:01]line ТРК (МРК, ГНК) : 12 [16:22:01]line Товар: 2710124500 [16:22:01]line Аи-95-К-3 [16:22:01]line 38.770 * 74.20 [16:22:01]line = 2876.73 [16:22:01]line НДС 12% НСП 1% [16:22:01]line > о реализуемом товаре [16:22:01]line ОКРУГЛЕНИЕ: -0.73 [16:22:01]line ИТОГО: 2876.00 [16:22:01]line Внесено: 2876.00 [16:22:01]line СДАЧА: 0.00 [16:22:01]line НСП 1% : 25.46 [16:22:01]line НДС 12% : 305.49 [16:22:01]line Наличными: 2876.00 [16:22:01]line Безнал.: 0.00 [16:22:01]line Место: АЗС № 80 "Партнер Нефть" [16:22:01]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:22:01]line СНО: Общий режим [16:22:01]line Чек 96 25.10.2024 16:22 [16:22:01]line Смена: 493 ФФД: 1.0 [16:22:01]line ЗНМ: 0300000090 [16:22:01]line РНМ: 0000000000097022 [16:22:01]line Версия ККМ: 001 [16:22:01]line ФМ: 0000000000875000 [16:22:01]line ФД: 50596 [16:22:01]line ФПД: 249125055832580 [16:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162201&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50596&fm=249125055832580&tin=02508201610067®Number=0000000000097022&sum=287600 [16:22:01]OFD Sender: Processing packet 50596 [packets to send 7, broken 6] [16:22:01]ProducePacketName [16:22:01]name=ofd_packets/00050596 [16:22:01]OFD Sender: To server: pG, [16:22:01]CommunicateWithHost lk.salyk.kg:30040 [16:22:01]ConnectInit lk.salyk.kg [16:22:01]written 0, free lines is 4095 [16:22:01]Connected sock=10 [16:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 EF 7A 07 01 E9 E8 5A 03 01 00 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 33 FF 03 08 00 03 72 97 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B9 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 77 00 00 00 00 07 04 06 00 70 63 04 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 A9 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C5 00 00 35 04 06 00 E2 93 F2 75 22 04 CD 55 22 7B 5A DF 60 6B [16:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 40 9D 47 00 EC 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A4 C5 00 00 F4 03 04 00 39 71 1B 67 B6 04 01 00 00 41 A8 9E 13 56 BF C3 91 [16:22:01]CommunicateWithHost err = 0 [16:22:01]CheckOFDResponse [16:22:01]1017 (14) - 77093643461234 [16:22:01]1041 (16) - 0000000000875000 [16:22:01]1040 (4) - 50596 [16:22:01]1012 (4) - 25.10.2024 10:21 [16:22:01]1206 (1) - 0 [16:22:01]OFD Sender: Remove packet 50596 [16:22:01]ProducePacketName [16:22:01]name=ofd_packets/00050596 [16:22:01]NVStorageDeleteData [16:22:01]Write to MH i2c: 01 00 00 E8 0F F7 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 07 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 07 00 E8 0F 00 00 00 00 00 03 0D 0E [16:22:01]RasterBufferAndPrint [16:22:01]line [16:22:01]line [16:22:01]line [16:22:01]line [16:22:01]line [16:22:01]written 0, free lines is 3340 [16:22:01]process_action close_receipt done [16:22:01]requested_data is exist [16:22:01]produce_requested_data [16:22:01]requested_item fm.sn is exist - process it [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 11 00 00 [16:22:01]Write to MH i2c: E2 08 00 EF 0F 80 11 00 00 00 00 00 00 78 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 17 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 17 00 EF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BF [16:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:22:01]wFMCommunicate OK [16:22:01]requested_item fd.num is exist - process it [16:22:01]SAM_PROTO_GetFieldsCounters [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 13 00 00 [16:22:01]Write to MH i2c: E2 08 00 F0 0F 80 13 00 00 00 00 00 00 7B [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 62 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 62 00 F0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_GetFieldsCounters done [16:22:01]requested_item shift.num is exist - process it [16:22:01]requested_item shift.opened is exist - process it [16:22:01]req_shift_opened [16:22:01]FM_GetShiftState [16:22:01]SAM_PROTO_GetShiftState [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 13 01 00 [16:22:01]Write to MH i2c: E2 08 00 F1 0F 80 13 01 00 00 00 00 00 7D [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0E 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0E 00 F1 0F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 75 [16:22:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_GetShiftState done [16:22:01]FM_GetShiftState done [16:22:01]req_shift_opened done [16:22:01]requested_item shift.open_date is exist - process it [16:22:01]req_shift_open_date [16:22:01]req_shift_open_date done [16:22:01]produce_requested_data done [16:22:01]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50596,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:22:01]process_action_free close_receipt [16:22:01]json_value_free [16:22:01]json_value_free done [16:22:01]process_json_proto returns [16:22:01]Send response to host [16:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50596,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:22:01]free response buf [16:22:01]execute_script done [16:22:01]execute_script returns [16:22:01]free content buf [16:22:01]Sock 9.Close socket [16:22:01]Sock 9.Thread stoped [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:30]accept exits with 7 [16:22:30]New connection [16:22:30]New thread 3066789220 created [16:22:30]Thread 3066645860 joined [16:22:30]Waiting for new connection... [16:22:30] Sock 7.Parse request [16:22:30]Sock 7.Check first char [16:22:30]Sock 7.First char is OK [16:22:30]request: POST /json_proto HTTP/1.0 [16:22:30]Method: POST [16:22:30]URL: /json_proto [16:22:30]Method is POST - this is cgi request [16:22:30]url: /json_proto [16:22:30]query_string will be loaded in cgi processing [16:22:30]execute_cgi json_proto POST (null) [16:22:30]execute_cgi path=json_proto method=POST [16:22:30]POST find Content-Length [16:22:30]Host: 172.17.49.196:8080 [16:22:30]Content-Length: 684 [16:22:30]Content-Type: application/json [16:22:30] [16:22:30]POST finish read [16:22:30]Found Content-Length = 684 [16:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442556", "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.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:30]execute_script... [16:22:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442556", "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.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:30]POST & json_proto [16:22:30]process_json_proto [16:22:30]json parsed OK: [16:22:30]protocol is kg_v1.0 [16:22:30]action value=close_receipt [16:22:30]process_action close_receipt [16:22:30]cmd_close_receipt [16:22:30]MH_GetDate [16:22:30]Write to MH i2c: F0 00 00 F2 0F F0 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 09 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 09 00 F2 0F 00 C8 C5 1B 67 BD 3B 11 67 78 [16:22:30]GetLastDocTimeStamp 1729873321 [16:22:30]current date 1729873352 [16:22:30]FM_GetShiftState [16:22:30]SAM_PROTO_GetShiftState [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 13 01 00 [16:22:30]Write to MH i2c: E2 08 00 F3 0F 80 13 01 00 00 00 00 00 7F [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 0E 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 0E 00 F3 0F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 77 [16:22:30]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:22:30]wFMCommunicate OK [16:22:30]SAM_PROTO_GetShiftState done [16:22:30]FM_GetShiftState done [16:22:30]opened in 1729815177 [16:22:30]opened+sec_in_day 1729901577 [16:22:30]quantity*price = 100015 [16:22:30]sum+1 = 100017 [16:22:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 97 25.10.2024 16:22 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50597 ФПД: 251532575631036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162232&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50597&fm=251532575631036&tin=02508201610067®Number=0000000000097022&sum=100000 [16:22:31]StoreToDocumentArchive [16:22:31]shift 493 fd 50597 [16:22:31]save to /storage/0493/doc_00050597 [16:22:31]save last doc name /storage/0493/doc_00050597 to /storage/kkm_last_doc_name [16:22:31]save OK [16:22:31]Clear old archive folders... [16:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:31]tlvbuf is 01EB2A30 [16:22:31]SAM_PROTO_ClearQueue [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 09 00 00 [16:22:31]Write to MH i2c: E2 08 00 00 10 80 09 00 00 00 00 00 00 82 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 00 10 00 90 00 84 [16:22:31]RAPDU: 90 00 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_ClearQueue done [16:22:31]KKMCreateOFDPacket [16:22:31]OFDProtocolAddRootSTLVToBuf [16:22:31]FM_MakeSignedData [16:22:31]FM_MakeSignedData [16:22:31]SAM_PROTO_SignData [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 0D 01 02 [16:22:31]Write to MH i2c: E2 08 00 01 10 80 0D 01 02 00 00 00 00 8A [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 01 10 00 90 00 85 [16:22:31]RAPDU: 90 00 [16:22:31]wFMCommunicate OK [16:22:31]wFMCommunicate request_size=255 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C8 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C5 00 00 35 04 06 00 E4 [16:22:31]Write to MH i2c: E2 02 01 02 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C8 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C5 00 00 35 04 06 00 E4 00 00 AD [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [16:22:31]RAPDU: 90 00 [16:22:31]wFMCommunicate OK [16:22:31]wFMCommunicate request_size=10 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 0D 02 02 05 C4 7D D1 E6 BC [16:22:31]Write to MH i2c: E2 0D 00 03 10 80 0D 02 02 05 00 C4 7D D1 E6 BC 00 00 4B [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [16:22:31]RAPDU: 90 00 [16:22:31]wFMCommunicate OK [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 0D 03 02 [16:22:31]Write to MH i2c: E2 08 00 04 10 80 0D 03 02 00 00 00 00 8F [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0B 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0B 00 04 10 00 55 2F C1 E1 B1 2C 6F 14 90 00 16 [16:22:31]RAPDU: 55 2F C1 E1 B1 2C 6F 14 90 00 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_SignData done [16:22:31]FM_MakeSignedData done [16:22:31]CreateOFDProtocolMessage [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 11 00 00 [16:22:31]Write to MH i2c: E2 08 00 05 10 80 11 00 00 00 00 00 00 8F [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 17 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 17 00 05 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D6 [16:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:22:31]wFMCommunicate OK [16:22:31]CreateOFDProtocolMessage done [16:22:31]OFDSenderStorePacket 50597 [16:22:31]StoreOFDPacket docnum=50597 [16:22:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 64 54 07 01 BB C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C8 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C5 00 00 35 04 06 00 E4 C4 7D D1 E6 BC 55 2F C1 E1 B1 2C 6F 14 [16:22:31]CheckFolder [16:22:31]dirname=/storage/ofd_packets [16:22:31]CheckFolder done [16:22:31]ProducePacketName [16:22:31]name=ofd_packets/00050597 [16:22:31]NVStorageSaveData ofd_packets/00050597 [16:22:31]File name is /storage/ofd_packets/00050597 [16:22:31]Write 301 bytes [16:22:31]NVStorageSaveData done [16:22:31]OFDSenderStorePacket done [16:22:31]KKMCreateOFDPacket done [16:22:31]NVStorageSaveData kkm_last_timestamp [16:22:31]File name is /storage/kkm_last_timestamp [16:22:31]Write 4 bytes [16:22:31]NVStorageSaveData done [16:22:31]ExternCall_PrintAddStr [16:22:31]wPrintStart [16:22:31]Write to MH i2c: 01 00 00 06 10 16 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 07 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 07 00 06 10 00 00 00 00 00 FF 0F 2B [16:22:31]RasterBufferAndPrint [16:22:31]line Счет N : (1)15442556 [16:22:31]line ИНН: 02508201610067 [16:22:31]line Контрольно-Кассовый Чек [16:22:31]line ПРОДАЖА [16:22:31]line ТРК (МРК, ГНК) : 33 [16:22:31]line Товар: 2710124130 [16:22:31]line Аи-92-К-4 [16:22:31]line 14.950 * 66.90 [16:22:31]line = 1000.16 [16:22:31]line НДС 12% НСП 1% [16:22:31]line > о реализуемом товаре [16:22:31]line ОКРУГЛЕНИЕ: -0.16 [16:22:31]line ИТОГО: 1000.00 [16:22:31]line Внесено: 1000.00 [16:22:31]line СДАЧА: 0.00 [16:22:31]line НСП 1% : 8.85 [16:22:31]line НДС 12% : 106.21 [16:22:31]line Наличными: 1000.00 [16:22:31]line Безнал.: 0.00 [16:22:31]line Место: АЗС № 80 "Партнер Нефть" [16:22:31]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:22:31]line СНО: Общий режим [16:22:31]line Чек 97 25.10.2024 16:22 [16:22:31]line Смена: 493 ФФД: 1.0 [16:22:31]line ЗНМ: 0300000090 [16:22:31]line РНМ: 0000000000097022 [16:22:31]line Версия ККМ: 001 [16:22:31]line ФМ: 0000000000875000 [16:22:31]line ФД: 50597 [16:22:31]line ФПД: 251532575631036 [16:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162232&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50597&fm=251532575631036&tin=02508201610067®Number=0000000000097022&sum=100000 [16:22:32]OFD Sender: Processing packet 50597 [packets to send 7, broken 6] [16:22:32]ProducePacketName [16:22:32]name=ofd_packets/00050597 [16:22:32]OFD Sender: To server: pG, [16:22:32]CommunicateWithHost lk.salyk.kg:30040 [16:22:32]ConnectInit lk.salyk.kg [16:22:32]written 0, free lines is 4095 [16:22:32]Write to MH i2c: 01 00 00 31 10 41 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 EF 0C 43 [16:22:32]RasterBufferAndPrint [16:22:32]line [16:22:32]line [16:22:32]line [16:22:32]line [16:22:32]line [16:22:32]written 0, free lines is 3317 [16:22:32]process_action close_receipt done [16:22:32]requested_data is exist [16:22:32]produce_requested_data [16:22:32]requested_item fm.sn is exist - process it [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 11 00 00 [16:22:32]Write to MH i2c: E2 08 00 38 10 80 11 00 00 00 00 00 00 C2 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 38 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 09 [16:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:22:32]wFMCommunicate OK [16:22:32]requested_item fd.num is exist - process it [16:22:32]SAM_PROTO_GetFieldsCounters [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 13 00 00 [16:22:32]Write to MH i2c: E2 08 00 39 10 80 13 00 00 00 00 00 00 C5 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 62 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 62 00 39 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [16:22:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_GetFieldsCounters done [16:22:32]requested_item shift.num is exist - process it [16:22:32]requested_item shift.opened is exist - process it [16:22:32]req_shift_opened [16:22:32]FM_GetShiftState [16:22:32]SAM_PROTO_GetShiftState [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 13 01 00 [16:22:32]Write to MH i2c: E2 08 00 3A 10 80 13 01 00 00 00 00 00 C7 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0E 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0E 00 3A 10 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 BF [16:22:32]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_GetShiftState done [16:22:32]FM_GetShiftState done [16:22:32]req_shift_opened done [16:22:32]requested_item shift.open_date is exist - process it [16:22:32]req_shift_open_date [16:22:32]req_shift_open_date done [16:22:32]produce_requested_data done [16:22:32]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50597,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:22:32]process_action_free close_receipt [16:22:32]json_value_free [16:22:32]json_value_free done [16:22:32]process_json_proto returns [16:22:32]Send response to host [16:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50597,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:22:32]free response buf [16:22:32]execute_script done [16:22:32]execute_script returns [16:22:32]free content buf [16:22:32]Sock 7.Close socket [16:22:32]Sock 7.Thread stoped [16:22:41]accept exits with 9 [16:22:41]New connection [16:22:41]New thread 3066645860 created [16:22:41]Thread 3066789220 joined [16:22:41]Waiting for new connection... [16:22:41] Sock 9.Parse request [16:22:41]Sock 9.Check first char [16:22:41]Sock 9.First char is OK [16:22:41]request: POST /json_proto HTTP/1.0 [16:22:41]Method: POST [16:22:41]URL: /json_proto [16:22:41]Method is POST - this is cgi request [16:22:41]url: /json_proto [16:22:41]query_string will be loaded in cgi processing [16:22:41]execute_cgi json_proto POST (null) [16:22:41]execute_cgi path=json_proto method=POST [16:22:41]POST find Content-Length [16:22:41]Host: 172.17.49.196:8080 [16:22:41]Content-Length: 679 [16:22:41]Content-Type: application/json [16:22:41] [16:22:41]POST finish read [16:22:41]Found Content-Length = 679 [16:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:41]execute_script... [16:22:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:41]POST & json_proto [16:22:41]process_json_proto [16:22:41]json parsed OK: [16:22:41]protocol is kg_v1.0 [16:22:41]action value=close_receipt [16:22:41]process_action close_receipt [16:22:41]cmd_close_receipt [16:22:41]MH_GetDate [16:22:41]Write to MH i2c: F0 00 00 3B 10 3A [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: F0 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: F0 09 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: F0 09 00 3B 10 00 D4 C5 1B 67 BD 3B 11 67 CE [16:22:41]GetLastDocTimeStamp 1729873352 [16:22:41]current date 1729873364 [16:22:41]FM_GetShiftState [16:22:41]SAM_PROTO_GetShiftState [16:22:41]wFMCommunicate request_size=4 [16:22:41]MH_SAM_APDU [16:22:41]CAPDU: 80 13 01 00 [16:22:41]Write to MH i2c: E2 08 00 3C 10 80 13 01 00 00 00 00 00 C9 [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:41]Read from MH i2c: E2 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 0E 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 0E 00 3C 10 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 C1 [16:22:41]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:22:41]wFMCommunicate OK [16:22:41]SAM_PROTO_GetShiftState done [16:22:41]FM_GetShiftState done [16:22:41]opened in 1729815177 [16:22:41]opened+sec_in_day 1729901577 [16:22:41]quantity*price = 50041 [16:22:41]sum+1 = 50042 [16:22:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 98 25.10.2024 16:22 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50598 ФПД: 30849005784870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162244&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50598&fm=30849005784870&tin=02508201610067®Number=0000000000097022&sum=50000 [16:22:42]StoreToDocumentArchive [16:22:42]shift 493 fd 50598 [16:22:42]save to /storage/0493/doc_00050598 [16:22:42]save last doc name /storage/0493/doc_00050598 to /storage/kkm_last_doc_name [16:22:42]save OK [16:22:42]Clear old archive folders... [16:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:42]tlvbuf is 01E55860 [16:22:42]SAM_PROTO_ClearQueue [16:22:42]wFMCommunicate request_size=4 [16:22:42]MH_SAM_APDU [16:22:42]CAPDU: 80 09 00 00 [16:22:42]Write to MH i2c: E2 08 00 49 10 80 09 00 00 00 00 00 00 CB [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:42]Read from MH i2c: E2 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 03 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 03 00 49 10 00 90 00 CD [16:22:42]RAPDU: 90 00 [16:22:42]wFMCommunicate OK [16:22:42]SAM_PROTO_ClearQueue done [16:22:42]KKMCreateOFDPacket [16:22:42]OFDProtocolAddRootSTLVToBuf [16:22:42]FM_MakeSignedData [16:22:42]FM_MakeSignedData [16:22:42]SAM_PROTO_SignData [16:22:42]wFMCommunicate request_size=4 [16:22:42]MH_SAM_APDU [16:22:42]CAPDU: 80 0D 01 02 [16:22:42]Write to MH i2c: E2 08 00 4A 10 80 0D 01 02 00 00 00 00 D3 [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:43]Read from MH i2c: E2 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 03 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [16:22:43]RAPDU: 90 00 [16:22:43]wFMCommunicate OK [16:22:43]wFMCommunicate request_size=255 [16:22:43]MH_SAM_APDU [16:22:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 D4 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A6 C5 00 00 35 04 06 00 1C [16:22:43]Write to MH i2c: E2 02 01 4B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 D4 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A6 C5 00 00 35 04 06 00 1C 00 00 42 [16:22:43]Write i2c OK [16:22:43]MH_I2C_Read... [16:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:43]Read from MH i2c: E2 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 03 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [16:22:43]RAPDU: 90 00 [16:22:43]wFMCommunicate OK [16:22:43]wFMCommunicate request_size=10 [16:22:43]MH_SAM_APDU [16:22:43]CAPDU: 80 0D 02 02 05 0E 98 08 0F 26 [16:22:43]Write to MH i2c: E2 0D 00 4C 10 80 0D 02 02 05 00 0E 98 08 0F 26 00 00 C3 [16:22:43]Write i2c OK [16:22:43]MH_I2C_Read... [16:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:43]Read from MH i2c: E2 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 03 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [16:22:43]RAPDU: 90 00 [16:22:43]wFMCommunicate OK [16:22:43]wFMCommunicate request_size=4 [16:22:43]MH_SAM_APDU [16:22:43]CAPDU: 80 0D 03 02 [16:22:43]Write to MH i2c: E2 08 00 4D 10 80 0D 03 02 00 00 00 00 D8 [16:22:43]Write i2c OK [16:22:43]MH_I2C_Read... [16:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:43]Read from MH i2c: E2 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 0B 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 0B 00 4D 10 00 C7 26 16 0B 64 6E E5 5D 90 00 FB [16:22:43]RAPDU: C7 26 16 0B 64 6E E5 5D 90 00 [16:22:43]wFMCommunicate OK [16:22:43]SAM_PROTO_SignData done [16:22:43]FM_MakeSignedData done [16:22:43]CreateOFDProtocolMessage [16:22:43]wFMCommunicate request_size=4 [16:22:43]MH_SAM_APDU [16:22:43]CAPDU: 80 11 00 00 [16:22:43]Write to MH i2c: E2 08 00 4E 10 80 11 00 00 00 00 00 00 D8 [16:22:43]Write i2c OK [16:22:43]MH_I2C_Read... [16:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:43]Read from MH i2c: E2 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 17 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 17 00 4E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1F [16:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:22:43]wFMCommunicate OK [16:22:43]CreateOFDProtocolMessage done [16:22:43]OFDSenderStorePacket 50598 [16:22:43]StoreOFDPacket docnum=50598 [16:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 A4 FE 07 01 FB 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 D4 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A6 C5 00 00 35 04 06 00 1C 0E 98 08 0F 26 C7 26 16 0B 64 6E E5 5D [16:22:43]CheckFolder [16:22:43]dirname=/storage/ofd_packets [16:22:43]CheckFolder done [16:22:43]ProducePacketName [16:22:43]name=ofd_packets/00050598 [16:22:43]NVStorageSaveData ofd_packets/00050598 [16:22:43]File name is /storage/ofd_packets/00050598 [16:22:43]Write 301 bytes [16:22:43]NVStorageSaveData done [16:22:43]OFDSenderStorePacket done [16:22:43]KKMCreateOFDPacket done [16:22:43]NVStorageSaveData kkm_last_timestamp [16:22:43]File name is /storage/kkm_last_timestamp [16:22:43]Write 4 bytes [16:22:43]NVStorageSaveData done [16:22:43]ExternCall_PrintAddStr [16:22:43]wPrintStart [16:22:43]Write to MH i2c: 01 00 00 4F 10 5F [16:22:43]Write i2c OK [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: 01 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: 01 07 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: 01 07 00 4F 10 00 00 00 00 00 FF 0F 74 [16:22:43]RasterBufferAndPrint [16:22:43]line Счет N : (1)15442558 [16:22:43]line ИНН: 02508201610067 [16:22:43]line Контрольно-Кассовый Чек [16:22:43]line ПРОДАЖА [16:22:43]line ТРК (МРК, ГНК) : 23 [16:22:43]line Товар: 2710124130 [16:22:43]line Аи-92-К-4 [16:22:43]line 7.480 * 66.90 [16:22:43]line = 500.41 [16:22:43]line НДС 12% НСП 1% [16:22:43]line > о реализуемом товаре [16:22:43]line ОКРУГЛЕНИЕ: -0.41 [16:22:43]line ИТОГО: 500.00 [16:22:43]line Внесено: 500.00 [16:22:43]line СДАЧА: 0.00 [16:22:43]line НСП 1% : 4.43 [16:22:43]line НДС 12% : 53.14 [16:22:43]line Наличными: 500.00 [16:22:43]line Безнал.: 0.00 [16:22:43]line Место: АЗС № 80 "Партнер Нефть" [16:22:43]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:22:43]line СНО: Общий режим [16:22:43]line Чек 98 25.10.2024 16:22 [16:22:43]line Смена: 493 ФФД: 1.0 [16:22:43]line ЗНМ: 0300000090 [16:22:43]line РНМ: 0000000000097022 [16:22:43]line Версия ККМ: 001 [16:22:43]line ФМ: 0000000000875000 [16:22:43]line ФД: 50598 [16:22:43]line ФПД: 30849005784870 [16:22:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162244&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50598&fm=30849005784870&tin=02508201610067®Number=0000000000097022&sum=50000 [16:22:43]written 0, free lines is 4095 [16:22:44]Write to MH i2c: 01 00 00 7A 10 8A [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 07 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: 01 07 00 7A 10 00 00 00 00 00 ED 0C 8A [16:22:44]RasterBufferAndPrint [16:22:44]line [16:22:44]line [16:22:44]line [16:22:44]line [16:22:44]line [16:22:44]written 0, free lines is 3315 [16:22:44]process_action close_receipt done [16:22:44]requested_data is exist [16:22:44]produce_requested_data [16:22:44]requested_item fm.sn is exist - process it [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 11 00 00 [16:22:44]Write to MH i2c: E2 08 00 81 10 80 11 00 00 00 00 00 00 0B [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 17 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 17 00 81 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 52 [16:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:22:44]wFMCommunicate OK [16:22:44]requested_item fd.num is exist - process it [16:22:44]SAM_PROTO_GetFieldsCounters [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 13 00 00 [16:22:44]Write to MH i2c: E2 08 00 82 10 80 13 00 00 00 00 00 00 0E [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 62 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 62 00 82 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:22:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:44]wFMCommunicate OK [16:22:44]SAM_PROTO_GetFieldsCounters done [16:22:44]requested_item shift.num is exist - process it [16:22:44]requested_item shift.opened is exist - process it [16:22:44]req_shift_opened [16:22:44]FM_GetShiftState [16:22:44]SAM_PROTO_GetShiftState [16:22:44]wFMCommunicate request_size=4 [16:22:44]MH_SAM_APDU [16:22:44]CAPDU: 80 13 01 00 [16:22:44]Write to MH i2c: E2 08 00 83 10 80 13 01 00 00 00 00 00 10 [16:22:44]Write i2c OK [16:22:44]MH_I2C_Read... [16:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:44]Read from MH i2c: E2 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 0E 00 [16:22:44]MH_I2C_Read... [16:22:44]Read from MH i2c: E2 0E 00 83 10 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 08 [16:22:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:22:44]wFMCommunicate OK [16:22:44]SAM_PROTO_GetShiftState done [16:22:44]FM_GetShiftState done [16:22:44]req_shift_opened done [16:22:44]requested_item shift.open_date is exist - process it [16:22:44]req_shift_open_date [16:22:44]req_shift_open_date done [16:22:44]produce_requested_data done [16:22:44]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50598,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:22:44]process_action_free close_receipt [16:22:44]json_value_free [16:22:44]json_value_free done [16:22:44]process_json_proto returns [16:22:44]Send response to host [16:22:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50598,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:22:44]free response buf [16:22:44]execute_script done [16:22:44]execute_script returns [16:22:44]free content buf [16:22:44]Sock 9.Close socket [16:22:44]Sock 9.Thread stoped [16:22:52]accept exits with 7 [16:22:52]New connection [16:22:52]New thread 3066789220 created [16:22:52]Thread 3066645860 joined [16:22:52]Waiting for new connection... [16:22:52] Sock 7.Parse request [16:22:52]Sock 7.Check first char [16:22:52]Sock 7.First char is OK [16:22:52]request: POST /json_proto HTTP/1.0 [16:22:52]Method: POST [16:22:52]URL: /json_proto [16:22:52]Method is POST - this is cgi request [16:22:52]url: /json_proto [16:22:52]query_string will be loaded in cgi processing [16:22:52]execute_cgi json_proto POST (null) [16:22:52]execute_cgi path=json_proto method=POST [16:22:52]POST find Content-Length [16:22:52]Host: 172.17.49.196:8080 [16:22:52]Content-Length: 679 [16:22:52]Content-Type: application/json [16:22:52] [16:22:52]POST finish read [16:22:52]Found Content-Length = 679 [16:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442557", "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.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:52]execute_script... [16:22: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)15442557", "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.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:52]POST & json_proto [16:22:52]process_json_proto [16:22:52]json parsed OK: [16:22:52]protocol is kg_v1.0 [16:22:52]action value=close_receipt [16:22:52]process_action close_receipt [16:22:52]cmd_close_receipt [16:22:52]MH_GetDate [16:22:52]Write to MH i2c: F0 00 00 84 10 83 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: F0 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: F0 09 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: F0 09 00 84 10 00 DE C5 1B 67 BD 3B 11 67 21 [16:22:52]GetLastDocTimeStamp 1729873364 [16:22:52]current date 1729873374 [16:22:52]FM_GetShiftState [16:22:52]SAM_PROTO_GetShiftState [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 13 01 00 [16:22:52]Write to MH i2c: E2 08 00 85 10 80 13 01 00 00 00 00 00 12 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0E 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0E 00 85 10 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 0A [16:22:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_GetShiftState done [16:22:52]FM_GetShiftState done [16:22:52]opened in 1729815177 [16:22:52]opened+sec_in_day 1729901577 [16:22:52]quantity*price = 30038 [16:22:52]sum+1 = 30039 [16:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 99 25.10.2024 16:22 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50599 ФПД: 198091831207735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162254&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50599&fm=198091831207735&tin=02508201610067®Number=0000000000097022&sum=30000 [16:22:53]StoreToDocumentArchive [16:22:53]shift 493 fd 50599 [16:22:53]save to /storage/0493/doc_00050599 [16:22:53]save last doc name /storage/0493/doc_00050599 to /storage/kkm_last_doc_name [16:22:53]save OK [16:22:53]Clear old archive folders... [16:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:53]tlvbuf is 01E3D470 [16:22:53]SAM_PROTO_ClearQueue [16:22:53]wFMCommunicate request_size=4 [16:22:53]MH_SAM_APDU [16:22:53]CAPDU: 80 09 00 00 [16:22:53]Write to MH i2c: E2 08 00 92 10 80 09 00 00 00 00 00 00 14 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:53]Read from MH i2c: E2 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: E2 03 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [16:22:53]RAPDU: 90 00 [16:22:53]wFMCommunicate OK [16:22:53]SAM_PROTO_ClearQueue done [16:22:53]KKMCreateOFDPacket [16:22:53]OFDProtocolAddRootSTLVToBuf [16:22:53]FM_MakeSignedData [16:22:53]FM_MakeSignedData [16:22:53]SAM_PROTO_SignData [16:22:53]wFMCommunicate request_size=4 [16:22:53]MH_SAM_APDU [16:22:53]CAPDU: 80 0D 01 02 [16:22:53]Write to MH i2c: E2 08 00 93 10 80 0D 01 02 00 00 00 00 1C [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:53]Read from MH i2c: E2 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: E2 03 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [16:22:53]RAPDU: 90 00 [16:22:53]wFMCommunicate OK [16:22:53]wFMCommunicate request_size=255 [16:22:53]MH_SAM_APDU [16:22:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 DE C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C5 00 00 35 04 06 00 B4 [16:22:53]Write to MH i2c: E2 02 01 94 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 DE C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C5 00 00 35 04 06 00 B4 00 00 23 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 03 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [16:22:54]RAPDU: 90 00 [16:22:54]wFMCommunicate OK [16:22:54]wFMCommunicate request_size=10 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 0D 02 02 05 29 D9 3B 67 37 [16:22:54]Write to MH i2c: E2 0D 00 95 10 80 0D 02 02 05 00 29 D9 3B 67 37 00 00 04 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 03 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [16:22:54]RAPDU: 90 00 [16:22:54]wFMCommunicate OK [16:22:54]wFMCommunicate request_size=4 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 0D 03 02 [16:22:54]Write to MH i2c: E2 08 00 96 10 80 0D 03 02 00 00 00 00 21 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 0B 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 0B 00 96 10 00 45 0B AF AC A1 C0 40 EB 90 00 59 [16:22:54]RAPDU: 45 0B AF AC A1 C0 40 EB 90 00 [16:22:54]wFMCommunicate OK [16:22:54]SAM_PROTO_SignData done [16:22:54]FM_MakeSignedData done [16:22:54]CreateOFDProtocolMessage [16:22:54]wFMCommunicate request_size=4 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 11 00 00 [16:22:54]Write to MH i2c: E2 08 00 97 10 80 11 00 00 00 00 00 00 21 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 17 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 17 00 97 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 68 [16:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:22:54]wFMCommunicate OK [16:22:54]CreateOFDProtocolMessage done [16:22:54]OFDSenderStorePacket 50599 [16:22:54]StoreOFDPacket docnum=50599 [16:22:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 E9 A7 07 01 AE 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 DE C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C5 00 00 35 04 06 00 B4 29 D9 3B 67 37 45 0B AF AC A1 C0 40 EB [16:22:54]CheckFolder [16:22:54]dirname=/storage/ofd_packets [16:22:54]CheckFolder done [16:22:54]ProducePacketName [16:22:54]name=ofd_packets/00050599 [16:22:54]NVStorageSaveData ofd_packets/00050599 [16:22:54]File name is /storage/ofd_packets/00050599 [16:22:54]Write 301 bytes [16:22:54]NVStorageSaveData done [16:22:54]OFDSenderStorePacket done [16:22:54]KKMCreateOFDPacket done [16:22:54]NVStorageSaveData kkm_last_timestamp [16:22:54]File name is /storage/kkm_last_timestamp [16:22:54]Write 4 bytes [16:22:54]NVStorageSaveData done [16:22:54]ExternCall_PrintAddStr [16:22:54]wPrintStart [16:22:54]Write to MH i2c: 01 00 00 98 10 A8 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: 01 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: 01 07 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: 01 07 00 98 10 00 00 00 00 00 FF 0F BD [16:22:54]RasterBufferAndPrint [16:22:54]line Счет N : (1)15442557 [16:22:54]line ИНН: 02508201610067 [16:22:54]line Контрольно-Кассовый Чек [16:22:54]line ПРОДАЖА [16:22:54]line ТРК (МРК, ГНК) : 43 [16:22:54]line Товар: 2710124130 [16:22:54]line Аи-92-К-4 [16:22:54]line 4.490 * 66.90 [16:22:54]line = 300.38 [16:22:54]line НДС 12% НСП 1% [16:22:54]line > о реализуемом товаре [16:22:54]line ОКРУГЛЕНИЕ: -0.38 [16:22:54]line ИТОГО: 300.00 [16:22:54]line Внесено: 300.00 [16:22:54]line СДАЧА: 0.00 [16:22:54]line НСП 1% : 2.66 [16:22:54]line НДС 12% : 31.90 [16:22:54]line Наличными: 300.00 [16:22:54]line Безнал.: 0.00 [16:22:54]line Место: АЗС № 80 "Партнер Нефть" [16:22:54]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:22:54]line СНО: Общий режим [16:22:54]line Чек 99 25.10.2024 16:22 [16:22:54]line Смена: 493 ФФД: 1.0 [16:22:54]line ЗНМ: 0300000090 [16:22:54]line РНМ: 0000000000097022 [16:22:54]line Версия ККМ: 001 [16:22:54]line ФМ: 0000000000875000 [16:22:54]line ФД: 50599 [16:22:54]line ФПД: 198091831207735 [16:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T162254&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50599&fm=198091831207735&tin=02508201610067®Number=0000000000097022&sum=30000 [16:22:54]written 0, free lines is 4095 [16:22:54]Write to MH i2c: 01 00 00 C3 10 D3 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: 01 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: 01 07 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 EC 0C D2 [16:22:54]RasterBufferAndPrint [16:22:54]line [16:22:54]line [16:22:54]line [16:22:54]line [16:22:54]line [16:22:54]written 0, free lines is 3317 [16:22:54]process_action close_receipt done [16:22:54]requested_data is exist [16:22:54]produce_requested_data [16:22:54]requested_item fm.sn is exist - process it [16:22:54]wFMCommunicate request_size=4 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 11 00 00 [16:22:54]Write to MH i2c: E2 08 00 CA 10 80 11 00 00 00 00 00 00 54 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 17 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 17 00 CA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9B [16:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:22:55]wFMCommunicate OK [16:22:55]requested_item fd.num is exist - process it [16:22:55]SAM_PROTO_GetFieldsCounters [16:22:55]wFMCommunicate request_size=4 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 13 00 00 [16:22:55]Write to MH i2c: E2 08 00 CB 10 80 13 00 00 00 00 00 00 57 [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 62 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 62 00 CB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [16:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:55]wFMCommunicate OK [16:22:55]SAM_PROTO_GetFieldsCounters done [16:22:55]requested_item shift.num is exist - process it [16:22:55]requested_item shift.opened is exist - process it [16:22:55]req_shift_opened [16:22:55]FM_GetShiftState [16:22:55]SAM_PROTO_GetShiftState [16:22:55]wFMCommunicate request_size=4 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 13 01 00 [16:22:55]Write to MH i2c: E2 08 00 CC 10 80 13 01 00 00 00 00 00 59 [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 0E 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 0E 00 CC 10 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 51 [16:22:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:22:55]wFMCommunicate OK [16:22:55]SAM_PROTO_GetShiftState done [16:22:55]FM_GetShiftState done [16:22:55]req_shift_opened done [16:22:55]requested_item shift.open_date is exist - process it [16:22:55]req_shift_open_date [16:22:55]req_shift_open_date done [16:22:55]produce_requested_data done [16:22:55]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50599,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:22:55]process_action_free close_receipt [16:22:55]json_value_free [16:22:55]json_value_free done [16:22:55]process_json_proto returns [16:22:55]Send response to host [16:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50599,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:22:55]free response buf [16:22:55]execute_script done [16:22:55]execute_script returns [16:22:55]free content buf [16:22:55]Sock 7.Close socket [16:22:55]Sock 7.Thread stoped [16:24:43]ConnectInit Can't connect to host [16:24:43]CommunicateWithHost connect error [16:24:43]CommunicateWithHost err = -1 [16:24:43]OFD Sender: Server communicate error [16:24:43]OFD Sender: Processing packet 50597 [packets to send 9, broken 6] [16:24:43]ProducePacketName [16:24:43]name=ofd_packets/00050597 [16:24:43]OFD Sender: To server: pG, [16:24:43]CommunicateWithHost lk.salyk.kg:30040 [16:24:43]ConnectInit lk.salyk.kg [16:24:43]Connected sock=7 [16:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 64 54 07 01 BB C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C8 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C5 00 00 35 04 06 00 E4 C4 7D D1 E6 BC 55 2F C1 E1 B1 2C 6F 14 [16:24:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 56 3F 47 00 BF 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A5 C5 00 00 F4 03 04 00 DB 71 1B 67 B6 04 01 00 00 F6 B1 39 37 81 5B 7B 07 [16:24:43]CommunicateWithHost err = 0 [16:24:43]CheckOFDResponse [16:24:43]1017 (14) - 77093643461234 [16:24:43]1041 (16) - 0000000000875000 [16:24:43]1040 (4) - 50597 [16:24:43]1012 (4) - 25.10.2024 10:24 [16:24:43]1206 (1) - 0 [16:24:43]OFD Sender: Remove packet 50597 [16:24:43]ProducePacketName [16:24:43]name=ofd_packets/00050597 [16:24:43]NVStorageDeleteData [16:24:43]OFD Sender: Processing packet 50598 [packets to send 8, broken 6] [16:24:43]ProducePacketName [16:24:43]name=ofd_packets/00050598 [16:24:43]OFD Sender: To server: pG, [16:24:43]CommunicateWithHost lk.salyk.kg:30040 [16:24:43]ConnectInit lk.salyk.kg [16:24:44]Connected sock=7 [16:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 A4 FE 07 01 FB 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 D4 C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A6 C5 00 00 35 04 06 00 1C 0E 98 08 0F 26 C7 26 16 0B 64 6E E5 5D [16:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F8 7A 47 00 A3 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A6 C5 00 00 F4 03 04 00 DC 71 1B 67 B6 04 01 00 00 52 5A 29 3B 9B 13 16 19 [16:24:44]CommunicateWithHost err = 0 [16:24:44]CheckOFDResponse [16:24:44]1017 (14) - 77093643461234 [16:24:44]1041 (16) - 0000000000875000 [16:24:44]1040 (4) - 50598 [16:24:44]1012 (4) - 25.10.2024 10:24 [16:24:44]1206 (1) - 0 [16:24:44]OFD Sender: Remove packet 50598 [16:24:44]ProducePacketName [16:24:44]name=ofd_packets/00050598 [16:24:44]NVStorageDeleteData [16:24:44]OFD Sender: Processing packet 50599 [packets to send 7, broken 6] [16:24:44]ProducePacketName [16:24:44]name=ofd_packets/00050599 [16:24:44]OFD Sender: To server: pG, [16:24:44]CommunicateWithHost lk.salyk.kg:30040 [16:24:44]ConnectInit lk.salyk.kg [16:26:56]ConnectInit Can't connect to host [16:26:56]CommunicateWithHost connect error [16:26:56]CommunicateWithHost err = -1 [16:26:56]OFD Sender: Server communicate error [16:27:01]OFD Sender: Processing packet 50599 [packets to send 7, broken 6] [16:27:01]ProducePacketName [16:27:01]name=ofd_packets/00050599 [16:27:01]OFD Sender: To server: pG, [16:27:01]CommunicateWithHost lk.salyk.kg:30040 [16:27:01]ConnectInit lk.salyk.kg [16:27:01]Connected sock=7 [16:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 E9 A7 07 01 AE 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 DE C5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C5 00 00 35 04 06 00 B4 29 D9 3B 67 37 45 0B AF AC A1 C0 40 EB [16:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 87 B1 47 00 EF 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A7 C5 00 00 F4 03 04 00 65 72 1B 67 B6 04 01 00 00 9B 61 B1 B1 1E CD E9 01 [16:27:01]CommunicateWithHost err = 0 [16:27:01]CheckOFDResponse [16:27:01]1017 (14) - 77093643461234 [16:27:01]1041 (16) - 0000000000875000 [16:27:01]1040 (4) - 50599 [16:27:01]1012 (4) - 25.10.2024 10:26 [16:27:01]1206 (1) - 0 [16:27:01]OFD Sender: Remove packet 50599 [16:27:01]ProducePacketName [16:27:01]name=ofd_packets/00050599 [16:27:01]NVStorageDeleteData [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:36]accept exits with 9 [16:31:36]New connection [16:31:36]New thread 3066645860 created [16:31:36]Thread 3066789220 joined [16:31:36]Waiting for new connection... [16:31:36] Sock 9.Parse request [16:31:36]Sock 9.Check first char [16:31:36]Sock 9.First char is OK [16:31:36]request: POST /json_proto HTTP/1.0 [16:31:36]Method: POST [16:31:36]URL: /json_proto [16:31:36]Method is POST - this is cgi request [16:31:36]url: /json_proto [16:31:36]query_string will be loaded in cgi processing [16:31:36]execute_cgi json_proto POST (null) [16:31:36]execute_cgi path=json_proto method=POST [16:31:36]POST find Content-Length [16:31:36]Host: 172.17.49.196:8080 [16:31:36]Content-Length: 648 [16:31:36]Content-Type: application/json [16:31:36] [16:31:36]POST finish read [16:31:36]Found Content-Length = 648 [16:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164504", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 4.000, "sum" : 536.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 536.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:36]execute_script... [16:31:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164504", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 4.000, "sum" : 536.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 536.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:36]POST & json_proto [16:31:36]process_json_proto [16:31:36]json parsed OK: [16:31:36]protocol is kg_v1.0 [16:31:36]action value=close_receipt [16:31:36]process_action close_receipt [16:31:36]cmd_close_receipt [16:31:36]MH_GetDate [16:31:36]Write to MH i2c: F0 00 00 CD 10 CC [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: F0 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: F0 09 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: F0 09 00 CD 10 00 EA C7 1B 67 BD 3B 11 67 78 [16:31:36]GetLastDocTimeStamp 1729873374 [16:31:36]current date 1729873898 [16:31:36]FM_GetShiftState [16:31:36]SAM_PROTO_GetShiftState [16:31:36]wFMCommunicate request_size=4 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 13 01 00 [16:31:36]Write to MH i2c: E2 08 00 CE 10 80 13 01 00 00 00 00 00 5B [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 0E 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 0E 00 CE 10 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 53 [16:31:36]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:31:36]wFMCommunicate OK [16:31:36]SAM_PROTO_GetShiftState done [16:31:36]FM_GetShiftState done [16:31:36]opened in 1729815177 [16:31:36]opened+sec_in_day 1729901577 [16:31:36]quantity*price = 53600 [16:31:36]sum+1 = 53601 [16:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 536.00 НСП 1% : 4.74 НДС 12% : 56.92 Наличными: 536.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 100 25.10.2024 16:31 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50600 ФПД: 32270212851082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163138&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50600&fm=32270212851082&tin=02508201610067®Number=0000000000097022&sum=53600 0 [16:31:37]StoreToDocumentArchive [16:31:37]shift 493 fd 50600 [16:31:37]save to /storage/0493/doc_00050600 [16:31:37]save last doc name /storage/0493/doc_00050600 to /storage/kkm_last_doc_name [16:31:37]save OK [16:31:37]Clear old archive folders... [16:31:37]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:31:37]tlvbuf is 01E713D0 [16:31:37]SAM_PROTO_ClearQueue [16:31:37]wFMCommunicate request_size=4 [16:31:37]MH_SAM_APDU [16:31:37]CAPDU: 80 09 00 00 [16:31:37]Write to MH i2c: E2 08 00 DB 10 80 09 00 00 00 00 00 00 5D [16:31:37]Write i2c OK [16:31:37]MH_I2C_Read... [16:31:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:37]Read from MH i2c: E2 [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: E2 03 00 [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [16:31:37]RAPDU: 90 00 [16:31:37]wFMCommunicate OK [16:31:37]SAM_PROTO_ClearQueue done [16:31:37]KKMCreateOFDPacket [16:31:37]OFDProtocolAddRootSTLVToBuf [16:31:37]FM_MakeSignedData [16:31:37]FM_MakeSignedData [16:31:37]SAM_PROTO_SignData [16:31:37]wFMCommunicate request_size=4 [16:31:37]MH_SAM_APDU [16:31:37]CAPDU: 80 0D 01 02 [16:31:37]Write to MH i2c: E2 08 00 DC 10 80 0D 01 02 00 00 00 00 65 [16:31:37]Write i2c OK [16:31:37]MH_I2C_Read... [16:31:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:37]Read from MH i2c: E2 [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: E2 03 00 [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: E2 03 00 DC 10 00 90 00 60 [16:31:37]RAPDU: 90 00 [16:31:37]wFMCommunicate OK [16:31:37]wFMCommunicate request_size=255 [16:31:37]MH_SAM_APDU [16:31:37]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 60 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 16 00 00 00 00 07 04 06 00 60 D1 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 EA C7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 [16:31:37]Write to MH i2c: E2 02 01 DD 10 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 60 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 16 00 00 00 00 07 04 06 00 60 D1 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 EA C7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 00 00 28 [16:31:37]Write i2c OK [16:31:37]MH_I2C_Read... [16:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:38]Read from MH i2c: E2 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 03 00 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [16:31:38]RAPDU: 90 00 [16:31:38]wFMCommunicate OK [16:31:38]wFMCommunicate request_size=35 [16:31:38]MH_SAM_APDU [16:31:38]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C5 00 00 35 04 06 00 1D 59 7E 92 E5 8A [16:31:38]Write to MH i2c: E2 26 00 DE 10 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C5 00 00 35 04 06 00 1D 59 7E 92 E5 8A 00 00 B1 [16:31:38]Write i2c OK [16:31:38]MH_I2C_Read... [16:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:38]Read from MH i2c: E2 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 03 00 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [16:31:38]RAPDU: 90 00 [16:31:38]wFMCommunicate OK [16:31:38]wFMCommunicate request_size=4 [16:31:38]MH_SAM_APDU [16:31:38]CAPDU: 80 0D 03 02 [16:31:38]Write to MH i2c: E2 08 00 DF 10 80 0D 03 02 00 00 00 00 6A [16:31:38]Write i2c OK [16:31:38]MH_I2C_Read... [16:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:38]Read from MH i2c: E2 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 0B 00 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 0B 00 DF 10 00 FA F3 FF 26 8B E3 25 83 90 00 93 [16:31:38]RAPDU: FA F3 FF 26 8B E3 25 83 90 00 [16:31:38]wFMCommunicate OK [16:31:38]SAM_PROTO_SignData done [16:31:38]FM_MakeSignedData done [16:31:38]CreateOFDProtocolMessage [16:31:38]wFMCommunicate request_size=4 [16:31:38]MH_SAM_APDU [16:31:38]CAPDU: 80 11 00 00 [16:31:38]Write to MH i2c: E2 08 00 E0 10 80 11 00 00 00 00 00 00 6A [16:31:38]Write i2c OK [16:31:38]MH_I2C_Read... [16:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:38]Read from MH i2c: E2 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 17 00 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 17 00 E0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B1 [16:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:31:38]wFMCommunicate OK [16:31:38]CreateOFDProtocolMessage done [16:31:38]OFDSenderStorePacket 50600 [16:31:38]StoreOFDPacket docnum=50600 [16:31:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 D2 00 20 01 8F 56 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 60 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 16 00 00 00 00 07 04 06 00 60 D1 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 EA C7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C5 00 00 35 04 06 00 1D 59 7E 92 E5 8A FA F3 FF 26 8B E3 25 83 [16:31:38]CheckFolder [16:31:38]dirname=/storage/ofd_packets [16:31:38]CheckFolder done [16:31:38]ProducePacketName [16:31:38]name=ofd_packets/00050600 [16:31:38]NVStorageSaveData ofd_packets/00050600 [16:31:38]File name is /storage/ofd_packets/00050600 [16:31:38]Write 326 bytes [16:31:38]NVStorageSaveData done [16:31:38]OFDSenderStorePacket done [16:31:38]KKMCreateOFDPacket done [16:31:38]NVStorageSaveData kkm_last_timestamp [16:31:38]File name is /storage/kkm_last_timestamp [16:31:38]Write 4 bytes [16:31:38]NVStorageSaveData done [16:31:38]ExternCall_PrintAddStr [16:31:38]wPrintStart [16:31:38]Write to MH i2c: 01 00 00 E1 10 F1 [16:31:38]Write i2c OK [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: 01 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: 01 07 00 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 FF 0F 06 [16:31:38]RasterBufferAndPrint [16:31:38]line Счет N : (3)164504 [16:31:38]line ИНН: 02508201610067 [16:31:38]line Контрольно-Кассовый Чек [16:31:38]line ПРОДАЖА [16:31:38]line Товар: 4860019001346 [16:31:38]line Вода Боржоми 0,5л ст [16:31:38]line 4.000 * 134.00 [16:31:38]line = 536.00 [16:31:38]line НДС 12% НСП 1% [16:31:38]line > о реализуемом товаре [16:31:38]line ИТОГО: 536.00 [16:31:38]line НСП 1% : 4.74 [16:31:38]line НДС 12% : 56.92 [16:31:38]line Наличными: 536.00 [16:31:38]line Безнал.: 0.00 [16:31:38]line Место: АЗС № 80 "Партнер Нефть" [16:31:38]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:31:38]line СНО: Общий режим [16:31:38]line Чек 100 25.10.2024 16:31 [16:31:38]line Смена: 493 ФФД: 1.0 [16:31:38]line ЗНМ: 0300000090 [16:31:38]line РНМ: 0000000000097022 [16:31:38]line Версия ККМ: 001 [16:31:38]line ФМ: 0000000000875000 [16:31:38]line ФД: 50600 [16:31:38]line ФПД: 32270212851082 [16:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163138&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50600&fm=32270212851082&tin=02508201610067®Number=0000000000097022&sum=53600 [16:31:38]OFD Sender: Processing packet 50600 [packets to send 7, broken 6] [16:31:38]ProducePacketName [16:31:38]name=ofd_packets/00050600 [16:31:38]OFD Sender: To server: pG, [16:31:38]CommunicateWithHost lk.salyk.kg:30040 [16:31:38]ConnectInit lk.salyk.kg [16:31:38]line 0 [16:31:38]written 0, free lines is 4095 [16:31:38]Connected sock=10 [16:31:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 28 01 00 00 D2 00 20 01 8F 56 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 60 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 16 00 00 00 00 07 04 06 00 60 D1 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 EA C7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C5 00 00 35 04 06 00 1D 59 7E 92 E5 8A FA F3 FF 26 8B E3 25 83 [16:31:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CD 46 47 00 45 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A8 C5 00 00 F4 03 04 00 7B 73 1B 67 B6 04 01 00 00 4E AB E5 C1 C5 80 54 D2 [16:31:38]CommunicateWithHost err = 0 [16:31:38]CheckOFDResponse [16:31:38]1017 (14) - 77093643461234 [16:31:38]1041 (16) - 0000000000875000 [16:31:38]1040 (4) - 50600 [16:31:38]1012 (4) - 25.10.2024 10:31 [16:31:38]1206 (1) - 0 [16:31:38]OFD Sender: Remove packet 50600 [16:31:38]ProducePacketName [16:31:38]name=ofd_packets/00050600 [16:31:38]NVStorageDeleteData [16:31:38]Write to MH i2c: 01 00 00 09 11 1A [16:31:38]Write i2c OK [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: 01 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: 01 07 00 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: 01 07 00 09 11 00 00 00 00 00 33 0D 61 [16:31:38]RasterBufferAndPrint [16:31:38]line [16:31:38]line [16:31:38]line [16:31:38]line [16:31:38]line [16:31:38]written 0, free lines is 3386 [16:31:38]process_action close_receipt done [16:31:38]requested_data is exist [16:31:38]produce_requested_data [16:31:38]requested_item fm.sn is exist - process it [16:31:38]wFMCommunicate request_size=4 [16:31:38]MH_SAM_APDU [16:31:38]CAPDU: 80 11 00 00 [16:31:38]Write to MH i2c: E2 08 00 10 11 80 11 00 00 00 00 00 00 9B [16:31:38]Write i2c OK [16:31:38]MH_I2C_Read... [16:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:39]Read from MH i2c: E2 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 17 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 17 00 10 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E2 [16:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:31:39]wFMCommunicate OK [16:31:39]requested_item fd.num is exist - process it [16:31:39]SAM_PROTO_GetFieldsCounters [16:31:39]wFMCommunicate request_size=4 [16:31:39]MH_SAM_APDU [16:31:39]CAPDU: 80 13 00 00 [16:31:39]Write to MH i2c: E2 08 00 11 11 80 13 00 00 00 00 00 00 9E [16:31:39]Write i2c OK [16:31:39]MH_I2C_Read... [16:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:39]Read from MH i2c: E2 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 62 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 62 00 11 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [16:31:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:39]wFMCommunicate OK [16:31:39]SAM_PROTO_GetFieldsCounters done [16:31:39]requested_item shift.num is exist - process it [16:31:39]requested_item shift.opened is exist - process it [16:31:39]req_shift_opened [16:31:39]FM_GetShiftState [16:31:39]SAM_PROTO_GetShiftState [16:31:39]wFMCommunicate request_size=4 [16:31:39]MH_SAM_APDU [16:31:39]CAPDU: 80 13 01 00 [16:31:39]Write to MH i2c: E2 08 00 12 11 80 13 01 00 00 00 00 00 A0 [16:31:39]Write i2c OK [16:31:39]MH_I2C_Read... [16:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:39]Read from MH i2c: E2 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 0E 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 0E 00 12 11 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 98 [16:31:39]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:31:39]wFMCommunicate OK [16:31:39]SAM_PROTO_GetShiftState done [16:31:39]FM_GetShiftState done [16:31:39]req_shift_opened done [16:31:39]requested_item shift.open_date is exist - process it [16:31:39]req_shift_open_date [16:31:39]req_shift_open_date done [16:31:39]produce_requested_data done [16:31:39]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50600,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:31:39]process_action_free close_receipt [16:31:39]json_value_free [16:31:39]json_value_free done [16:31:39]process_json_proto returns [16:31:39]Send response to host [16:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50600,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:31:39]free response buf [16:31:39]execute_script done [16:31:39]execute_script returns [16:31:39]free content buf [16:31:39]Sock 9.Close socket [16:31:39]Sock 9.Thread stoped [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:08]accept exits with 7 [16:35:08]New connection [16:35:08]New thread 3066789220 created [16:35:08]Thread 3066645860 joined [16:35:08]Waiting for new connection... [16:35:08] Sock 7.Parse request [16:35:08]Sock 7.Check first char [16:35:08]Sock 7.First char is OK [16:35:08]request: POST /json_proto HTTP/1.0 [16:35:08]Method: POST [16:35:08]URL: /json_proto [16:35:08]Method is POST - this is cgi request [16:35:08]url: /json_proto [16:35:08]query_string will be loaded in cgi processing [16:35:08]execute_cgi json_proto POST (null) [16:35:08]execute_cgi path=json_proto method=POST [16:35:08]POST find Content-Length [16:35:08]Host: 172.17.49.196:8080 [16:35:08]Content-Length: 670 [16:35:08]Content-Type: application/json [16:35:08] [16:35:08]POST finish read [16:35:08]Found Content-Length = 670 [16:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164505", "tax_sys" : 0, "items" : [ { "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:08]execute_script... [16:35: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)164505", "tax_sys" : 0, "items" : [ { "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:08]POST & json_proto [16:35:08]process_json_proto [16:35:08]json parsed OK: [16:35:08]protocol is kg_v1.0 [16:35:08]action value=close_receipt [16:35:08]process_action close_receipt [16:35:08]cmd_close_receipt [16:35:08]MH_GetDate [16:35:08]Write to MH i2c: F0 00 00 13 11 13 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 09 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 09 00 13 11 00 BE C8 1B 67 BD 3B 11 67 94 [16:35:08]GetLastDocTimeStamp 1729873898 [16:35:08]current date 1729874110 [16:35:08]FM_GetShiftState [16:35:08]SAM_PROTO_GetShiftState [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 13 01 00 [16:35:08]Write to MH i2c: E2 08 00 14 11 80 13 01 00 00 00 00 00 A2 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0E 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0E 00 14 11 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 9A [16:35:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_GetShiftState done [16:35:08]FM_GetShiftState done [16:35:08]opened in 1729815177 [16:35:08]opened+sec_in_day 1729901577 [16:35:08]quantity*price = 6000 [16:35:08]sum+1 = 6001 [16:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 101 25.10.2024 16:35 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50601 ФПД: 274787053798029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163510&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50601&fm=274787053798029&tin=02508201610067®Number=0000000000097022&sum=6000 0 [16:35:09]StoreToDocumentArchive [16:35:09]shift 493 fd 50601 [16:35:09]save to /storage/0493/doc_00050601 [16:35:09]save last doc name /storage/0493/doc_00050601 to /storage/kkm_last_doc_name [16:35:09]save OK [16:35:09]Clear old archive folders... [16:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=285 [16:35:09]tlvbuf is 01E5A920 [16:35:09]SAM_PROTO_ClearQueue [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 09 00 00 [16:35:09]Write to MH i2c: E2 08 00 21 11 80 09 00 00 00 00 00 00 A4 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 21 11 00 90 00 A6 [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]SAM_PROTO_ClearQueue done [16:35:09]KKMCreateOFDPacket [16:35:09]OFDProtocolAddRootSTLVToBuf [16:35:09]FM_MakeSignedData [16:35:09]FM_MakeSignedData [16:35:09]SAM_PROTO_SignData [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 01 02 [16:35:09]Write to MH i2c: E2 08 00 22 11 80 0D 01 02 00 00 00 00 AC [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 22 11 00 90 00 A7 [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]wFMCommunicate request_size=255 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 65 00 00 00 F4 03 04 00 BE C8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 [16:35:09]Write to MH i2c: E2 02 01 23 11 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 65 00 00 00 F4 03 04 00 BE C8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 00 00 86 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 03 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 03 00 23 11 00 90 00 A8 [16:35:10]RAPDU: 90 00 [16:35:10]wFMCommunicate OK [16:35:10]wFMCommunicate request_size=44 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 0D 02 02 27 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C5 00 00 35 04 06 00 F9 EA D8 BB 02 8D [16:35:10]Write to MH i2c: E2 2F 00 24 11 80 0D 02 02 27 00 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C5 00 00 35 04 06 00 F9 EA D8 BB 02 8D 00 00 32 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 03 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 03 00 24 11 00 90 00 A9 [16:35:10]RAPDU: 90 00 [16:35:10]wFMCommunicate OK [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 0D 03 02 [16:35:10]Write to MH i2c: E2 08 00 25 11 80 0D 03 02 00 00 00 00 B1 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 0B 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 0B 00 25 11 00 BA DE A9 CD AA 06 69 D8 90 00 B1 [16:35:10]RAPDU: BA DE A9 CD AA 06 69 D8 90 00 [16:35:10]wFMCommunicate OK [16:35:10]SAM_PROTO_SignData done [16:35:10]FM_MakeSignedData done [16:35:10]CreateOFDProtocolMessage [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 11 00 00 [16:35:10]Write to MH i2c: E2 08 00 26 11 80 11 00 00 00 00 00 00 B1 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 26 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F8 [16:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:35:10]wFMCommunicate OK [16:35:10]CreateOFDProtocolMessage done [16:35:10]OFDSenderStorePacket 50601 [16:35:10]StoreOFDPacket docnum=50601 [16:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 9A 9E 29 01 63 3F 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 65 00 00 00 F4 03 04 00 BE C8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C5 00 00 35 04 06 00 F9 EA D8 BB 02 8D BA DE A9 CD AA 06 69 D8 [16:35:10]CheckFolder [16:35:10]dirname=/storage/ofd_packets [16:35:10]CheckFolder done [16:35:10]ProducePacketName [16:35:10]name=ofd_packets/00050601 [16:35:10]NVStorageSaveData ofd_packets/00050601 [16:35:10]File name is /storage/ofd_packets/00050601 [16:35:10]Write 335 bytes [16:35:10]NVStorageSaveData done [16:35:10]OFDSenderStorePacket done [16:35:10]KKMCreateOFDPacket done [16:35:10]NVStorageSaveData kkm_last_timestamp [16:35:10]File name is /storage/kkm_last_timestamp [16:35:10]Write 4 bytes [16:35:10]NVStorageSaveData done [16:35:10]ExternCall_PrintAddStr [16:35:10]wPrintStart [16:35:10]Write to MH i2c: 01 00 00 27 11 38 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 27 11 00 00 00 00 00 FF 0F 4D [16:35:10]RasterBufferAndPrint [16:35:10]line Счет N : (3)164505 [16:35:10]line ИНН: 02508201610067 [16:35:10]line Контрольно-Кассовый Чек [16:35:10]line ПРОДАЖА [16:35:10]line Товар: 4870209744502 [16:35:10]line Сухарики Флинт Сыр 100 гр [16:35:10]line 1.000 * 60.00 [16:35:10]line = 60.00 [16:35:10]line НДС 12% НСП 1% [16:35:10]line > о реализуемом товаре [16:35:10]line ИТОГО: 60.00 [16:35:10]line НСП 1% : 0.53 [16:35:10]line НДС 12% : 6.37 [16:35:10]line Наличными: 60.00 [16:35:10]line Безнал.: 0.00 [16:35:10]line Место: АЗС № 80 "Партнер Нефть" [16:35:10]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:35:10]line СНО: Общий режим [16:35:10]line Чек 101 25.10.2024 16:35 [16:35:10]line Смена: 493 ФФД: 1.0 [16:35:10]line ЗНМ: 0300000090 [16:35:10]line РНМ: 0000000000097022 [16:35:10]line Версия ККМ: 001 [16:35:10]line ФМ: 0000000000875000 [16:35:10]line ФД: 50601 [16:35:10]line ФПД: 274787053798029 [16:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T163510&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50601&fm=274787053798029&tin=02508201610067®Number=0000000000097022&sum=6000 [16:35:10]line 0 [16:35:10]OFD Sender: Processing packet 50601 [packets to send 7, broken 6] [16:35:10]ProducePacketName [16:35:10]name=ofd_packets/00050601 [16:35:10]OFD Sender: To server: pG, [16:35:10]CommunicateWithHost lk.salyk.kg:30040 [16:35:10]ConnectInit lk.salyk.kg [16:35:10]written 0, free lines is 4095 [16:35:10]Connected sock=10 [16:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 31 01 00 00 9A 9E 29 01 63 3F 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 65 00 00 00 F4 03 04 00 BE C8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C5 00 00 35 04 06 00 F9 EA D8 BB 02 8D BA DE A9 CD AA 06 69 D8 [16:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F0 A6 47 00 74 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 A9 C5 00 00 F4 03 04 00 4F 74 1B 67 B6 04 01 00 00 C8 CD F3 19 4D D8 AC 2F [16:35:11]CommunicateWithHost err = 0 [16:35:11]CheckOFDResponse [16:35:11]1017 (14) - 77093643461234 [16:35:11]1041 (16) - 0000000000875000 [16:35:11]1040 (4) - 50601 [16:35:11]1012 (4) - 25.10.2024 10:34 [16:35:11]1206 (1) - 0 [16:35:11]OFD Sender: Remove packet 50601 [16:35:11]ProducePacketName [16:35:11]name=ofd_packets/00050601 [16:35:11]NVStorageDeleteData [16:35:11]Write to MH i2c: 01 00 00 4F 11 60 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: 01 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: 01 07 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: 01 07 00 4F 11 00 00 00 00 00 27 0D 9B [16:35:11]RasterBufferAndPrint [16:35:11]line [16:35:11]line [16:35:11]line [16:35:11]line [16:35:11]line [16:35:11]written 0, free lines is 3373 [16:35:11]process_action close_receipt done [16:35:11]requested_data is exist [16:35:11]produce_requested_data [16:35:11]requested_item fm.sn is exist - process it [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 11 00 00 [16:35:11]Write to MH i2c: E2 08 00 56 11 80 11 00 00 00 00 00 00 E1 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 17 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 17 00 56 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 28 [16:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:35:11]wFMCommunicate OK [16:35:11]requested_item fd.num is exist - process it [16:35:11]SAM_PROTO_GetFieldsCounters [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 13 00 00 [16:35:11]Write to MH i2c: E2 08 00 57 11 80 13 00 00 00 00 00 00 E4 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 62 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 62 00 57 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [16:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 A9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetFieldsCounters done [16:35:11]requested_item shift.num is exist - process it [16:35:11]requested_item shift.opened is exist - process it [16:35:11]req_shift_opened [16:35:11]FM_GetShiftState [16:35:11]SAM_PROTO_GetShiftState [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 13 01 00 [16:35:11]Write to MH i2c: E2 08 00 58 11 80 13 01 00 00 00 00 00 E6 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 58 11 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DE [16:35:11]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetShiftState done [16:35:11]FM_GetShiftState done [16:35:11]req_shift_opened done [16:35:11]requested_item shift.open_date is exist - process it [16:35:11]req_shift_open_date [16:35:11]req_shift_open_date done [16:35:11]produce_requested_data done [16:35:11]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50601,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:35:11]process_action_free close_receipt [16:35:11]json_value_free [16:35:11]json_value_free done [16:35:11]process_json_proto returns [16:35:11]Send response to host [16:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50601,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:35:11]free response buf [16:35:11]execute_script done [16:35:11]execute_script returns [16:35:11]free content buf [16:35:11]Sock 7.Close socket [16:35:11]Sock 7.Thread stoped [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:50]accept exits with 9 [16:41:50]New connection [16:41:50]New thread 3066645860 created [16:41:50]Thread 3066789220 joined [16:41:50]Waiting for new connection... [16:41:50] Sock 9.Parse request [16:41:50]Sock 9.Check first char [16:41:50]Sock 9.First char is OK [16:41:50]request: POST /json_proto HTTP/1.0 [16:41:50]Method: POST [16:41:50]URL: /json_proto [16:41:50]Method is POST - this is cgi request [16:41:50]url: /json_proto [16:41:50]query_string will be loaded in cgi processing [16:41:50]execute_cgi json_proto POST (null) [16:41:50]execute_cgi path=json_proto method=POST [16:41:50]POST find Content-Length [16:41:50]Host: 172.17.49.196:8080 [16:41:50]Content-Length: 905 [16:41:50]Content-Type: application/json [16:41:50] [16:41:50]POST finish read [16:41:50]Found Content-Length = 905 [16:41:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164506", "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 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:50]execute_script... [16:41:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164506", "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 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:50]POST & json_proto [16:41:50]process_json_proto [16:41:50]json parsed OK: [16:41:50]protocol is kg_v1.0 [16:41:50]action value=close_receipt [16:41:50]process_action close_receipt [16:41:50]cmd_close_receipt [16:41:50]MH_GetDate [16:41:50]Write to MH i2c: F0 00 00 59 11 59 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: F0 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: F0 09 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: F0 09 00 59 11 00 51 CA 1B 67 BD 3B 11 67 6F [16:41:50]GetLastDocTimeStamp 1729874110 [16:41:50]current date 1729874513 [16:41:50]FM_GetShiftState [16:41:50]SAM_PROTO_GetShiftState [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 13 01 00 [16:41:50]Write to MH i2c: E2 08 00 5A 11 80 13 01 00 00 00 00 00 E8 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0E 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0E 00 5A 11 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E0 [16:41:50]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:41:50]wFMCommunicate OK [16:41:50]SAM_PROTO_GetShiftState done [16:41:50]FM_GetShiftState done [16:41:50]opened in 1729815177 [16:41:50]opened+sec_in_day 1729901577 [16:41:50]quantity*price = 8000 [16:41:50]sum+1 = 8001 [16:41:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189325 Холодный чай Fuse персик 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 102 25.10.2024 16:41 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50602 ФПД: 152387202778817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164153&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50602&fm=152387202778817&tin=02508201610067®Number=0000000000097022&sum=15500 0 [16:41:51]StoreToDocumentArchive [16:41:51]shift 493 fd 50602 [16:41:51]save to /storage/0493/doc_00050602 [16:41:51]save last doc name /storage/0493/doc_00050602 to /storage/kkm_last_doc_name [16:41:51]save OK [16:41:51]Clear old archive folders... [16:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=387 [16:41:51]tlvbuf is 01E5A6E0 [16:41:51]SAM_PROTO_ClearQueue [16:41:51]wFMCommunicate request_size=4 [16:41:51]MH_SAM_APDU [16:41:51]CAPDU: 80 09 00 00 [16:41:51]Write to MH i2c: E2 08 00 67 11 80 09 00 00 00 00 00 00 EA [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:51]Read from MH i2c: E2 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 67 11 00 90 00 EC [16:41:51]RAPDU: 90 00 [16:41:51]wFMCommunicate OK [16:41:51]SAM_PROTO_ClearQueue done [16:41:51]KKMCreateOFDPacket [16:41:51]OFDProtocolAddRootSTLVToBuf [16:41:51]FM_MakeSignedData [16:41:51]FM_MakeSignedData [16:41:51]SAM_PROTO_SignData [16:41:51]wFMCommunicate request_size=4 [16:41:51]MH_SAM_APDU [16:41:51]CAPDU: 80 0D 01 02 [16:41:51]Write to MH i2c: E2 08 00 68 11 80 0D 01 02 00 00 00 00 F2 [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:51]Read from MH i2c: E2 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 68 11 00 90 00 ED [16:41:51]RAPDU: 90 00 [16:41:51]wFMCommunicate OK [16:41:51]wFMCommunicate request_size=255 [16:41:51]MH_SAM_APDU [16:41:51]CAPDU: 80 0D 02 02 FA 03 00 83 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 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [16:41:51]Write to MH i2c: E2 02 01 69 11 80 0D 02 02 FA 00 03 00 83 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 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 33 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 03 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 03 00 69 11 00 90 00 EE [16:41:52]RAPDU: 90 00 [16:41:52]wFMCommunicate OK [16:41:52]wFMCommunicate request_size=146 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 0D 02 02 8D 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 51 CA 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C5 00 00 35 04 06 00 8A 98 69 17 06 C1 [16:41:52]Write to MH i2c: E2 95 00 6A 11 80 0D 02 02 8D 00 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 51 CA 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C5 00 00 35 04 06 00 8A 98 69 17 06 C1 00 00 C2 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 03 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 03 00 6A 11 00 90 00 EF [16:41:52]RAPDU: 90 00 [16:41:52]wFMCommunicate OK [16:41:52]wFMCommunicate request_size=4 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 0D 03 02 [16:41:52]Write to MH i2c: E2 08 00 6B 11 80 0D 03 02 00 00 00 00 F7 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 0B 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 0B 00 6B 11 00 E8 DB 1E D6 A8 96 5D 06 90 00 50 [16:41:52]RAPDU: E8 DB 1E D6 A8 96 5D 06 90 00 [16:41:52]wFMCommunicate OK [16:41:52]SAM_PROTO_SignData done [16:41:52]FM_MakeSignedData done [16:41:52]CreateOFDProtocolMessage [16:41:52]wFMCommunicate request_size=4 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 11 00 00 [16:41:52]Write to MH i2c: E2 08 00 6C 11 80 11 00 00 00 00 00 00 F7 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 17 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 17 00 6C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3E [16:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:41:52]wFMCommunicate OK [16:41:52]CreateOFDProtocolMessage done [16:41:52]OFDSenderStorePacket 50602 [16:41:52]StoreOFDPacket docnum=50602 [16:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 97 01 00 00 CC 16 8F 01 75 30 5A 03 01 00 03 00 83 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 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 51 CA 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C5 00 00 35 04 06 00 8A 98 69 17 06 C1 E8 DB 1E D6 A8 96 5D 06 [16:41:52]CheckFolder [16:41:52]dirname=/storage/ofd_packets [16:41:52]CheckFolder done [16:41:52]ProducePacketName [16:41:52]name=ofd_packets/00050602 [16:41:52]NVStorageSaveData ofd_packets/00050602 [16:41:52]File name is /storage/ofd_packets/00050602 [16:41:52]Write 437 bytes [16:41:52]NVStorageSaveData done [16:41:52]OFDSenderStorePacket done [16:41:52]KKMCreateOFDPacket done [16:41:52]NVStorageSaveData kkm_last_timestamp [16:41:52]File name is /storage/kkm_last_timestamp [16:41:52]Write 4 bytes [16:41:52]NVStorageSaveData done [16:41:52]ExternCall_PrintAddStr [16:41:52]wPrintStart [16:41:52]Write to MH i2c: 01 00 00 6D 11 7E [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 07 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 07 00 6D 11 00 00 00 00 00 FF 0F 93 [16:41:52]RasterBufferAndPrint [16:41:52]line Счет N : (3)164506 [16:41:52]line ИНН: 02508201610067 [16:41:52]line Контрольно-Кассовый Чек [16:41:52]line ПРОДАЖА [16:41:52]line Товар: 4870001570057 [16:41:52]line Напиток Pepsi 0,5л [16:41:52]line 1.000 * 80.00 [16:41:52]line = 80.00 [16:41:52]line НДС 12% НСП 1% [16:41:52]line > о реализуемом товаре [16:41:52]line Товар: 5449000189325 [16:41:52]line Холодный чай Fuse персик 0,5л [16:41:52]line 1.000 * 75.00 [16:41:52]line = 75.00 [16:41:52]line НДС 12% НСП 1% [16:41:52]line > о реализуемом товаре [16:41:52]line ИТОГО: 155.00 [16:41:52]line НСП 1% : 1.37 [16:41:52]line НДС 12% : 16.46 [16:41:52]line Наличными: 155.00 [16:41:52]line Безнал.: 0.00 [16:41:52]line Место: АЗС № 80 "Партнер Нефть" [16:41:52]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:41:52]line СНО: Общий режим [16:41:52]line Чек 102 25.10.2024 16:41 [16:41:52]line Смена: 493 ФФД: 1.0 [16:41:52]line ЗНМ: 0300000090 [16:41:52]line РНМ: 0000000000097022 [16:41:52]line Версия ККМ: 001 [16:41:52]line ФМ: 0000000000875000 [16:41:52]line ФД: 50602 [16:41:52]line ФПД: 152387202778817 [16:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164153&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50602&fm=152387202778817&tin=02508201610067®Number=0000000000097022&sum=15500 [16:41:52]line 0 [16:41:52]OFD Sender: Processing packet 50602 [packets to send 7, broken 6] [16:41:52]ProducePacketName [16:41:52]name=ofd_packets/00050602 [16:41:52]OFD Sender: To server: pG, [16:41:52]CommunicateWithHost lk.salyk.kg:30040 [16:41:52]ConnectInit lk.salyk.kg [16:41:52]written 0, free lines is 4095 [16:41:52]Connected sock=10 [16:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 97 01 00 00 CC 16 8F 01 75 30 5A 03 01 00 03 00 83 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 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 51 CA 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C5 00 00 35 04 06 00 8A 98 69 17 06 C1 E8 DB 1E D6 A8 96 5D 06 [16:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 DD 5F 47 00 F4 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AA C5 00 00 F4 03 04 00 E1 75 1B 67 B6 04 01 00 00 F4 0C 34 B2 07 B1 E2 5D [16:41:53]CommunicateWithHost err = 0 [16:41:53]CheckOFDResponse [16:41:53]1017 (14) - 77093643461234 [16:41:53]1041 (16) - 0000000000875000 [16:41:53]1040 (4) - 50602 [16:41:53]1012 (4) - 25.10.2024 10:41 [16:41:53]1206 (1) - 0 [16:41:53]OFD Sender: Remove packet 50602 [16:41:53]ProducePacketName [16:41:53]name=ofd_packets/00050602 [16:41:53]NVStorageDeleteData [16:41:53]Write to MH i2c: 01 00 00 9C 11 AD [16:41:53]Write i2c OK [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: 01 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: 01 07 00 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: 01 07 00 9C 11 00 00 00 00 00 C9 0C 89 [16:41:53]RasterBufferAndPrint [16:41:53]line [16:41:53]line [16:41:53]line [16:41:53]line [16:41:53]line [16:41:53]written 0, free lines is 3283 [16:41:53]process_action close_receipt done [16:41:53]requested_data is exist [16:41:53]produce_requested_data [16:41:53]requested_item fm.sn is exist - process it [16:41:53]wFMCommunicate request_size=4 [16:41:53]MH_SAM_APDU [16:41:53]CAPDU: 80 11 00 00 [16:41:53]Write to MH i2c: E2 08 00 A3 11 80 11 00 00 00 00 00 00 2E [16:41:53]Write i2c OK [16:41:53]MH_I2C_Read... [16:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:53]Read from MH i2c: E2 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 17 00 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 17 00 A3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 75 [16:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:41:53]wFMCommunicate OK [16:41:53]requested_item fd.num is exist - process it [16:41:53]SAM_PROTO_GetFieldsCounters [16:41:53]wFMCommunicate request_size=4 [16:41:53]MH_SAM_APDU [16:41:53]CAPDU: 80 13 00 00 [16:41:53]Write to MH i2c: E2 08 00 A4 11 80 13 00 00 00 00 00 00 31 [16:41:53]Write i2c OK [16:41:53]MH_I2C_Read... [16:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:53]Read from MH i2c: E2 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 62 00 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 62 00 A4 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [16:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:53]wFMCommunicate OK [16:41:53]SAM_PROTO_GetFieldsCounters done [16:41:53]requested_item shift.num is exist - process it [16:41:53]requested_item shift.opened is exist - process it [16:41:53]req_shift_opened [16:41:53]FM_GetShiftState [16:41:53]SAM_PROTO_GetShiftState [16:41:53]wFMCommunicate request_size=4 [16:41:53]MH_SAM_APDU [16:41:53]CAPDU: 80 13 01 00 [16:41:53]Write to MH i2c: E2 08 00 A5 11 80 13 01 00 00 00 00 00 33 [16:41:53]Write i2c OK [16:41:53]MH_I2C_Read... [16:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:53]Read from MH i2c: E2 [16:41:53]MH_I2C_Read... [16:41:53]OFD Sender: No OFD packet to send [16:41:53]Read from MH i2c: E2 0E 00 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 0E 00 A5 11 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2B [16:41:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:41:53]wFMCommunicate OK [16:41:53]SAM_PROTO_GetShiftState done [16:41:53]FM_GetShiftState done [16:41:53]req_shift_opened done [16:41:53]requested_item shift.open_date is exist - process it [16:41:53]req_shift_open_date [16:41:53]req_shift_open_date done [16:41:53]produce_requested_data done [16:41:53]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50602,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:41:53]process_action_free close_receipt [16:41:53]json_value_free [16:41:53]json_value_free done [16:41:53]process_json_proto returns [16:41:53]Send response to host [16:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50602,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:41:53]free response buf [16:41:53]execute_script done [16:41:53]execute_script returns [16:41:53]free content buf [16:41:53]Sock 9.Close socket [16:41:53]Sock 9.Thread stoped [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:35]accept exits with 7 [16:45:35]New connection [16:45:35]New thread 3066789220 created [16:45:35]Thread 3066645860 joined [16:45:35]Waiting for new connection... [16:45:35] Sock 7.Parse request [16:45:35]Sock 7.Check first char [16:45:35]Sock 7.First char is OK [16:45:35]request: POST /json_proto HTTP/1.0 [16:45:35]Method: POST [16:45:35]URL: /json_proto [16:45:35]Method is POST - this is cgi request [16:45:35]url: /json_proto [16:45:35]query_string will be loaded in cgi processing [16:45:35]execute_cgi json_proto POST (null) [16:45:35]execute_cgi path=json_proto method=POST [16:45:35]POST find Content-Length [16:45:35]Host: 172.17.49.196:8080 [16:45:35]Content-Length: 659 [16:45:35]Content-Type: application/json [16:45:35] [16:45:35]POST finish read [16:45:35]Found Content-Length = 659 [16:45:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164507", "tax_sys" : 0, "items" : [ { "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:35]execute_script... [16:45: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)164507", "tax_sys" : 0, "items" : [ { "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:35]POST & json_proto [16:45:35]process_json_proto [16:45:35]json parsed OK: [16:45:35]protocol is kg_v1.0 [16:45:35]action value=close_receipt [16:45:35]process_action close_receipt [16:45:35]cmd_close_receipt [16:45:35]MH_GetDate [16:45:35]Write to MH i2c: F0 00 00 A6 11 A6 [16:45:35]Write i2c OK [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: F0 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: F0 09 00 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: F0 09 00 A6 11 00 31 CB 1B 67 BD 3B 11 67 9D [16:45:35]GetLastDocTimeStamp 1729874513 [16:45:35]current date 1729874737 [16:45:35]FM_GetShiftState [16:45:35]SAM_PROTO_GetShiftState [16:45:35]wFMCommunicate request_size=4 [16:45:35]MH_SAM_APDU [16:45:35]CAPDU: 80 13 01 00 [16:45:35]Write to MH i2c: E2 08 00 A7 11 80 13 01 00 00 00 00 00 35 [16:45:35]Write i2c OK [16:45:35]MH_I2C_Read... [16:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:35]Read from MH i2c: E2 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: E2 0E 00 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: E2 0E 00 A7 11 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 2D [16:45:35]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:45:35]wFMCommunicate OK [16:45:35]SAM_PROTO_GetShiftState done [16:45:35]FM_GetShiftState done [16:45:35]opened in 1729815177 [16:45:35]opened+sec_in_day 1729901577 [16:45:35]quantity*price = 5100 [16:45:35]sum+1 = 5101 [16:45:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 103 25.10.2024 16:45 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50603 ФПД: 28637762221827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164537&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50603&fm=28637762221827&tin=02508201610067®Number=0000000000097022&sum=5100 0 [16:45:36]StoreToDocumentArchive [16:45:36]shift 493 fd 50603 [16:45:36]save to /storage/0493/doc_00050603 [16:45:36]save last doc name /storage/0493/doc_00050603 to /storage/kkm_last_doc_name [16:45:36]save OK [16:45:36]Clear old archive folders... [16:45:36]ProcessDocumentItem done err = 0, tmpTLVsize=286 [16:45:36]tlvbuf is 01E629C0 [16:45:36]SAM_PROTO_ClearQueue [16:45:36]wFMCommunicate request_size=4 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 09 00 00 [16:45:36]Write to MH i2c: E2 08 00 B4 11 80 09 00 00 00 00 00 00 37 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 B4 11 00 90 00 39 [16:45:36]RAPDU: 90 00 [16:45:36]wFMCommunicate OK [16:45:36]SAM_PROTO_ClearQueue done [16:45:36]KKMCreateOFDPacket [16:45:36]OFDProtocolAddRootSTLVToBuf [16:45:36]FM_MakeSignedData [16:45:36]FM_MakeSignedData [16:45:36]SAM_PROTO_SignData [16:45:36]wFMCommunicate request_size=4 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 0D 01 02 [16:45:36]Write to MH i2c: E2 08 00 B5 11 80 0D 01 02 00 00 00 00 3F [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 B5 11 00 90 00 3A [16:45:36]RAPDU: 90 00 [16:45:36]wFMCommunicate OK [16:45:36]wFMCommunicate request_size=255 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 31 CB 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 [16:45:36]Write to MH i2c: E2 02 01 B6 11 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 31 CB 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 00 00 12 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:36]Read from MH i2c: E2 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 [16:45:36]MH_I2C_Read... [16:45:36]Read from MH i2c: E2 03 00 B6 11 00 90 00 3B [16:45:36]RAPDU: 90 00 [16:45:36]wFMCommunicate OK [16:45:36]wFMCommunicate request_size=45 [16:45:36]MH_SAM_APDU [16:45:36]CAPDU: 80 0D 02 02 28 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C5 00 00 35 04 06 00 1A 0B BF A4 F7 03 [16:45:36]Write to MH i2c: E2 30 00 B7 11 80 0D 02 02 28 00 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C5 00 00 35 04 06 00 1A 0B BF A4 F7 03 00 00 78 [16:45:36]Write i2c OK [16:45:36]MH_I2C_Read... [16:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:37]Read from MH i2c: E2 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 03 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 03 00 B7 11 00 90 00 3C [16:45:37]RAPDU: 90 00 [16:45:37]wFMCommunicate OK [16:45:37]wFMCommunicate request_size=4 [16:45:37]MH_SAM_APDU [16:45:37]CAPDU: 80 0D 03 02 [16:45:37]Write to MH i2c: E2 08 00 B8 11 80 0D 03 02 00 00 00 00 44 [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:37]Read from MH i2c: E2 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 0B 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 0B 00 B8 11 00 E1 18 14 0C E9 B8 FA 92 90 00 8B [16:45:37]RAPDU: E1 18 14 0C E9 B8 FA 92 90 00 [16:45:37]wFMCommunicate OK [16:45:37]SAM_PROTO_SignData done [16:45:37]FM_MakeSignedData done [16:45:37]CreateOFDProtocolMessage [16:45:37]wFMCommunicate request_size=4 [16:45:37]MH_SAM_APDU [16:45:37]CAPDU: 80 11 00 00 [16:45:37]Write to MH i2c: E2 08 00 B9 11 80 11 00 00 00 00 00 00 44 [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:37]Read from MH i2c: E2 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 17 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 17 00 B9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8B [16:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:45:37]wFMCommunicate OK [16:45:37]CreateOFDProtocolMessage done [16:45:37]OFDSenderStorePacket 50603 [16:45:37]StoreOFDPacket docnum=50603 [16:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 32 01 00 00 A2 AA 2A 01 32 FA 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 31 CB 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C5 00 00 35 04 06 00 1A 0B BF A4 F7 03 E1 18 14 0C E9 B8 FA 92 [16:45:37]CheckFolder [16:45:37]dirname=/storage/ofd_packets [16:45:37]CheckFolder done [16:45:37]ProducePacketName [16:45:37]name=ofd_packets/00050603 [16:45:37]NVStorageSaveData ofd_packets/00050603 [16:45:37]File name is /storage/ofd_packets/00050603 [16:45:37]Write 336 bytes [16:45:37]NVStorageSaveData done [16:45:37]OFDSenderStorePacket done [16:45:37]KKMCreateOFDPacket done [16:45:37]NVStorageSaveData kkm_last_timestamp [16:45:37]File name is /storage/kkm_last_timestamp [16:45:37]Write 4 bytes [16:45:37]NVStorageSaveData done [16:45:37]ExternCall_PrintAddStr [16:45:37]wPrintStart [16:45:37]Write to MH i2c: 01 00 00 BA 11 CB [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 07 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 07 00 BA 11 00 00 00 00 00 FF 0F E0 [16:45:37]RasterBufferAndPrint [16:45:37]line Счет N : (3)164507 [16:45:37]line ИНН: 02508201610067 [16:45:37]line Контрольно-Кассовый Чек [16:45:37]line ПРОДАЖА [16:45:37]line Товар: 4700041420152 [16:45:37]line Салфетки влажн BEST GOLD 20шт [16:45:37]line 1.000 * 51.00 [16:45:37]line = 51.00 [16:45:37]line НДС 12% НСП 1% [16:45:37]line > о реализуемом товаре [16:45:37]line ИТОГО: 51.00 [16:45:37]line НСП 1% : 0.45 [16:45:37]line НДС 12% : 5.42 [16:45:37]line Наличными: 51.00 [16:45:37]line Безнал.: 0.00 [16:45:37]line Место: АЗС № 80 "Партнер Нефть" [16:45:37]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:45:37]line СНО: Общий режим [16:45:37]line Чек 103 25.10.2024 16:45 [16:45:37]line Смена: 493 ФФД: 1.0 [16:45:37]line ЗНМ: 0300000090 [16:45:37]line РНМ: 0000000000097022 [16:45:37]line Версия ККМ: 001 [16:45:37]line ФМ: 0000000000875000 [16:45:37]line ФД: 50603 [16:45:37]line ФПД: 28637762221827 [16:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T164537&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50603&fm=28637762221827&tin=02508201610067®Number=0000000000097022&sum=5100 [16:45:37]line 0 [16:45:37]OFD Sender: Processing packet 50603 [packets to send 7, broken 6] [16:45:37]ProducePacketName [16:45:37]name=ofd_packets/00050603 [16:45:37]OFD Sender: To server: pG, [16:45:37]CommunicateWithHost lk.salyk.kg:30040 [16:45:37]ConnectInit lk.salyk.kg [16:45:37]written 0, free lines is 4095 [16:45:37]Connected sock=10 [16:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 32 01 00 00 A2 AA 2A 01 32 FA 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 31 CB 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C5 00 00 35 04 06 00 1A 0B BF A4 F7 03 E1 18 14 0C E9 B8 FA 92 [16:45:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E5 1F 47 00 41 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AB C5 00 00 F4 03 04 00 C2 76 1B 67 B6 04 01 00 00 69 AB BD 55 9E 01 81 97 [16:45:37]CommunicateWithHost err = 0 [16:45:37]CheckOFDResponse [16:45:37]1017 (14) - 77093643461234 [16:45:37]1041 (16) - 0000000000875000 [16:45:37]1040 (4) - 50603 [16:45:37]1012 (4) - 25.10.2024 10:45 [16:45:37]1206 (1) - 0 [16:45:37]OFD Sender: Remove packet 50603 [16:45:37]ProducePacketName [16:45:37]name=ofd_packets/00050603 [16:45:37]NVStorageDeleteData [16:45:37]Write to MH i2c: 01 00 00 E3 11 F4 [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 07 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: 01 07 00 E3 11 00 00 00 00 00 07 0D 0F [16:45:37]RasterBufferAndPrint [16:45:37]line [16:45:37]line [16:45:37]line [16:45:37]line [16:45:37]line [16:45:37]written 0, free lines is 3341 [16:45:37]process_action close_receipt done [16:45:37]requested_data is exist [16:45:37]produce_requested_data [16:45:37]requested_item fm.sn is exist - process it [16:45:37]wFMCommunicate request_size=4 [16:45:37]MH_SAM_APDU [16:45:37]CAPDU: 80 11 00 00 [16:45:37]Write to MH i2c: E2 08 00 EA 11 80 11 00 00 00 00 00 00 75 [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:37]Read from MH i2c: E2 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 17 00 [16:45:37]MH_I2C_Read... [16:45:37]Read from MH i2c: E2 17 00 EA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 BC [16:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:45:37]wFMCommunicate OK [16:45:37]requested_item fd.num is exist - process it [16:45:37]SAM_PROTO_GetFieldsCounters [16:45:37]wFMCommunicate request_size=4 [16:45:37]MH_SAM_APDU [16:45:37]CAPDU: 80 13 00 00 [16:45:37]Write to MH i2c: E2 08 00 EB 11 80 13 00 00 00 00 00 00 78 [16:45:37]Write i2c OK [16:45:37]MH_I2C_Read... [16:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:38]Read from MH i2c: E2 [16:45:38]MH_I2C_Read... [16:45:38]Read from MH i2c: E2 62 00 [16:45:38]MH_I2C_Read... [16:45:38]Read from MH i2c: E2 62 00 EB 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:45:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:38]wFMCommunicate OK [16:45:38]SAM_PROTO_GetFieldsCounters done [16:45:38]requested_item shift.num is exist - process it [16:45:38]requested_item shift.opened is exist - process it [16:45:38]req_shift_opened [16:45:38]FM_GetShiftState [16:45:38]SAM_PROTO_GetShiftState [16:45:38]wFMCommunicate request_size=4 [16:45:38]MH_SAM_APDU [16:45:38]CAPDU: 80 13 01 00 [16:45:38]Write to MH i2c: E2 08 00 EC 11 80 13 01 00 00 00 00 00 7A [16:45:38]Write i2c OK [16:45:38]MH_I2C_Read... [16:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:38]Read from MH i2c: E2 [16:45:38]MH_I2C_Read... [16:45:38]Read from MH i2c: E2 0E 00 [16:45:38]MH_I2C_Read... [16:45:38]Read from MH i2c: E2 0E 00 EC 11 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 72 [16:45:38]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:45:38]wFMCommunicate OK [16:45:38]SAM_PROTO_GetShiftState done [16:45:38]FM_GetShiftState done [16:45:38]req_shift_opened done [16:45:38]requested_item shift.open_date is exist - process it [16:45:38]req_shift_open_date [16:45:38]req_shift_open_date done [16:45:38]produce_requested_data done [16:45:38]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50603,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:45:38]process_action_free close_receipt [16:45:38]json_value_free [16:45:38]json_value_free done [16:45:38]process_json_proto returns [16:45:38]Send response to host [16:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50603,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:45:38]free response buf [16:45:38]execute_script done [16:45:38]execute_script returns [16:45:38]free content buf [16:45:38]Sock 7.Close socket [16:45:38]Sock 7.Thread stoped [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:14]accept exits with 9 [16:56:14]New connection [16:56:14]New thread 3066645860 created [16:56:14]Thread 3066789220 joined [16:56:14]Waiting for new connection... [16:56:14] Sock 9.Parse request [16:56:14]Sock 9.Check first char [16:56:14]Sock 9.First char is OK [16:56:14]request: POST /json_proto HTTP/1.0 [16:56:14]Method: POST [16:56:14]URL: /json_proto [16:56:14]Method is POST - this is cgi request [16:56:14]url: /json_proto [16:56:14]query_string will be loaded in cgi processing [16:56:14]execute_cgi json_proto POST (null) [16:56:14]execute_cgi path=json_proto method=POST [16:56:14]POST find Content-Length [16:56:14]Host: 172.17.49.196:8080 [16:56:14]Content-Length: 679 [16:56:14]Content-Type: application/json [16:56:14] [16:56:14]POST finish read [16:56:14]Found Content-Length = 679 [16:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:14]execute_script... [16:56:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:14]POST & json_proto [16:56:14]process_json_proto [16:56:14]json parsed OK: [16:56:14]protocol is kg_v1.0 [16:56:14]action value=close_receipt [16:56:14]process_action close_receipt [16:56:14]cmd_close_receipt [16:56:14]MH_GetDate [16:56:14]Write to MH i2c: F0 00 00 ED 11 ED [16:56:14]Write i2c OK [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 09 00 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 09 00 ED 11 00 B1 CD 1B 67 BD 3B 11 67 66 [16:56:14]GetLastDocTimeStamp 1729874737 [16:56:14]current date 1729875377 [16:56:14]FM_GetShiftState [16:56:14]SAM_PROTO_GetShiftState [16:56:14]wFMCommunicate request_size=4 [16:56:14]MH_SAM_APDU [16:56:14]CAPDU: 80 13 01 00 [16:56:14]Write to MH i2c: E2 08 00 EE 11 80 13 01 00 00 00 00 00 7C [16:56:14]Write i2c OK [16:56:14]MH_I2C_Read... [16:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:14]Read from MH i2c: E2 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: E2 0E 00 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: E2 0E 00 EE 11 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 74 [16:56:14]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:56:14]wFMCommunicate OK [16:56:14]SAM_PROTO_GetShiftState done [16:56:14]FM_GetShiftState done [16:56:14]opened in 1729815177 [16:56:14]opened+sec_in_day 1729901577 [16:56:14]quantity*price = 20003 [16:56:14]sum+1 = 20004 [16:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 104 25.10.2024 16:56 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50604 ФПД: 280177859613342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165617&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50604&fm=280177859613342&tin=02508201610067®Number=0000000000097022&sum=20000 [16:56:16]StoreToDocumentArchive [16:56:16]shift 493 fd 50604 [16:56:16]save to /storage/0493/doc_00050604 [16:56:16]save last doc name /storage/0493/doc_00050604 to /storage/kkm_last_doc_name [16:56:16]save OK [16:56:16]Clear old archive folders... [16:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:16]tlvbuf is B6E80470 [16:56:16]SAM_PROTO_ClearQueue [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 09 00 00 [16:56:16]Write to MH i2c: E2 08 00 FB 11 80 09 00 00 00 00 00 00 7E [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 FB 11 00 90 00 80 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]SAM_PROTO_ClearQueue done [16:56:16]KKMCreateOFDPacket [16:56:16]OFDProtocolAddRootSTLVToBuf [16:56:16]FM_MakeSignedData [16:56:16]FM_MakeSignedData [16:56:16]SAM_PROTO_SignData [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 01 02 [16:56:16]Write to MH i2c: E2 08 00 FC 11 80 0D 01 02 00 00 00 00 86 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 FC 11 00 90 00 81 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=255 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B1 CD 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C5 00 00 35 04 06 00 FE [16:56:16]Write to MH i2c: E2 02 01 FD 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B1 CD 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C5 00 00 35 04 06 00 FE 00 00 8A [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 FD 11 00 90 00 82 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=10 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 02 02 05 D1 FD CB D2 9E [16:56:16]Write to MH i2c: E2 0D 00 FE 11 80 0D 02 02 05 00 D1 FD CB D2 9E 00 00 9C [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 FE 11 00 90 00 83 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 03 02 [16:56:16]Write to MH i2c: E2 08 00 FF 11 80 0D 03 02 00 00 00 00 8B [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 0B 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 0B 00 FF 11 00 00 35 10 95 96 75 5A DF 90 00 AA [16:56:16]RAPDU: 00 35 10 95 96 75 5A DF 90 00 [16:56:16]wFMCommunicate OK [16:56:16]SAM_PROTO_SignData done [16:56:16]FM_MakeSignedData done [16:56:16]CreateOFDProtocolMessage [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 11 00 00 [16:56:16]Write to MH i2c: E2 08 00 00 12 80 11 00 00 00 00 00 00 8C [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 17 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 17 00 00 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D3 [16:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:56:16]wFMCommunicate OK [16:56:16]CreateOFDProtocolMessage done [16:56:16]OFDSenderStorePacket 50604 [16:56:16]StoreOFDPacket docnum=50604 [16:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 86 4A 07 01 C8 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B1 CD 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C5 00 00 35 04 06 00 FE D1 FD CB D2 9E 00 35 10 95 96 75 5A DF [16:56:16]CheckFolder [16:56:16]dirname=/storage/ofd_packets [16:56:16]CheckFolder done [16:56:16]ProducePacketName [16:56:16]name=ofd_packets/00050604 [16:56:16]NVStorageSaveData ofd_packets/00050604 [16:56:16]File name is /storage/ofd_packets/00050604 [16:56:16]Write 301 bytes [16:56:16]NVStorageSaveData done [16:56:16]OFDSenderStorePacket done [16:56:16]KKMCreateOFDPacket done [16:56:16]NVStorageSaveData kkm_last_timestamp [16:56:16]File name is /storage/kkm_last_timestamp [16:56:16]Write 4 bytes [16:56:16]NVStorageSaveData done [16:56:16]ExternCall_PrintAddStr [16:56:16]wPrintStart [16:56:16]Write to MH i2c: 01 00 00 01 12 13 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 07 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 07 00 01 12 00 00 00 00 00 FF 0F 28 [16:56:16]RasterBufferAndPrint [16:56:16]line Счет N : (1)15442587 [16:56:16]line ИНН: 02508201610067 [16:56:16]line Контрольно-Кассовый Чек [16:56:16]line ПРОДАЖА [16:56:16]line ТРК (МРК, ГНК) : 13 [16:56:16]line Товар: 2710124130 [16:56:16]line Аи-92-К-4 [16:56:16]line 2.990 * 66.90 [16:56:16]line = 200.03 [16:56:16]line НДС 12% НСП 1% [16:56:16]line > о реализуемом товаре [16:56:16]line ОКРУГЛЕНИЕ: -0.03 [16:56:16]line ИТОГО: 200.00 [16:56:16]line Внесено: 200.00 [16:56:16]line СДАЧА: 0.00 [16:56:16]line НСП 1% : 1.77 [16:56:16]line НДС 12% : 21.24 [16:56:16]line Наличными: 200.00 [16:56:16]line Безнал.: 0.00 [16:56:16]line Место: АЗС № 80 "Партнер Нефть" [16:56:16]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [16:56:16]line СНО: Общий режим [16:56:16]line Чек 104 25.10.2024 16:56 [16:56:16]line Смена: 493 ФФД: 1.0 [16:56:16]line ЗНМ: 0300000090 [16:56:16]line РНМ: 0000000000097022 [16:56:16]line Версия ККМ: 001 [16:56:16]line ФМ: 0000000000875000 [16:56:16]line ФД: 50604 [16:56:16]line ФПД: 280177859613342 [16:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T165617&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50604&fm=280177859613342&tin=02508201610067®Number=0000000000097022&sum=20000 [16:56:16]OFD Sender: Processing packet 50604 [packets to send 7, broken 6] [16:56:16]ProducePacketName [16:56:16]name=ofd_packets/00050604 [16:56:16]OFD Sender: To server: pG, [16:56:16]CommunicateWithHost lk.salyk.kg:30040 [16:56:16]ConnectInit lk.salyk.kg [16:56:16]written 0, free lines is 4095 [16:56:17]Connected sock=10 [16:56:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 86 4A 07 01 C8 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B1 CD 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C5 00 00 35 04 06 00 FE D1 FD CB D2 9E 00 35 10 95 96 75 5A DF [16:56:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 3B 02 47 00 F7 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AC C5 00 00 F4 03 04 00 41 79 1B 67 B6 04 01 00 00 29 31 31 82 80 A6 1F A7 [16:56:17]CommunicateWithHost err = 0 [16:56:17]CheckOFDResponse [16:56:17]1017 (14) - 77093643461234 [16:56:17]1041 (16) - 0000000000875000 [16:56:17]1040 (4) - 50604 [16:56:17]1012 (4) - 25.10.2024 10:56 [16:56:17]1206 (1) - 0 [16:56:17]OFD Sender: Remove packet 50604 [16:56:17]ProducePacketName [16:56:17]name=ofd_packets/00050604 [16:56:17]NVStorageDeleteData [16:56:17]Write to MH i2c: 01 00 00 2C 12 3E [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 07 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 07 00 2C 12 00 00 00 00 00 F0 0C 41 [16:56:17]RasterBufferAndPrint [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]written 0, free lines is 3318 [16:56:17]process_action close_receipt done [16:56:17]requested_data is exist [16:56:17]produce_requested_data [16:56:17]requested_item fm.sn is exist - process it [16:56:17]wFMCommunicate request_size=4 [16:56:17]MH_SAM_APDU [16:56:17]CAPDU: 80 11 00 00 [16:56:17]Write to MH i2c: E2 08 00 33 12 80 11 00 00 00 00 00 00 BF [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:17]Read from MH i2c: E2 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 17 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 17 00 33 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 06 [16:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [16:56:17]wFMCommunicate OK [16:56:17]requested_item fd.num is exist - process it [16:56:17]SAM_PROTO_GetFieldsCounters [16:56:17]wFMCommunicate request_size=4 [16:56:17]MH_SAM_APDU [16:56:17]CAPDU: 80 13 00 00 [16:56:17]Write to MH i2c: E2 08 00 34 12 80 13 00 00 00 00 00 00 C2 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:17]Read from MH i2c: E2 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 62 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 62 00 34 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AC C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [16:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AC C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:17]wFMCommunicate OK [16:56:17]SAM_PROTO_GetFieldsCounters done [16:56:17]requested_item shift.num is exist - process it [16:56:17]requested_item shift.opened is exist - process it [16:56:17]req_shift_opened [16:56:17]FM_GetShiftState [16:56:17]SAM_PROTO_GetShiftState [16:56:17]wFMCommunicate request_size=4 [16:56:17]MH_SAM_APDU [16:56:17]CAPDU: 80 13 01 00 [16:56:17]Write to MH i2c: E2 08 00 35 12 80 13 01 00 00 00 00 00 C4 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:17]Read from MH i2c: E2 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 0E 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 0E 00 35 12 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 BC [16:56:17]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [16:56:17]wFMCommunicate OK [16:56:17]SAM_PROTO_GetShiftState done [16:56:17]FM_GetShiftState done [16:56:17]req_shift_opened done [16:56:17]requested_item shift.open_date is exist - process it [16:56:17]req_shift_open_date [16:56:17]req_shift_open_date done [16:56:17]produce_requested_data done [16:56:17]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50604,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [16:56:17]process_action_free close_receipt [16:56:17]json_value_free [16:56:17]json_value_free done [16:56:17]process_json_proto returns [16:56:17]Send response to host [16:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50604,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [16:56:17]free response buf [16:56:17]execute_script done [16:56:17]execute_script returns [16:56:17]free content buf [16:56:17]Sock 9.Close socket [16:56:17]Sock 9.Thread stoped [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:40]accept exits with 7 [17:05:40]New connection [17:05:40]New thread 3066789220 created [17:05:40]Thread 3066645860 joined [17:05:40]Waiting for new connection... [17:05:40] Sock 7.Parse request [17:05:40]Sock 7.Check first char [17:05:40]Sock 7.First char is OK [17:05:40]request: POST /json_proto HTTP/1.0 [17:05:40]Method: POST [17:05:40]URL: /json_proto [17:05:40]Method is POST - this is cgi request [17:05:40]url: /json_proto [17:05:40]query_string will be loaded in cgi processing [17:05:40]execute_cgi json_proto POST (null) [17:05:40]execute_cgi path=json_proto method=POST [17:05:40]POST find Content-Length [17:05:40]Host: 172.17.49.196:8080 [17:05:40]Content-Length: 817 [17:05:40]Content-Type: application/json [17:05:40] [17:05:40]POST finish read [17:05:40]Found Content-Length = 817 [17:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164508", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:40]execute_script... [17:05: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)164508", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:40]POST & json_proto [17:05:40]process_json_proto [17:05:40]json parsed OK: [17:05:40]protocol is kg_v1.0 [17:05:40]action value=close_receipt [17:05:40]process_action close_receipt [17:05:40]cmd_close_receipt [17:05:40]MH_GetDate [17:05:40]Write to MH i2c: F0 00 00 36 12 37 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: F0 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: F0 09 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: F0 09 00 36 12 00 E6 CF 1B 67 BD 3B 11 67 E7 [17:05:40]GetLastDocTimeStamp 1729875377 [17:05:40]current date 1729875942 [17:05:40]FM_GetShiftState [17:05:40]SAM_PROTO_GetShiftState [17:05:40]wFMCommunicate request_size=4 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 13 01 00 [17:05:40]Write to MH i2c: E2 08 00 37 12 80 13 01 00 00 00 00 00 C6 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 0E 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 0E 00 37 12 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 BE [17:05:40]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:05:40]wFMCommunicate OK [17:05:40]SAM_PROTO_GetShiftState done [17:05:40]FM_GetShiftState done [17:05:40]opened in 1729815177 [17:05:40]opened+sec_in_day 1729901577 [17:05:40]quantity*price = 10400 [17:05:40]sum+1 = 10401 [17:05:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 0.00 Безнал.: 104.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 105 25.10.2024 17:05 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50605 ФПД: 56772030475022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170542&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50605&fm=56772030475022&tin=02508201610067®Number=0000000000097022&sum=10400 0 [17:05:41]StoreToDocumentArchive [17:05:41]shift 493 fd 50605 [17:05:41]save to /storage/0493/doc_00050605 [17:05:41]save last doc name /storage/0493/doc_00050605 to /storage/kkm_last_doc_name [17:05:41]save OK [17:05:41]Clear old archive folders... [17:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:05:41]tlvbuf is B6E80DE0 [17:05:41]SAM_PROTO_ClearQueue [17:05:41]wFMCommunicate request_size=4 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 09 00 00 [17:05:41]Write to MH i2c: E2 08 00 44 12 80 09 00 00 00 00 00 00 C8 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 44 12 00 90 00 CA [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]SAM_PROTO_ClearQueue done [17:05:41]KKMCreateOFDPacket [17:05:41]OFDProtocolAddRootSTLVToBuf [17:05:41]FM_MakeSignedData [17:05:41]FM_MakeSignedData [17:05:41]SAM_PROTO_SignData [17:05:41]wFMCommunicate request_size=4 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 01 02 [17:05:41]Write to MH i2c: E2 08 00 45 12 80 0D 01 02 00 00 00 00 D0 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 45 12 00 90 00 CB [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]wFMCommunicate request_size=255 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 CF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:05:41]Write to MH i2c: E2 02 01 46 12 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 CF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 FE [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:42]Read from MH i2c: E2 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 03 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 03 00 46 12 00 90 00 CC [17:05:42]RAPDU: 90 00 [17:05:42]wFMCommunicate OK [17:05:42]wFMCommunicate request_size=53 [17:05:42]MH_SAM_APDU [17:05:42]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C5 00 00 35 04 06 00 33 A2 44 B5 AB 0E [17:05:42]Write to MH i2c: E2 38 00 47 12 80 0D 02 02 30 00 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C5 00 00 35 04 06 00 33 A2 44 B5 AB 0E 00 00 B0 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:42]Read from MH i2c: E2 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 03 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 03 00 47 12 00 90 00 CD [17:05:42]RAPDU: 90 00 [17:05:42]wFMCommunicate OK [17:05:42]wFMCommunicate request_size=4 [17:05:42]MH_SAM_APDU [17:05:42]CAPDU: 80 0D 03 02 [17:05:42]Write to MH i2c: E2 08 00 48 12 80 0D 03 02 00 00 00 00 D5 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:42]Read from MH i2c: E2 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 0B 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 0B 00 48 12 00 1D 4C 84 F7 FF 64 72 A1 90 00 30 [17:05:42]RAPDU: 1D 4C 84 F7 FF 64 72 A1 90 00 [17:05:42]wFMCommunicate OK [17:05:42]SAM_PROTO_SignData done [17:05:42]FM_MakeSignedData done [17:05:42]CreateOFDProtocolMessage [17:05:42]wFMCommunicate request_size=4 [17:05:42]MH_SAM_APDU [17:05:42]CAPDU: 80 11 00 00 [17:05:42]Write to MH i2c: E2 08 00 49 12 80 11 00 00 00 00 00 00 D5 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:42]Read from MH i2c: E2 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 17 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 17 00 49 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1C [17:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:05:42]wFMCommunicate OK [17:05:42]CreateOFDProtocolMessage done [17:05:42]OFDSenderStorePacket 50605 [17:05:42]StoreOFDPacket docnum=50605 [17:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 0D 0E 32 01 A5 6E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 CF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C5 00 00 35 04 06 00 33 A2 44 B5 AB 0E 1D 4C 84 F7 FF 64 72 A1 [17:05:42]CheckFolder [17:05:42]dirname=/storage/ofd_packets [17:05:42]CheckFolder done [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00050605 [17:05:42]NVStorageSaveData ofd_packets/00050605 [17:05:42]File name is /storage/ofd_packets/00050605 [17:05:42]Write 344 bytes [17:05:42]NVStorageSaveData done [17:05:42]OFDSenderStorePacket done [17:05:42]KKMCreateOFDPacket done [17:05:42]NVStorageSaveData kkm_last_timestamp [17:05:42]File name is /storage/kkm_last_timestamp [17:05:42]Write 4 bytes [17:05:42]NVStorageSaveData done [17:05:42]ExternCall_PrintAddStr [17:05:42]wPrintStart [17:05:42]Write to MH i2c: 01 00 00 4A 12 5C [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 FF 0F 71 [17:05:42]RasterBufferAndPrint [17:05:42]line Счет N : (3)164508 [17:05:42]line ИНН: 02508201610067 [17:05:42]line Контрольно-Кассовый Чек [17:05:42]line ПРОДАЖА [17:05:42]line Товар: 4870202521247 [17:05:42]line Напиток MAXI чай 1,2 черн.персик [17:05:42]line 1.000 * 104.00 [17:05:42]line = 104.00 [17:05:42]line НДС 12% НСП 1% [17:05:42]line > о реализуемом товаре [17:05:42]line ИТОГО: 104.00 [17:05:42]line НСП 1% : 0.92 [17:05:42]line НДС 12% : 11.04 [17:05:42]line Наличными: 0.00 [17:05:42]line Безнал.: 104.00 [17:05:42]line Место: АЗС № 80 "Партнер Нефть" [17:05:42]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:05:42]line СНО: Общий режим [17:05:42]line Чек 105 25.10.2024 17:05 [17:05:42]line Смена: 493 ФФД: 1.0 [17:05:42]line ЗНМ: 0300000090 [17:05:42]line РНМ: 0000000000097022 [17:05:42]line Версия ККМ: 001 [17:05:42]line Платежная система: Mbank [17:05:42]line ФМ: 0000000000875000 [17:05:42]line ФД: 50605 [17:05:42]line ФПД: 56772030475022 [17:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170542&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50605&fm=56772030475022&tin=02508201610067®Number=0000000000097022&sum=10400 [17:05:42]line 0 [17:05:42]OFD Sender: Processing packet 50605 [packets to send 7, broken 6] [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00050605 [17:05:42]OFD Sender: To server: pG, [17:05:42]CommunicateWithHost lk.salyk.kg:30040 [17:05:42]ConnectInit lk.salyk.kg [17:05:42]written 0, free lines is 4095 [17:05:42]Connected sock=10 [17:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 0D 0E 32 01 A5 6E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 CF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C5 00 00 35 04 06 00 33 A2 44 B5 AB 0E 1D 4C 84 F7 FF 64 72 A1 [17:05:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 80 8A 47 00 08 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AD C5 00 00 F4 03 04 00 77 7B 1B 67 B6 04 01 00 00 AC 23 CA 1D BE 65 57 B0 [17:05:42]CommunicateWithHost err = 0 [17:05:42]CheckOFDResponse [17:05:42]1017 (14) - 77093643461234 [17:05:42]1041 (16) - 0000000000875000 [17:05:42]1040 (4) - 50605 [17:05:42]1012 (4) - 25.10.2024 11:05 [17:05:42]1206 (1) - 0 [17:05:42]OFD Sender: Remove packet 50605 [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00050605 [17:05:42]NVStorageDeleteData [17:05:42]Write to MH i2c: 01 00 00 74 12 86 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 74 12 00 00 00 00 00 FE 0C 97 [17:05:42]RasterBufferAndPrint [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]written 0, free lines is 3332 [17:05:42]process_action close_receipt done [17:05:42]requested_data is exist [17:05:42]produce_requested_data [17:05:42]requested_item fm.sn is exist - process it [17:05:42]wFMCommunicate request_size=4 [17:05:42]MH_SAM_APDU [17:05:42]CAPDU: 80 11 00 00 [17:05:42]Write to MH i2c: E2 08 00 7B 12 80 11 00 00 00 00 00 00 07 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 17 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 17 00 7B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4E [17:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:05:43]wFMCommunicate OK [17:05:43]requested_item fd.num is exist - process it [17:05:43]SAM_PROTO_GetFieldsCounters [17:05:43]wFMCommunicate request_size=4 [17:05:43]MH_SAM_APDU [17:05:43]CAPDU: 80 13 00 00 [17:05:43]Write to MH i2c: E2 08 00 7C 12 80 13 00 00 00 00 00 00 0A [17:05:43]Write i2c OK [17:05:43]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 62 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 62 00 7C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AD C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [17:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AD C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:43]wFMCommunicate OK [17:05:43]SAM_PROTO_GetFieldsCounters done [17:05:43]requested_item shift.num is exist - process it [17:05:43]requested_item shift.opened is exist - process it [17:05:43]req_shift_opened [17:05:43]FM_GetShiftState [17:05:43]SAM_PROTO_GetShiftState [17:05:43]wFMCommunicate request_size=4 [17:05:43]MH_SAM_APDU [17:05:43]CAPDU: 80 13 01 00 [17:05:43]Write to MH i2c: E2 08 00 7D 12 80 13 01 00 00 00 00 00 0C [17:05:43]Write i2c OK [17:05:43]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 0E 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 0E 00 7D 12 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 04 [17:05:43]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:05:43]wFMCommunicate OK [17:05:43]SAM_PROTO_GetShiftState done [17:05:43]FM_GetShiftState done [17:05:43]req_shift_opened done [17:05:43]requested_item shift.open_date is exist - process it [17:05:43]req_shift_open_date [17:05:43]req_shift_open_date done [17:05:43]produce_requested_data done [17:05:43]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50605,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:05:43]process_action_free close_receipt [17:05:43]json_value_free [17:05:43]json_value_free done [17:05:43]process_json_proto returns [17:05:43]Send response to host [17:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50605,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:05:43]free response buf [17:05:43]execute_script done [17:05:43]execute_script returns [17:05:43]free content buf [17:05:43]Sock 7.Close socket [17:05:43]Sock 7.Thread stoped [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]accept exits with 9 [17:07:03]New connection [17:07:03]New thread 3066645860 created [17:07:03]Thread 3066789220 joined [17:07:03]Waiting for new connection... [17:07:03] Sock 9.Parse request [17:07:03]Sock 9.Check first char [17:07:03]Sock 9.First char is OK [17:07:03]request: POST /json_proto HTTP/1.0 [17:07:03]Method: POST [17:07:03]URL: /json_proto [17:07:03]Method is POST - this is cgi request [17:07:03]url: /json_proto [17:07:03]query_string will be loaded in cgi processing [17:07:03]execute_cgi json_proto POST (null) [17:07:03]execute_cgi path=json_proto method=POST [17:07:03]POST find Content-Length [17:07:03]Host: 172.17.49.196:8080 [17:07:03]Content-Length: 870 [17:07:03]Content-Type: application/json [17:07:03] [17:07:03]POST finish read [17:07:03]Found Content-Length = 870 [17:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164509", "tax_sys" : 0, "items" : [ { "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:03]execute_script... [17:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164509", "tax_sys" : 0, "items" : [ { "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:03]POST & json_proto [17:07:03]process_json_proto [17:07:03]json parsed OK: [17:07:03]protocol is kg_v1.0 [17:07:03]action value=close_receipt [17:07:03]process_action close_receipt [17:07:03]cmd_close_receipt [17:07:03]MH_GetDate [17:07:03]Write to MH i2c: F0 00 00 7E 12 7F [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 09 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 09 00 7E 12 00 39 D0 1B 67 BD 3B 11 67 83 [17:07:03]GetLastDocTimeStamp 1729875942 [17:07:03]current date 1729876025 [17:07:03]FM_GetShiftState [17:07:03]SAM_PROTO_GetShiftState [17:07:03]wFMCommunicate request_size=4 [17:07:03]MH_SAM_APDU [17:07:03]CAPDU: 80 13 01 00 [17:07:03]Write to MH i2c: E2 08 00 7F 12 80 13 01 00 00 00 00 00 0E [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]OFD Sender: No OFD packet to send [17:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:03]Read from MH i2c: E2 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 0E 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 0E 00 7F 12 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 06 [17:07:03]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:07:03]wFMCommunicate OK [17:07:03]SAM_PROTO_GetShiftState done [17:07:03]FM_GetShiftState done [17:07:03]opened in 1729815177 [17:07:03]opened+sec_in_day 1729901577 [17:07:03]quantity*price = 9500 [17:07:03]sum+1 = 9501 [17:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 106 25.10.2024 17:07 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50606 ФПД: 213417972759045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170705&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50606&fm=213417972759045&tin=02508201610067®Number=0000000000097022&sum=9500 0 [17:07:04]StoreToDocumentArchive [17:07:04]shift 493 fd 50606 [17:07:04]save to /storage/0493/doc_00050606 [17:07:04]save last doc name /storage/0493/doc_00050606 to /storage/kkm_last_doc_name [17:07:04]save OK [17:07:04]Clear old archive folders... [17:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=310 [17:07:04]tlvbuf is 01E5AB40 [17:07:04]SAM_PROTO_ClearQueue [17:07:04]wFMCommunicate request_size=4 [17:07:04]MH_SAM_APDU [17:07:04]CAPDU: 80 09 00 00 [17:07:04]Write to MH i2c: E2 08 00 8C 12 80 09 00 00 00 00 00 00 10 [17:07:04]Write i2c OK [17:07:04]MH_I2C_Read... [17:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:04]Read from MH i2c: E2 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 8C 12 00 90 00 12 [17:07:04]RAPDU: 90 00 [17:07:04]wFMCommunicate OK [17:07:04]SAM_PROTO_ClearQueue done [17:07:04]KKMCreateOFDPacket [17:07:04]OFDProtocolAddRootSTLVToBuf [17:07:04]FM_MakeSignedData [17:07:04]FM_MakeSignedData [17:07:04]SAM_PROTO_SignData [17:07:04]wFMCommunicate request_size=4 [17:07:04]MH_SAM_APDU [17:07:04]CAPDU: 80 0D 01 02 [17:07:04]Write to MH i2c: E2 08 00 8D 12 80 0D 01 02 00 00 00 00 18 [17:07:04]Write i2c OK [17:07:04]MH_I2C_Read... [17:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:04]Read from MH i2c: E2 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 8D 12 00 90 00 13 [17:07:04]RAPDU: 90 00 [17:07:04]wFMCommunicate OK [17:07:04]wFMCommunicate request_size=255 [17:07:04]MH_SAM_APDU [17:07:04]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 39 D0 1B 67 0E 04 04 00 ED 01 00 [17:07:04]Write to MH i2c: E2 02 01 8E 12 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 39 D0 1B 67 0E 04 04 00 ED 01 00 00 00 89 [17:07:04]Write i2c OK [17:07:04]MH_I2C_Read... [17:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 8E 12 00 90 00 14 [17:07:05]RAPDU: 90 00 [17:07:05]wFMCommunicate OK [17:07:05]wFMCommunicate request_size=69 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C5 00 00 35 04 06 00 C2 1A 3E 74 7A 05 [17:07:05]Write to MH i2c: E2 48 00 8F 12 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C5 00 00 35 04 06 00 C2 1A 3E 74 7A 05 00 00 9F [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 8F 12 00 90 00 15 [17:07:05]RAPDU: 90 00 [17:07:05]wFMCommunicate OK [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 0D 03 02 [17:07:05]Write to MH i2c: E2 08 00 90 12 80 0D 03 02 00 00 00 00 1D [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0B 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0B 00 90 12 00 A6 36 B8 FA 1A A2 0A 05 90 00 77 [17:07:05]RAPDU: A6 36 B8 FA 1A A2 0A 05 90 00 [17:07:05]wFMCommunicate OK [17:07:05]SAM_PROTO_SignData done [17:07:05]FM_MakeSignedData done [17:07:05]CreateOFDProtocolMessage [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 11 00 00 [17:07:05]Write to MH i2c: E2 08 00 91 12 80 11 00 00 00 00 00 00 1D [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 17 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 17 00 91 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 64 [17:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:07:05]wFMCommunicate OK [17:07:05]CreateOFDProtocolMessage done [17:07:05]OFDSenderStorePacket 50606 [17:07:05]StoreOFDPacket docnum=50606 [17:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4A 01 00 00 A2 69 42 01 E4 9D 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 39 D0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C5 00 00 35 04 06 00 C2 1A 3E 74 7A 05 A6 36 B8 FA 1A A2 0A 05 [17:07:05]CheckFolder [17:07:05]dirname=/storage/ofd_packets [17:07:05]CheckFolder done [17:07:05]ProducePacketName [17:07:05]name=ofd_packets/00050606 [17:07:05]NVStorageSaveData ofd_packets/00050606 [17:07:05]File name is /storage/ofd_packets/00050606 [17:07:05]Write 360 bytes [17:07:05]NVStorageSaveData done [17:07:05]OFDSenderStorePacket done [17:07:05]KKMCreateOFDPacket done [17:07:05]NVStorageSaveData kkm_last_timestamp [17:07:05]File name is /storage/kkm_last_timestamp [17:07:05]Write 4 bytes [17:07:05]NVStorageSaveData done [17:07:05]ExternCall_PrintAddStr [17:07:05]wPrintStart [17:07:05]Write to MH i2c: 01 00 00 92 12 A4 [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 07 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 FF 0F B9 [17:07:05]RasterBufferAndPrint [17:07:05]line Счет N : (3)164509 [17:07:05]line ИНН: 02508201610067 [17:07:05]line Контрольно-Кассовый Чек [17:07:05]line ПРОДАЖА [17:07:05]line Товар: 4607015232868 [17:07:05]line Вафли Яшкино в шоколадной глазури 200г [17:07:05]line 1.000 * 95.00 [17:07:05]line = 95.00 [17:07:05]line НДС 12% НСП 1% [17:07:05]line > о реализуемом товаре [17:07:05]line ИТОГО: 95.00 [17:07:05]line НСП 1% : 0.84 [17:07:05]line НДС 12% : 10.09 [17:07:05]line Наличными: 0.00 [17:07:05]line Безнал.: 95.00 [17:07:05]line Место: АЗС № 80 "Партнер Нефть" [17:07:05]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:07:05]line СНО: Общий режим [17:07:05]line Чек 106 25.10.2024 17:07 [17:07:05]line Смена: 493 ФФД: 1.0 [17:07:05]line ЗНМ: 0300000090 [17:07:05]line РНМ: 0000000000097022 [17:07:05]line Версия ККМ: 001 [17:07:05]line Платежная система: Mbank [17:07:05]line ФМ: 0000000000875000 [17:07:05]line ФД: 50606 [17:07:05]line ФПД: 213417972759045 [17:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T170705&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50606&fm=213417972759045&tin=02508201610067®Number=0000000000097022&sum=9500 [17:07:05]line 0 [17:07:05]OFD Sender: Processing packet 50606 [packets to send 7, broken 6] [17:07:05]ProducePacketName [17:07:05]name=ofd_packets/00050606 [17:07:05]OFD Sender: To server: pG, [17:07:05]CommunicateWithHost lk.salyk.kg:30040 [17:07:05]ConnectInit lk.salyk.kg [17:07:05]written 0, free lines is 4095 [17:07:05]Connected sock=10 [17:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4A 01 00 00 A2 69 42 01 E4 9D 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 39 D0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C5 00 00 35 04 06 00 C2 1A 3E 74 7A 05 A6 36 B8 FA 1A A2 0A 05 [17:07:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 FD 86 47 00 CE B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AE C5 00 00 F4 03 04 00 CA 7B 1B 67 B6 04 01 00 00 6C 8D 12 9C D5 8C 4A 30 [17:07:05]CommunicateWithHost err = 0 [17:07:05]CheckOFDResponse [17:07:05]1017 (14) - 77093643461234 [17:07:05]1041 (16) - 0000000000875000 [17:07:05]1040 (4) - 50606 [17:07:05]1012 (4) - 25.10.2024 11:06 [17:07:05]1206 (1) - 0 [17:07:05]OFD Sender: Remove packet 50606 [17:07:05]ProducePacketName [17:07:05]name=ofd_packets/00050606 [17:07:05]NVStorageDeleteData [17:07:06]Write to MH i2c: 01 00 00 BC 12 CE [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 07 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 07 00 BC 12 00 00 00 00 00 06 0D E8 [17:07:06]RasterBufferAndPrint [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]written 0, free lines is 3340 [17:07:06]process_action close_receipt done [17:07:06]requested_data is exist [17:07:06]produce_requested_data [17:07:06]requested_item fm.sn is exist - process it [17:07:06]wFMCommunicate request_size=4 [17:07:06]MH_SAM_APDU [17:07:06]CAPDU: 80 11 00 00 [17:07:06]Write to MH i2c: E2 08 00 C3 12 80 11 00 00 00 00 00 00 4F [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:06]Read from MH i2c: E2 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 17 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 17 00 C3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 96 [17:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:07:06]wFMCommunicate OK [17:07:06]requested_item fd.num is exist - process it [17:07:06]SAM_PROTO_GetFieldsCounters [17:07:06]wFMCommunicate request_size=4 [17:07:06]MH_SAM_APDU [17:07:06]CAPDU: 80 13 00 00 [17:07:06]Write to MH i2c: E2 08 00 C4 12 80 13 00 00 00 00 00 00 52 [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:06]Read from MH i2c: E2 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 62 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 62 00 C4 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AE C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [17:07:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AE C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:06]wFMCommunicate OK [17:07:06]SAM_PROTO_GetFieldsCounters done [17:07:06]requested_item shift.num is exist - process it [17:07:06]requested_item shift.opened is exist - process it [17:07:06]req_shift_opened [17:07:06]FM_GetShiftState [17:07:06]SAM_PROTO_GetShiftState [17:07:06]wFMCommunicate request_size=4 [17:07:06]MH_SAM_APDU [17:07:06]CAPDU: 80 13 01 00 [17:07:06]Write to MH i2c: E2 08 00 C5 12 80 13 01 00 00 00 00 00 54 [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:06]Read from MH i2c: E2 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 0E 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 0E 00 C5 12 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4C [17:07:06]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:07:06]wFMCommunicate OK [17:07:06]SAM_PROTO_GetShiftState done [17:07:06]FM_GetShiftState done [17:07:06]req_shift_opened done [17:07:06]requested_item shift.open_date is exist - process it [17:07:06]req_shift_open_date [17:07:06]req_shift_open_date done [17:07:06]produce_requested_data done [17:07:06]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50606,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:07:06]process_action_free close_receipt [17:07:06]json_value_free [17:07:06]json_value_free done [17:07:06]process_json_proto returns [17:07:06]Send response to host [17:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50606,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:07:06]free response buf [17:07:06]execute_script done [17:07:06]execute_script returns [17:07:06]free content buf [17:07:06]Sock 9.Close socket [17:07:06]Sock 9.Thread stoped [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]accept exits with 7 [17:11:51]New connection [17:11:51]New thread 3066789220 created [17:11:51]Thread 3066645860 joined [17:11:51]Waiting for new connection... [17:11:51] Sock 7.Parse request [17:11:51]Sock 7.Check first char [17:11:51]Sock 7.First char is OK [17:11:51]request: POST /json_proto HTTP/1.0 [17:11:51]Method: POST [17:11:51]URL: /json_proto [17:11:51]Method is POST - this is cgi request [17:11:51]url: /json_proto [17:11:51]query_string will be loaded in cgi processing [17:11:51]execute_cgi json_proto POST (null) [17:11:51]execute_cgi path=json_proto method=POST [17:11:51]POST find Content-Length [17:11:51]Host: 172.17.49.196:8080 [17:11:51]Content-Length: 687 [17:11:51]Content-Type: application/json [17:11:51] [17:11:51]POST finish read [17:11:51]Found Content-Length = 687 [17:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 46.800, "sum" : 1820.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1820.00, "payments": [ { "type": 0, "sum" : 1820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:51]execute_script... [17:11:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 46.800, "sum" : 1820.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1820.00, "payments": [ { "type": 0, "sum" : 1820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:51]POST & json_proto [17:11:51]process_json_proto [17:11:51]json parsed OK: [17:11:51]protocol is kg_v1.0 [17:11:51]action value=close_receipt [17:11:51]process_action close_receipt [17:11:51]cmd_close_receipt [17:11:51]MH_GetDate [17:11:51]Write to MH i2c: F0 00 00 C6 12 C7 [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: F0 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: F0 09 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: F0 09 00 C6 12 00 59 D1 1B 67 BD 3B 11 67 EC [17:11:51]GetLastDocTimeStamp 1729876025 [17:11:51]current date 1729876313 [17:11:51]FM_GetShiftState [17:11:51]SAM_PROTO_GetShiftState [17:11:51]wFMCommunicate request_size=4 [17:11:51]MH_SAM_APDU [17:11:51]CAPDU: 80 13 01 00 [17:11:51]Write to MH i2c: E2 08 00 C7 12 80 13 01 00 00 00 00 00 56 [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 0E 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 0E 00 C7 12 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4E [17:11:51]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:11:51]wFMCommunicate OK [17:11:51]SAM_PROTO_GetShiftState done [17:11:51]FM_GetShiftState done [17:11:51]opened in 1729815177 [17:11:51]opened+sec_in_day 1729901577 [17:11:51]quantity*price = 182052 [17:11:51]sum+1 = 182053 [17:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1820.00 Внесено: 4000.00 СДАЧА: 2180.00 НСП 1% : 16.11 НДС 12% : 193.33 Наличными: 1820.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 107 25.10.2024 17:11 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50607 ФПД: 199233080975968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171153&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50607&fm=199233080975968&tin=02508201610067®Number=0000000000097022&sum=182000 [17:11:52]StoreToDocumentArchive [17:11:52]shift 493 fd 50607 [17:11:52]save to /storage/0493/doc_00050607 [17:11:52]save last doc name /storage/0493/doc_00050607 to /storage/kkm_last_doc_name [17:11:52]save OK [17:11:52]Clear old archive folders... [17:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:11:52]tlvbuf is 01E71940 [17:11:52]SAM_PROTO_ClearQueue [17:11:52]wFMCommunicate request_size=4 [17:11:52]MH_SAM_APDU [17:11:52]CAPDU: 80 09 00 00 [17:11:52]Write to MH i2c: E2 08 00 D4 12 80 09 00 00 00 00 00 00 58 [17:11:52]Write i2c OK [17:11:52]MH_I2C_Read... [17:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:52]Read from MH i2c: E2 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 03 00 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [17:11:52]RAPDU: 90 00 [17:11:52]wFMCommunicate OK [17:11:52]SAM_PROTO_ClearQueue done [17:11:52]KKMCreateOFDPacket [17:11:52]OFDProtocolAddRootSTLVToBuf [17:11:52]FM_MakeSignedData [17:11:52]FM_MakeSignedData [17:11:52]SAM_PROTO_SignData [17:11:52]wFMCommunicate request_size=4 [17:11:52]MH_SAM_APDU [17:11:52]CAPDU: 80 0D 01 02 [17:11:52]Write to MH i2c: E2 08 00 D5 12 80 0D 01 02 00 00 00 00 60 [17:11:52]Write i2c OK [17:11:52]MH_I2C_Read... [17:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:52]Read from MH i2c: E2 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 03 00 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 03 00 D5 12 00 90 00 5B [17:11:52]RAPDU: 90 00 [17:11:52]wFMCommunicate OK [17:11:52]wFMCommunicate request_size=255 [17:11:52]MH_SAM_APDU [17:11:52]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 D0 B6 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 24 C7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 4B 00 00 00 00 07 04 06 00 F0 C6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 59 D1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C5 00 00 35 04 06 00 B5 33 [17:11:52]Write to MH i2c: E2 02 01 D6 12 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 D0 B6 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 24 C7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 4B 00 00 00 00 07 04 06 00 F0 C6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 59 D1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C5 00 00 35 04 06 00 B5 33 00 00 A6 [17:11:52]Write i2c OK [17:11:52]MH_I2C_Read... [17:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:52]Read from MH i2c: E2 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 03 00 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 03 00 D6 12 00 90 00 5C [17:11:52]RAPDU: 90 00 [17:11:52]wFMCommunicate OK [17:11:52]wFMCommunicate request_size=9 [17:11:52]MH_SAM_APDU [17:11:52]CAPDU: 80 0D 02 02 04 91 04 E2 60 [17:11:52]Write to MH i2c: E2 0C 00 D7 12 80 0D 02 02 04 00 91 04 E2 60 00 00 42 [17:11:52]Write i2c OK [17:11:52]MH_I2C_Read... [17:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:52]Read from MH i2c: E2 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 03 00 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 03 00 D7 12 00 90 00 5D [17:11:52]RAPDU: 90 00 [17:11:52]wFMCommunicate OK [17:11:52]wFMCommunicate request_size=4 [17:11:52]MH_SAM_APDU [17:11:52]CAPDU: 80 0D 03 02 [17:11:52]Write to MH i2c: E2 08 00 D8 12 80 0D 03 02 00 00 00 00 65 [17:11:52]Write i2c OK [17:11:52]MH_I2C_Read... [17:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:52]Read from MH i2c: E2 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 0B 00 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 0B 00 D8 12 00 C6 B8 3F 33 3A B9 98 00 90 00 E1 [17:11:52]RAPDU: C6 B8 3F 33 3A B9 98 00 90 00 [17:11:52]wFMCommunicate OK [17:11:52]SAM_PROTO_SignData done [17:11:52]FM_MakeSignedData done [17:11:52]CreateOFDProtocolMessage [17:11:52]wFMCommunicate request_size=4 [17:11:52]MH_SAM_APDU [17:11:52]CAPDU: 80 11 00 00 [17:11:52]Write to MH i2c: E2 08 00 D9 12 80 11 00 00 00 00 00 00 65 [17:11:52]Write i2c OK [17:11:52]MH_I2C_Read... [17:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:52]Read from MH i2c: E2 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 17 00 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: E2 17 00 D9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AC [17:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:11:52]wFMCommunicate OK [17:11:52]CreateOFDProtocolMessage done [17:11:52]OFDSenderStorePacket 50607 [17:11:52]StoreOFDPacket docnum=50607 [17:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0E 01 00 00 F8 05 06 01 E6 C4 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 D0 B6 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 24 C7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 4B 00 00 00 00 07 04 06 00 F0 C6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 59 D1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C5 00 00 35 04 06 00 B5 33 91 04 E2 60 C6 B8 3F 33 3A B9 98 00 [17:11:52]CheckFolder [17:11:52]dirname=/storage/ofd_packets [17:11:52]CheckFolder done [17:11:52]ProducePacketName [17:11:52]name=ofd_packets/00050607 [17:11:52]NVStorageSaveData ofd_packets/00050607 [17:11:52]File name is /storage/ofd_packets/00050607 [17:11:52]Write 300 bytes [17:11:52]NVStorageSaveData done [17:11:52]OFDSenderStorePacket done [17:11:52]KKMCreateOFDPacket done [17:11:52]NVStorageSaveData kkm_last_timestamp [17:11:52]File name is /storage/kkm_last_timestamp [17:11:52]Write 4 bytes [17:11:52]NVStorageSaveData done [17:11:52]ExternCall_PrintAddStr [17:11:52]wPrintStart [17:11:52]Write to MH i2c: 01 00 00 DA 12 EC [17:11:52]Write i2c OK [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: 01 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: 01 07 00 [17:11:52]MH_I2C_Read... [17:11:52]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [17:11:52]RasterBufferAndPrint [17:11:52]line Счет N : (1)15442597 [17:11:52]line ИНН: 02508201610067 [17:11:52]line Контрольно-Кассовый Чек [17:11:52]line ПРОДАЖА [17:11:52]line ТРК (МРК, ГНК) : 71 [17:11:52]line Товар: 2711190000 [17:11:52]line ГАЗ-К-5 [17:11:52]line 46.800 * 38.90 [17:11:52]line = 1820.52 [17:11:52]line НДС 12% НСП 1% [17:11:52]line > о реализуемом товаре [17:11:52]line ОКРУГЛЕНИЕ: -0.52 [17:11:52]line ИТОГО: 1820.00 [17:11:52]line Внесено: 4000.00 [17:11:52]line СДАЧА: 2180.00 [17:11:52]line НСП 1% : 16.11 [17:11:52]line НДС 12% : 193.33 [17:11:52]line Наличными: 1820.00 [17:11:52]line Безнал.: 0.00 [17:11:52]line Место: АЗС № 80 "Партнер Нефть" [17:11:52]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:11:52]line СНО: Общий режим [17:11:52]line Чек 107 25.10.2024 17:11 [17:11:52]line Смена: 493 ФФД: 1.0 [17:11:52]line ЗНМ: 0300000090 [17:11:52]line РНМ: 0000000000097022 [17:11:52]line Версия ККМ: 001 [17:11:52]line ФМ: 0000000000875000 [17:11:52]line ФД: 50607 [17:11:52]line ФПД: 199233080975968 [17:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171153&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50607&fm=199233080975968&tin=02508201610067®Number=0000000000097022&sum=182000 [17:11:53]OFD Sender: Processing packet 50607 [packets to send 7, broken 6] [17:11:53]ProducePacketName [17:11:53]name=ofd_packets/00050607 [17:11:53]OFD Sender: To server: pG, [17:11:53]CommunicateWithHost lk.salyk.kg:30040 [17:11:53]ConnectInit lk.salyk.kg [17:11:53]written 0, free lines is 4095 [17:11:53]Connected sock=10 [17:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0E 01 00 00 F8 05 06 01 E6 C4 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 D0 B6 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 24 C7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 4B 00 00 00 00 07 04 06 00 F0 C6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 59 D1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C5 00 00 35 04 06 00 B5 33 91 04 E2 60 C6 B8 3F 33 3A B9 98 00 [17:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 7B A9 47 00 6D CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 AF C5 00 00 F4 03 04 00 E9 7C 1B 67 B6 04 01 00 00 3B 17 81 AC C3 35 CE C5 [17:11:53]CommunicateWithHost err = 0 [17:11:53]CheckOFDResponse [17:11:53]1017 (14) - 77093643461234 [17:11:53]1041 (16) - 0000000000875000 [17:11:53]1040 (4) - 50607 [17:11:53]1012 (4) - 25.10.2024 11:11 [17:11:53]1206 (1) - 0 [17:11:53]OFD Sender: Remove packet 50607 [17:11:53]ProducePacketName [17:11:53]name=ofd_packets/00050607 [17:11:53]NVStorageDeleteData [17:11:53]Write to MH i2c: 01 00 00 05 13 18 [17:11:53]Write i2c OK [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: 01 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: 01 07 00 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: 01 07 00 05 13 00 00 00 00 00 F4 0C 1F [17:11:53]RasterBufferAndPrint [17:11:53]line [17:11:53]line [17:11:53]line [17:11:53]line [17:11:53]line [17:11:53]written 0, free lines is 3322 [17:11:53]process_action close_receipt done [17:11:53]requested_data is exist [17:11:53]produce_requested_data [17:11:53]requested_item fm.sn is exist - process it [17:11:53]wFMCommunicate request_size=4 [17:11:53]MH_SAM_APDU [17:11:53]CAPDU: 80 11 00 00 [17:11:53]Write to MH i2c: E2 08 00 0C 13 80 11 00 00 00 00 00 00 99 [17:11:53]Write i2c OK [17:11:53]MH_I2C_Read... [17:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:53]Read from MH i2c: E2 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: E2 17 00 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: E2 17 00 0C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E0 [17:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:11:53]wFMCommunicate OK [17:11:53]requested_item fd.num is exist - process it [17:11:53]SAM_PROTO_GetFieldsCounters [17:11:53]wFMCommunicate request_size=4 [17:11:53]MH_SAM_APDU [17:11:53]CAPDU: 80 13 00 00 [17:11:53]Write to MH i2c: E2 08 00 0D 13 80 13 00 00 00 00 00 00 9C [17:11:53]Write i2c OK [17:11:53]MH_I2C_Read... [17:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:53]Read from MH i2c: E2 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: E2 62 00 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: E2 62 00 0D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [17:11:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 AF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:53]wFMCommunicate OK [17:11:53]SAM_PROTO_GetFieldsCounters done [17:11:53]requested_item shift.num is exist - process it [17:11:53]requested_item shift.opened is exist - process it [17:11:53]req_shift_opened [17:11:53]FM_GetShiftState [17:11:53]SAM_PROTO_GetShiftState [17:11:53]wFMCommunicate request_size=4 [17:11:53]MH_SAM_APDU [17:11:53]CAPDU: 80 13 01 00 [17:11:53]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [17:11:53]Write i2c OK [17:11:53]MH_I2C_Read... [17:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:53]Read from MH i2c: E2 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: E2 0E 00 [17:11:53]MH_I2C_Read... [17:11:53]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 96 [17:11:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:11:53]wFMCommunicate OK [17:11:53]SAM_PROTO_GetShiftState done [17:11:53]FM_GetShiftState done [17:11:53]req_shift_opened done [17:11:53]requested_item shift.open_date is exist - process it [17:11:53]req_shift_open_date [17:11:53]req_shift_open_date done [17:11:53]produce_requested_data done [17:11:53]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50607,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:11:53]process_action_free close_receipt [17:11:53]json_value_free [17:11:53]json_value_free done [17:11:53]process_json_proto returns [17:11:53]Send response to host [17:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50607,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:11:53]free response buf [17:11:53]execute_script done [17:11:53]execute_script returns [17:11:53]free content buf [17:11:53]Sock 7.Close socket [17:11:53]Sock 7.Thread stoped [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:44]accept exits with 9 [17:19:44]New connection [17:19:44]New thread 3066645860 created [17:19:44]Thread 3066789220 joined [17:19:44]Waiting for new connection... [17:19:44] Sock 9.Parse request [17:19:44]Sock 9.Check first char [17:19:44]Sock 9.First char is OK [17:19:44]request: POST /json_proto HTTP/1.0 [17:19:44]Method: POST [17:19:44]URL: /json_proto [17:19:44]Method is POST - this is cgi request [17:19:44]url: /json_proto [17:19:44]query_string will be loaded in cgi processing [17:19:44]execute_cgi json_proto POST (null) [17:19:44]execute_cgi path=json_proto method=POST [17:19:44]POST find Content-Length [17:19:44]Host: 172.17.49.196:8080 [17:19:44]Content-Length: 627 [17:19:44]Content-Type: application/json [17:19:44] [17:19:44]POST finish read [17:19:44]Found Content-Length = 627 [17:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164510", "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" ] } } [17:19:44]execute_script... [17:19: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)164510", "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" ] } } [17:19:44]POST & json_proto [17:19:44]process_json_proto [17:19:44]json parsed OK: [17:19:44]protocol is kg_v1.0 [17:19:44]action value=close_receipt [17:19:44]process_action close_receipt [17:19:44]cmd_close_receipt [17:19:44]MH_GetDate [17:19:44]Write to MH i2c: F0 00 00 0F 13 11 [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: F0 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: F0 09 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: F0 09 00 0F 13 00 32 D3 1B 67 BD 3B 11 67 11 [17:19:44]GetLastDocTimeStamp 1729876313 [17:19:44]current date 1729876786 [17:19:44]FM_GetShiftState [17:19:44]SAM_PROTO_GetShiftState [17:19:44]wFMCommunicate request_size=4 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 13 01 00 [17:19:44]Write to MH i2c: E2 08 00 10 13 80 13 01 00 00 00 00 00 A0 [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 0E 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 0E 00 10 13 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 98 [17:19:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:19:44]wFMCommunicate OK [17:19:44]SAM_PROTO_GetShiftState done [17:19:44]FM_GetShiftState done [17:19:44]opened in 1729815177 [17:19:44]opened+sec_in_day 1729901577 [17:19:44]quantity*price = 4000 [17:19:44]sum+1 = 4001 [17:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 108 25.10.2024 17:19 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50608 ФПД: 217754161843741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171947&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50608&fm=217754161843741&tin=02508201610067®Number=0000000000097022&sum=4000 0 [17:19:45]StoreToDocumentArchive [17:19:45]shift 493 fd 50608 [17:19:45]save to /storage/0493/doc_00050608 [17:19:45]save last doc name /storage/0493/doc_00050608 to /storage/kkm_last_doc_name [17:19:45]save OK [17:19:45]Clear old archive folders... [17:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=270 [17:19:45]tlvbuf is 01E956D0 [17:19:45]SAM_PROTO_ClearQueue [17:19:45]wFMCommunicate request_size=4 [17:19:45]MH_SAM_APDU [17:19:45]CAPDU: 80 09 00 00 [17:19:45]Write to MH i2c: E2 08 00 1D 13 80 09 00 00 00 00 00 00 A2 [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:45]Read from MH i2c: E2 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [17:19:45]RAPDU: 90 00 [17:19:45]wFMCommunicate OK [17:19:45]SAM_PROTO_ClearQueue done [17:19:45]KKMCreateOFDPacket [17:19:45]OFDProtocolAddRootSTLVToBuf [17:19:45]FM_MakeSignedData [17:19:45]FM_MakeSignedData [17:19:45]SAM_PROTO_SignData [17:19:45]wFMCommunicate request_size=4 [17:19:45]MH_SAM_APDU [17:19:45]CAPDU: 80 0D 01 02 [17:19:45]Write to MH i2c: E2 08 00 1E 13 80 0D 01 02 00 00 00 00 AA [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:45]Read from MH i2c: E2 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [17:19:45]RAPDU: 90 00 [17:19:45]wFMCommunicate OK [17:19:45]wFMCommunicate request_size=255 [17:19:45]MH_SAM_APDU [17:19:45]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 6C 00 00 00 F4 03 04 00 33 D3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [17:19:45]Write to MH i2c: E2 02 01 1F 13 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 6C 00 00 00 F4 03 04 00 33 D3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 EB [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:46]Read from MH i2c: E2 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 03 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [17:19:46]RAPDU: 90 00 [17:19:46]wFMCommunicate OK [17:19:46]wFMCommunicate request_size=29 [17:19:46]MH_SAM_APDU [17:19:46]CAPDU: 80 0D 02 02 18 38 37 35 30 30 30 10 04 04 00 B0 C5 00 00 35 04 06 00 C6 0B D7 77 0E 1D [17:19:46]Write to MH i2c: E2 20 00 20 13 80 0D 02 02 18 00 38 37 35 30 30 30 10 04 04 00 B0 C5 00 00 35 04 06 00 C6 0B D7 77 0E 1D 00 00 27 [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:46]Read from MH i2c: E2 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 03 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [17:19:46]RAPDU: 90 00 [17:19:46]wFMCommunicate OK [17:19:46]wFMCommunicate request_size=4 [17:19:46]MH_SAM_APDU [17:19:46]CAPDU: 80 0D 03 02 [17:19:46]Write to MH i2c: E2 08 00 21 13 80 0D 03 02 00 00 00 00 AF [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:46]Read from MH i2c: E2 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 0B 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 0B 00 21 13 00 7A 89 E3 C9 CC 43 51 08 90 00 C7 [17:19:46]RAPDU: 7A 89 E3 C9 CC 43 51 08 90 00 [17:19:46]wFMCommunicate OK [17:19:46]SAM_PROTO_SignData done [17:19:46]FM_MakeSignedData done [17:19:46]CreateOFDProtocolMessage [17:19:46]wFMCommunicate request_size=4 [17:19:46]MH_SAM_APDU [17:19:46]CAPDU: 80 11 00 00 [17:19:46]Write to MH i2c: E2 08 00 22 13 80 11 00 00 00 00 00 00 AF [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:46]Read from MH i2c: E2 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 17 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 17 00 22 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F6 [17:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:19:46]wFMCommunicate OK [17:19:46]CreateOFDProtocolMessage done [17:19:46]OFDSenderStorePacket 50608 [17:19:46]StoreOFDPacket docnum=50608 [17:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 22 01 00 00 D5 32 1A 01 62 1B 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 6C 00 00 00 F4 03 04 00 33 D3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B0 C5 00 00 35 04 06 00 C6 0B D7 77 0E 1D 7A 89 E3 C9 CC 43 51 08 [17:19:46]CheckFolder [17:19:46]dirname=/storage/ofd_packets [17:19:46]CheckFolder done [17:19:46]ProducePacketName [17:19:46]name=ofd_packets/00050608 [17:19:46]NVStorageSaveData ofd_packets/00050608 [17:19:46]File name is /storage/ofd_packets/00050608 [17:19:46]Write 320 bytes [17:19:46]NVStorageSaveData done [17:19:46]OFDSenderStorePacket done [17:19:46]KKMCreateOFDPacket done [17:19:46]NVStorageSaveData kkm_last_timestamp [17:19:46]File name is /storage/kkm_last_timestamp [17:19:46]Write 4 bytes [17:19:46]NVStorageSaveData done [17:19:46]ExternCall_PrintAddStr [17:19:46]wPrintStart [17:19:46]Write to MH i2c: 01 00 00 23 13 36 [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 07 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 07 00 23 13 00 00 00 00 00 FF 0F 4B [17:19:46]RasterBufferAndPrint [17:19:46]line Счет N : (3)164510 [17:19:46]line ИНН: 02508201610067 [17:19:46]line Контрольно-Кассовый Чек [17:19:46]line ПРОДАЖА [17:19:46]line Товар: 2000039440011 [17:19:46]line Чай черный 200 мл [17:19:46]line 1.000 * 40.00 [17:19:46]line = 40.00 [17:19:46]line НДС 12% НСП 1% [17:19:46]line > о реализуемом товаре [17:19:46]line ИТОГО: 40.00 [17:19:46]line НСП 1% : 0.35 [17:19:46]line НДС 12% : 4.25 [17:19:46]line Наличными: 40.00 [17:19:46]line Безнал.: 0.00 [17:19:46]line Место: АЗС № 80 "Партнер Нефть" [17:19:46]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:19:46]line СНО: Общий режим [17:19:46]line Чек 108 25.10.2024 17:19 [17:19:46]line Смена: 493 ФФД: 1.0 [17:19:46]line ЗНМ: 0300000090 [17:19:46]line РНМ: 0000000000097022 [17:19:46]line Версия ККМ: 001 [17:19:46]line ФМ: 0000000000875000 [17:19:46]line ФД: 50608 [17:19:46]line ФПД: 217754161843741 [17:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T171947&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50608&fm=217754161843741&tin=02508201610067®Number=0000000000097022&sum=4000 [17:19:46]OFD Sender: Processing packet 50608 [packets to send 7, broken 6] [17:19:46]ProducePacketName [17:19:46]name=ofd_packets/00050608 [17:19:46]OFD Sender: To server: pG, [17:19:46]CommunicateWithHost lk.salyk.kg:30040 [17:19:46]ConnectInit lk.salyk.kg [17:19:46]line 0 [17:19:46]written 0, free lines is 4095 [17:19:46]Connected sock=10 [17:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 22 01 00 00 D5 32 1A 01 62 1B 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 6C 00 00 00 F4 03 04 00 33 D3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B0 C5 00 00 35 04 06 00 C6 0B D7 77 0E 1D 7A 89 E3 C9 CC 43 51 08 [17:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D1 05 47 00 22 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B0 C5 00 00 F4 03 04 00 C3 7E 1B 67 B6 04 01 00 00 61 A7 5B 25 B8 D7 07 FC [17:19:46]CommunicateWithHost err = 0 [17:19:46]CheckOFDResponse [17:19:46]1017 (14) - 77093643461234 [17:19:46]1041 (16) - 0000000000875000 [17:19:46]1040 (4) - 50608 [17:19:46]1012 (4) - 25.10.2024 11:19 [17:19:46]1206 (1) - 0 [17:19:46]OFD Sender: Remove packet 50608 [17:19:46]ProducePacketName [17:19:46]name=ofd_packets/00050608 [17:19:46]NVStorageDeleteData [17:19:46]Write to MH i2c: 01 00 00 4B 13 5E [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 07 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 07 00 4B 13 00 00 00 00 00 14 0D 86 [17:19:46]RasterBufferAndPrint [17:19:46]line [17:19:46]line [17:19:46]line [17:19:46]line [17:19:46]line [17:19:46]written 0, free lines is 3354 [17:19:46]process_action close_receipt done [17:19:46]requested_data is exist [17:19:46]produce_requested_data [17:19:46]requested_item fm.sn is exist - process it [17:19:46]wFMCommunicate request_size=4 [17:19:46]MH_SAM_APDU [17:19:46]CAPDU: 80 11 00 00 [17:19:46]Write to MH i2c: E2 08 00 52 13 80 11 00 00 00 00 00 00 DF [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:47]Read from MH i2c: E2 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 17 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 17 00 52 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 26 [17:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:19:47]wFMCommunicate OK [17:19:47]requested_item fd.num is exist - process it [17:19:47]SAM_PROTO_GetFieldsCounters [17:19:47]wFMCommunicate request_size=4 [17:19:47]MH_SAM_APDU [17:19:47]CAPDU: 80 13 00 00 [17:19:47]Write to MH i2c: E2 08 00 53 13 80 13 00 00 00 00 00 00 E2 [17:19:47]Write i2c OK [17:19:47]MH_I2C_Read... [17:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:47]Read from MH i2c: E2 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 62 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 62 00 53 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [17:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:47]wFMCommunicate OK [17:19:47]SAM_PROTO_GetFieldsCounters done [17:19:47]requested_item shift.num is exist - process it [17:19:47]requested_item shift.opened is exist - process it [17:19:47]req_shift_opened [17:19:47]FM_GetShiftState [17:19:47]SAM_PROTO_GetShiftState [17:19:47]wFMCommunicate request_size=4 [17:19:47]MH_SAM_APDU [17:19:47]CAPDU: 80 13 01 00 [17:19:47]Write to MH i2c: E2 08 00 54 13 80 13 01 00 00 00 00 00 E4 [17:19:47]Write i2c OK [17:19:47]MH_I2C_Read... [17:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:47]Read from MH i2c: E2 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 0E 00 [17:19:47]MH_I2C_Read... [17:19:47]Read from MH i2c: E2 0E 00 54 13 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DC [17:19:47]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:19:47]wFMCommunicate OK [17:19:47]SAM_PROTO_GetShiftState done [17:19:47]FM_GetShiftState done [17:19:47]req_shift_opened done [17:19:47]requested_item shift.open_date is exist - process it [17:19:47]req_shift_open_date [17:19:47]req_shift_open_date done [17:19:47]produce_requested_data done [17:19:47]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50608,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:19:47]process_action_free close_receipt [17:19:47]json_value_free [17:19:47]json_value_free done [17:19:47]process_json_proto returns [17:19:47]Send response to host [17:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50608,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:19:47]free response buf [17:19:47]execute_script done [17:19:47]execute_script returns [17:19:47]free content buf [17:19:47]Sock 9.Close socket [17:19:47]Sock 9.Thread stoped [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:01]accept exits with 7 [17:21:01]New connection [17:21:01]New thread 3066789220 created [17:21:01]Thread 3066645860 joined [17:21:01]Waiting for new connection... [17:21:01] Sock 7.Parse request [17:21:01]Sock 7.Check first char [17:21:01]Sock 7.First char is OK [17:21:01]request: POST /json_proto HTTP/1.0 [17:21:01]Method: POST [17:21:01]URL: /json_proto [17:21:01]Method is POST - this is cgi request [17:21:01]url: /json_proto [17:21:01]query_string will be loaded in cgi processing [17:21:01]execute_cgi json_proto POST (null) [17:21:01]execute_cgi path=json_proto method=POST [17:21:01]POST find Content-Length [17:21:01]Host: 172.17.49.196:8080 [17:21:01]Content-Length: 656 [17:21:01]Content-Type: application/json [17:21:01] [17:21:01]POST finish read [17:21:01]Found Content-Length = 656 [17:21:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164511", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:01]execute_script... [17:21: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)164511", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:01]POST & json_proto [17:21:01]process_json_proto [17:21:01]json parsed OK: [17:21:01]protocol is kg_v1.0 [17:21:01]action value=close_receipt [17:21:01]process_action close_receipt [17:21:01]cmd_close_receipt [17:21:01]MH_GetDate [17:21:01]Write to MH i2c: F0 00 00 55 13 57 [17:21:01]Write i2c OK [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: F0 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: F0 09 00 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: F0 09 00 55 13 00 7F D3 1B 67 BD 3B 11 67 A4 [17:21:01]GetLastDocTimeStamp 1729876787 [17:21:01]current date 1729876863 [17:21:01]FM_GetShiftState [17:21:01]SAM_PROTO_GetShiftState [17:21:01]wFMCommunicate request_size=4 [17:21:01]MH_SAM_APDU [17:21:01]CAPDU: 80 13 01 00 [17:21:01]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [17:21:01]Write i2c OK [17:21:01]MH_I2C_Read... [17:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:01]Read from MH i2c: E2 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 0E 00 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DE [17:21:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:21:01]wFMCommunicate OK [17:21:01]SAM_PROTO_GetShiftState done [17:21:01]FM_GetShiftState done [17:21:01]opened in 1729815177 [17:21:01]opened+sec_in_day 1729901577 [17:21:01]quantity*price = 36000 [17:21:01]sum+1 = 36001 [17:21:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.19 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 109 25.10.2024 17:21 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50609 ФПД: 26122664874018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172103&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50609&fm=26122664874018&tin=02508201610067®Number=0000000000097022&sum=36000 0 [17:21:02]StoreToDocumentArchive [17:21:02]shift 493 fd 50609 [17:21:02]save to /storage/0493/doc_00050609 [17:21:02]save last doc name /storage/0493/doc_00050609 to /storage/kkm_last_doc_name [17:21:02]save OK [17:21:02]Clear old archive folders... [17:21:02]ProcessDocumentItem done err = 0, tmpTLVsize=284 [17:21:02]tlvbuf is 01EBD610 [17:21:02]SAM_PROTO_ClearQueue [17:21:02]wFMCommunicate request_size=4 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 09 00 00 [17:21:02]Write to MH i2c: E2 08 00 63 13 80 09 00 00 00 00 00 00 E8 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:02]Read from MH i2c: E2 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 03 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [17:21:02]RAPDU: 90 00 [17:21:02]wFMCommunicate OK [17:21:02]SAM_PROTO_ClearQueue done [17:21:02]KKMCreateOFDPacket [17:21:02]OFDProtocolAddRootSTLVToBuf [17:21:02]FM_MakeSignedData [17:21:02]FM_MakeSignedData [17:21:02]SAM_PROTO_SignData [17:21:02]wFMCommunicate request_size=4 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 0D 01 02 [17:21:02]Write to MH i2c: E2 08 00 64 13 80 0D 01 02 00 00 00 00 F0 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:02]Read from MH i2c: E2 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 03 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 03 00 64 13 00 90 00 EB [17:21:02]RAPDU: 90 00 [17:21:02]wFMCommunicate OK [17:21:02]wFMCommunicate request_size=255 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 7F D3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [17:21:02]Write to MH i2c: E2 02 01 65 13 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 7F D3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 F8 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:02]Read from MH i2c: E2 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 03 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [17:21:02]RAPDU: 90 00 [17:21:02]wFMCommunicate OK [17:21:02]wFMCommunicate request_size=43 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C5 00 00 35 04 06 00 17 C2 28 29 10 22 [17:21:02]Write to MH i2c: E2 2E 00 66 13 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C5 00 00 35 04 06 00 17 C2 28 29 10 22 00 00 A1 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:02]Read from MH i2c: E2 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 03 00 [17:21:02]MH_I2C_Read... [17:21:02]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [17:21:02]RAPDU: 90 00 [17:21:02]wFMCommunicate OK [17:21:02]wFMCommunicate request_size=4 [17:21:02]MH_SAM_APDU [17:21:02]CAPDU: 80 0D 03 02 [17:21:02]Write to MH i2c: E2 08 00 67 13 80 0D 03 02 00 00 00 00 F5 [17:21:02]Write i2c OK [17:21:02]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 0B 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 0B 00 67 13 00 EA EE F2 E7 3B 55 9B 68 90 00 3A [17:21:03]RAPDU: EA EE F2 E7 3B 55 9B 68 90 00 [17:21:03]wFMCommunicate OK [17:21:03]SAM_PROTO_SignData done [17:21:03]FM_MakeSignedData done [17:21:03]CreateOFDProtocolMessage [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 11 00 00 [17:21:03]Write to MH i2c: E2 08 00 68 13 80 11 00 00 00 00 00 00 F5 [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 17 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 17 00 68 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3C [17:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:21:03]wFMCommunicate OK [17:21:03]CreateOFDProtocolMessage done [17:21:03]OFDSenderStorePacket 50609 [17:21:03]StoreOFDPacket docnum=50609 [17:21:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 6F 3F 28 01 BA A8 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 7F D3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C5 00 00 35 04 06 00 17 C2 28 29 10 22 EA EE F2 E7 3B 55 9B 68 [17:21:03]CheckFolder [17:21:03]dirname=/storage/ofd_packets [17:21:03]CheckFolder done [17:21:03]ProducePacketName [17:21:03]name=ofd_packets/00050609 [17:21:03]NVStorageSaveData ofd_packets/00050609 [17:21:03]File name is /storage/ofd_packets/00050609 [17:21:03]Write 334 bytes [17:21:03]NVStorageSaveData done [17:21:03]OFDSenderStorePacket done [17:21:03]KKMCreateOFDPacket done [17:21:03]NVStorageSaveData kkm_last_timestamp [17:21:03]File name is /storage/kkm_last_timestamp [17:21:03]Write 4 bytes [17:21:03]NVStorageSaveData done [17:21:03]ExternCall_PrintAddStr [17:21:03]wPrintStart [17:21:03]Write to MH i2c: 01 00 00 69 13 7C [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [17:21:03]RasterBufferAndPrint [17:21:03]line Счет N : (3)164511 [17:21:03]line ИНН: 02508201610067 [17:21:03]line Контрольно-Кассовый Чек [17:21:03]line ПРОДАЖА [17:21:03]line Товар: 2000034250011 [17:21:03]line Горячий шоколад (GABB trade) [17:21:03]line 3.000 * 120.00 [17:21:03]line = 360.00 [17:21:03]line НДС 12% НСП 1% [17:21:03]line > о реализуемом товаре [17:21:03]line ИТОГО: 360.00 [17:21:03]line НСП 1% : 3.19 [17:21:03]line НДС 12% : 38.23 [17:21:03]line Наличными: 360.00 [17:21:03]line Безнал.: 0.00 [17:21:03]line Место: АЗС № 80 "Партнер Нефть" [17:21:03]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:21:03]line СНО: Общий режим [17:21:03]line Чек 109 25.10.2024 17:21 [17:21:03]line Смена: 493 ФФД: 1.0 [17:21:03]line ЗНМ: 0300000090 [17:21:03]line РНМ: 0000000000097022 [17:21:03]line Версия ККМ: 001 [17:21:03]line ФМ: 0000000000875000 [17:21:03]line ФД: 50609 [17:21:03]line ФПД: 26122664874018 [17:21:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T172103&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50609&fm=26122664874018&tin=02508201610067®Number=0000000000097022&sum=36000 [17:21:03]line 0 [17:21:03]OFD Sender: Processing packet 50609 [packets to send 7, broken 6] [17:21:03]ProducePacketName [17:21:03]name=ofd_packets/00050609 [17:21:03]OFD Sender: To server: pG, [17:21:03]CommunicateWithHost lk.salyk.kg:30040 [17:21:03]ConnectInit lk.salyk.kg [17:21:03]written 0, free lines is 4095 [17:21:03]Connected sock=10 [17:21:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 6F 3F 28 01 BA A8 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 7F D3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C5 00 00 35 04 06 00 17 C2 28 29 10 22 EA EE F2 E7 3B 55 9B 68 [17:21:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C9 71 47 00 78 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B1 C5 00 00 F4 03 04 00 10 7F 1B 67 B6 04 01 00 00 AE EE 3E 99 8C 4C A3 43 [17:21:03]CommunicateWithHost err = 0 [17:21:03]CheckOFDResponse [17:21:03]1017 (14) - 77093643461234 [17:21:03]1041 (16) - 0000000000875000 [17:21:03]1040 (4) - 50609 [17:21:03]1012 (4) - 25.10.2024 11:20 [17:21:03]1206 (1) - 0 [17:21:03]OFD Sender: Remove packet 50609 [17:21:03]ProducePacketName [17:21:03]name=ofd_packets/00050609 [17:21:03]NVStorageDeleteData [17:21:03]Write to MH i2c: 01 00 00 92 13 A5 [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 92 13 00 00 00 00 00 FE 0C B6 [17:21:03]RasterBufferAndPrint [17:21:03]line [17:21:03]line [17:21:03]line [17:21:03]line [17:21:03]line [17:21:03]written 0, free lines is 3334 [17:21:03]process_action close_receipt done [17:21:03]requested_data is exist [17:21:03]produce_requested_data [17:21:03]requested_item fm.sn is exist - process it [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 11 00 00 [17:21:03]Write to MH i2c: E2 08 00 99 13 80 11 00 00 00 00 00 00 26 [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 17 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 17 00 99 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6D [17:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:21:03]wFMCommunicate OK [17:21:03]requested_item fd.num is exist - process it [17:21:03]SAM_PROTO_GetFieldsCounters [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 13 00 00 [17:21:03]Write to MH i2c: E2 08 00 9A 13 80 13 00 00 00 00 00 00 29 [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 62 00 [17:21:04]MH_I2C_Read... [17:21:04]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 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:04]wFMCommunicate OK [17:21:04]SAM_PROTO_GetFieldsCounters done [17:21:04]requested_item shift.num is exist - process it [17:21:04]requested_item shift.opened is exist - process it [17:21:04]req_shift_opened [17:21:04]FM_GetShiftState [17:21:04]SAM_PROTO_GetShiftState [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 13 01 00 [17:21:04]Write to MH i2c: E2 08 00 9B 13 80 13 01 00 00 00 00 00 2B [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 0E 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 0E 00 9B 13 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 23 [17:21:04]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:21:04]wFMCommunicate OK [17:21:04]SAM_PROTO_GetShiftState done [17:21:04]FM_GetShiftState done [17:21:04]req_shift_opened done [17:21:04]requested_item shift.open_date is exist - process it [17:21:04]req_shift_open_date [17:21:04]req_shift_open_date done [17:21:04]produce_requested_data done [17:21:04]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50609,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:21:04]process_action_free close_receipt [17:21:04]json_value_free [17:21:04]json_value_free done [17:21:04]process_json_proto returns [17:21:04]Send response to host [17:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50609,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:21:04]free response buf [17:21:04]execute_script done [17:21:04]execute_script returns [17:21:04]free content buf [17:21:04]Sock 7.Close socket [17:21:04]Sock 7.Thread stoped [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:17]accept exits with 9 [17:35:17]New connection [17:35:17]New thread 3066645860 created [17:35:17]Thread 3066789220 joined [17:35:17]Waiting for new connection... [17:35:17] Sock 9.Parse request [17:35:17]Sock 9.Check first char [17:35:17]Sock 9.First char is OK [17:35:17]request: POST /json_proto HTTP/1.0 [17:35:17]Method: POST [17:35:17]URL: /json_proto [17:35:17]Method is POST - this is cgi request [17:35:17]url: /json_proto [17:35:17]query_string will be loaded in cgi processing [17:35:17]execute_cgi json_proto POST (null) [17:35:17]execute_cgi path=json_proto method=POST [17:35:17]POST find Content-Length [17:35:17]Host: 172.17.49.196:8080 [17:35:17]Content-Length: 623 [17:35:17]Content-Type: application/json [17:35:17] [17:35:17]POST finish read [17:35:17]Found Content-Length = 623 [17:35:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164512", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:17]execute_script... [17:35: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)164512", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:17]POST & json_proto [17:35:17]process_json_proto [17:35:17]json parsed OK: [17:35:17]protocol is kg_v1.0 [17:35:17]action value=close_receipt [17:35:17]process_action close_receipt [17:35:17]cmd_close_receipt [17:35:17]MH_GetDate [17:35:17]Write to MH i2c: F0 00 00 9C 13 9E [17:35:17]Write i2c OK [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: F0 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: F0 09 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: F0 09 00 9C 13 00 D7 D6 1B 67 BD 3B 11 67 46 [17:35:17]GetLastDocTimeStamp 1729876863 [17:35:17]current date 1729877719 [17:35:17]FM_GetShiftState [17:35:17]SAM_PROTO_GetShiftState [17:35:17]wFMCommunicate request_size=4 [17:35:17]MH_SAM_APDU [17:35:17]CAPDU: 80 13 01 00 [17:35:17]Write to MH i2c: E2 08 00 9D 13 80 13 01 00 00 00 00 00 2D [17:35:17]Write i2c OK [17:35:17]MH_I2C_Read... [17:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:17]Read from MH i2c: E2 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 0E 00 [17:35:17]MH_I2C_Read... [17:35:17]Read from MH i2c: E2 0E 00 9D 13 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 25 [17:35:17]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:35:17]wFMCommunicate OK [17:35:17]SAM_PROTO_GetShiftState done [17:35:17]FM_GetShiftState done [17:35:17]opened in 1729815177 [17:35:17]opened+sec_in_day 1729901577 [17:35:17]quantity*price = 14400 [17:35:17]sum+1 = 14401 [17:35:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 110 25.10.2024 17:35 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50610 ФПД: 228350372999935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173519&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50610&fm=228350372999935&tin=02508201610067®Number=0000000000097022&sum=14400 0 [17:35:18]StoreToDocumentArchive [17:35:18]shift 493 fd 50610 [17:35:18]save to /storage/0493/doc_00050610 [17:35:18]save last doc name /storage/0493/doc_00050610 to /storage/kkm_last_doc_name [17:35:18]save OK [17:35:18]Clear old archive folders... [17:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:35:18]tlvbuf is B6E80580 [17:35:18]SAM_PROTO_ClearQueue [17:35:18]wFMCommunicate request_size=4 [17:35:18]MH_SAM_APDU [17:35:18]CAPDU: 80 09 00 00 [17:35:18]Write to MH i2c: E2 08 00 AA 13 80 09 00 00 00 00 00 00 2F [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:18]Read from MH i2c: E2 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 03 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [17:35:18]RAPDU: 90 00 [17:35:18]wFMCommunicate OK [17:35:18]SAM_PROTO_ClearQueue done [17:35:18]KKMCreateOFDPacket [17:35:18]OFDProtocolAddRootSTLVToBuf [17:35:18]FM_MakeSignedData [17:35:18]FM_MakeSignedData [17:35:18]SAM_PROTO_SignData [17:35:18]wFMCommunicate request_size=4 [17:35:18]MH_SAM_APDU [17:35:18]CAPDU: 80 0D 01 02 [17:35:18]Write to MH i2c: E2 08 00 AB 13 80 0D 01 02 00 00 00 00 37 [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:18]Read from MH i2c: E2 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 03 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 03 00 AB 13 00 90 00 32 [17:35:18]RAPDU: 90 00 [17:35:18]wFMCommunicate OK [17:35:18]wFMCommunicate request_size=255 [17:35:18]MH_SAM_APDU [17:35:18]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D7 D6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 [17:35:18]Write to MH i2c: E2 02 01 AC 13 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D7 D6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 00 00 C2 [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:18]Read from MH i2c: E2 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 03 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 03 00 AC 13 00 90 00 33 [17:35:18]RAPDU: 90 00 [17:35:18]wFMCommunicate OK [17:35:18]wFMCommunicate request_size=34 [17:35:18]MH_SAM_APDU [17:35:18]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C5 00 00 35 04 06 00 CF AE F6 DD F2 FF [17:35:18]Write to MH i2c: E2 25 00 AD 13 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C5 00 00 35 04 06 00 CF AE F6 DD F2 FF 00 00 A7 [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:18]Read from MH i2c: E2 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 03 00 [17:35:18]MH_I2C_Read... [17:35:18]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [17:35:18]RAPDU: 90 00 [17:35:18]wFMCommunicate OK [17:35:18]wFMCommunicate request_size=4 [17:35:18]MH_SAM_APDU [17:35:18]CAPDU: 80 0D 03 02 [17:35:18]Write to MH i2c: E2 08 00 AE 13 80 0D 03 02 00 00 00 00 3C [17:35:18]Write i2c OK [17:35:18]MH_I2C_Read... [17:35:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:19]Read from MH i2c: E2 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 0B 00 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 0B 00 AE 13 00 BA 22 CE 5F E2 78 F4 1F 90 00 B3 [17:35:19]RAPDU: BA 22 CE 5F E2 78 F4 1F 90 00 [17:35:19]wFMCommunicate OK [17:35:19]SAM_PROTO_SignData done [17:35:19]FM_MakeSignedData done [17:35:19]CreateOFDProtocolMessage [17:35:19]wFMCommunicate request_size=4 [17:35:19]MH_SAM_APDU [17:35:19]CAPDU: 80 11 00 00 [17:35:19]Write to MH i2c: E2 08 00 AF 13 80 11 00 00 00 00 00 00 3C [17:35:19]Write i2c OK [17:35:19]MH_I2C_Read... [17:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:19]Read from MH i2c: E2 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 17 00 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 17 00 AF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 83 [17:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:35:19]wFMCommunicate OK [17:35:19]CreateOFDProtocolMessage done [17:35:19]OFDSenderStorePacket 50610 [17:35:19]StoreOFDPacket docnum=50610 [17:35:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 7E 50 1F 01 E7 E1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D7 D6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C5 00 00 35 04 06 00 CF AE F6 DD F2 FF BA 22 CE 5F E2 78 F4 1F [17:35:19]CheckFolder [17:35:19]dirname=/storage/ofd_packets [17:35:19]CheckFolder done [17:35:19]ProducePacketName [17:35:19]name=ofd_packets/00050610 [17:35:19]NVStorageSaveData ofd_packets/00050610 [17:35:19]File name is /storage/ofd_packets/00050610 [17:35:19]Write 325 bytes [17:35:19]NVStorageSaveData done [17:35:19]OFDSenderStorePacket done [17:35:19]KKMCreateOFDPacket done [17:35:19]NVStorageSaveData kkm_last_timestamp [17:35:19]File name is /storage/kkm_last_timestamp [17:35:19]Write 4 bytes [17:35:19]NVStorageSaveData done [17:35:19]ExternCall_PrintAddStr [17:35:19]wPrintStart [17:35:19]Write to MH i2c: 01 00 00 B0 13 C3 [17:35:19]Write i2c OK [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: 01 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: 01 07 00 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 FF 0F D8 [17:35:19]RasterBufferAndPrint [17:35:19]line Счет N : (3)164512 [17:35:19]line ИНН: 02508201610067 [17:35:19]line Контрольно-Кассовый Чек [17:35:19]line ПРОДАЖА [17:35:19]line Товар: 48743587 [17:35:19]line Сигареты Winston XStyle Silver [17:35:19]line 1.000 * 144.00 [17:35:19]line = 144.00 [17:35:19]line НДС 12% НСП 1% [17:35:19]line > о реализуемом товаре [17:35:19]line ИТОГО: 144.00 [17:35:19]line НСП 1% : 1.27 [17:35:19]line НДС 12% : 15.29 [17:35:19]line Наличными: 144.00 [17:35:19]line Безнал.: 0.00 [17:35:19]line Место: АЗС № 80 "Партнер Нефть" [17:35:19]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:35:19]line СНО: Общий режим [17:35:19]line Чек 110 25.10.2024 17:35 [17:35:19]line Смена: 493 ФФД: 1.0 [17:35:19]line ЗНМ: 0300000090 [17:35:19]line РНМ: 0000000000097022 [17:35:19]line Версия ККМ: 001 [17:35:19]line ФМ: 0000000000875000 [17:35:19]line ФД: 50610 [17:35:19]line ФПД: 228350372999935 [17:35:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173519&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50610&fm=228350372999935&tin=02508201610067®Number=0000000000097022&sum=14400 [17:35:19]line 0 [17:35:19]OFD Sender: Processing packet 50610 [packets to send 7, broken 6] [17:35:19]ProducePacketName [17:35:19]name=ofd_packets/00050610 [17:35:19]OFD Sender: To server: pG, [17:35:19]CommunicateWithHost lk.salyk.kg:30040 [17:35:19]ConnectInit lk.salyk.kg [17:35:19]written 0, free lines is 4095 [17:35:19]Connected sock=10 [17:35:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 27 01 00 00 7E 50 1F 01 E7 E1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D7 D6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C5 00 00 35 04 06 00 CF AE F6 DD F2 FF BA 22 CE 5F E2 78 F4 1F [17:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 55 D2 47 00 88 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B2 C5 00 00 F4 03 04 00 68 82 1B 67 B6 04 01 00 00 7C B0 86 2E 36 E4 68 3A [17:35:19]CommunicateWithHost err = 0 [17:35:19]CheckOFDResponse [17:35:19]1017 (14) - 77093643461234 [17:35:19]1041 (16) - 0000000000875000 [17:35:19]1040 (4) - 50610 [17:35:19]1012 (4) - 25.10.2024 11:35 [17:35:19]1206 (1) - 0 [17:35:19]OFD Sender: Remove packet 50610 [17:35:19]ProducePacketName [17:35:19]name=ofd_packets/00050610 [17:35:19]NVStorageDeleteData [17:35:19]Write to MH i2c: 01 00 00 D9 13 EC [17:35:19]Write i2c OK [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: 01 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: 01 07 00 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: 01 07 00 D9 13 00 00 00 00 00 01 0D 01 [17:35:19]RasterBufferAndPrint [17:35:19]line [17:35:19]line [17:35:19]line [17:35:19]line [17:35:19]line [17:35:19]written 0, free lines is 3335 [17:35:19]process_action close_receipt done [17:35:19]requested_data is exist [17:35:19]produce_requested_data [17:35:19]requested_item fm.sn is exist - process it [17:35:19]wFMCommunicate request_size=4 [17:35:19]MH_SAM_APDU [17:35:19]CAPDU: 80 11 00 00 [17:35:19]Write to MH i2c: E2 08 00 E0 13 80 11 00 00 00 00 00 00 6D [17:35:19]Write i2c OK [17:35:19]MH_I2C_Read... [17:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:19]Read from MH i2c: E2 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 17 00 [17:35:19]MH_I2C_Read... [17:35:19]Read from MH i2c: E2 17 00 E0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B4 [17:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:35:19]wFMCommunicate OK [17:35:19]requested_item fd.num is exist - process it [17:35:19]SAM_PROTO_GetFieldsCounters [17:35:19]wFMCommunicate request_size=4 [17:35:19]MH_SAM_APDU [17:35:19]CAPDU: 80 13 00 00 [17:35:19]Write to MH i2c: E2 08 00 E1 13 80 13 00 00 00 00 00 00 70 [17:35:19]Write i2c OK [17:35:19]MH_I2C_Read... [17:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:20]Read from MH i2c: E2 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 62 00 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 62 00 E1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [17:35:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:20]wFMCommunicate OK [17:35:20]SAM_PROTO_GetFieldsCounters done [17:35:20]requested_item shift.num is exist - process it [17:35:20]requested_item shift.opened is exist - process it [17:35:20]req_shift_opened [17:35:20]FM_GetShiftState [17:35:20]SAM_PROTO_GetShiftState [17:35:20]wFMCommunicate request_size=4 [17:35:20]MH_SAM_APDU [17:35:20]CAPDU: 80 13 01 00 [17:35:20]Write to MH i2c: E2 08 00 E2 13 80 13 01 00 00 00 00 00 72 [17:35:20]Write i2c OK [17:35:20]MH_I2C_Read... [17:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:20]Read from MH i2c: E2 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 0E 00 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 0E 00 E2 13 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6A [17:35:20]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:35:20]wFMCommunicate OK [17:35:20]SAM_PROTO_GetShiftState done [17:35:20]FM_GetShiftState done [17:35:20]req_shift_opened done [17:35:20]requested_item shift.open_date is exist - process it [17:35:20]req_shift_open_date [17:35:20]req_shift_open_date done [17:35:20]produce_requested_data done [17:35:20]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50610,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:35:20]process_action_free close_receipt [17:35:20]json_value_free [17:35:20]json_value_free done [17:35:20]process_json_proto returns [17:35:20]Send response to host [17:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50610,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:35:20]free response buf [17:35:20]execute_script done [17:35:20]execute_script returns [17:35:20]free content buf [17:35:20]Sock 9.Close socket [17:35:20]Sock 9.Thread stoped [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]accept exits with 7 [17:39:55]New connection [17:39:55]New thread 3066789220 created [17:39:55]Thread 3066645860 joined [17:39:55]Waiting for new connection... [17:39:55] Sock 7.Parse request [17:39:55]Sock 7.Check first char [17:39:55]Sock 7.First char is OK [17:39:55]request: POST /json_proto HTTP/1.0 [17:39:55]Method: POST [17:39:55]URL: /json_proto [17:39:55]Method is POST - this is cgi request [17:39:55]url: /json_proto [17:39:55]query_string will be loaded in cgi processing [17:39:55]execute_cgi json_proto POST (null) [17:39:55]execute_cgi path=json_proto method=POST [17:39:55]POST find Content-Length [17:39:55]Host: 172.17.49.196:8080 [17:39:55]Content-Length: 768 [17:39:55]Content-Type: application/json [17:39:55] [17:39:55]POST finish read [17:39:55]Found Content-Length = 768 [17:39:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164513", "tax_sys" : 0, "items" : [ { "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:55]execute_script... [17:39: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)164513", "tax_sys" : 0, "items" : [ { "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:55]POST & json_proto [17:39:55]process_json_proto [17:39:55]json parsed OK: [17:39:55]protocol is kg_v1.0 [17:39:55]action value=close_receipt [17:39:55]process_action close_receipt [17:39:55]cmd_close_receipt [17:39:55]MH_GetDate [17:39:55]Write to MH i2c: F0 00 00 E3 13 E5 [17:39:55]Write i2c OK [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: F0 [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: F0 09 00 [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: F0 09 00 E3 13 00 EE D7 1B 67 BD 3B 11 67 A5 [17:39:55]GetLastDocTimeStamp 1729877719 [17:39:55]current date 1729877998 [17:39:55]FM_GetShiftState [17:39:55]SAM_PROTO_GetShiftState [17:39:55]wFMCommunicate request_size=4 [17:39:55]MH_SAM_APDU [17:39:55]CAPDU: 80 13 01 00 [17:39:55]Write to MH i2c: E2 08 00 E4 13 80 13 01 00 00 00 00 00 74 [17:39:55]Write i2c OK [17:39:55]MH_I2C_Read... [17:39:55]OFD Sender: No OFD packet to send [17:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:55]Read from MH i2c: E2 [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: E2 0E 00 [17:39:55]MH_I2C_Read... [17:39:55]Read from MH i2c: E2 0E 00 E4 13 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6C [17:39:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:39:55]wFMCommunicate OK [17:39:55]SAM_PROTO_GetShiftState done [17:39:55]FM_GetShiftState done [17:39:55]opened in 1729815177 [17:39:55]opened+sec_in_day 1729901577 [17:39:55]quantity*price = 4500 [17:39:55]sum+1 = 4501 [17:39:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 111 25.10.2024 17:39 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875000 ФД: 50611 ФПД: 58542732507296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173958&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50611&fm=58542732507296&tin=02508201610067®Number=0000000000097022&sum=4500 0 [17:39:56]StoreToDocumentArchive [17:39:56]shift 493 fd 50611 [17:39:56]save to /storage/0493/doc_00050611 [17:39:56]save last doc name /storage/0493/doc_00050611 to /storage/kkm_last_doc_name [17:39:56]save OK [17:39:56]Clear old archive folders... [17:39:56]ProcessDocumentItem done err = 0, tmpTLVsize=266 [17:39:56]tlvbuf is B6E999C0 [17:39:56]SAM_PROTO_ClearQueue [17:39:56]wFMCommunicate request_size=4 [17:39:56]MH_SAM_APDU [17:39:56]CAPDU: 80 09 00 00 [17:39:56]Write to MH i2c: E2 08 00 F1 13 80 09 00 00 00 00 00 00 76 [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:56]Read from MH i2c: E2 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 F1 13 00 90 00 78 [17:39:56]RAPDU: 90 00 [17:39:56]wFMCommunicate OK [17:39:56]SAM_PROTO_ClearQueue done [17:39:56]KKMCreateOFDPacket [17:39:56]OFDProtocolAddRootSTLVToBuf [17:39:56]FM_MakeSignedData [17:39:56]FM_MakeSignedData [17:39:56]SAM_PROTO_SignData [17:39:56]wFMCommunicate request_size=4 [17:39:56]MH_SAM_APDU [17:39:56]CAPDU: 80 0D 01 02 [17:39:56]Write to MH i2c: E2 08 00 F2 13 80 0D 01 02 00 00 00 00 7E [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:56]Read from MH i2c: E2 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 F2 13 00 90 00 79 [17:39:56]RAPDU: 90 00 [17:39:56]wFMCommunicate OK [17:39:56]wFMCommunicate request_size=255 [17:39:56]MH_SAM_APDU [17:39:56]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 EE D7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [17:39:56]Write to MH i2c: E2 02 01 F3 13 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 EE D7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 1C [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:56]Read from MH i2c: E2 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 [17:39:56]MH_I2C_Read... [17:39:56]Read from MH i2c: E2 03 00 F3 13 00 90 00 7A [17:39:56]RAPDU: 90 00 [17:39:56]wFMCommunicate OK [17:39:56]wFMCommunicate request_size=25 [17:39:56]MH_SAM_APDU [17:39:56]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 B3 C5 00 00 35 04 06 00 35 3E 8A C6 78 A0 [17:39:56]Write to MH i2c: E2 1C 00 F4 13 80 0D 02 02 14 00 30 30 10 04 04 00 B3 C5 00 00 35 04 06 00 35 3E 8A C6 78 A0 00 00 B3 [17:39:56]Write i2c OK [17:39:56]MH_I2C_Read... [17:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:57]Read from MH i2c: E2 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 03 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 03 00 F4 13 00 90 00 7B [17:39:57]RAPDU: 90 00 [17:39:57]wFMCommunicate OK [17:39:57]wFMCommunicate request_size=4 [17:39:57]MH_SAM_APDU [17:39:57]CAPDU: 80 0D 03 02 [17:39:57]Write to MH i2c: E2 08 00 F5 13 80 0D 03 02 00 00 00 00 83 [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:57]Read from MH i2c: E2 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 0B 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 0B 00 F5 13 00 07 FC B8 BF 50 7B A2 46 90 00 B1 [17:39:57]RAPDU: 07 FC B8 BF 50 7B A2 46 90 00 [17:39:57]wFMCommunicate OK [17:39:57]SAM_PROTO_SignData done [17:39:57]FM_MakeSignedData done [17:39:57]CreateOFDProtocolMessage [17:39:57]wFMCommunicate request_size=4 [17:39:57]MH_SAM_APDU [17:39:57]CAPDU: 80 11 00 00 [17:39:57]Write to MH i2c: E2 08 00 F6 13 80 11 00 00 00 00 00 00 83 [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:57]Read from MH i2c: E2 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 17 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 17 00 F6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CA [17:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:39:57]wFMCommunicate OK [17:39:57]CreateOFDProtocolMessage done [17:39:57]OFDSenderStorePacket 50611 [17:39:57]StoreOFDPacket docnum=50611 [17:39:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1E 01 00 00 5F 77 16 01 E4 65 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 EE D7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B3 C5 00 00 35 04 06 00 35 3E 8A C6 78 A0 07 FC B8 BF 50 7B A2 46 [17:39:57]CheckFolder [17:39:57]dirname=/storage/ofd_packets [17:39:57]CheckFolder done [17:39:57]ProducePacketName [17:39:57]name=ofd_packets/00050611 [17:39:57]NVStorageSaveData ofd_packets/00050611 [17:39:57]File name is /storage/ofd_packets/00050611 [17:39:57]Write 316 bytes [17:39:57]NVStorageSaveData done [17:39:57]OFDSenderStorePacket done [17:39:57]KKMCreateOFDPacket done [17:39:57]NVStorageSaveData kkm_last_timestamp [17:39:57]File name is /storage/kkm_last_timestamp [17:39:57]Write 4 bytes [17:39:57]NVStorageSaveData done [17:39:57]ExternCall_PrintAddStr [17:39:57]wPrintStart [17:39:57]Write to MH i2c: 01 00 00 F7 13 0A [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 07 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 07 00 F7 13 00 00 00 00 00 FF 0F 1F [17:39:57]RasterBufferAndPrint [17:39:57]line Счет N : (3)164513 [17:39:57]line ИНН: 02508201610067 [17:39:57]line Контрольно-Кассовый Чек [17:39:57]line ПРОДАЖА [17:39:57]line Товар: 46141538 [17:39:57]line Р/ж Orbit Bubblemint 13,6г [17:39:57]line 1.000 * 45.00 [17:39:57]line = 45.00 [17:39:57]line НДС 12% НСП 1% [17:39:57]line > о реализуемом товаре [17:39:57]line ИТОГО: 45.00 [17:39:57]line НСП 1% : 0.40 [17:39:57]line НДС 12% : 4.78 [17:39:57]line Наличными: 0.00 [17:39:57]line Безнал.: 45.00 [17:39:57]line Место: АЗС № 80 "Партнер Нефть" [17:39:57]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:39:57]line СНО: Общий режим [17:39:57]line Чек 111 25.10.2024 17:39 [17:39:57]line Смена: 493 ФФД: 1.0 [17:39:57]line ЗНМ: 0300000090 [17:39:57]line РНМ: 0000000000097022 [17:39:57]line Версия ККМ: 001 [17:39:57]line Платежная система: Бакай Банк [17:39:57]line ФМ: 0000000000875000 [17:39:57]line ФД: 50611 [17:39:57]line ФПД: 58542732507296 [17:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T173958&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50611&fm=58542732507296&tin=02508201610067®Number=0000000000097022&sum=4500 [17:39:57]line 0 [17:39:57]written 0, free lines is 4095 [17:39:57]OFD Sender: Processing packet 50611 [packets to send 7, broken 6] [17:39:57]ProducePacketName [17:39:57]name=ofd_packets/00050611 [17:39:57]OFD Sender: To server: pG, [17:39:57]CommunicateWithHost lk.salyk.kg:30040 [17:39:57]ConnectInit lk.salyk.kg [17:39:57]Connected sock=10 [17:39:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1E 01 00 00 5F 77 16 01 E4 65 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 EE D7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B3 C5 00 00 35 04 06 00 35 3E 8A C6 78 A0 07 FC B8 BF 50 7B A2 46 [17:39:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 BE C3 47 00 D1 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B3 C5 00 00 F4 03 04 00 7E 83 1B 67 B6 04 01 00 00 DD 53 F7 C0 F3 12 F0 E1 [17:39:57]CommunicateWithHost err = 0 [17:39:57]CheckOFDResponse [17:39:57]1017 (14) - 77093643461234 [17:39:57]1041 (16) - 0000000000875000 [17:39:57]1040 (4) - 50611 [17:39:57]1012 (4) - 25.10.2024 11:39 [17:39:57]1206 (1) - 0 [17:39:57]OFD Sender: Remove packet 50611 [17:39:57]ProducePacketName [17:39:57]name=ofd_packets/00050611 [17:39:57]NVStorageDeleteData [17:39:57]Write to MH i2c: 01 00 00 21 14 35 [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 07 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: 01 07 00 21 14 00 00 00 00 00 FA 0C 42 [17:39:57]RasterBufferAndPrint [17:39:57]line [17:39:57]line [17:39:57]line [17:39:57]line [17:39:57]line [17:39:57]written 0, free lines is 3329 [17:39:57]process_action close_receipt done [17:39:57]requested_data is exist [17:39:57]produce_requested_data [17:39:57]requested_item fm.sn is exist - process it [17:39:57]wFMCommunicate request_size=4 [17:39:57]MH_SAM_APDU [17:39:57]CAPDU: 80 11 00 00 [17:39:57]Write to MH i2c: E2 08 00 28 14 80 11 00 00 00 00 00 00 B6 [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:57]Read from MH i2c: E2 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 17 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 17 00 28 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FD [17:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:39:57]wFMCommunicate OK [17:39:57]requested_item fd.num is exist - process it [17:39:57]SAM_PROTO_GetFieldsCounters [17:39:57]wFMCommunicate request_size=4 [17:39:57]MH_SAM_APDU [17:39:57]CAPDU: 80 13 00 00 [17:39:57]Write to MH i2c: E2 08 00 29 14 80 13 00 00 00 00 00 00 B9 [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:57]Read from MH i2c: E2 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 62 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 62 00 29 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [17:39:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:57]wFMCommunicate OK [17:39:57]SAM_PROTO_GetFieldsCounters done [17:39:57]requested_item shift.num is exist - process it [17:39:57]requested_item shift.opened is exist - process it [17:39:57]req_shift_opened [17:39:57]FM_GetShiftState [17:39:57]SAM_PROTO_GetShiftState [17:39:57]wFMCommunicate request_size=4 [17:39:57]MH_SAM_APDU [17:39:57]CAPDU: 80 13 01 00 [17:39:57]Write to MH i2c: E2 08 00 2A 14 80 13 01 00 00 00 00 00 BB [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:57]Read from MH i2c: E2 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 0E 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 0E 00 2A 14 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B3 [17:39:57]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:39:57]wFMCommunicate OK [17:39:57]SAM_PROTO_GetShiftState done [17:39:57]FM_GetShiftState done [17:39:57]req_shift_opened done [17:39:57]requested_item shift.open_date is exist - process it [17:39:57]req_shift_open_date [17:39:57]req_shift_open_date done [17:39:57]produce_requested_data done [17:39:57]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50611,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:39:57]process_action_free close_receipt [17:39:57]json_value_free [17:39:57]json_value_free done [17:39:57]process_json_proto returns [17:39:57]Send response to host [17:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50611,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:39:57]free response buf [17:39:57]execute_script done [17:39:57]execute_script returns [17:39:57]free content buf [17:39:57]Sock 7.Close socket [17:39:57]Sock 7.Thread stoped [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:27]accept exits with 9 [17:45:27]New connection [17:45:27]New thread 3066645860 created [17:45:27]Thread 3066789220 joined [17:45:27]Waiting for new connection... [17:45:27] Sock 9.Parse request [17:45:27]Sock 9.Check first char [17:45:27]Sock 9.First char is OK [17:45:27]request: POST /json_proto HTTP/1.0 [17:45:27]Method: POST [17:45:27]URL: /json_proto [17:45:27]Method is POST - this is cgi request [17:45:27]url: /json_proto [17:45:27]query_string will be loaded in cgi processing [17:45:27]execute_cgi json_proto POST (null) [17:45:27]execute_cgi path=json_proto method=POST [17:45:27]POST find Content-Length [17:45:27]Host: 172.17.49.196:8080 [17:45:27]Content-Length: 1220 [17:45:27]Content-Type: application/json [17:45:27] [17:45:27]POST finish read [17:45:27]Found Content-Length = 1220 [17:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164514", "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": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 228.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:27]execute_script... [17:45:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164514", "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": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 1.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 228.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:27]POST & json_proto [17:45:27]process_json_proto [17:45:27]json parsed OK: [17:45:27]protocol is kg_v1.0 [17:45:27]action value=close_receipt [17:45:27]process_action close_receipt [17:45:27]cmd_close_receipt [17:45:27]MH_GetDate [17:45:27]Write to MH i2c: F0 00 00 2B 14 2E [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: F0 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: F0 09 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: F0 09 00 2B 14 00 3A D9 1B 67 BD 3B 11 67 3C [17:45:27]GetLastDocTimeStamp 1729877998 [17:45:27]current date 1729878330 [17:45:27]FM_GetShiftState [17:45:27]SAM_PROTO_GetShiftState [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 13 01 00 [17:45:27]Write to MH i2c: E2 08 00 2C 14 80 13 01 00 00 00 00 00 BD [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:27]Read from MH i2c: E2 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 0E 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 0E 00 2C 14 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B5 [17:45:27]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:45:27]wFMCommunicate OK [17:45:27]SAM_PROTO_GetShiftState done [17:45:27]FM_GetShiftState done [17:45:27]opened in 1729815177 [17:45:27]opened+sec_in_day 1729901577 [17:45:27]quantity*price = 4000 [17:45:27]sum+1 = 4001 [17:45:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 34.00 = 34.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 228.00 НСП 1% : 2.01 НДС 12% : 24.21 Наличными: 0.00 Безнал.: 228.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 112 25.10.2024 17:45 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50612 ФПД: 75293519367405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174530&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50612&fm=75293519367405&tin=02508201610067®Number=0000000000097022&sum=22800 0 [17:45:29]StoreToDocumentArchive [17:45:29]shift 493 fd 50612 [17:45:29]save to /storage/0493/doc_00050612 [17:45:29]save last doc name /storage/0493/doc_00050612 to /storage/kkm_last_doc_name [17:45:29]save OK [17:45:29]Clear old archive folders... [17:45:29]ProcessDocumentItem done err = 0, tmpTLVsize=473 [17:45:29]tlvbuf is 01E71470 [17:45:29]SAM_PROTO_ClearQueue [17:45:29]wFMCommunicate request_size=4 [17:45:29]MH_SAM_APDU [17:45:29]CAPDU: 80 09 00 00 [17:45:29]Write to MH i2c: E2 08 00 39 14 80 09 00 00 00 00 00 00 BF [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:29]Read from MH i2c: E2 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 03 00 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 03 00 39 14 00 90 00 C1 [17:45:29]RAPDU: 90 00 [17:45:29]wFMCommunicate OK [17:45:29]SAM_PROTO_ClearQueue done [17:45:29]KKMCreateOFDPacket [17:45:29]OFDProtocolAddRootSTLVToBuf [17:45:29]FM_MakeSignedData [17:45:29]FM_MakeSignedData [17:45:29]SAM_PROTO_SignData [17:45:29]wFMCommunicate request_size=4 [17:45:29]MH_SAM_APDU [17:45:29]CAPDU: 80 0D 01 02 [17:45:29]Write to MH i2c: E2 08 00 3A 14 80 0D 01 02 00 00 00 00 C7 [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:29]Read from MH i2c: E2 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 03 00 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 03 00 3A 14 00 90 00 C2 [17:45:29]RAPDU: 90 00 [17:45:29]wFMCommunicate OK [17:45:29]wFMCommunicate request_size=255 [17:45:29]MH_SAM_APDU [17:45:29]CAPDU: 80 0D 02 02 FA 03 00 D9 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 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 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 [17:45:29]Write to MH i2c: E2 02 01 3B 14 80 0D 02 02 FA 00 03 00 D9 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 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 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 00 00 4D [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:29]Read from MH i2c: E2 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 03 00 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 03 00 3B 14 00 90 00 C3 [17:45:29]RAPDU: 90 00 [17:45:29]wFMCommunicate OK [17:45:29]wFMCommunicate request_size=232 [17:45:29]MH_SAM_APDU [17:45:29]CAPDU: 80 0D 02 02 E3 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3A D9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B4 C5 00 00 35 04 06 00 44 7A A3 79 CC ED [17:45:29]Write to MH i2c: E2 EB 00 3C 14 80 0D 02 02 E3 00 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3A D9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B4 C5 00 00 35 04 06 00 44 7A A3 79 CC ED 00 00 B1 [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:29]Read from MH i2c: E2 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 03 00 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 03 00 3C 14 00 90 00 C4 [17:45:29]RAPDU: 90 00 [17:45:29]wFMCommunicate OK [17:45:29]wFMCommunicate request_size=4 [17:45:29]MH_SAM_APDU [17:45:29]CAPDU: 80 0D 03 02 [17:45:29]Write to MH i2c: E2 08 00 3D 14 80 0D 03 02 00 00 00 00 CC [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:30]Read from MH i2c: E2 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 0B 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 0B 00 3D 14 00 CC AF 68 D1 CE 69 BB 7F 90 00 F2 [17:45:30]RAPDU: CC AF 68 D1 CE 69 BB 7F 90 00 [17:45:30]wFMCommunicate OK [17:45:30]SAM_PROTO_SignData done [17:45:30]FM_MakeSignedData done [17:45:30]CreateOFDProtocolMessage [17:45:30]wFMCommunicate request_size=4 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 11 00 00 [17:45:30]Write to MH i2c: E2 08 00 3E 14 80 11 00 00 00 00 00 00 CC [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:30]Read from MH i2c: E2 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 17 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 17 00 3E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 13 [17:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:45:30]wFMCommunicate OK [17:45:30]CreateOFDProtocolMessage done [17:45:30]OFDSenderStorePacket 50612 [17:45:30]StoreOFDPacket docnum=50612 [17:45:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 ED 01 00 00 8E 9F E5 01 7E 3C 5A 03 01 00 03 00 D9 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 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3A D9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B4 C5 00 00 35 04 06 00 44 7A A3 79 CC ED CC AF 68 D1 CE 69 BB 7F [17:45:30]CheckFolder [17:45:30]dirname=/storage/ofd_packets [17:45:30]CheckFolder done [17:45:30]ProducePacketName [17:45:30]name=ofd_packets/00050612 [17:45:30]NVStorageSaveData ofd_packets/00050612 [17:45:30]File name is /storage/ofd_packets/00050612 [17:45:30]Write 523 bytes [17:45:30]NVStorageSaveData done [17:45:30]OFDSenderStorePacket done [17:45:30]KKMCreateOFDPacket done [17:45:30]NVStorageSaveData kkm_last_timestamp [17:45:30]File name is /storage/kkm_last_timestamp [17:45:30]Write 4 bytes [17:45:30]NVStorageSaveData done [17:45:30]ExternCall_PrintAddStr [17:45:30]wPrintStart [17:45:30]Write to MH i2c: 01 00 00 3F 14 53 [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: 01 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: 01 07 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: 01 07 00 3F 14 00 00 00 00 00 FF 0F 68 [17:45:30]RasterBufferAndPrint [17:45:30]line Счет N : (3)164514 [17:45:30]line ИНН: 02508201610067 [17:45:30]line Контрольно-Кассовый Чек [17:45:30]line ПРОДАЖА [17:45:30]line Товар: 4700000160211 [17:45:30]line Вода Легенда 0,5л [17:45:30]line 1.000 * 40.00 [17:45:30]line = 40.00 [17:45:30]line НДС 12% НСП 1% [17:45:30]line > о реализуемом товаре [17:45:30]line Товар: 46230614 [17:45:30]line Сигареты Richmond Red Edition [17:45:30]line 1.000 * 154.00 [17:45:30]line = 154.00 [17:45:30]line НДС 12% НСП 1% [17:45:30]line > о реализуемом товаре [17:45:30]line Товар: 50173976 [17:45:30]line Жев Orbit Winterfresh под [17:45:30]line 1.000 * 34.00 [17:45:30]line = 34.00 [17:45:30]line НДС 12% НСП 1% [17:45:30]line > о реализуемом товаре [17:45:30]line ИТОГО: 228.00 [17:45:30]line НСП 1% : 2.01 [17:45:30]line НДС 12% : 24.21 [17:45:30]line Наличными: 0.00 [17:45:30]line Безнал.: 228.00 [17:45:30]line Место: АЗС № 80 "Партнер Нефть" [17:45:30]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:45:30]line СНО: Общий режим [17:45:30]line Чек 112 25.10.2024 17:45 [17:45:30]line Смена: 493 ФФД: 1.0 [17:45:30]line ЗНМ: 0300000090 [17:45:30]line РНМ: 0000000000097022 [17:45:30]line Версия ККМ: 001 [17:45:30]line Платежная система: Mbank [17:45:30]line ФМ: 0000000000875000 [17:45:30]line ФД: 50612 [17:45:30]line ФПД: 75293519367405 [17:45:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T174530&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50612&fm=75293519367405&tin=02508201610067®Number=0000000000097022&sum=22800 [17:45:30]line 0 [17:45:30]written 0, free lines is 4095 [17:45:30]OFD Sender: Processing packet 50612 [packets to send 7, broken 6] [17:45:30]ProducePacketName [17:45:30]name=ofd_packets/00050612 [17:45:30]OFD Sender: To server: pG, [17:45:30]CommunicateWithHost lk.salyk.kg:30040 [17:45:30]ConnectInit lk.salyk.kg [17:45:30]Connected sock=10 [17:45:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 ED 01 00 00 8E 9F E5 01 7E 3C 5A 03 01 00 03 00 D9 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 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 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 48 0D 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3A D9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B4 C5 00 00 35 04 06 00 44 7A A3 79 CC ED CC AF 68 D1 CE 69 BB 7F [17:45:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 6D F2 47 00 A3 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B4 C5 00 00 F4 03 04 00 CB 84 1B 67 B6 04 01 00 00 F8 E8 B3 5E 1F E4 BA 3E [17:45:30]CommunicateWithHost err = 0 [17:45:30]CheckOFDResponse [17:45:30]1017 (14) - 77093643461234 [17:45:30]1041 (16) - 0000000000875000 [17:45:30]1040 (4) - 50612 [17:45:30]1012 (4) - 25.10.2024 11:45 [17:45:30]1206 (1) - 0 [17:45:30]OFD Sender: Remove packet 50612 [17:45:30]ProducePacketName [17:45:30]name=ofd_packets/00050612 [17:45:30]NVStorageDeleteData [17:45:30]Write to MH i2c: 01 00 00 75 14 89 [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: 01 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: 01 07 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 5B 0C F7 [17:45:30]RasterBufferAndPrint [17:45:30]line [17:45:30]line [17:45:30]line [17:45:30]line [17:45:30]line [17:45:30]written 0, free lines is 3173 [17:45:30]process_action close_receipt done [17:45:30]requested_data is exist [17:45:30]produce_requested_data [17:45:30]requested_item fm.sn is exist - process it [17:45:30]wFMCommunicate request_size=4 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 11 00 00 [17:45:30]Write to MH i2c: E2 08 00 7C 14 80 11 00 00 00 00 00 00 0A [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:30]Read from MH i2c: E2 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 17 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 17 00 7C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 51 [17:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:45:30]wFMCommunicate OK [17:45:30]requested_item fd.num is exist - process it [17:45:30]SAM_PROTO_GetFieldsCounters [17:45:30]wFMCommunicate request_size=4 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 13 00 00 [17:45:30]Write to MH i2c: E2 08 00 7D 14 80 13 00 00 00 00 00 00 0D [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:30]Read from MH i2c: E2 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 62 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 62 00 7D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [17:45:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:30]wFMCommunicate OK [17:45:30]SAM_PROTO_GetFieldsCounters done [17:45:30]requested_item shift.num is exist - process it [17:45:30]requested_item shift.opened is exist - process it [17:45:30]req_shift_opened [17:45:30]FM_GetShiftState [17:45:30]SAM_PROTO_GetShiftState [17:45:30]wFMCommunicate request_size=4 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 13 01 00 [17:45:30]Write to MH i2c: E2 08 00 7E 14 80 13 01 00 00 00 00 00 0F [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:30]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]OFD Sender: No OFD packet to send [17:45:31]Read from MH i2c: E2 0E 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 0E 00 7E 14 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 07 [17:45:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:45:31]wFMCommunicate OK [17:45:31]SAM_PROTO_GetShiftState done [17:45:31]FM_GetShiftState done [17:45:31]req_shift_opened done [17:45:31]requested_item shift.open_date is exist - process it [17:45:31]req_shift_open_date [17:45:31]req_shift_open_date done [17:45:31]produce_requested_data done [17:45:31]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50612,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:45:31]process_action_free close_receipt [17:45:31]json_value_free [17:45:31]json_value_free done [17:45:31]process_json_proto returns [17:45:31]Send response to host [17:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50612,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:45:31]free response buf [17:45:31]execute_script done [17:45:31]execute_script returns [17:45:31]free content buf [17:45:31]Sock 9.Close socket [17:45:31]Sock 9.Thread stoped [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:38]accept exits with 7 [17:53:38]New connection [17:53:38]New thread 3066789220 created [17:53:38]Thread 3066645860 joined [17:53:38]Waiting for new connection... [17:53:38] Sock 7.Parse request [17:53:38]Sock 7.Check first char [17:53:38]Sock 7.First char is OK [17:53:38]request: POST /json_proto HTTP/1.0 [17:53:38]Method: POST [17:53:38]URL: /json_proto [17:53:38]Method is POST - this is cgi request [17:53:38]url: /json_proto [17:53:38]query_string will be loaded in cgi processing [17:53:38]execute_cgi json_proto POST (null) [17:53:38]execute_cgi path=json_proto method=POST [17:53:38]POST find Content-Length [17:53:38]Host: 172.17.49.196:8080 [17:53:38]Content-Length: 773 [17:53:38]Content-Type: application/json [17:53:38] [17:53:38]POST finish read [17:53:38]Found Content-Length = 773 [17:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164515", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:38]execute_script... [17:53: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)164515", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:38]POST & json_proto [17:53:38]process_json_proto [17:53:38]json parsed OK: [17:53:38]protocol is kg_v1.0 [17:53:38]action value=close_receipt [17:53:38]process_action close_receipt [17:53:38]cmd_close_receipt [17:53:38]MH_GetDate [17:53:38]Write to MH i2c: F0 00 00 7F 14 82 [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: F0 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: F0 09 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: F0 09 00 7F 14 00 24 DB 1B 67 BD 3B 11 67 7C [17:53:38]GetLastDocTimeStamp 1729878330 [17:53:38]current date 1729878820 [17:53:38]FM_GetShiftState [17:53:38]SAM_PROTO_GetShiftState [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 13 01 00 [17:53:38]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0E 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 09 [17:53:38]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:53:38]wFMCommunicate OK [17:53:38]SAM_PROTO_GetShiftState done [17:53:38]FM_GetShiftState done [17:53:38]opened in 1729815177 [17:53:38]opened+sec_in_day 1729901577 [17:53:38]quantity*price = 13000 [17:53:38]sum+1 = 13001 [17:53:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 113 25.10.2024 17:53 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50613 ФПД: 43093012406796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175340&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50613&fm=43093012406796&tin=02508201610067®Number=0000000000097022&sum=13000 0 [17:53:39]StoreToDocumentArchive [17:53:39]shift 493 fd 50613 [17:53:39]save to /storage/0493/doc_00050613 [17:53:39]save last doc name /storage/0493/doc_00050613 to /storage/kkm_last_doc_name [17:53:39]save OK [17:53:39]Clear old archive folders... [17:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [17:53:39]tlvbuf is B6F2D8A0 [17:53:39]SAM_PROTO_ClearQueue [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 09 00 00 [17:53:39]Write to MH i2c: E2 08 00 8D 14 80 09 00 00 00 00 00 00 13 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [17:53:39]RAPDU: 90 00 [17:53:39]wFMCommunicate OK [17:53:39]SAM_PROTO_ClearQueue done [17:53:39]KKMCreateOFDPacket [17:53:39]OFDProtocolAddRootSTLVToBuf [17:53:39]FM_MakeSignedData [17:53:39]FM_MakeSignedData [17:53:39]SAM_PROTO_SignData [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 0D 01 02 [17:53:39]Write to MH i2c: E2 08 00 8E 14 80 0D 01 02 00 00 00 00 1B [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [17:53:39]RAPDU: 90 00 [17:53:39]wFMCommunicate OK [17:53:39]wFMCommunicate request_size=255 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 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 71 00 00 00 F4 03 04 00 24 DB 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [17:53:39]Write to MH i2c: E2 02 01 8F 14 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 71 00 00 00 F4 03 04 00 24 DB 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 05 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [17:53:39]RAPDU: 90 00 [17:53:39]wFMCommunicate OK [17:53:39]wFMCommunicate request_size=41 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B5 C5 00 00 35 04 06 00 27 31 5F B2 62 0C [17:53:39]Write to MH i2c: E2 2C 00 90 14 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B5 C5 00 00 35 04 06 00 27 31 5F B2 62 0C 00 00 32 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [17:53:39]RAPDU: 90 00 [17:53:39]wFMCommunicate OK [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 0D 03 02 [17:53:39]Write to MH i2c: E2 08 00 91 14 80 0D 03 02 00 00 00 00 20 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 0B 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 0B 00 91 14 00 10 28 17 E4 F0 63 92 F1 90 00 2A [17:53:39]RAPDU: 10 28 17 E4 F0 63 92 F1 90 00 [17:53:39]wFMCommunicate OK [17:53:39]SAM_PROTO_SignData done [17:53:39]FM_MakeSignedData done [17:53:39]CreateOFDProtocolMessage [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 11 00 00 [17:53:39]Write to MH i2c: E2 08 00 92 14 80 11 00 00 00 00 00 00 20 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 17 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 17 00 92 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 67 [17:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:53:39]wFMCommunicate OK [17:53:39]CreateOFDProtocolMessage done [17:53:39]OFDSenderStorePacket 50613 [17:53:39]StoreOFDPacket docnum=50613 [17:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 2C EC 26 01 FB D2 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 71 00 00 00 F4 03 04 00 24 DB 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B5 C5 00 00 35 04 06 00 27 31 5F B2 62 0C 10 28 17 E4 F0 63 92 F1 [17:53:39]CheckFolder [17:53:39]dirname=/storage/ofd_packets [17:53:39]CheckFolder done [17:53:39]ProducePacketName [17:53:39]name=ofd_packets/00050613 [17:53:39]NVStorageSaveData ofd_packets/00050613 [17:53:39]File name is /storage/ofd_packets/00050613 [17:53:39]Write 332 bytes [17:53:39]NVStorageSaveData done [17:53:39]OFDSenderStorePacket done [17:53:39]KKMCreateOFDPacket done [17:53:39]NVStorageSaveData kkm_last_timestamp [17:53:39]File name is /storage/kkm_last_timestamp [17:53:39]Write 4 bytes [17:53:39]NVStorageSaveData done [17:53:39]ExternCall_PrintAddStr [17:53:39]wPrintStart [17:53:39]Write to MH i2c: 01 00 00 93 14 A7 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: 01 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: 01 07 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: 01 07 00 93 14 00 00 00 00 00 FF 0F BC [17:53:39]RasterBufferAndPrint [17:53:39]line Счет N : (3)164515 [17:53:39]line ИНН: 02508201610067 [17:53:39]line Контрольно-Кассовый Чек [17:53:39]line ПРОДАЖА [17:53:39]line Товар: 2000036220012 [17:53:39]line Кофе Капучино XL(GABB TRADE) [17:53:39]line 1.000 * 130.00 [17:53:39]line = 130.00 [17:53:39]line НДС 12% НСП 1% [17:53:39]line > о реализуемом товаре [17:53:39]line ИТОГО: 130.00 [17:53:39]line НСП 1% : 1.15 [17:53:39]line НДС 12% : 13.80 [17:53:39]line Наличными: 0.00 [17:53:39]line Безнал.: 130.00 [17:53:39]line Место: АЗС № 80 "Партнер Нефть" [17:53:39]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [17:53:39]line СНО: Общий режим [17:53:39]line Чек 113 25.10.2024 17:53 [17:53:39]line Смена: 493 ФФД: 1.0 [17:53:39]line ЗНМ: 0300000090 [17:53:39]line РНМ: 0000000000097022 [17:53:39]line Версия ККМ: 001 [17:53:39]line Платежная система: Mbank [17:53:39]line ФМ: 0000000000875000 [17:53:39]line ФД: 50613 [17:53:39]line ФПД: 43093012406796 [17:53:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T175340&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50613&fm=43093012406796&tin=02508201610067®Number=0000000000097022&sum=13000 [17:53:40]line 0 [17:53:40]OFD Sender: Processing packet 50613 [packets to send 7, broken 6] [17:53:40]ProducePacketName [17:53:40]name=ofd_packets/00050613 [17:53:40]OFD Sender: To server: pG, [17:53:40]CommunicateWithHost lk.salyk.kg:30040 [17:53:40]ConnectInit lk.salyk.kg [17:53:40]written 0, free lines is 4095 [17:53:40]Connected sock=10 [17:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 2C EC 26 01 FB D2 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 71 00 00 00 F4 03 04 00 24 DB 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B5 C5 00 00 35 04 06 00 27 31 5F B2 62 0C 10 28 17 E4 F0 63 92 F1 [17:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A2 61 47 00 78 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B5 C5 00 00 F4 03 04 00 B5 86 1B 67 B6 04 01 00 00 BA C0 E1 A7 AC AE B5 C0 [17:53:40]CommunicateWithHost err = 0 [17:53:40]CheckOFDResponse [17:53:40]1017 (14) - 77093643461234 [17:53:40]1041 (16) - 0000000000875000 [17:53:40]1040 (4) - 50613 [17:53:40]1012 (4) - 25.10.2024 11:53 [17:53:40]1206 (1) - 0 [17:53:40]OFD Sender: Remove packet 50613 [17:53:40]ProducePacketName [17:53:40]name=ofd_packets/00050613 [17:53:40]NVStorageDeleteData [17:53:40]Write to MH i2c: 01 00 00 BD 14 D1 [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: 01 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: 01 07 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: 01 07 00 BD 14 00 00 00 00 00 03 0D E8 [17:53:40]RasterBufferAndPrint [17:53:40]line [17:53:40]line [17:53:40]line [17:53:40]line [17:53:40]line [17:53:40]written 0, free lines is 3336 [17:53:40]process_action close_receipt done [17:53:40]requested_data is exist [17:53:40]produce_requested_data [17:53:40]requested_item fm.sn is exist - process it [17:53:40]wFMCommunicate request_size=4 [17:53:40]MH_SAM_APDU [17:53:40]CAPDU: 80 11 00 00 [17:53:40]Write to MH i2c: E2 08 00 C4 14 80 11 00 00 00 00 00 00 52 [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:40]Read from MH i2c: E2 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 17 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 17 00 C4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 99 [17:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [17:53:40]wFMCommunicate OK [17:53:40]requested_item fd.num is exist - process it [17:53:40]SAM_PROTO_GetFieldsCounters [17:53:40]wFMCommunicate request_size=4 [17:53:40]MH_SAM_APDU [17:53:40]CAPDU: 80 13 00 00 [17:53:40]Write to MH i2c: E2 08 00 C5 14 80 13 00 00 00 00 00 00 55 [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:40]Read from MH i2c: E2 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 62 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 62 00 C5 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [17:53:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:40]wFMCommunicate OK [17:53:40]SAM_PROTO_GetFieldsCounters done [17:53:40]requested_item shift.num is exist - process it [17:53:40]requested_item shift.opened is exist - process it [17:53:40]req_shift_opened [17:53:40]FM_GetShiftState [17:53:40]SAM_PROTO_GetShiftState [17:53:40]wFMCommunicate request_size=4 [17:53:40]MH_SAM_APDU [17:53:40]CAPDU: 80 13 01 00 [17:53:40]Write to MH i2c: E2 08 00 C6 14 80 13 01 00 00 00 00 00 57 [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:40]Read from MH i2c: E2 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 0E 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 0E 00 C6 14 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4F [17:53:40]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [17:53:40]wFMCommunicate OK [17:53:40]SAM_PROTO_GetShiftState done [17:53:40]FM_GetShiftState done [17:53:40]req_shift_opened done [17:53:40]requested_item shift.open_date is exist - process it [17:53:40]req_shift_open_date [17:53:40]req_shift_open_date done [17:53:40]produce_requested_data done [17:53:40]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50613,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [17:53:40]process_action_free close_receipt [17:53:40]json_value_free [17:53:40]json_value_free done [17:53:40]process_json_proto returns [17:53:40]Send response to host [17:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50613,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [17:53:40]free response buf [17:53:40]execute_script done [17:53:40]execute_script returns [17:53:40]free content buf [17:53:40]Sock 7.Close socket [17:53:40]Sock 7.Thread stoped [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:19]accept exits with 9 [18:11:19]New connection [18:11:19]New thread 3066645860 created [18:11:19]Thread 3066789220 joined [18:11:19]Waiting for new connection... [18:11:19] Sock 9.Parse request [18:11:19]Sock 9.Check first char [18:11:19]Sock 9.First char is OK [18:11:19]request: POST /json_proto HTTP/1.0 [18:11:19]Method: POST [18:11:19]URL: /json_proto [18:11:19]Method is POST - this is cgi request [18:11:19]url: /json_proto [18:11:19]query_string will be loaded in cgi processing [18:11:19]execute_cgi json_proto POST (null) [18:11:19]execute_cgi path=json_proto method=POST [18:11:19]POST find Content-Length [18:11:19]Host: 172.17.49.196:8080 [18:11:19]Content-Length: 631 [18:11:19]Content-Type: application/json [18:11:19] [18:11:19]POST finish read [18:11:19]Found Content-Length = 631 [18:11:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164516", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:19]execute_script... [18:11:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164516", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:19]POST & json_proto [18:11:19]process_json_proto [18:11:19]json parsed OK: [18:11:19]protocol is kg_v1.0 [18:11:19]action value=close_receipt [18:11:19]process_action close_receipt [18:11:19]cmd_close_receipt [18:11:19]MH_GetDate [18:11:19]Write to MH i2c: F0 00 00 C7 14 CA [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: F0 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: F0 09 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: F0 09 00 C7 14 00 49 DF 1B 67 BD 3B 11 67 ED [18:11:19]GetLastDocTimeStamp 1729878820 [18:11:19]current date 1729879881 [18:11:19]FM_GetShiftState [18:11:19]SAM_PROTO_GetShiftState [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 13 01 00 [18:11:19]Write to MH i2c: E2 08 00 C8 14 80 13 01 00 00 00 00 00 59 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 0E 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 0E 00 C8 14 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 51 [18:11:19]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:11:19]wFMCommunicate OK [18:11:19]SAM_PROTO_GetShiftState done [18:11:19]FM_GetShiftState done [18:11:19]opened in 1729815177 [18:11:19]opened+sec_in_day 1729901577 [18:11:19]quantity*price = 4500 [18:11:19]sum+1 = 4501 [18:11:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 114 25.10.2024 18:11 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50614 ФПД: 242066510180403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181121&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50614&fm=242066510180403&tin=02508201610067®Number=0000000000097022&sum=4500 0 [18:11:20]StoreToDocumentArchive [18:11:20]shift 493 fd 50614 [18:11:20]save to /storage/0493/doc_00050614 [18:11:20]save last doc name /storage/0493/doc_00050614 to /storage/kkm_last_doc_name [18:11:20]save OK [18:11:20]Clear old archive folders... [18:11:20]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:11:20]tlvbuf is B6E993A0 [18:11:20]SAM_PROTO_ClearQueue [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 09 00 00 [18:11:20]Write to MH i2c: E2 08 00 D5 14 80 09 00 00 00 00 00 00 5B [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]SAM_PROTO_ClearQueue done [18:11:20]KKMCreateOFDPacket [18:11:20]OFDProtocolAddRootSTLVToBuf [18:11:20]FM_MakeSignedData [18:11:20]FM_MakeSignedData [18:11:20]SAM_PROTO_SignData [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 0D 01 02 [18:11:20]Write to MH i2c: E2 08 00 D6 14 80 0D 01 02 00 00 00 00 63 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 D6 14 00 90 00 5E [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]wFMCommunicate request_size=255 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 49 DF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [18:11:20]Write to MH i2c: E2 02 01 D7 14 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 49 DF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 9A [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 D7 14 00 90 00 5F [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]wFMCommunicate request_size=33 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B6 C5 00 00 35 04 06 00 DC 28 80 59 F0 33 [18:11:20]Write to MH i2c: E2 24 00 D8 14 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B6 C5 00 00 35 04 06 00 DC 28 80 59 F0 33 00 00 64 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 D8 14 00 90 00 60 [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 0D 03 02 [18:11:20]Write to MH i2c: E2 08 00 D9 14 80 0D 03 02 00 00 00 00 68 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0B 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0B 00 D9 14 00 63 72 CE 81 17 80 5C 9C 90 00 1C [18:11:20]RAPDU: 63 72 CE 81 17 80 5C 9C 90 00 [18:11:20]wFMCommunicate OK [18:11:20]SAM_PROTO_SignData done [18:11:20]FM_MakeSignedData done [18:11:20]CreateOFDProtocolMessage [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 11 00 00 [18:11:20]Write to MH i2c: E2 08 00 DA 14 80 11 00 00 00 00 00 00 68 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 17 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 17 00 DA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AF [18:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:11:20]wFMCommunicate OK [18:11:20]CreateOFDProtocolMessage done [18:11:20]OFDSenderStorePacket 50614 [18:11:20]StoreOFDPacket docnum=50614 [18:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 B9 42 1E 01 43 B1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 49 DF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B6 C5 00 00 35 04 06 00 DC 28 80 59 F0 33 63 72 CE 81 17 80 5C 9C [18:11:20]CheckFolder [18:11:20]dirname=/storage/ofd_packets [18:11:20]CheckFolder done [18:11:20]ProducePacketName [18:11:20]name=ofd_packets/00050614 [18:11:20]NVStorageSaveData ofd_packets/00050614 [18:11:20]File name is /storage/ofd_packets/00050614 [18:11:20]Write 324 bytes [18:11:20]NVStorageSaveData done [18:11:20]OFDSenderStorePacket done [18:11:20]KKMCreateOFDPacket done [18:11:20]NVStorageSaveData kkm_last_timestamp [18:11:20]File name is /storage/kkm_last_timestamp [18:11:20]Write 4 bytes [18:11:20]NVStorageSaveData done [18:11:20]ExternCall_PrintAddStr [18:11:20]wPrintStart [18:11:20]Write to MH i2c: 01 00 00 DB 14 EF [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 DB 14 00 00 00 00 00 FF 0F 04 [18:11:20]RasterBufferAndPrint [18:11:20]line Счет N : (3)164516 [18:11:20]line ИНН: 02508201610067 [18:11:20]line Контрольно-Кассовый Чек [18:11:20]line ПРОДАЖА [18:11:20]line Товар: 50173822 [18:11:20]line Р/ж Orbit б/сах мята 13,6г [18:11:20]line 1.000 * 45.00 [18:11:20]line = 45.00 [18:11:20]line НДС 12% НСП 1% [18:11:20]line > о реализуемом товаре [18:11:20]line ИТОГО: 45.00 [18:11:20]line НСП 1% : 0.40 [18:11:20]line НДС 12% : 4.78 [18:11:20]line Наличными: 45.00 [18:11:20]line Безнал.: 0.00 [18:11:20]line Место: АЗС № 80 "Партнер Нефть" [18:11:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:11:20]line СНО: Общий режим [18:11:20]line Чек 114 25.10.2024 18:11 [18:11:20]line Смена: 493 ФФД: 1.0 [18:11:20]line ЗНМ: 0300000090 [18:11:20]line РНМ: 0000000000097022 [18:11:20]line Версия ККМ: 001 [18:11:20]line ФМ: 0000000000875000 [18:11:20]line ФД: 50614 [18:11:20]line ФПД: 242066510180403 [18:11:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181121&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50614&fm=242066510180403&tin=02508201610067®Number=0000000000097022&sum=4500 [18:11:21]line 0 [18:11:21]OFD Sender: Processing packet 50614 [packets to send 7, broken 6] [18:11:21]ProducePacketName [18:11:21]name=ofd_packets/00050614 [18:11:21]OFD Sender: To server: pG, [18:11:21]CommunicateWithHost lk.salyk.kg:30040 [18:11:21]ConnectInit lk.salyk.kg [18:11:21]written 0, free lines is 4095 [18:11:21]Connected sock=11 [18:11:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 B9 42 1E 01 43 B1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 49 DF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B6 C5 00 00 35 04 06 00 DC 28 80 59 F0 33 63 72 CE 81 17 80 5C 9C [18:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 69 78 47 00 9A 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B6 C5 00 00 F4 03 04 00 DA 8A 1B 67 B6 04 01 00 00 B0 85 74 D5 A6 4C BE 4E [18:11:21]CommunicateWithHost err = 0 [18:11:21]CheckOFDResponse [18:11:21]1017 (14) - 77093643461234 [18:11:21]1041 (16) - 0000000000875000 [18:11:21]1040 (4) - 50614 [18:11:21]1012 (4) - 25.10.2024 12:11 [18:11:21]1206 (1) - 0 [18:11:21]OFD Sender: Remove packet 50614 [18:11:21]ProducePacketName [18:11:21]name=ofd_packets/00050614 [18:11:21]NVStorageDeleteData [18:11:21]Write to MH i2c: 01 00 00 03 15 18 [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: 01 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: 01 07 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: 01 07 00 03 15 00 00 00 00 00 26 0D 52 [18:11:21]RasterBufferAndPrint [18:11:21]line [18:11:21]line [18:11:21]line [18:11:21]line [18:11:21]line [18:11:21]written 0, free lines is 3372 [18:11:21]process_action close_receipt done [18:11:21]requested_data is exist [18:11:21]produce_requested_data [18:11:21]requested_item fm.sn is exist - process it [18:11:21]wFMCommunicate request_size=4 [18:11:21]MH_SAM_APDU [18:11:21]CAPDU: 80 11 00 00 [18:11:21]Write to MH i2c: E2 08 00 0A 15 80 11 00 00 00 00 00 00 99 [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:21]Read from MH i2c: E2 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 17 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 17 00 0A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E0 [18:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:11:21]wFMCommunicate OK [18:11:21]requested_item fd.num is exist - process it [18:11:21]SAM_PROTO_GetFieldsCounters [18:11:21]wFMCommunicate request_size=4 [18:11:21]MH_SAM_APDU [18:11:21]CAPDU: 80 13 00 00 [18:11:21]Write to MH i2c: E2 08 00 0B 15 80 13 00 00 00 00 00 00 9C [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:21]Read from MH i2c: E2 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 62 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 62 00 0B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [18:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:21]wFMCommunicate OK [18:11:21]SAM_PROTO_GetFieldsCounters done [18:11:21]requested_item shift.num is exist - process it [18:11:21]requested_item shift.opened is exist - process it [18:11:21]req_shift_opened [18:11:21]FM_GetShiftState [18:11:21]SAM_PROTO_GetShiftState [18:11:21]wFMCommunicate request_size=4 [18:11:21]MH_SAM_APDU [18:11:21]CAPDU: 80 13 01 00 [18:11:21]Write to MH i2c: E2 08 00 0C 15 80 13 01 00 00 00 00 00 9E [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:21]Read from MH i2c: E2 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 0E 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 0E 00 0C 15 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 96 [18:11:21]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:11:21]wFMCommunicate OK [18:11:21]SAM_PROTO_GetShiftState done [18:11:21]FM_GetShiftState done [18:11:21]req_shift_opened done [18:11:21]requested_item shift.open_date is exist - process it [18:11:21]req_shift_open_date [18:11:21]req_shift_open_date done [18:11:21]produce_requested_data done [18:11:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50614,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:11:21]process_action_free close_receipt [18:11:21]json_value_free [18:11:21]json_value_free done [18:11:21]process_json_proto returns [18:11:21]Send response to host [18:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50614,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:11:21]free response buf [18:11:21]execute_script done [18:11:21]execute_script returns [18:11:21]free content buf [18:11:21]Sock 9.Close socket [18:11:21]Sock 9.Thread stoped [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:05]accept exits with 7 [18:15:05]New connection [18:15:05]New thread 3066789220 created [18:15:05]Thread 3066645860 joined [18:15:05]Waiting for new connection... [18:15:05] Sock 7.Parse request [18:15:05]Sock 7.Check first char [18:15:05]Sock 7.First char is OK [18:15:05]request: POST /json_proto HTTP/1.0 [18:15:05]Method: POST [18:15:05]URL: /json_proto [18:15:05]Method is POST - this is cgi request [18:15:05]url: /json_proto [18:15:05]query_string will be loaded in cgi processing [18:15:05]execute_cgi json_proto POST (null) [18:15:05]execute_cgi path=json_proto method=POST [18:15:05]POST find Content-Length [18:15:05]Host: 172.17.49.196:8080 [18:15:05]Content-Length: 685 [18:15:05]Content-Type: application/json [18:15:05] [18:15:05]POST finish read [18:15:05]Found Content-Length = 685 [18:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:15:05]execute_script... [18:15: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)15442650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:15:05]POST & json_proto [18:15:05]process_json_proto [18:15:05]json parsed OK: [18:15:05]protocol is kg_v1.0 [18:15:05]action value=close_receipt [18:15:05]process_action close_receipt [18:15:05]cmd_close_receipt [18:15:05]MH_GetDate [18:15:05]Write to MH i2c: F0 00 00 0D 15 11 [18:15:05]Write i2c OK [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: F0 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: F0 09 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: F0 09 00 0D 15 00 2C E0 1B 67 BD 3B 11 67 18 [18:15:05]GetLastDocTimeStamp 1729879881 [18:15:05]current date 1729880108 [18:15:05]FM_GetShiftState [18:15:05]SAM_PROTO_GetShiftState [18:15:05]wFMCommunicate request_size=4 [18:15:05]MH_SAM_APDU [18:15:05]CAPDU: 80 13 01 00 [18:15:05]Write to MH i2c: E2 08 00 0E 15 80 13 01 00 00 00 00 00 A0 [18:15:05]Write i2c OK [18:15:05]MH_I2C_Read... [18:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:05]Read from MH i2c: E2 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 0E 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 0E 00 0E 15 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 98 [18:15:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:15:05]wFMCommunicate OK [18:15:05]SAM_PROTO_GetShiftState done [18:15:05]FM_GetShiftState done [18:15:05]opened in 1729815177 [18:15:05]opened+sec_in_day 1729901577 [18:15:05]quantity*price = 50025 [18:15:05]sum+1 = 50027 [18:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 115 25.10.2024 18:15 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50615 ФПД: 171778466633372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181508&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50615&fm=171778466633372&tin=02508201610067®Number=0000000000097022&sum=50000 [18:15:06]StoreToDocumentArchive [18:15:06]shift 493 fd 50615 [18:15:06]save to /storage/0493/doc_00050615 [18:15:06]save last doc name /storage/0493/doc_00050615 to /storage/kkm_last_doc_name [18:15:06]save OK [18:15:06]Clear old archive folders... [18:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:15:06]tlvbuf is 01E63020 [18:15:06]SAM_PROTO_ClearQueue [18:15:06]wFMCommunicate request_size=4 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 09 00 00 [18:15:06]Write to MH i2c: E2 08 00 1B 15 80 09 00 00 00 00 00 00 A2 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 1B 15 00 90 00 A4 [18:15:06]RAPDU: 90 00 [18:15:06]wFMCommunicate OK [18:15:06]SAM_PROTO_ClearQueue done [18:15:06]KKMCreateOFDPacket [18:15:06]OFDProtocolAddRootSTLVToBuf [18:15:06]FM_MakeSignedData [18:15:06]FM_MakeSignedData [18:15:06]SAM_PROTO_SignData [18:15:06]wFMCommunicate request_size=4 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 0D 01 02 [18:15:06]Write to MH i2c: E2 08 00 1C 15 80 0D 01 02 00 00 00 00 AA [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [18:15:06]RAPDU: 90 00 [18:15:06]wFMCommunicate OK [18:15:06]wFMCommunicate request_size=255 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2C E0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B7 C5 00 [18:15:06]Write to MH i2c: E2 02 01 1D 15 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2C E0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B7 C5 00 00 00 28 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [18:15:06]RAPDU: 90 00 [18:15:06]wFMCommunicate OK [18:15:06]wFMCommunicate request_size=16 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9C 3B 4A 7B D6 9C [18:15:06]Write to MH i2c: E2 13 00 1E 15 80 0D 02 02 0B 00 00 35 04 06 00 9C 3B 4A 7B D6 9C 00 00 10 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [18:15:07]RAPDU: 90 00 [18:15:07]wFMCommunicate OK [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 0D 03 02 [18:15:07]Write to MH i2c: E2 08 00 1F 15 80 0D 03 02 00 00 00 00 AF [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 0B 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 0B 00 1F 15 00 D2 7D 05 6A D3 D7 57 AE 90 00 1D [18:15:07]RAPDU: D2 7D 05 6A D3 D7 57 AE 90 00 [18:15:07]wFMCommunicate OK [18:15:07]SAM_PROTO_SignData done [18:15:07]FM_MakeSignedData done [18:15:07]CreateOFDProtocolMessage [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 11 00 00 [18:15:07]Write to MH i2c: E2 08 00 20 15 80 11 00 00 00 00 00 00 AF [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 17 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 17 00 20 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F6 [18:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:15:07]wFMCommunicate OK [18:15:07]CreateOFDProtocolMessage done [18:15:07]OFDSenderStorePacket 50615 [18:15:07]StoreOFDPacket docnum=50615 [18:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 CA B6 0D 01 92 A5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2C E0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B7 C5 00 00 35 04 06 00 9C 3B 4A 7B D6 9C D2 7D 05 6A D3 D7 57 AE [18:15:07]CheckFolder [18:15:07]dirname=/storage/ofd_packets [18:15:07]CheckFolder done [18:15:07]ProducePacketName [18:15:07]name=ofd_packets/00050615 [18:15:07]NVStorageSaveData ofd_packets/00050615 [18:15:07]File name is /storage/ofd_packets/00050615 [18:15:07]Write 307 bytes [18:15:07]NVStorageSaveData done [18:15:07]OFDSenderStorePacket done [18:15:07]KKMCreateOFDPacket done [18:15:07]NVStorageSaveData kkm_last_timestamp [18:15:07]File name is /storage/kkm_last_timestamp [18:15:07]Write 4 bytes [18:15:07]NVStorageSaveData done [18:15:07]ExternCall_PrintAddStr [18:15:07]wPrintStart [18:15:07]Write to MH i2c: 01 00 00 21 15 36 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 07 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 07 00 21 15 00 00 00 00 00 FF 0F 4B [18:15:07]RasterBufferAndPrint [18:15:07]line Счет N : (1)15442650 [18:15:07]line ИНН: 02508201610067 [18:15:07]line Контрольно-Кассовый Чек [18:15:07]line ПРОДАЖА [18:15:07]line ТРК (МРК, ГНК) : 31 [18:15:07]line Товар: 2710194210 [18:15:07]line D-ENERGY ДТ-К-2 [18:15:07]line 6.480 * 77.20 [18:15:07]line = 500.26 [18:15:07]line НДС 12% НСП 1% [18:15:07]line > о реализуемом товаре [18:15:07]line ОКРУГЛЕНИЕ: -0.26 [18:15:07]line ИТОГО: 500.00 [18:15:07]line Внесено: 500.00 [18:15:07]line СДАЧА: 0.00 [18:15:07]line НСП 1% : 4.43 [18:15:07]line НДС 12% : 53.12 [18:15:07]line Наличными: 500.00 [18:15:07]line Безнал.: 0.00 [18:15:07]line Место: АЗС № 80 "Партнер Нефть" [18:15:07]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:15:07]line СНО: Общий режим [18:15:07]line Чек 115 25.10.2024 18:15 [18:15:07]line Смена: 493 ФФД: 1.0 [18:15:07]line ЗНМ: 0300000090 [18:15:07]line РНМ: 0000000000097022 [18:15:07]line Версия ККМ: 001 [18:15:07]line ФМ: 0000000000875000 [18:15:07]line ФД: 50615 [18:15:07]line ФПД: 171778466633372 [18:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181508&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50615&fm=171778466633372&tin=02508201610067®Number=0000000000097022&sum=50000 [18:15:07]OFD Sender: Processing packet 50615 [packets to send 7, broken 6] [18:15:07]ProducePacketName [18:15:07]name=ofd_packets/00050615 [18:15:07]OFD Sender: To server: pG, [18:15:07]CommunicateWithHost lk.salyk.kg:30040 [18:15:07]ConnectInit lk.salyk.kg [18:15:07]written 0, free lines is 4095 [18:15:07]Write to MH i2c: 01 00 00 4C 15 61 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 07 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 FB 0C 6F [18:15:07]RasterBufferAndPrint [18:15:07]line [18:15:07]line [18:15:07]line [18:15:07]line [18:15:07]line [18:15:07]written 0, free lines is 3330 [18:15:07]process_action close_receipt done [18:15:07]requested_data is exist [18:15:07]produce_requested_data [18:15:07]requested_item fm.sn is exist - process it [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 11 00 00 [18:15:07]Write to MH i2c: E2 08 00 53 15 80 11 00 00 00 00 00 00 E2 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 17 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 17 00 53 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 29 [18:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:15:08]wFMCommunicate OK [18:15:08]requested_item fd.num is exist - process it [18:15:08]SAM_PROTO_GetFieldsCounters [18:15:08]wFMCommunicate request_size=4 [18:15:08]MH_SAM_APDU [18:15:08]CAPDU: 80 13 00 00 [18:15:08]Write to MH i2c: E2 08 00 54 15 80 13 00 00 00 00 00 00 E5 [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:08]Read from MH i2c: E2 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 62 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 62 00 54 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [18:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:08]wFMCommunicate OK [18:15:08]SAM_PROTO_GetFieldsCounters done [18:15:08]requested_item shift.num is exist - process it [18:15:08]requested_item shift.opened is exist - process it [18:15:08]req_shift_opened [18:15:08]FM_GetShiftState [18:15:08]SAM_PROTO_GetShiftState [18:15:08]wFMCommunicate request_size=4 [18:15:08]MH_SAM_APDU [18:15:08]CAPDU: 80 13 01 00 [18:15:08]Write to MH i2c: E2 08 00 55 15 80 13 01 00 00 00 00 00 E7 [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:08]Read from MH i2c: E2 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 0E 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 0E 00 55 15 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DF [18:15:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:15:08]wFMCommunicate OK [18:15:08]SAM_PROTO_GetShiftState done [18:15:08]FM_GetShiftState done [18:15:08]req_shift_opened done [18:15:08]requested_item shift.open_date is exist - process it [18:15:08]req_shift_open_date [18:15:08]req_shift_open_date done [18:15:08]produce_requested_data done [18:15:08]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50615,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:15:08]process_action_free close_receipt [18:15:08]json_value_free [18:15:08]json_value_free done [18:15:08]process_json_proto returns [18:15:08]Send response to host [18:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50615,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:15:08]free response buf [18:15:08]execute_script done [18:15:08]execute_script returns [18:15:08]free content buf [18:15:08]Sock 7.Close socket [18:15:08]Sock 7.Thread stoped [18:17:21]ConnectInit Can't connect to host [18:17:21]CommunicateWithHost connect error [18:17:21]CommunicateWithHost err = -1 [18:17:21]OFD Sender: Server communicate error [18:17:26]OFD Sender: Processing packet 50615 [packets to send 7, broken 6] [18:17:26]ProducePacketName [18:17:26]name=ofd_packets/00050615 [18:17:26]OFD Sender: To server: pG, [18:17:26]CommunicateWithHost lk.salyk.kg:30040 [18:17:26]ConnectInit lk.salyk.kg [18:17:26]Connected sock=7 [18:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 CA B6 0D 01 92 A5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2C E0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B7 C5 00 00 35 04 06 00 9C 3B 4A 7B D6 9C D2 7D 05 6A D3 D7 57 AE [18:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 2E 41 47 00 ED 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B7 C5 00 00 F4 03 04 00 47 8C 1B 67 B6 04 01 00 00 80 A1 06 03 8A DA 0C 59 [18:17:26]CommunicateWithHost err = 0 [18:17:26]CheckOFDResponse [18:17:26]1017 (14) - 77093643461234 [18:17:26]1041 (16) - 0000000000875000 [18:17:26]1040 (4) - 50615 [18:17:26]1012 (4) - 25.10.2024 12:17 [18:17:26]1206 (1) - 0 [18:17:26]OFD Sender: Remove packet 50615 [18:17:26]ProducePacketName [18:17:26]name=ofd_packets/00050615 [18:17:26]NVStorageDeleteData [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:31]accept exits with 9 [18:18:31]New connection [18:18:31]New thread 3066645860 created [18:18:31]Thread 3066789220 joined [18:18:31]Waiting for new connection... [18:18:31] Sock 9.Parse request [18:18:31]Sock 9.Check first char [18:18:31]Sock 9.First char is OK [18:18:31]request: POST /json_proto HTTP/1.0 [18:18:31]Method: POST [18:18:31]URL: /json_proto [18:18:31]Method is POST - this is cgi request [18:18:31]url: /json_proto [18:18:31]query_string will be loaded in cgi processing [18:18:31]execute_cgi json_proto POST (null) [18:18:31]execute_cgi path=json_proto method=POST [18:18:31]POST find Content-Length [18:18:31]Host: 172.17.49.196:8080 [18:18:31]Content-Length: 768 [18:18:31]Content-Type: application/json [18:18:31] [18:18:31]POST finish read [18:18:31]Found Content-Length = 768 [18:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:31]execute_script... [18:18: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)15442651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:31]POST & json_proto [18:18:31]process_json_proto [18:18:31]json parsed OK: [18:18:31]protocol is kg_v1.0 [18:18:31]action value=close_receipt [18:18:31]process_action close_receipt [18:18:31]cmd_close_receipt [18:18:31]MH_GetDate [18:18:31]Write to MH i2c: F0 00 00 56 15 5A [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: F0 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: F0 09 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: F0 09 00 56 15 00 FA E0 1B 67 BD 3B 11 67 2F [18:18:31]GetLastDocTimeStamp 1729880108 [18:18:31]current date 1729880314 [18:18:31]FM_GetShiftState [18:18:31]SAM_PROTO_GetShiftState [18:18:31]wFMCommunicate request_size=4 [18:18:31]MH_SAM_APDU [18:18:31]CAPDU: 80 13 01 00 [18:18:31]Write to MH i2c: E2 08 00 57 15 80 13 01 00 00 00 00 00 E9 [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:31]Read from MH i2c: E2 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 0E 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 0E 00 57 15 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E1 [18:18:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:18:31]wFMCommunicate OK [18:18:31]SAM_PROTO_GetShiftState done [18:18:31]FM_GetShiftState done [18:18:31]opened in 1729815177 [18:18:31]opened+sec_in_day 1729901577 [18:18:31]quantity*price = 50041 [18:18:31]sum+1 = 50042 [18:18:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 116 25.10.2024 18:18 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50616 ФПД: 60255468897579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181834&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50616&fm=60255468897579&tin=02508201610067®Number=0000000000097022&sum=50041 [18:18:32]StoreToDocumentArchive [18:18:32]shift 493 fd 50616 [18:18:32]save to /storage/0493/doc_00050616 [18:18:32]save last doc name /storage/0493/doc_00050616 to /storage/kkm_last_doc_name [18:18:32]save OK [18:18:32]Clear old archive folders... [18:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:32]tlvbuf is 01E71240 [18:18:32]SAM_PROTO_ClearQueue [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 09 00 00 [18:18:32]Write to MH i2c: E2 08 00 64 15 80 09 00 00 00 00 00 00 EB [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 03 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 03 00 64 15 00 90 00 ED [18:18:32]RAPDU: 90 00 [18:18:32]wFMCommunicate OK [18:18:32]SAM_PROTO_ClearQueue done [18:18:32]KKMCreateOFDPacket [18:18:32]OFDProtocolAddRootSTLVToBuf [18:18:32]FM_MakeSignedData [18:18:32]FM_MakeSignedData [18:18:32]SAM_PROTO_SignData [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 0D 01 02 [18:18:32]Write to MH i2c: E2 08 00 65 15 80 0D 01 02 00 00 00 00 F3 [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 03 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [18:18:32]RAPDU: 90 00 [18:18:32]wFMCommunicate OK [18:18:32]wFMCommunicate request_size=255 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FA E0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B8 C5 00 00 35 04 06 00 36 [18:18:32]Write to MH i2c: E2 02 01 66 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FA E0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B8 C5 00 00 35 04 06 00 36 00 00 33 [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 03 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [18:18:32]RAPDU: 90 00 [18:18:32]wFMCommunicate OK [18:18:32]wFMCommunicate request_size=10 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 0D 02 02 05 CD 51 D1 C5 2B [18:18:32]Write to MH i2c: E2 0D 00 67 15 80 0D 02 02 05 00 CD 51 D1 C5 2B 00 00 DF [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 03 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [18:18:33]RAPDU: 90 00 [18:18:33]wFMCommunicate OK [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 0D 03 02 [18:18:33]Write to MH i2c: E2 08 00 68 15 80 0D 03 02 00 00 00 00 F8 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0B 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0B 00 68 15 00 70 65 81 74 8A DD BE 78 90 00 60 [18:18:33]RAPDU: 70 65 81 74 8A DD BE 78 90 00 [18:18:33]wFMCommunicate OK [18:18:33]SAM_PROTO_SignData done [18:18:33]FM_MakeSignedData done [18:18:33]CreateOFDProtocolMessage [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 11 00 00 [18:18:33]Write to MH i2c: E2 08 00 69 15 80 11 00 00 00 00 00 00 F8 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 17 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 17 00 69 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3F [18:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:18:33]wFMCommunicate OK [18:18:33]CreateOFDProtocolMessage done [18:18:33]OFDSenderStorePacket 50616 [18:18:33]StoreOFDPacket docnum=50616 [18:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 AE 04 07 01 D2 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FA E0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B8 C5 00 00 35 04 06 00 36 CD 51 D1 C5 2B 70 65 81 74 8A DD BE 78 [18:18:33]CheckFolder [18:18:33]dirname=/storage/ofd_packets [18:18:33]CheckFolder done [18:18:33]ProducePacketName [18:18:33]name=ofd_packets/00050616 [18:18:33]NVStorageSaveData ofd_packets/00050616 [18:18:33]File name is /storage/ofd_packets/00050616 [18:18:33]Write 301 bytes [18:18:33]NVStorageSaveData done [18:18:33]OFDSenderStorePacket done [18:18:33]KKMCreateOFDPacket done [18:18:33]NVStorageSaveData kkm_last_timestamp [18:18:33]File name is /storage/kkm_last_timestamp [18:18:33]Write 4 bytes [18:18:33]NVStorageSaveData done [18:18:33]ExternCall_PrintAddStr [18:18:33]wPrintStart [18:18:33]Write to MH i2c: 01 00 00 6A 15 7F [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: 01 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: 01 07 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: 01 07 00 6A 15 00 00 00 00 00 FF 0F 94 [18:18:33]RasterBufferAndPrint [18:18:33]line Счет N : (1)15442651 [18:18:33]line ИНН: 02508201610067 [18:18:33]line Контрольно-Кассовый Чек [18:18:33]line ПРОДАЖА [18:18:33]line ТРК (МРК, ГНК) : 13 [18:18:33]line Товар: 2710124130 [18:18:33]line Аи-92-К-4 [18:18:33]line 7.480 * 66.90 [18:18:33]line = 500.41 [18:18:33]line НДС 12% НСП 1% [18:18:33]line > о реализуемом товаре [18:18:33]line ИТОГО: 500.41 [18:18:33]line НСП 1% : 4.43 [18:18:33]line НДС 12% : 53.14 [18:18:33]line Наличными: 0.00 [18:18:33]line Безнал.: 500.41 [18:18:33]line Место: АЗС № 80 "Партнер Нефть" [18:18:33]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:18:33]line СНО: Общий режим [18:18:33]line Чек 116 25.10.2024 18:18 [18:18:33]line Смена: 493 ФФД: 1.0 [18:18:33]line ЗНМ: 0300000090 [18:18:33]line РНМ: 0000000000097022 [18:18:33]line Версия ККМ: 001 [18:18:33]line Платежная система: Mbank [18:18:33]line ФМ: 0000000000875000 [18:18:33]line ФД: 50616 [18:18:33]line ФПД: 60255468897579 [18:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181834&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50616&fm=60255468897579&tin=02508201610067®Number=0000000000097022&sum=50041 [18:18:33]written 0, free lines is 4095 [18:18:33]OFD Sender: Processing packet 50616 [packets to send 7, broken 6] [18:18:33]ProducePacketName [18:18:33]name=ofd_packets/00050616 [18:18:33]OFD Sender: To server: pG, [18:18:33]CommunicateWithHost lk.salyk.kg:30040 [18:18:33]ConnectInit lk.salyk.kg [18:18:33]Connected sock=11 [18:18:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 AE 04 07 01 D2 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FA E0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B8 C5 00 00 35 04 06 00 36 CD 51 D1 C5 2B 70 65 81 74 8A DD BE 78 [18:18:33]Write to MH i2c: 01 00 00 93 15 A8 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: 01 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: 01 07 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: 01 07 00 93 15 00 00 00 00 00 19 0D D5 [18:18:33]RasterBufferAndPrint [18:18:33]line [18:18:33]line [18:18:33]line [18:18:33]line [18:18:33]line [18:18:33]written 0, free lines is 3359 [18:18:33]process_action close_receipt done [18:18:33]requested_data is exist [18:18:33]produce_requested_data [18:18:33]requested_item fm.sn is exist - process it [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 11 00 00 [18:18:33]Write to MH i2c: E2 08 00 9A 15 80 11 00 00 00 00 00 00 29 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 17 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 17 00 9A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 70 [18:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:18:33]wFMCommunicate OK [18:18:33]requested_item fd.num is exist - process it [18:18:33]SAM_PROTO_GetFieldsCounters [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 13 00 00 [18:18:33]Write to MH i2c: E2 08 00 9B 15 80 13 00 00 00 00 00 00 2C [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 62 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 62 00 9B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [18:18:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:33]wFMCommunicate OK [18:18:33]SAM_PROTO_GetFieldsCounters done [18:18:33]requested_item shift.num is exist - process it [18:18:33]requested_item shift.opened is exist - process it [18:18:33]req_shift_opened [18:18:33]FM_GetShiftState [18:18:33]SAM_PROTO_GetShiftState [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 13 01 00 [18:18:33]Write to MH i2c: E2 08 00 9C 15 80 13 01 00 00 00 00 00 2E [18:18:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 A8 D3 47 00 4A 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B8 C5 00 00 F4 03 04 00 8A 8C 1B 67 B6 04 01 00 00 A5 01 9F 2F B2 9A 9D 78 [18:18:33]CommunicateWithHost err = 0 [18:18:33]CheckOFDResponse [18:18:33]1017 (14) - 77093643461234 [18:18:33]1041 (16) - 0000000000875000 [18:18:33]1040 (4) - 50616 [18:18:33]1012 (4) - 25.10.2024 12:18 [18:18:33]1206 (1) - 0 [18:18:33]OFD Sender: Remove packet 50616 [18:18:33]ProducePacketName [18:18:33]name=ofd_packets/00050616 [18:18:33]NVStorageDeleteData [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0E 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0E 00 9C 15 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 26 [18:18:33]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:18:33]wFMCommunicate OK [18:18:33]SAM_PROTO_GetShiftState done [18:18:33]FM_GetShiftState done [18:18:33]req_shift_opened done [18:18:33]requested_item shift.open_date is exist - process it [18:18:33]req_shift_open_date [18:18:33]req_shift_open_date done [18:18:33]produce_requested_data done [18:18:33]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50616,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:18:33]process_action_free close_receipt [18:18:33]json_value_free [18:18:33]json_value_free done [18:18:33]process_json_proto returns [18:18:33]Send response to host [18:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50616,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:18:33]free response buf [18:18:33]execute_script done [18:18:33]execute_script returns [18:18:33]free content buf [18:18:33]Sock 9.Close socket [18:18:33]Sock 9.Thread stoped [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 C2 D3 07 01 55 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 10 E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B9 C5 00 00 35 04 06 00 D7 8E 97 D6 8D CA D3 60 BE EF 9A 8F D4 42 [18:18:55]CheckFolder [18:18:55]dirname=/storage/ofd_packets [18:18:55]CheckFolder done [18:18:55]ProducePacketName [18:18:55]name=ofd_packets/00050617 [18:18:55]NVStorageSaveData ofd_packets/00050617 [18:18:55]File name is /storage/ofd_packets/00050617 [18:18:55]Write 301 bytes [18:18:55]NVStorageSaveData done [18:18:55]OFDSenderStorePacket done [18:18:55]KKMCreateOFDPacket done [18:18:55]NVStorageSaveData kkm_last_timestamp [18:18:55]File name is /storage/kkm_last_timestamp [18:18:55]Write 4 bytes [18:18:55]NVStorageSaveData done [18:18:55]ExternCall_PrintAddStr [18:18:55]wPrintStart [18:18:55]Write to MH i2c: 01 00 00 B1 15 C6 [18:18:55]Write i2c OK [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: 01 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: 01 07 00 [18:18:55]MH_I2C_Read... [18:18:55]Read from MH i2c: 01 07 00 B1 15 00 00 00 00 00 FF 0F DB [18:18:55]RasterBufferAndPrint [18:18:55]line Счет N : (1)15442652 [18:18:55]line ИНН: 02508201610067 [18:18:55]line Контрольно-Кассовый Чек [18:18:55]line ПРОДАЖА [18:18:55]line ТРК (МРК, ГНК) : 23 [18:18:55]line Товар: 2710124130 [18:18:55]line Аи-92-К-4 [18:18:55]line 29.900 * 66.90 [18:18:55]line = 2000.31 [18:18:55]line НДС 12% НСП 1% [18:18:55]line > о реализуемом товаре [18:18:55]line ОКРУГЛЕНИЕ: -0.31 [18:18:55]line ИТОГО: 2000.00 [18:18:55]line Внесено: 2000.00 [18:18:55]line СДАЧА: 0.00 [18:18:55]line НСП 1% : 17.70 [18:18:55]line НДС 12% : 212.42 [18:18:55]line Наличными: 2000.00 [18:18:55]line Безнал.: 0.00 [18:18:55]line Место: АЗС № 80 "Партнер Нефть" [18:18:55]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:18:55]line СНО: Общий режим [18:18:55]line Чек 117 25.10.2024 18:18 [18:18:55]line Смена: 493 ФФД: 1.0 [18:18:55]line ЗНМ: 0300000090 [18:18:55]line РНМ: 0000000000097022 [18:18:55]line Версия ККМ: 001 [18:18:55]line ФМ: 0000000000875000 [18:18:55]line ФД: 50617 [18:18:55]line ФПД: 237007432748490 [18:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181856&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50617&fm=237007432748490&tin=02508201610067®Number=0000000000097022&sum=200000 [18:18:55]written 0, free lines is 4095 [18:18:55]OFD Sender: Processing packet 50617 [packets to send 7, broken 6] [18:18:55]ProducePacketName [18:18:55]name=ofd_packets/00050617 [18:18:55]OFD Sender: To server: pG, [18:18:55]CommunicateWithHost lk.salyk.kg:30040 [18:18:55]ConnectInit lk.salyk.kg [18:18:55]Connected sock=11 [18:18:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 C2 D3 07 01 55 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 10 E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B9 C5 00 00 35 04 06 00 D7 8E 97 D6 8D CA D3 60 BE EF 9A 8F D4 42 [18:18:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F8 0E 47 00 33 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 B9 C5 00 00 F4 03 04 00 A0 8C 1B 67 B6 04 01 00 00 A0 0B 73 84 ED E9 11 C0 [18:18:56]CommunicateWithHost err = 0 [18:18:56]CheckOFDResponse [18:18:56]1017 (14) - 77093643461234 [18:18:56]1041 (16) - 0000000000875000 [18:18:56]1040 (4) - 50617 [18:18:56]1012 (4) - 25.10.2024 12:18 [18:18:56]1206 (1) - 0 [18:18:56]OFD Sender: Remove packet 50617 [18:18:56]ProducePacketName [18:18:56]name=ofd_packets/00050617 [18:18:56]NVStorageDeleteData [18:18:56]Write to MH i2c: 01 00 00 DC 15 F1 [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: 01 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: 01 07 00 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: 01 07 00 DC 15 00 00 00 00 00 0F 0D 14 [18:18:56]RasterBufferAndPrint [18:18:56]line [18:18:56]line [18:18:56]line [18:18:56]line [18:18:56]line [18:18:56]written 0, free lines is 3361 [18:18:56]process_action close_receipt done [18:18:56]requested_data is exist [18:18:56]produce_requested_data [18:18:56]requested_item fm.sn is exist - process it [18:18:56]wFMCommunicate request_size=4 [18:18:56]MH_SAM_APDU [18:18:56]CAPDU: 80 11 00 00 [18:18:56]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: E2 [18:18:56]MH_I2C_Read... [18:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:56]Read from MH i2c: E2 17 00 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B9 [18:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:18:56]wFMCommunicate OK [18:18:56]requested_item fd.num is exist - process it [18:18:56]SAM_PROTO_GetFieldsCounters [18:18:56]wFMCommunicate request_size=4 [18:18:56]MH_SAM_APDU [18:18:56]CAPDU: 80 13 00 00 [18:18:56]Write to MH i2c: E2 08 00 E4 15 80 13 00 00 00 00 00 00 75 [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:56]Read from MH i2c: E2 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: E2 62 00 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: E2 62 00 E4 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [18:18:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 B9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:56]wFMCommunicate OK [18:18:56]SAM_PROTO_GetFieldsCounters done [18:18:56]requested_item shift.num is exist - process it [18:18:56]requested_item shift.opened is exist - process it [18:18:56]req_shift_opened [18:18:56]FM_GetShiftState [18:18:56]SAM_PROTO_GetShiftState [18:18:56]wFMCommunicate request_size=4 [18:18:56]MH_SAM_APDU [18:18:56]CAPDU: 80 13 01 00 [18:18:56]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:56]Read from MH i2c: E2 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: E2 0E 00 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6F [18:18:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:18:56]wFMCommunicate OK [18:18:56]SAM_PROTO_GetShiftState done [18:18:56]FM_GetShiftState done [18:18:56]req_shift_opened done [18:18:56]requested_item shift.open_date is exist - process it [18:18:56]req_shift_open_date [18:18:56]req_shift_open_date done [18:18:56]produce_requested_data done [18:18:56]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50617,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:18:56]process_action_free close_receipt [18:18:56]json_value_free [18:18:56]json_value_free done [18:18:56]process_json_proto returns [18:18:56]Send response to host [18:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50617,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:18:56]free response buf [18:18:56]execute_script done [18:18:56]execute_script returns [18:18:56]free content buf [18:18:56]Sock 10.Close socket [18:18:56]Sock 10.Thread stoped [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:23]accept exits with 9 [18:19:23]New connection [18:19:23]New thread 3066645860 created [18:19:23]Thread 3066789220 joined [18:19:23]Waiting for new connection... [18:19:23] Sock 9.Parse request [18:19:23]Sock 9.Check first char [18:19:23]Sock 9.First char is OK [18:19:23]request: POST /json_proto HTTP/1.0 [18:19:23]Method: POST [18:19:23]URL: /json_proto [18:19:23]Method is POST - this is cgi request [18:19:23]url: /json_proto [18:19:23]query_string will be loaded in cgi processing [18:19:23]execute_cgi json_proto POST (null) [18:19:23]execute_cgi path=json_proto method=POST [18:19:23]POST find Content-Length [18:19:23]Host: 172.17.49.196:8080 [18:19:23]Content-Length: 821 [18:19:23]Content-Type: application/json [18:19:23] [18:19:23]POST finish read [18:19:23]Found Content-Length = 821 [18:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442653", "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.90, "quantity" : 38.180, "sum" : 2554.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2554.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:23]execute_script... [18:19: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)15442653", "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.90, "quantity" : 38.180, "sum" : 2554.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2554.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:23]POST & json_proto [18:19:23]process_json_proto [18:19:23]json parsed OK: [18:19:23]protocol is kg_v1.0 [18:19:23]action value=close_receipt [18:19:23]process_action close_receipt [18:19:23]cmd_close_receipt [18:19:23]MH_GetDate [18:19:23]Write to MH i2c: F0 00 00 E6 15 EA [18:19:23]Write i2c OK [18:19:23]MH_I2C_Read... [18:19:23]Read from MH i2c: F0 [18:19:23]MH_I2C_Read... [18:19:23]Read from MH i2c: F0 09 00 [18:19:23]MH_I2C_Read... [18:19:23]Read from MH i2c: F0 09 00 E6 15 00 2E E1 1B 67 BD 3B 11 67 F4 [18:19:23]GetLastDocTimeStamp 1729880336 [18:19:23]current date 1729880366 [18:19:23]FM_GetShiftState [18:19:23]SAM_PROTO_GetShiftState [18:19:23]wFMCommunicate request_size=4 [18:19:23]MH_SAM_APDU [18:19:23]CAPDU: 80 13 01 00 [18:19:23]Write to MH i2c: E2 08 00 E7 15 80 13 01 00 00 00 00 00 79 [18:19:23]Write i2c OK [18:19:23]MH_I2C_Read... [18:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:24]Read from MH i2c: E2 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 0E 00 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 0E 00 E7 15 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 71 [18:19:24]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:19:24]wFMCommunicate OK [18:19:24]SAM_PROTO_GetShiftState done [18:19:24]FM_GetShiftState done [18:19:24]opened in 1729815177 [18:19:24]opened+sec_in_day 1729901577 [18:19:24]quantity*price = 255424 [18:19:24]sum+1 = 255425 [18:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2554.24 НСП 1% : 22.60 НДС 12% : 271.25 Наличными: 0.00 Безнал.: 2554.24 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 118 25.10.2024 18:19 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875000 ФД: 50618 ФПД: 106014435944705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181926&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50618&fm=106014435944705&tin=02508201610067®Number=0000000000097022&sum=255424 [18:19:25]StoreToDocumentArchive [18:19:25]shift 493 fd 50618 [18:19:25]save to /storage/0493/doc_00050618 [18:19:25]save last doc name /storage/0493/doc_00050618 to /storage/kkm_last_doc_name [18:19:25]save OK [18:19:25]Clear old archive folders... [18:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:25]tlvbuf is 01F0DEB0 [18:19:25]SAM_PROTO_ClearQueue [18:19:25]wFMCommunicate request_size=4 [18:19:25]MH_SAM_APDU [18:19:25]CAPDU: 80 09 00 00 [18:19:25]Write to MH i2c: E2 08 00 F4 15 80 09 00 00 00 00 00 00 7B [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:25]Read from MH i2c: E2 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 03 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [18:19:25]RAPDU: 90 00 [18:19:25]wFMCommunicate OK [18:19:25]SAM_PROTO_ClearQueue done [18:19:25]KKMCreateOFDPacket [18:19:25]OFDProtocolAddRootSTLVToBuf [18:19:25]FM_MakeSignedData [18:19:25]FM_MakeSignedData [18:19:25]SAM_PROTO_SignData [18:19:25]wFMCommunicate request_size=4 [18:19:25]MH_SAM_APDU [18:19:25]CAPDU: 80 0D 01 02 [18:19:25]Write to MH i2c: E2 08 00 F5 15 80 0D 01 02 00 00 00 00 83 [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:25]Read from MH i2c: E2 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 03 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [18:19:25]RAPDU: 90 00 [18:19:25]wFMCommunicate OK [18:19:25]wFMCommunicate request_size=255 [18:19:25]MH_SAM_APDU [18:19:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 95 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C0 E5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 E5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 E5 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2E E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BA C5 00 00 35 04 06 00 60 [18:19:25]Write to MH i2c: E2 02 01 F6 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 95 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C0 E5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 E5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 E5 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2E E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BA C5 00 00 35 04 06 00 60 00 00 76 [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:25]Read from MH i2c: E2 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 03 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [18:19:25]RAPDU: 90 00 [18:19:25]wFMCommunicate OK [18:19:25]wFMCommunicate request_size=10 [18:19:25]MH_SAM_APDU [18:19:25]CAPDU: 80 0D 02 02 05 6B 68 CB A9 01 [18:19:25]Write to MH i2c: E2 0D 00 F7 15 80 0D 02 02 05 00 6B 68 CB A9 01 00 00 D8 [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:25]Read from MH i2c: E2 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 03 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [18:19:25]RAPDU: 90 00 [18:19:25]wFMCommunicate OK [18:19:25]wFMCommunicate request_size=4 [18:19:25]MH_SAM_APDU [18:19:25]CAPDU: 80 0D 03 02 [18:19:25]Write to MH i2c: E2 08 00 F8 15 80 0D 03 02 00 00 00 00 88 [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:25]Read from MH i2c: E2 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 0B 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 0B 00 F8 15 00 01 35 B3 92 52 D7 EA 84 90 00 9B [18:19:25]RAPDU: 01 35 B3 92 52 D7 EA 84 90 00 [18:19:25]wFMCommunicate OK [18:19:25]SAM_PROTO_SignData done [18:19:25]FM_MakeSignedData done [18:19:25]CreateOFDProtocolMessage [18:19:25]wFMCommunicate request_size=4 [18:19:25]MH_SAM_APDU [18:19:25]CAPDU: 80 11 00 00 [18:19:25]Write to MH i2c: E2 08 00 F9 15 80 11 00 00 00 00 00 00 88 [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:25]Read from MH i2c: E2 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 17 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: E2 17 00 F9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CF [18:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:19:25]wFMCommunicate OK [18:19:25]CreateOFDProtocolMessage done [18:19:25]OFDSenderStorePacket 50618 [18:19:25]StoreOFDPacket docnum=50618 [18:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 22 8B 07 01 BF FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 95 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C0 E5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 E5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 E5 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2E E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BA C5 00 00 35 04 06 00 60 6B 68 CB A9 01 01 35 B3 92 52 D7 EA 84 [18:19:25]CheckFolder [18:19:25]dirname=/storage/ofd_packets [18:19:25]CheckFolder done [18:19:25]ProducePacketName [18:19:25]name=ofd_packets/00050618 [18:19:25]NVStorageSaveData ofd_packets/00050618 [18:19:25]File name is /storage/ofd_packets/00050618 [18:19:25]Write 301 bytes [18:19:25]NVStorageSaveData done [18:19:25]OFDSenderStorePacket done [18:19:25]KKMCreateOFDPacket done [18:19:25]NVStorageSaveData kkm_last_timestamp [18:19:25]File name is /storage/kkm_last_timestamp [18:19:25]Write 4 bytes [18:19:25]NVStorageSaveData done [18:19:25]ExternCall_PrintAddStr [18:19:25]wPrintStart [18:19:25]Write to MH i2c: 01 00 00 FA 15 0F [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: 01 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: 01 07 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: 01 07 00 FA 15 00 00 00 00 00 FF 0F 24 [18:19:25]RasterBufferAndPrint [18:19:25]line Счет N : (1)15442653 [18:19:25]line ИНН: 02508201610067 [18:19:25]line Контрольно-Кассовый Чек [18:19:25]line ПРОДАЖА [18:19:25]line ТРК (МРК, ГНК) : 43 [18:19:25]line Товар: 2710124130 [18:19:25]line Аи-92-К-4 [18:19:25]line 38.180 * 66.90 [18:19:25]line = 2554.24 [18:19:25]line НДС 12% НСП 1% [18:19:25]line > о реализуемом товаре [18:19:25]line ИТОГО: 2554.24 [18:19:25]line НСП 1% : 22.60 [18:19:25]line НДС 12% : 271.25 [18:19:25]line Наличными: 0.00 [18:19:25]line Безнал.: 2554.24 [18:19:25]line Место: АЗС № 80 "Партнер Нефть" [18:19:25]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:19:25]line СНО: Общий режим [18:19:25]line Чек 118 25.10.2024 18:19 [18:19:25]line Смена: 493 ФФД: 1.0 [18:19:25]line ЗНМ: 0300000090 [18:19:25]line РНМ: 0000000000097022 [18:19:25]line Версия ККМ: 001 [18:19:25]line Платежная система: Бакай Банк [18:19:25]line ФМ: 0000000000875000 [18:19:25]line ФД: 50618 [18:19:25]line ФПД: 106014435944705 [18:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T181926&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50618&fm=106014435944705&tin=02508201610067®Number=0000000000097022&sum=255424 [18:19:25]OFD Sender: Processing packet 50618 [packets to send 7, broken 6] [18:19:25]ProducePacketName [18:19:25]name=ofd_packets/00050618 [18:19:25]OFD Sender: To server: pG, [18:19:25]CommunicateWithHost lk.salyk.kg:30040 [18:19:25]ConnectInit lk.salyk.kg [18:19:25]written 0, free lines is 4095 [18:19:26]Connected sock=11 [18:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 22 8B 07 01 BF FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 95 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C0 E5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 E5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 E5 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2E E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BA C5 00 00 35 04 06 00 60 6B 68 CB A9 01 01 35 B3 92 52 D7 EA 84 [18:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C9 56 47 00 CD BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BA C5 00 00 F4 03 04 00 BE 8C 1B 67 B6 04 01 00 00 8A 25 24 94 29 10 EC 7A [18:19:26]CommunicateWithHost err = 0 [18:19:26]CheckOFDResponse [18:19:26]1017 (14) - 77093643461234 [18:19:26]1041 (16) - 0000000000875000 [18:19:26]1040 (4) - 50618 [18:19:26]1012 (4) - 25.10.2024 12:19 [18:19:26]1206 (1) - 0 [18:19:26]OFD Sender: Remove packet 50618 [18:19:26]ProducePacketName [18:19:26]name=ofd_packets/00050618 [18:19:26]NVStorageDeleteData [18:19:26]Write to MH i2c: 01 00 00 24 16 3A [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: 01 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: 01 07 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 3B 0D 89 [18:19:26]RasterBufferAndPrint [18:19:26]line [18:19:26]line [18:19:26]line [18:19:26]line [18:19:26]line [18:19:26]written 0, free lines is 3415 [18:19:26]process_action close_receipt done [18:19:26]requested_data is exist [18:19:26]produce_requested_data [18:19:26]requested_item fm.sn is exist - process it [18:19:26]wFMCommunicate request_size=4 [18:19:26]MH_SAM_APDU [18:19:26]CAPDU: 80 11 00 00 [18:19:26]Write to MH i2c: E2 08 00 2B 16 80 11 00 00 00 00 00 00 BB [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:26]Read from MH i2c: E2 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 17 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 17 00 2B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 02 [18:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:19:26]wFMCommunicate OK [18:19:26]requested_item fd.num is exist - process it [18:19:26]SAM_PROTO_GetFieldsCounters [18:19:26]wFMCommunicate request_size=4 [18:19:26]MH_SAM_APDU [18:19:26]CAPDU: 80 13 00 00 [18:19:26]Write to MH i2c: E2 08 00 2C 16 80 13 00 00 00 00 00 00 BE [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:26]Read from MH i2c: E2 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 62 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 62 00 2C 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [18:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:26]wFMCommunicate OK [18:19:26]SAM_PROTO_GetFieldsCounters done [18:19:26]requested_item shift.num is exist - process it [18:19:26]requested_item shift.opened is exist - process it [18:19:26]req_shift_opened [18:19:26]FM_GetShiftState [18:19:26]SAM_PROTO_GetShiftState [18:19:26]wFMCommunicate request_size=4 [18:19:26]MH_SAM_APDU [18:19:26]CAPDU: 80 13 01 00 [18:19:26]Write to MH i2c: E2 08 00 2D 16 80 13 01 00 00 00 00 00 C0 [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:26]Read from MH i2c: E2 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 0E 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 0E 00 2D 16 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B8 [18:19:26]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:19:26]wFMCommunicate OK [18:19:26]SAM_PROTO_GetShiftState done [18:19:26]FM_GetShiftState done [18:19:26]req_shift_opened done [18:19:26]requested_item shift.open_date is exist - process it [18:19:26]req_shift_open_date [18:19:26]req_shift_open_date done [18:19:26]produce_requested_data done [18:19:26]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50618,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:19:26]process_action_free close_receipt [18:19:26]json_value_free [18:19:26]json_value_free done [18:19:26]process_json_proto returns [18:19:26]Send response to host [18:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50618,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:19:26]free response buf [18:19:26]execute_script done [18:19:26]execute_script returns [18:19:26]free content buf [18:19:26]Sock 9.Close socket [18:19:26]Sock 9.Thread stoped [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:49]ConnectInit Can't connect to host [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:35]accept exits with 10 [18:22:35]New connection [18:22:35]New thread 3066789220 created [18:22:35]Thread 3066645860 joined [18:22:35]Waiting for new connection... [18:22:35] Sock 10.Parse request [18:22:35]Sock 10.Check first char [18:22:35]Sock 10.First char is OK [18:22:35]request: POST /json_proto HTTP/1.0 [18:22:35]Method: POST [18:22:35]URL: /json_proto [18:22:35]Method is POST - this is cgi request [18:22:35]url: /json_proto [18:22:35]query_string will be loaded in cgi processing [18:22:35]execute_cgi json_proto POST (null) [18:22:35]execute_cgi path=json_proto method=POST [18:22:35]POST find Content-Length [18:22:35]Host: 172.17.49.196:8080 [18:22:35]Content-Length: 679 [18:22:35]Content-Type: application/json [18:22:35] [18:22:35]POST finish read [18:22:35]Found Content-Length = 679 [18:22:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:35]execute_script... [18:22:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:35]POST & json_proto [18:22:35]process_json_proto [18:22:35]json parsed OK: [18:22:35]protocol is kg_v1.0 [18:22:35]action value=close_receipt [18:22:35]process_action close_receipt [18:22:35]cmd_close_receipt [18:22:35]MH_GetDate [18:22:35]Write to MH i2c: F0 00 00 2E 16 33 [18:22:35]Write i2c OK [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: F0 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: F0 09 00 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: F0 09 00 2E 16 00 EE E1 1B 67 BD 3B 11 67 FD [18:22:35]GetLastDocTimeStamp 1729880366 [18:22:35]current date 1729880558 [18:22:35]FM_GetShiftState [18:22:35]SAM_PROTO_GetShiftState [18:22:35]wFMCommunicate request_size=4 [18:22:35]MH_SAM_APDU [18:22:35]CAPDU: 80 13 01 00 [18:22:35]Write to MH i2c: E2 08 00 2F 16 80 13 01 00 00 00 00 00 C2 [18:22:35]Write i2c OK [18:22:35]MH_I2C_Read... [18:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:35]Read from MH i2c: E2 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: E2 0E 00 [18:22:35]MH_I2C_Read... [18:22:35]Read from MH i2c: E2 0E 00 2F 16 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 BA [18:22:35]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:22:35]wFMCommunicate OK [18:22:35]SAM_PROTO_GetShiftState done [18:22:35]FM_GetShiftState done [18:22:35]opened in 1729815177 [18:22:35]opened+sec_in_day 1729901577 [18:22:35]quantity*price = 50041 [18:22:35]sum+1 = 50042 [18:22:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 119 25.10.2024 18:22 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50619 ФПД: 80337997851863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182238&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50619&fm=80337997851863&tin=02508201610067®Number=0000000000097022&sum=50000 [18:22:36]StoreToDocumentArchive [18:22:36]shift 493 fd 50619 [18:22:36]save to /storage/0493/doc_00050619 [18:22:36]save last doc name /storage/0493/doc_00050619 to /storage/kkm_last_doc_name [18:22:36]save OK [18:22:36]Clear old archive folders... [18:22:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:36]tlvbuf is B6F2D2D0 [18:22:36]SAM_PROTO_ClearQueue [18:22:36]wFMCommunicate request_size=4 [18:22:36]MH_SAM_APDU [18:22:36]CAPDU: 80 09 00 00 [18:22:36]Write to MH i2c: E2 08 00 3C 16 80 09 00 00 00 00 00 00 C4 [18:22:36]Write i2c OK [18:22:36]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 03 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 03 00 3C 16 00 90 00 C6 [18:22:37]RAPDU: 90 00 [18:22:37]wFMCommunicate OK [18:22:37]SAM_PROTO_ClearQueue done [18:22:37]KKMCreateOFDPacket [18:22:37]OFDProtocolAddRootSTLVToBuf [18:22:37]FM_MakeSignedData [18:22:37]FM_MakeSignedData [18:22:37]SAM_PROTO_SignData [18:22:37]wFMCommunicate request_size=4 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 0D 01 02 [18:22:37]Write to MH i2c: E2 08 00 3D 16 80 0D 01 02 00 00 00 00 CC [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 03 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 03 00 3D 16 00 90 00 C7 [18:22:37]RAPDU: 90 00 [18:22:37]wFMCommunicate OK [18:22:37]wFMCommunicate request_size=255 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EE E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 OFD Sender: No OFD packet to send [18:22:37]30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BB C5 00 00 35 04 06 00 49 [18:22:37]Write to MH i2c: E2 02 01 3E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EE E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BB C5 00 00 35 04 06 00 49 00 00 C8 [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 03 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 03 00 3E 16 00 90 00 C8 [18:22:37]RAPDU: 90 00 [18:22:37]wFMCommunicate OK [18:22:37]wFMCommunicate request_size=10 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 0D 02 02 05 11 25 D2 EC D7 [18:22:37]Write to MH i2c: E2 0D 00 3F 16 80 0D 02 02 05 00 11 25 D2 EC D7 00 00 A4 [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 03 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [18:22:37]RAPDU: 90 00 [18:22:37]wFMCommunicate OK [18:22:37]wFMCommunicate request_size=4 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 0D 03 02 [18:22:37]Write to MH i2c: E2 08 00 40 16 80 0D 03 02 00 00 00 00 D1 [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 0B 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 0B 00 40 16 00 7A E7 EA 0D 3D 92 AC 15 90 00 BA [18:22:37]RAPDU: 7A E7 EA 0D 3D 92 AC 15 90 00 [18:22:37]wFMCommunicate OK [18:22:37]SAM_PROTO_SignData done [18:22:37]FM_MakeSignedData done [18:22:37]CreateOFDProtocolMessage [18:22:37]wFMCommunicate request_size=4 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 11 00 00 [18:22:37]Write to MH i2c: E2 08 00 41 16 80 11 00 00 00 00 00 00 D1 [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 17 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 17 00 41 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 18 [18:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:22:37]wFMCommunicate OK [18:22:37]CreateOFDProtocolMessage done [18:22:37]OFDSenderStorePacket 50619 [18:22:37]StoreOFDPacket docnum=50619 [18:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 69 39 07 01 64 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EE E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BB C5 00 00 35 04 06 00 49 11 25 D2 EC D7 7A E7 EA 0D 3D 92 AC 15 [18:22:37]CheckFolder [18:22:37]dirname=/storage/ofd_packets [18:22:37]CheckFolder done [18:22:37]ProducePacketName [18:22:37]name=ofd_packets/00050619 [18:22:37]NVStorageSaveData ofd_packets/00050619 [18:22:37]File name is /storage/ofd_packets/00050619 [18:22:37]Write 301 bytes [18:22:37]NVStorageSaveData done [18:22:37]OFDSenderStorePacket done [18:22:37]KKMCreateOFDPacket done [18:22:37]NVStorageSaveData kkm_last_timestamp [18:22:37]File name is /storage/kkm_last_timestamp [18:22:37]Write 4 bytes [18:22:37]NVStorageSaveData done [18:22:37]ExternCall_PrintAddStr [18:22:37]wPrintStart [18:22:37]Write to MH i2c: 01 00 00 42 16 58 [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: 01 [18:22:37]MH_I2C_Read... [18:22:37]OFD Sender: Processing packet 50619 [packets to send 7, broken 6] [18:22:37]ProducePacketName [18:22:37]name=ofd_packets/00050619 [18:22:37]OFD Sender: To server: pG, [18:22:37]CommunicateWithHost lk.salyk.kg:30040 [18:22:37]ConnectInit lk.salyk.kg [18:22:37]Read from MH i2c: 01 07 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: 01 07 00 42 16 00 00 00 00 00 FF 0F 6D [18:22:37]RasterBufferAndPrint [18:22:37]line Счет N : (1)15442656 [18:22:37]line ИНН: 02508201610067 [18:22:37]line Контрольно-Кассовый Чек [18:22:37]line ПРОДАЖА [18:22:37]line ТРК (МРК, ГНК) : 13 [18:22:37]line Товар: 2710124130 [18:22:37]line Аи-92-К-4 [18:22:37]line 7.480 * 66.90 [18:22:37]line = 500.41 [18:22:37]line НДС 12% НСП 1% [18:22:37]line > о реализуемом товаре [18:22:37]line ОКРУГЛЕНИЕ: -0.41 [18:22:37]line ИТОГО: 500.00 [18:22:37]line Внесено: 500.00 [18:22:37]line СДАЧА: 0.00 [18:22:37]line НСП 1% : 4.43 [18:22:37]line НДС 12% : 53.14 [18:22:37]line Наличными: 500.00 [18:22:37]line Безнал.: 0.00 [18:22:37]line Место: АЗС № 80 "Партнер Нефть" [18:22:37]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:22:37]line СНО: Общий режим [18:22:37]line Чек 119 25.10.2024 18:22 [18:22:37]line Смена: 493 ФФД: 1.0 [18:22:37]line ЗНМ: 0300000090 [18:22:37]line РНМ: 0000000000097022 [18:22:37]line Версия ККМ: 001 [18:22:37]line ФМ: 0000000000875000 [18:22:37]line ФД: 50619 [18:22:37]line ФПД: 80337997851863 [18:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182238&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50619&fm=80337997851863&tin=02508201610067®Number=0000000000097022&sum=50000 [18:22:37]written 0, free lines is 4095 [18:22:37]Connected sock=11 [18:22:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 69 39 07 01 64 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 EE E1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BB C5 00 00 35 04 06 00 49 11 25 D2 EC D7 7A E7 EA 0D 3D 92 AC 15 [18:22:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AB 15 47 00 95 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BB C5 00 00 F4 03 04 00 7E 8D 1B 67 B6 04 01 00 00 80 D4 3B 77 2A 4A C4 7E [18:22:38]CommunicateWithHost err = 0 [18:22:38]CheckOFDResponse [18:22:38]1017 (14) - 77093643461234 [18:22:38]1041 (16) - 0000000000875000 [18:22:38]1040 (4) - 50619 [18:22:38]1012 (4) - 25.10.2024 12:22 [18:22:38]1206 (1) - 0 [18:22:38]OFD Sender: Remove packet 50619 [18:22:38]ProducePacketName [18:22:38]name=ofd_packets/00050619 [18:22:38]NVStorageDeleteData [18:22:38]Write to MH i2c: 01 00 00 6D 16 83 [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: 01 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: 01 07 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: 01 07 00 6D 16 00 00 00 00 00 02 0D 99 [18:22:38]RasterBufferAndPrint [18:22:38]line [18:22:38]line [18:22:38]line [18:22:38]line [18:22:38]line [18:22:38]written 0, free lines is 3356 [18:22:38]process_action close_receipt done [18:22:38]requested_data is exist [18:22:38]produce_requested_data [18:22:38]requested_item fm.sn is exist - process it [18:22:38]wFMCommunicate request_size=4 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 11 00 00 [18:22:38]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 17 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4B [18:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:22:38]wFMCommunicate OK [18:22:38]requested_item fd.num is exist - process it [18:22:38]SAM_PROTO_GetFieldsCounters [18:22:38]wFMCommunicate request_size=4 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 13 00 00 [18:22:38]Write to MH i2c: E2 08 00 75 16 80 13 00 00 00 00 00 00 07 [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 62 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 62 00 75 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [18:22:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:38]wFMCommunicate OK [18:22:38]SAM_PROTO_GetFieldsCounters done [18:22:38]requested_item shift.num is exist - process it [18:22:38]requested_item shift.opened is exist - process it [18:22:38]req_shift_opened [18:22:38]FM_GetShiftState [18:22:38]SAM_PROTO_GetShiftState [18:22:38]wFMCommunicate request_size=4 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 13 01 00 [18:22:38]Write to MH i2c: E2 08 00 76 16 80 13 01 00 00 00 00 00 09 [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 0E 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 0E 00 76 16 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 01 [18:22:38]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:22:38]wFMCommunicate OK [18:22:38]SAM_PROTO_GetShiftState done [18:22:38]FM_GetShiftState done [18:22:38]req_shift_opened done [18:22:38]requested_item shift.open_date is exist - process it [18:22:38]req_shift_open_date [18:22:38]req_shift_open_date done [18:22:38]produce_requested_data done [18:22:38]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50619,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:22:38]process_action_free close_receipt [18:22:38]json_value_free [18:22:38]json_value_free done [18:22:38]process_json_proto returns [18:22:38]Send response to host [18:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50619,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:22:38]free response buf [18:22:38]execute_script done [18:22:38]execute_script returns [18:22:38]free content buf [18:22:38]Sock 10.Close socket [18:22:38]Sock 10.Thread stoped [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:30]ConnectInit Can't connect to host [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:05]accept exits with 9 [18:25:05]New connection [18:25:05]New thread 3066645860 created [18:25:05]Thread 3066789220 joined [18:25:05]Waiting for new connection... [18:25:05] Sock 9.Parse request [18:25:05]Sock 9.Check first char [18:25:05]Sock 9.First char is OK [18:25:05]request: POST /json_proto HTTP/1.0 [18:25:05]Method: POST [18:25:05]URL: /json_proto [18:25:05]Method is POST - this is cgi request [18:25:05]url: /json_proto [18:25:05]query_string will be loaded in cgi processing [18:25:05]execute_cgi json_proto POST (null) [18:25:05]execute_cgi path=json_proto method=POST [18:25:05]POST find Content-Length [18:25:05]Host: 172.17.49.196:8080 [18:25:05]Content-Length: 690 [18:25:05]Content-Type: application/json [18:25:05] [18:25:05]POST finish read [18:25:05]Found Content-Length = 690 [18:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:05]execute_script... [18:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:05]POST & json_proto [18:25:05]process_json_proto [18:25:05]json parsed OK: [18:25:05]protocol is kg_v1.0 [18:25:05]action value=close_receipt [18:25:05]process_action close_receipt [18:25:05]cmd_close_receipt [18:25:05]MH_GetDate [18:25:05]Write to MH i2c: F0 00 00 77 16 7C [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: F0 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: F0 09 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: F0 09 00 77 16 00 83 E2 1B 67 BD 3B 11 67 DC [18:25:05]GetLastDocTimeStamp 1729880558 [18:25:05]current date 1729880707 [18:25:05]FM_GetShiftState [18:25:05]SAM_PROTO_GetShiftState [18:25:05]wFMCommunicate request_size=4 [18:25:05]MH_SAM_APDU [18:25:05]CAPDU: 80 13 01 00 [18:25:05]Write to MH i2c: E2 08 00 78 16 80 13 01 00 00 00 00 00 0B [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 0E 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 0E 00 78 16 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 03 [18:25:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:25:05]wFMCommunicate OK [18:25:05]SAM_PROTO_GetShiftState done [18:25:05]FM_GetShiftState done [18:25:05]opened in 1729815177 [18:25:05]opened+sec_in_day 1729901577 [18:25:05]quantity*price = 200025 [18:25:05]sum+1 = 200026 [18:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 120 25.10.2024 18:25 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50620 ФПД: 129747615701010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182508&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50620&fm=129747615701010&tin=02508201610067®Number=0000000000097022&sum=200000 [18:25:06]StoreToDocumentArchive [18:25:06]shift 493 fd 50620 [18:25:06]save to /storage/0493/doc_00050620 [18:25:06]save last doc name /storage/0493/doc_00050620 to /storage/kkm_last_doc_name [18:25:06]save OK [18:25:06]Clear old archive folders... [18:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:25:06]tlvbuf is 01EE6B40 [18:25:06]SAM_PROTO_ClearQueue [18:25:06]wFMCommunicate request_size=4 [18:25:06]MH_SAM_APDU [18:25:06]CAPDU: 80 09 00 00 [18:25:06]Write to MH i2c: E2 08 00 85 16 80 09 00 00 00 00 00 00 0D [18:25:06]Write i2c OK [18:25:06]MH_I2C_Read... [18:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:06]Read from MH i2c: E2 [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: E2 03 00 [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: E2 03 00 85 16 00 90 00 0F [18:25:06]RAPDU: 90 00 [18:25:06]wFMCommunicate OK [18:25:06]SAM_PROTO_ClearQueue done [18:25:06]KKMCreateOFDPacket [18:25:06]OFDProtocolAddRootSTLVToBuf [18:25:06]FM_MakeSignedData [18:25:06]FM_MakeSignedData [18:25:06]SAM_PROTO_SignData [18:25:06]wFMCommunicate request_size=4 [18:25:06]MH_SAM_APDU [18:25:06]CAPDU: 80 0D 01 02 [18:25:06]Write to MH i2c: E2 08 00 86 16 80 0D 01 02 00 00 00 00 15 [18:25:06]Write i2c OK [18:25:06]MH_I2C_Read... [18:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:06]Read from MH i2c: E2 [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: E2 03 00 [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: E2 03 00 86 16 00 90 00 10 [18:25:06]RAPDU: 90 00 [18:25:06]wFMCommunicate OK [18:25:06]wFMCommunicate request_size=255 [18:25:06]MH_SAM_APDU [18:25:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 84 E2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BC C5 00 [18:25:06]Write to MH i2c: E2 02 01 87 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 84 E2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BC C5 00 00 00 8B [18:25:06]Write i2c OK [18:25:06]MH_I2C_Read... [18:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:07]Read from MH i2c: E2 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 03 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 03 00 87 16 00 90 00 11 [18:25:07]RAPDU: 90 00 [18:25:07]wFMCommunicate OK [18:25:07]wFMCommunicate request_size=16 [18:25:07]MH_SAM_APDU [18:25:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 76 01 38 8B 58 12 [18:25:07]Write to MH i2c: E2 13 00 88 16 80 0D 02 02 0B 00 00 35 04 06 00 76 01 38 8B 58 12 00 00 11 [18:25:07]Write i2c OK [18:25:07]MH_I2C_Read... [18:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:07]Read from MH i2c: E2 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 03 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 03 00 88 16 00 90 00 12 [18:25:07]RAPDU: 90 00 [18:25:07]wFMCommunicate OK [18:25:07]wFMCommunicate request_size=4 [18:25:07]MH_SAM_APDU [18:25:07]CAPDU: 80 0D 03 02 [18:25:07]Write to MH i2c: E2 08 00 89 16 80 0D 03 02 00 00 00 00 1A [18:25:07]Write i2c OK [18:25:07]MH_I2C_Read... [18:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:07]Read from MH i2c: E2 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 0B 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 0B 00 89 16 00 D8 BA BA DC 1C F5 70 92 90 00 56 [18:25:07]RAPDU: D8 BA BA DC 1C F5 70 92 90 00 [18:25:07]wFMCommunicate OK [18:25:07]SAM_PROTO_SignData done [18:25:07]FM_MakeSignedData done [18:25:07]CreateOFDProtocolMessage [18:25:07]wFMCommunicate request_size=4 [18:25:07]MH_SAM_APDU [18:25:07]CAPDU: 80 11 00 00 [18:25:07]Write to MH i2c: E2 08 00 8A 16 80 11 00 00 00 00 00 00 1A [18:25:07]Write i2c OK [18:25:07]MH_I2C_Read... [18:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:07]Read from MH i2c: E2 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 17 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 17 00 8A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 61 [18:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:25:07]wFMCommunicate OK [18:25:07]CreateOFDProtocolMessage done [18:25:07]OFDSenderStorePacket 50620 [18:25:07]StoreOFDPacket docnum=50620 [18:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 5C 31 0D 01 22 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 84 E2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BC C5 00 00 35 04 06 00 76 01 38 8B 58 12 D8 BA BA DC 1C F5 70 92 [18:25:07]CheckFolder [18:25:07]dirname=/storage/ofd_packets [18:25:07]CheckFolder done [18:25:07]ProducePacketName [18:25:07]name=ofd_packets/00050620 [18:25:07]NVStorageSaveData ofd_packets/00050620 [18:25:07]File name is /storage/ofd_packets/00050620 [18:25:07]Write 307 bytes [18:25:07]NVStorageSaveData done [18:25:07]OFDSenderStorePacket done [18:25:07]KKMCreateOFDPacket done [18:25:07]NVStorageSaveData kkm_last_timestamp [18:25:07]File name is /storage/kkm_last_timestamp [18:25:07]Write 4 bytes [18:25:07]NVStorageSaveData done [18:25:07]ExternCall_PrintAddStr [18:25:07]wPrintStart [18:25:07]Write to MH i2c: 01 00 00 8B 16 A1 [18:25:07]Write i2c OK [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: 01 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: 01 07 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: 01 07 00 8B 16 00 00 00 00 00 FF 0F B6 [18:25:07]RasterBufferAndPrint [18:25:07]line Счет N : (1)15442658 [18:25:07]line ИНН: 02508201610067 [18:25:07]line Контрольно-Кассовый Чек [18:25:07]line ПРОДАЖА [18:25:07]line ТРК (МРК, ГНК) : 31 [18:25:07]line Товар: 2710194210 [18:25:07]line D-ENERGY ДТ-К-2 [18:25:07]line 25.910 * 77.20 [18:25:07]line = 2000.25 [18:25:07]line НДС 12% НСП 1% [18:25:07]line > о реализуемом товаре [18:25:07]line ОКРУГЛЕНИЕ: -0.25 [18:25:07]line ИТОГО: 2000.00 [18:25:07]line Внесено: 2000.00 [18:25:07]line СДАЧА: 0.00 [18:25:07]line НСП 1% : 17.70 [18:25:07]line НДС 12% : 212.42 [18:25:07]line Наличными: 2000.00 [18:25:07]line Безнал.: 0.00 [18:25:07]line Место: АЗС № 80 "Партнер Нефть" [18:25:07]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:25:07]line СНО: Общий режим [18:25:07]line Чек 120 25.10.2024 18:25 [18:25:07]line Смена: 493 ФФД: 1.0 [18:25:07]line ЗНМ: 0300000090 [18:25:07]line РНМ: 0000000000097022 [18:25:07]line Версия ККМ: 001 [18:25:07]line ФМ: 0000000000875000 [18:25:07]line ФД: 50620 [18:25:07]line ФПД: 129747615701010 [18:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182508&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50620&fm=129747615701010&tin=02508201610067®Number=0000000000097022&sum=200000 [18:25:07]written 0, free lines is 4095 [18:25:07]OFD Sender: Processing packet 50620 [packets to send 7, broken 6] [18:25:07]ProducePacketName [18:25:07]name=ofd_packets/00050620 [18:25:07]OFD Sender: To server: pG, [18:25:07]CommunicateWithHost lk.salyk.kg:30040 [18:25:07]ConnectInit lk.salyk.kg [18:25:07]Connected sock=11 [18:25:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 5C 31 0D 01 22 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 84 E2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BC C5 00 00 35 04 06 00 76 01 38 8B 58 12 D8 BA BA DC 1C F5 70 92 [18:25:07]Write to MH i2c: 01 00 00 B6 16 CC [18:25:07]Write i2c OK [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: 01 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: 01 07 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: 01 07 00 B6 16 00 00 00 00 00 04 0D E4 [18:25:07]RasterBufferAndPrint [18:25:07]line [18:25:07]line [18:25:07]line [18:25:07]line [18:25:07]line [18:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 3A AA 47 00 A8 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BC C5 00 00 F4 03 04 00 14 8E 1B 67 B6 04 01 00 00 70 63 6B A8 3A F0 8C 19 [18:25:08]CommunicateWithHost err = 0 [18:25:08]CheckOFDResponse [18:25:08]1017 (14) - 77093643461234 [18:25:08]1041 (16) - 0000000000875000 [18:25:08]1040 (4) - 50620 [18:25:08]1012 (4) - 25.10.2024 12:24 [18:25:08]1206 (1) - 0 [18:25:08]OFD Sender: Remove packet 50620 [18:25:08]ProducePacketName [18:25:08]name=ofd_packets/00050620 [18:25:08]NVStorageDeleteData [18:25:08]written 0, free lines is 3380 [18:25:08]process_action close_receipt done [18:25:08]requested_data is exist [18:25:08]produce_requested_data [18:25:08]requested_item fm.sn is exist - process it [18:25:08]wFMCommunicate request_size=4 [18:25:08]MH_SAM_APDU [18:25:08]CAPDU: 80 11 00 00 [18:25:08]Write to MH i2c: E2 08 00 BD 16 80 11 00 00 00 00 00 00 4D [18:25:08]Write i2c OK [18:25:08]MH_I2C_Read... [18:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:08]Read from MH i2c: E2 [18:25:08]MH_I2C_Read... [18:25:08]Read from MH i2c: E2 17 00 [18:25:08]MH_I2C_Read... [18:25:08]Read from MH i2c: E2 17 00 BD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 94 [18:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:25:08]wFMCommunicate OK [18:25:08]requested_item fd.num is exist - process it [18:25:08]SAM_PROTO_GetFieldsCounters [18:25:08]wFMCommunicate request_size=4 [18:25:08]MH_SAM_APDU [18:25:08]CAPDU: 80 13 00 00 [18:25:08]Write to MH i2c: E2 08 00 BE 16 80 13 00 00 00 00 00 00 50 [18:25:08]Write i2c OK [18:25:08]MH_I2C_Read... [18:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:08]Read from MH i2c: E2 [18:25:08]MH_I2C_Read... [18:25:08]Read from MH i2c: E2 62 00 [18:25:08]MH_I2C_Read... [18:25:08]Read from MH i2c: E2 62 00 BE 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BC C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [18:25:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BC C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:08]wFMCommunicate OK [18:25:08]SAM_PROTO_GetFieldsCounters done [18:25:08]requested_item shift.num is exist - process it [18:25:08]requested_item shift.opened is exist - process it [18:25:08]req_shift_opened [18:25:08]FM_GetShiftState [18:25:08]SAM_PROTO_GetShiftState [18:25:08]wFMCommunicate request_size=4 [18:25:08]MH_SAM_APDU [18:25:08]CAPDU: 80 13 01 00 [18:25:08]Write to MH i2c: E2 08 00 BF 16 80 13 01 00 00 00 00 00 52 [18:25:08]Write i2c OK [18:25:08]MH_I2C_Read... [18:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:08]Read from MH i2c: E2 [18:25:08]MH_I2C_Read... [18:25:08]Read from MH i2c: E2 0E 00 [18:25:08]MH_I2C_Read... [18:25:08]Read from MH i2c: E2 0E 00 BF 16 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4A [18:25:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:25:08]wFMCommunicate OK [18:25:08]SAM_PROTO_GetShiftState done [18:25:08]FM_GetShiftState done [18:25:08]req_shift_opened done [18:25:08]requested_item shift.open_date is exist - process it [18:25:08]req_shift_open_date [18:25:08]req_shift_open_date done [18:25:08]produce_requested_data done [18:25:08]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50620,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:25:08]process_action_free close_receipt [18:25:08]json_value_free [18:25:08]json_value_free done [18:25:08]process_json_proto returns [18:25:08]Send response to host [18:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50620,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:25:08]free response buf [18:25:08]execute_script done [18:25:08]execute_script returns [18:25:08]free content buf [18:25:08]Sock 9.Close socket [18:25:08]Sock 9.Thread stoped [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]ConnectInit Can't connect to host [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:10]accept exits with 10 [18:26:10]New connection [18:26:10]New thread 3066789220 created [18:26:10]Thread 3066645860 joined [18:26:10]Waiting for new connection... [18:26:10] Sock 10.Parse request [18:26:10]Sock 10.Check first char [18:26:10]Sock 10.First char is OK [18:26:10]request: POST /json_proto HTTP/1.0 [18:26:10]Method: POST [18:26:10]URL: /json_proto [18:26:10]Method is POST - this is cgi request [18:26:10]url: /json_proto [18:26:10]query_string will be loaded in cgi processing [18:26:10]execute_cgi json_proto POST (null) [18:26:10]execute_cgi path=json_proto method=POST [18:26:10]POST find Content-Length [18:26:10]Host: 172.17.49.196:8080 [18:26:10]Content-Length: 684 [18:26:10]Content-Type: application/json [18:26:10] [18:26:10]POST finish read [18:26:10]Found Content-Length = 684 [18:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:10]execute_script... [18:26:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:10]POST & json_proto [18:26:10]process_json_proto [18:26:10]json parsed OK: [18:26:10]protocol is kg_v1.0 [18:26:10]action value=close_receipt [18:26:10]process_action close_receipt [18:26:10]cmd_close_receipt [18:26:10]MH_GetDate [18:26:10]Write to MH i2c: F0 00 00 C0 16 C5 [18:26:10]Write i2c OK [18:26:10]MH_I2C_Read... [18:26:10]Read from MH i2c: F0 [18:26:10]MH_I2C_Read... [18:26:10]Read from MH i2c: F0 09 00 [18:26:10]MH_I2C_Read... [18:26:10]Read from MH i2c: F0 09 00 C0 16 00 C5 E2 1B 67 BD 3B 11 67 67 [18:26:10]GetLastDocTimeStamp 1729880708 [18:26:10]current date 1729880773 [18:26:10]FM_GetShiftState [18:26:10]SAM_PROTO_GetShiftState [18:26:10]wFMCommunicate request_size=4 [18:26:10]MH_SAM_APDU [18:26:10]CAPDU: 80 13 01 00 [18:26:10]Write to MH i2c: E2 08 00 C1 16 80 13 01 00 00 00 00 00 54 [18:26:10]Write i2c OK [18:26:10]MH_I2C_Read... [18:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:10]Read from MH i2c: E2 [18:26:10]MH_I2C_Read... [18:26:10]Read from MH i2c: E2 0E 00 [18:26:10]MH_I2C_Read... [18:26:10]Read from MH i2c: E2 0E 00 C1 16 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 4C [18:26:10]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:26:10]wFMCommunicate OK [18:26:10]SAM_PROTO_GetShiftState done [18:26:10]FM_GetShiftState done [18:26:10]opened in 1729815177 [18:26:10]opened+sec_in_day 1729901577 [18:26:10]quantity*price = 100015 [18:26:10]sum+1 = 100017 [18:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 121 25.10.2024 18:26 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50621 ФПД: 49234784919970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182613&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50621&fm=49234784919970&tin=02508201610067®Number=0000000000097022&sum=100000 [18:26:11]StoreToDocumentArchive [18:26:11]shift 493 fd 50621 [18:26:11]save to /storage/0493/doc_00050621 [18:26:11]save last doc name /storage/0493/doc_00050621 to /storage/kkm_last_doc_name [18:26:11]save OK [18:26:11]Clear old archive folders... [18:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:11]tlvbuf is 01F02410 [18:26:11]SAM_PROTO_ClearQueue [18:26:11]wFMCommunicate request_size=4 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 09 00 00 [18:26:11]Write to MH i2c: E2 08 00 CE 16 80 09 00 00 00 00 00 00 56 [18:26:11]Write i2c OK [18:26:11]MH_I2C_Read... [18:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:11]Read from MH i2c: E2 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 03 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 03 00 CE 16 00 90 00 58 [18:26:11]RAPDU: 90 00 [18:26:11]wFMCommunicate OK [18:26:11]SAM_PROTO_ClearQueue done [18:26:11]KKMCreateOFDPacket [18:26:11]OFDProtocolAddRootSTLVToBuf [18:26:11]FM_MakeSignedData [18:26:11]FM_MakeSignedData [18:26:11]SAM_PROTO_SignData [18:26:11]wFMCommunicate request_size=4 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 0D 01 02 [18:26:11]Write to MH i2c: E2 08 00 CF 16 80 0D 01 02 00 00 00 00 5E [18:26:11]Write i2c OK [18:26:11]MH_I2C_Read... [18:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:11]Read from MH i2c: E2 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 03 00 [18:26:11]MH_I2C_Read... [18:26:11]Read from MH i2c: E2 03 00 CF 16 00 90 00 59 [18:26:11]RAPDU: 90 00 [18:26:11]wFMCommunicate OK [18:26:11]wFMCommunicate request_size=255 [18:26:11]MH_SAM_APDU [18:26:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C5 E2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BD C5 00 00 35 04 06 00 2C [18:26:11]Write to MH i2c: E2 02 01 D0 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C5 E2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BD C5 00 00 35 04 06 00 2C 00 00 13 [18:26:12]Write i2c OK [18:26:12]MH_I2C_Read... [18:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:12]Read from MH i2c: E2 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 03 00 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 03 00 D0 16 00 90 00 5A [18:26:12]RAPDU: 90 00 [18:26:12]wFMCommunicate OK [18:26:12]wFMCommunicate request_size=10 [18:26:12]MH_SAM_APDU [18:26:12]CAPDU: 80 0D 02 02 05 C7 5D DD A1 A2 [18:26:12]Write to MH i2c: E2 0D 00 D1 16 80 0D 02 02 05 00 C7 5D DD A1 A2 00 00 AF [18:26:12]Write i2c OK [18:26:12]MH_I2C_Read... [18:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:12]Read from MH i2c: E2 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 03 00 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 03 00 D1 16 00 90 00 5B [18:26:12]RAPDU: 90 00 [18:26:12]wFMCommunicate OK [18:26:12]wFMCommunicate request_size=4 [18:26:12]MH_SAM_APDU [18:26:12]CAPDU: 80 0D 03 02 [18:26:12]Write to MH i2c: E2 08 00 D2 16 80 0D 03 02 00 00 00 00 63 [18:26:12]Write i2c OK [18:26:12]MH_I2C_Read... [18:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:12]Read from MH i2c: E2 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 0B 00 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 0B 00 D2 16 00 86 53 F8 D1 9C 3D 06 5D 90 00 42 [18:26:12]RAPDU: 86 53 F8 D1 9C 3D 06 5D 90 00 [18:26:12]wFMCommunicate OK [18:26:12]SAM_PROTO_SignData done [18:26:12]FM_MakeSignedData done [18:26:12]CreateOFDProtocolMessage [18:26:12]wFMCommunicate request_size=4 [18:26:12]MH_SAM_APDU [18:26:12]CAPDU: 80 11 00 00 [18:26:12]Write to MH i2c: E2 08 00 D3 16 80 11 00 00 00 00 00 00 63 [18:26:12]Write i2c OK [18:26:12]MH_I2C_Read... [18:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:12]Read from MH i2c: E2 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 17 00 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: E2 17 00 D3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AA [18:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:26:12]wFMCommunicate OK [18:26:12]CreateOFDProtocolMessage done [18:26:12]OFDSenderStorePacket 50621 [18:26:12]StoreOFDPacket docnum=50621 [18:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 D6 97 07 01 98 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C5 E2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BD C5 00 00 35 04 06 00 2C C7 5D DD A1 A2 86 53 F8 D1 9C 3D 06 5D [18:26:12]CheckFolder [18:26:12]dirname=/storage/ofd_packets [18:26:12]CheckFolder done [18:26:12]ProducePacketName [18:26:12]name=ofd_packets/00050621 [18:26:12]NVStorageSaveData ofd_packets/00050621 [18:26:12]File name is /storage/ofd_packets/00050621 [18:26:12]Write 301 bytes [18:26:12]NVStorageSaveData done [18:26:12]OFDSenderStorePacket done [18:26:12]KKMCreateOFDPacket done [18:26:12]NVStorageSaveData kkm_last_timestamp [18:26:12]File name is /storage/kkm_last_timestamp [18:26:12]Write 4 bytes [18:26:12]NVStorageSaveData done [18:26:12]ExternCall_PrintAddStr [18:26:12]wPrintStart [18:26:12]Write to MH i2c: 01 00 00 D4 16 EA [18:26:12]Write i2c OK [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: 01 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: 01 07 00 [18:26:12]MH_I2C_Read... [18:26:12]Read from MH i2c: 01 07 00 D4 16 00 00 00 00 00 FF 0F FF [18:26:12]RasterBufferAndPrint [18:26:12]line Счет N : (1)15442659 [18:26:12]line ИНН: 02508201610067 [18:26:12]line Контрольно-Кассовый Чек [18:26:12]line ПРОДАЖА [18:26:12]line ТРК (МРК, ГНК) : 23 [18:26:12]line Товар: 2710124130 [18:26:12]line Аи-92-К-4 [18:26:12]line 14.950 * 66.90 [18:26:12]line = 1000.16 [18:26:12]line НДС 12% НСП 1% [18:26:12]line > о реализуемом товаре [18:26:12]line ОКРУГЛЕНИЕ: -0.16 [18:26:12]line ИТОГО: 1000.00 [18:26:12]line Внесено: 1000.00 [18:26:12]line СДАЧА: 0.00 [18:26:12]line НСП 1% : 8.85 [18:26:12]line НДС 12% : 106.21 [18:26:12]line Наличными: 1000.00 [18:26:12]line Безнал.: 0.00 [18:26:12]line Место: АЗС № 80 "Партнер Нефть" [18:26:12]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:26:12]line СНО: Общий режим [18:26:12]line Чек 121 25.10.2024 18:26 [18:26:12]line Смена: 493 ФФД: 1.0 [18:26:12]line ЗНМ: 0300000090 [18:26:12]line РНМ: 0000000000097022 [18:26:12]line Версия ККМ: 001 [18:26:12]line ФМ: 0000000000875000 [18:26:12]line ФД: 50621 [18:26:12]line ФПД: 49234784919970 [18:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182613&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50621&fm=49234784919970&tin=02508201610067®Number=0000000000097022&sum=100000 [18:26:12]written 0, free lines is 4095 [18:26:12]OFD Sender: Processing packet 50621 [packets to send 7, broken 6] [18:26:12]ProducePacketName [18:26:12]name=ofd_packets/00050621 [18:26:12]OFD Sender: To server: pG, [18:26:12]CommunicateWithHost lk.salyk.kg:30040 [18:26:12]ConnectInit lk.salyk.kg [18:26:12]Connected sock=11 [18:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 D6 97 07 01 98 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C5 E2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BD C5 00 00 35 04 06 00 2C C7 5D DD A1 A2 86 53 F8 D1 9C 3D 06 5D [18:26:13]Write to MH i2c: 01 00 00 FF 16 15 [18:26:13]Write i2c OK [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: 01 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: 01 07 00 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: 01 07 00 FF 16 00 00 00 00 00 11 0D 3A [18:26:13]RasterBufferAndPrint [18:26:13]line [18:26:13]line [18:26:13]line [18:26:13]line [18:26:13]line [18:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 14 95 47 00 F7 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BD C5 00 00 F4 03 04 00 55 8E 1B 67 B6 04 01 00 00 60 20 AB C4 DA A0 64 DA [18:26:13]CommunicateWithHost err = 0 [18:26:13]CheckOFDResponse [18:26:13]1017 (14) - 77093643461234 [18:26:13]written 0, free lines is 3376 [18:26:13]1041 (16) - 0000000000875000 [18:26:13]1040 (4) - 50621 [18:26:13]1012 (4) - 25.10.2024 12:25 [18:26:13]1206 (1) - 0 [18:26:13]OFD Sender: Remove packet 50621 [18:26:13]ProducePacketName [18:26:13]name=ofd_packets/00050621 [18:26:13]NVStorageDeleteData [18:26:13]process_action close_receipt done [18:26:13]requested_data is exist [18:26:13]produce_requested_data [18:26:13]requested_item fm.sn is exist - process it [18:26:13]wFMCommunicate request_size=4 [18:26:13]MH_SAM_APDU [18:26:13]CAPDU: 80 11 00 00 [18:26:13]Write to MH i2c: E2 08 00 06 17 80 11 00 00 00 00 00 00 97 [18:26:13]Write i2c OK [18:26:13]MH_I2C_Read... [18:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:13]Read from MH i2c: E2 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: E2 17 00 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: E2 17 00 06 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DE [18:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:26:13]wFMCommunicate OK [18:26:13]requested_item fd.num is exist - process it [18:26:13]SAM_PROTO_GetFieldsCounters [18:26:13]wFMCommunicate request_size=4 [18:26:13]MH_SAM_APDU [18:26:13]CAPDU: 80 13 00 00 [18:26:13]Write to MH i2c: E2 08 00 07 17 80 13 00 00 00 00 00 00 9A [18:26:13]Write i2c OK [18:26:13]MH_I2C_Read... [18:26:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:13]Read from MH i2c: E2 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: E2 62 00 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: E2 62 00 07 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BD C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [18:26:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BD C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:13]wFMCommunicate OK [18:26:13]SAM_PROTO_GetFieldsCounters done [18:26:13]requested_item shift.num is exist - process it [18:26:13]requested_item shift.opened is exist - process it [18:26:13]req_shift_opened [18:26:13]FM_GetShiftState [18:26:13]SAM_PROTO_GetShiftState [18:26:13]wFMCommunicate request_size=4 [18:26:13]MH_SAM_APDU [18:26:13]CAPDU: 80 13 01 00 [18:26:13]Write to MH i2c: E2 08 00 08 17 80 13 01 00 00 00 00 00 9C [18:26:13]Write i2c OK [18:26:13]MH_I2C_Read... [18:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:13]Read from MH i2c: E2 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: E2 0E 00 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: E2 0E 00 08 17 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 94 [18:26:13]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:26:13]wFMCommunicate OK [18:26:13]SAM_PROTO_GetShiftState done [18:26:13]FM_GetShiftState done [18:26:13]req_shift_opened done [18:26:13]requested_item shift.open_date is exist - process it [18:26:13]req_shift_open_date [18:26:13]req_shift_open_date done [18:26:13]produce_requested_data done [18:26:13]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50621,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:26:13]process_action_free close_receipt [18:26:13]json_value_free [18:26:13]json_value_free done [18:26:13]process_json_proto returns [18:26:13]Send response to host [18:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50621,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:26:13]free response buf [18:26:13]execute_script done [18:26:13]execute_script returns [18:26:13]free content buf [18:26:13]Sock 10.Close socket [18:26:13]Sock 10.Thread stoped [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:34]accept exits with 7 [18:27:34]New connection [18:27:34]New thread 3066645860 created [18:27:34]Thread 3066789220 joined [18:27:34]Waiting for new connection... [18:27:34] Sock 7.Parse request [18:27:34]Sock 7.Check first char [18:27:34]Sock 7.First char is OK [18:27:34]request: POST /json_proto HTTP/1.0 [18:27:34]Method: POST [18:27:34]URL: /json_proto [18:27:34]Method is POST - this is cgi request [18:27:34]url: /json_proto [18:27:34]query_string will be loaded in cgi processing [18:27:34]execute_cgi json_proto POST (null) [18:27:34]execute_cgi path=json_proto method=POST [18:27:34]POST find Content-Length [18:27:34]Host: 172.17.49.196:8080 [18:27:34]Content-Length: 777 [18:27:34]Content-Type: application/json [18:27:34] [18:27:34]POST finish read [18:27:34]Found Content-Length = 777 [18:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:34]execute_script... [18:27:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:34]POST & json_proto [18:27:34]process_json_proto [18:27:34]json parsed OK: [18:27:34]protocol is kg_v1.0 [18:27:34]action value=close_receipt [18:27:34]process_action close_receipt [18:27:34]cmd_close_receipt [18:27:34]MH_GetDate [18:27:34]Write to MH i2c: F0 00 00 09 17 0F [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: F0 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: F0 09 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: F0 09 00 09 17 00 19 E3 1B 67 BD 3B 11 67 06 [18:27:34]GetLastDocTimeStamp 1729880773 [18:27:34]current date 1729880857 [18:27:34]FM_GetShiftState [18:27:34]SAM_PROTO_GetShiftState [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 13 01 00 [18:27:34]Write to MH i2c: E2 08 00 0A 17 80 13 01 00 00 00 00 00 9E [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0E 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0E 00 0A 17 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 96 [18:27:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:27:34]wFMCommunicate OK [18:27:34]SAM_PROTO_GetShiftState done [18:27:34]FM_GetShiftState done [18:27:34]opened in 1729815177 [18:27:34]opened+sec_in_day 1729901577 [18:27:34]quantity*price = 100051 [18:27:34]sum+1 = 100052 [18:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 122 25.10.2024 18:27 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50622 ФПД: 214066613735721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182737&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50622&fm=214066613735721&tin=02508201610067®Number=0000000000097022&sum=100051 [18:27:35]StoreToDocumentArchive [18:27:35]shift 493 fd 50622 [18:27:35]save to /storage/0493/doc_00050622 [18:27:35]save last doc name /storage/0493/doc_00050622 to /storage/kkm_last_doc_name [18:27:35]save OK [18:27:35]Clear old archive folders... [18:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:27:35]tlvbuf is 01E33550 [18:27:35]SAM_PROTO_ClearQueue [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 09 00 00 [18:27:35]Write to MH i2c: E2 08 00 17 17 80 09 00 00 00 00 00 00 A0 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 03 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [18:27:35]RAPDU: 90 00 [18:27:35]wFMCommunicate OK [18:27:35]SAM_PROTO_ClearQueue done [18:27:35]KKMCreateOFDPacket [18:27:35]OFDProtocolAddRootSTLVToBuf [18:27:35]FM_MakeSignedData [18:27:35]FM_MakeSignedData [18:27:35]SAM_PROTO_SignData [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 0D 01 02 [18:27:35]Write to MH i2c: E2 08 00 18 17 80 0D 01 02 00 00 00 00 A8 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:36]Read from MH i2c: E2 03 00 18 17 00 90 00 A3 [18:27:36]RAPDU: 90 00 [18:27:36]wFMCommunicate OK [18:27:36]wFMCommunicate request_size=255 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 19 E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BE C5 00 [18:27:36]Write to MH i2c: E2 02 01 19 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 19 E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BE C5 00 00 00 DA [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 19 17 00 90 00 A4 [18:27:36]RAPDU: 90 00 [18:27:36]wFMCommunicate OK [18:27:36]wFMCommunicate request_size=16 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C2 B1 44 78 51 29 [18:27:36]Write to MH i2c: E2 13 00 1A 17 80 0D 02 02 0B 00 00 35 04 06 00 C2 B1 44 78 51 29 00 00 A9 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 1A 17 00 90 00 A5 [18:27:36]RAPDU: 90 00 [18:27:36]wFMCommunicate OK [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 0D 03 02 [18:27:36]Write to MH i2c: E2 08 00 1B 17 80 0D 03 02 00 00 00 00 AD [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0B 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0B 00 1B 17 00 79 17 B0 77 A0 7E 72 65 90 00 5A [18:27:36]RAPDU: 79 17 B0 77 A0 7E 72 65 90 00 [18:27:36]wFMCommunicate OK [18:27:36]SAM_PROTO_SignData done [18:27:36]FM_MakeSignedData done [18:27:36]CreateOFDProtocolMessage [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 11 00 00 [18:27:36]Write to MH i2c: E2 08 00 1C 17 80 11 00 00 00 00 00 00 AD [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 17 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 17 00 1C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F4 [18:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:27:36]wFMCommunicate OK [18:27:36]CreateOFDProtocolMessage done [18:27:36]OFDSenderStorePacket 50622 [18:27:36]StoreOFDPacket docnum=50622 [18:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 07 8E 0D 01 18 4B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 19 E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BE C5 00 00 35 04 06 00 C2 B1 44 78 51 29 79 17 B0 77 A0 7E 72 65 [18:27:36]CheckFolder [18:27:36]dirname=/storage/ofd_packets [18:27:36]CheckFolder done [18:27:36]ProducePacketName [18:27:36]name=ofd_packets/00050622 [18:27:36]NVStorageSaveData ofd_packets/00050622 [18:27:36]File name is /storage/ofd_packets/00050622 [18:27:36]Write 307 bytes [18:27:36]NVStorageSaveData done [18:27:36]OFDSenderStorePacket done [18:27:36]KKMCreateOFDPacket done [18:27:36]NVStorageSaveData kkm_last_timestamp [18:27:36]File name is /storage/kkm_last_timestamp [18:27:36]Write 4 bytes [18:27:36]NVStorageSaveData done [18:27:36]ExternCall_PrintAddStr [18:27:36]wPrintStart [18:27:36]Write to MH i2c: 01 00 00 1D 17 34 [18:27:36]OFD Sender: Processing packet 50622 [packets to send 7, broken 6] [18:27:36]ProducePacketName [18:27:36]name=ofd_packets/00050622 [18:27:36]OFD Sender: To server: pG, [18:27:36]CommunicateWithHost lk.salyk.kg:30040 [18:27:36]ConnectInit lk.salyk.kg [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: 01 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: 01 07 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: 01 07 00 1D 17 00 00 00 00 00 FF 0F 49 [18:27:36]RasterBufferAndPrint [18:27:36]line Счет N : (1)15442660 [18:27:36]line ИНН: 02508201610067 [18:27:36]line Контрольно-Кассовый Чек [18:27:36]line ПРОДАЖА [18:27:36]line ТРК (МРК, ГНК) : 31 [18:27:36]line Товар: 2710194210 [18:27:36]line D-ENERGY ДТ-К-2 [18:27:36]line 12.960 * 77.20 [18:27:36]line = 1000.51 [18:27:36]line НДС 12% НСП 1% [18:27:36]line > о реализуемом товаре [18:27:36]line ИТОГО: 1000.51 [18:27:36]line НСП 1% : 8.85 [18:27:36]line НДС 12% : 106.25 [18:27:36]line Наличными: 0.00 [18:27:36]line Безнал.: 1000.51 [18:27:36]line Место: АЗС № 80 "Партнер Нефть" [18:27:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:27:36]line СНО: Общий режим [18:27:36]line Чек 122 25.10.2024 18:27 [18:27:36]line Смена: 493 ФФД: 1.0 [18:27:36]line ЗНМ: 0300000090 [18:27:36]line РНМ: 0000000000097022 [18:27:36]line Версия ККМ: 001 [18:27:36]line Платежная система: Mbank [18:27:36]line ФМ: 0000000000875000 [18:27:36]line ФД: 50622 [18:27:36]line ФПД: 214066613735721 [18:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182737&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50622&fm=214066613735721&tin=02508201610067®Number=0000000000097022&sum=100051 [18:27:36]written 0, free lines is 4095 [18:27:36]Connected sock=11 [18:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 07 8E 0D 01 18 4B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 19 E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BE C5 00 00 35 04 06 00 C2 B1 44 78 51 29 79 17 B0 77 A0 7E 72 65 [18:27:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 B0 1A 47 00 14 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BE C5 00 00 F4 03 04 00 A9 8E 1B 67 B6 04 01 00 00 B8 AE ED BB EB 7D EC 35 [18:27:37]CommunicateWithHost err = 0 [18:27:37]CheckOFDResponse [18:27:37]1017 (14) - 77093643461234 [18:27:37]1041 (16) - 0000000000875000 [18:27:37]1040 (4) - 50622 [18:27:37]1012 (4) - 25.10.2024 12:27 [18:27:37]1206 (1) - 0 [18:27:37]OFD Sender: Remove packet 50622 [18:27:37]ProducePacketName [18:27:37]name=ofd_packets/00050622 [18:27:37]NVStorageDeleteData [18:27:37]Write to MH i2c: 01 00 00 46 17 5D [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: 01 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: 01 07 00 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: 01 07 00 46 17 00 00 00 00 00 64 0D D5 [18:27:37]RasterBufferAndPrint [18:27:37]line [18:27:37]line [18:27:37]line [18:27:37]line [18:27:37]line [18:27:37]written 0, free lines is 3456 [18:27:37]process_action close_receipt done [18:27:37]requested_data is exist [18:27:37]produce_requested_data [18:27:37]requested_item fm.sn is exist - process it [18:27:37]wFMCommunicate request_size=4 [18:27:37]MH_SAM_APDU [18:27:37]CAPDU: 80 11 00 00 [18:27:37]Write to MH i2c: E2 08 00 4D 17 80 11 00 00 00 00 00 00 DE [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:37]Read from MH i2c: E2 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 17 00 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 17 00 4D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 25 [18:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:27:37]wFMCommunicate OK [18:27:37]requested_item fd.num is exist - process it [18:27:37]SAM_PROTO_GetFieldsCounters [18:27:37]wFMCommunicate request_size=4 [18:27:37]MH_SAM_APDU [18:27:37]CAPDU: 80 13 00 00 [18:27:37]Write to MH i2c: E2 08 00 4E 17 80 13 00 00 00 00 00 00 E1 [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:37]Read from MH i2c: E2 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 62 00 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 62 00 4E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BE C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [18:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BE C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:37]wFMCommunicate OK [18:27:37]SAM_PROTO_GetFieldsCounters done [18:27:37]requested_item shift.num is exist - process it [18:27:37]requested_item shift.opened is exist - process it [18:27:37]req_shift_opened [18:27:37]FM_GetShiftState [18:27:37]SAM_PROTO_GetShiftState [18:27:37]wFMCommunicate request_size=4 [18:27:37]MH_SAM_APDU [18:27:37]CAPDU: 80 13 01 00 [18:27:37]Write to MH i2c: E2 08 00 4F 17 80 13 01 00 00 00 00 00 E3 [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:37]Read from MH i2c: E2 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 0E 00 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 0E 00 4F 17 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DB [18:27:37]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:27:37]wFMCommunicate OK [18:27:37]SAM_PROTO_GetShiftState done [18:27:37]FM_GetShiftState done [18:27:37]req_shift_opened done [18:27:37]requested_item shift.open_date is exist - process it [18:27:37]req_shift_open_date [18:27:37]req_shift_open_date done [18:27:37]produce_requested_data done [18:27:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50622,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:27:37]process_action_free close_receipt [18:27:37]json_value_free [18:27:37]json_value_free done [18:27:37]process_json_proto returns [18:27:37]Send response to host [18:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50622,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:27:37]free response buf [18:27:37]execute_script done [18:27:37]execute_script returns [18:27:37]free content buf [18:27:37]Sock 7.Close socket [18:27:37]Sock 7.Thread stoped [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:48]accept exits with 10 [18:28:48]New connection [18:28:48]New thread 3066789220 created [18:28:48]Thread 3066645860 joined [18:28:48]Waiting for new connection... [18:28:48] Sock 10.Parse request [18:28:48]Sock 10.Check first char [18:28:48]Sock 10.First char is OK [18:28:48]request: POST /json_proto HTTP/1.0 [18:28:48]Method: POST [18:28:48]URL: /json_proto [18:28:48]Method is POST - this is cgi request [18:28:48]url: /json_proto [18:28:48]query_string will be loaded in cgi processing [18:28:48]execute_cgi json_proto POST (null) [18:28:48]execute_cgi path=json_proto method=POST [18:28:48]POST find Content-Length [18:28:48]Host: 172.17.49.196:8080 [18:28:48]Content-Length: 684 [18:28:48]Content-Type: application/json [18:28:48] [18:28:48]POST finish read [18:28:48]Found Content-Length = 684 [18:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:48]execute_script... [18:28:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:48]POST & json_proto [18:28:48]process_json_proto [18:28:48]json parsed OK: [18:28:48]protocol is kg_v1.0 [18:28:48]action value=close_receipt [18:28:48]process_action close_receipt [18:28:48]cmd_close_receipt [18:28:48]MH_GetDate [18:28:48]Write to MH i2c: F0 00 00 50 17 56 [18:28:48]Write i2c OK [18:28:48]MH_I2C_Read... [18:28:48]Read from MH i2c: F0 [18:28:48]MH_I2C_Read... [18:28:48]Read from MH i2c: F0 09 00 [18:28:48]MH_I2C_Read... [18:28:48]Read from MH i2c: F0 09 00 50 17 00 62 E3 1B 67 BD 3B 11 67 96 [18:28:48]GetLastDocTimeStamp 1729880857 [18:28:48]current date 1729880930 [18:28:48]FM_GetShiftState [18:28:48]SAM_PROTO_GetShiftState [18:28:48]wFMCommunicate request_size=4 [18:28:48]MH_SAM_APDU [18:28:48]CAPDU: 80 13 01 00 [18:28:48]Write to MH i2c: E2 08 00 51 17 80 13 01 00 00 00 00 00 E5 [18:28:48]Write i2c OK [18:28:48]MH_I2C_Read... [18:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:48]Read from MH i2c: E2 [18:28:48]MH_I2C_Read... [18:28:48]Read from MH i2c: E2 0E 00 [18:28:48]MH_I2C_Read... [18:28:48]Read from MH i2c: E2 0E 00 51 17 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DD [18:28:48]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:28:48]wFMCommunicate OK [18:28:48]SAM_PROTO_GetShiftState done [18:28:48]FM_GetShiftState done [18:28:48]opened in 1729815177 [18:28:48]opened+sec_in_day 1729901577 [18:28:48]quantity*price = 100015 [18:28:48]sum+1 = 100017 [18:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 123 25.10.2024 18:28 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50623 ФПД: 100714570078425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182851&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50623&fm=100714570078425&tin=02508201610067®Number=0000000000097022&sum=100000 [18:28:49]StoreToDocumentArchive [18:28:49]shift 493 fd 50623 [18:28:49]save to /storage/0493/doc_00050623 [18:28:49]save last doc name /storage/0493/doc_00050623 to /storage/kkm_last_doc_name [18:28:49]save OK [18:28:49]Clear old archive folders... [18:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:49]tlvbuf is 01EC1D10 [18:28:49]SAM_PROTO_ClearQueue [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 09 00 00 [18:28:49]Write to MH i2c: E2 08 00 5E 17 80 09 00 00 00 00 00 00 E7 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 03 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [18:28:49]RAPDU: 90 00 [18:28:49]wFMCommunicate OK [18:28:49]SAM_PROTO_ClearQueue done [18:28:49]KKMCreateOFDPacket [18:28:49]OFDProtocolAddRootSTLVToBuf [18:28:49]FM_MakeSignedData [18:28:49]FM_MakeSignedData [18:28:49]SAM_PROTO_SignData [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 0D 01 02 [18:28:49]Write to MH i2c: E2 08 00 5F 17 80 0D 01 02 00 00 00 00 EF [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 03 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [18:28:49]RAPDU: 90 00 [18:28:49]wFMCommunicate OK [18:28:49]wFMCommunicate request_size=255 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 63 E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BF C5 00 00 35 04 06 00 5B [18:28:49]Write to MH i2c: E2 02 01 60 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 63 E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BF C5 00 00 35 04 06 00 5B 00 00 76 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 03 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [18:28:49]RAPDU: 90 00 [18:28:49]wFMCommunicate OK [18:28:49]wFMCommunicate request_size=10 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 0D 02 02 05 99 70 2C 58 D9 [18:28:49]Write to MH i2c: E2 0D 00 61 17 80 0D 02 02 05 00 99 70 2C 58 D9 00 00 62 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 03 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [18:28:49]RAPDU: 90 00 [18:28:49]wFMCommunicate OK [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 0D 03 02 [18:28:49]Write to MH i2c: E2 08 00 62 17 80 0D 03 02 00 00 00 00 F4 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 0B 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 0B 00 62 17 00 98 D9 80 DF F7 C0 8C CA 90 00 D2 [18:28:49]RAPDU: 98 D9 80 DF F7 C0 8C CA 90 00 [18:28:49]wFMCommunicate OK [18:28:49]SAM_PROTO_SignData done [18:28:49]FM_MakeSignedData done [18:28:49]CreateOFDProtocolMessage [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 11 00 00 [18:28:49]Write to MH i2c: E2 08 00 63 17 80 11 00 00 00 00 00 00 F4 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 17 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 17 00 63 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3B [18:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:28:49]wFMCommunicate OK [18:28:49]CreateOFDProtocolMessage done [18:28:49]OFDSenderStorePacket 50623 [18:28:49]StoreOFDPacket docnum=50623 [18:28:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 A7 1F 07 01 99 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 63 E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BF C5 00 00 35 04 06 00 5B 99 70 2C 58 D9 98 D9 80 DF F7 C0 8C CA [18:28:49]CheckFolder [18:28:49]dirname=/storage/ofd_packets [18:28:49]CheckFolder done [18:28:49]ProducePacketName [18:28:49]name=ofd_packets/00050623 [18:28:49]NVStorageSaveData ofd_packets/00050623 [18:28:49]File name is /storage/ofd_packets/00050623 [18:28:49]Write 301 bytes [18:28:49]NVStorageSaveData done [18:28:49]OFDSenderStorePacket done [18:28:49]KKMCreateOFDPacket done [18:28:49]NVStorageSaveData kkm_last_timestamp [18:28:49]File name is /storage/kkm_last_timestamp [18:28:49]Write 4 bytes [18:28:49]NVStorageSaveData done [18:28:49]ExternCall_PrintAddStr [18:28:49]wPrintStart [18:28:49]Write to MH i2c: 01 00 00 64 17 7B [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: 01 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: 01 07 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: 01 07 00 64 17 00 00 00 00 00 FF 0F 90 [18:28:49]RasterBufferAndPrint [18:28:49]line Счет N : (1)15442661 [18:28:49]line ИНН: 02508201610067 [18:28:49]line Контрольно-Кассовый Чек [18:28:49]line ПРОДАЖА [18:28:49]line ТРК (МРК, ГНК) : 13 [18:28:49]line Товар: 2710124130 [18:28:49]line Аи-92-К-4 [18:28:49]line 14.950 * 66.90 [18:28:49]line = 1000.16 [18:28:49]line НДС 12% НСП 1% [18:28:49]line > о реализуемом товаре [18:28:49]line ОКРУГЛЕНИЕ: -0.16 [18:28:49]line ИТОГО: 1000.00 [18:28:49]line Внесено: 1000.00 [18:28:49]line СДАЧА: 0.00 [18:28:49]line НСП 1% : 8.85 [18:28:49]line НДС 12% : 106.21 [18:28:49]line Наличными: 1000.00 [18:28:49]line Безнал.: 0.00 [18:28:49]line Место: АЗС № 80 "Партнер Нефть" [18:28:49]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:28:49]line СНО: Общий режим [18:28:49]line Чек 123 25.10.2024 18:28 [18:28:49]line Смена: 493 ФФД: 1.0 [18:28:49]line ЗНМ: 0300000090 [18:28:49]line РНМ: 0000000000097022 [18:28:49]line Версия ККМ: 001 [18:28:49]line ФМ: 0000000000875000 [18:28:49]line ФД: 50623 [18:28:49]line ФПД: 100714570078425 [18:28:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T182851&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50623&fm=100714570078425&tin=02508201610067®Number=0000000000097022&sum=100000 [18:28:50]OFD Sender: Processing packet 50623 [packets to send 7, broken 6] [18:28:50]ProducePacketName [18:28:50]name=ofd_packets/00050623 [18:28:50]OFD Sender: To server: pG, [18:28:50]CommunicateWithHost lk.salyk.kg:30040 [18:28:50]ConnectInit lk.salyk.kg [18:28:50]written 0, free lines is 4095 [18:28:50]Connected sock=11 [18:28:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 A7 1F 07 01 99 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 63 E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BF C5 00 00 35 04 06 00 5B 99 70 2C 58 D9 98 D9 80 DF F7 C0 8C CA [18:28:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 6E 0B 47 00 9A 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 BF C5 00 00 F4 03 04 00 F3 8E 1B 67 B6 04 01 00 00 A9 82 5F 9B 3C 3B C1 E8 [18:28:50]CommunicateWithHost err = 0 [18:28:50]CheckOFDResponse [18:28:50]1017 (14) - 77093643461234 [18:28:50]1041 (16) - 0000000000875000 [18:28:50]1040 (4) - 50623 [18:28:50]1012 (4) - 25.10.2024 12:28 [18:28:50]1206 (1) - 0 [18:28:50]OFD Sender: Remove packet 50623 [18:28:50]ProducePacketName [18:28:50]name=ofd_packets/00050623 [18:28:50]NVStorageDeleteData [18:28:50]Write to MH i2c: 01 00 00 8F 17 A6 [18:28:50]Write i2c OK [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: 01 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: 01 07 00 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: 01 07 00 8F 17 00 00 00 00 00 F8 0C B1 [18:28:50]RasterBufferAndPrint [18:28:50]line [18:28:50]line [18:28:50]line [18:28:50]line [18:28:50]line [18:28:50]written 0, free lines is 3327 [18:28:50]process_action close_receipt done [18:28:50]requested_data is exist [18:28:50]produce_requested_data [18:28:50]requested_item fm.sn is exist - process it [18:28:50]wFMCommunicate request_size=4 [18:28:50]MH_SAM_APDU [18:28:50]CAPDU: 80 11 00 00 [18:28:50]Write to MH i2c: E2 08 00 96 17 80 11 00 00 00 00 00 00 27 [18:28:50]Write i2c OK [18:28:50]MH_I2C_Read... [18:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:50]Read from MH i2c: E2 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: E2 17 00 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: E2 17 00 96 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6E [18:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:28:50]wFMCommunicate OK [18:28:50]requested_item fd.num is exist - process it [18:28:50]SAM_PROTO_GetFieldsCounters [18:28:50]wFMCommunicate request_size=4 [18:28:50]MH_SAM_APDU [18:28:50]CAPDU: 80 13 00 00 [18:28:50]Write to MH i2c: E2 08 00 97 17 80 13 00 00 00 00 00 00 2A [18:28:50]Write i2c OK [18:28:50]MH_I2C_Read... [18:28:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:50]Read from MH i2c: E2 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: E2 62 00 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: E2 62 00 97 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [18:28:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 BF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:50]wFMCommunicate OK [18:28:50]SAM_PROTO_GetFieldsCounters done [18:28:50]requested_item shift.num is exist - process it [18:28:50]requested_item shift.opened is exist - process it [18:28:50]req_shift_opened [18:28:50]FM_GetShiftState [18:28:50]SAM_PROTO_GetShiftState [18:28:50]wFMCommunicate request_size=4 [18:28:50]MH_SAM_APDU [18:28:50]CAPDU: 80 13 01 00 [18:28:50]Write to MH i2c: E2 08 00 98 17 80 13 01 00 00 00 00 00 2C [18:28:50]Write i2c OK [18:28:50]MH_I2C_Read... [18:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:51]Read from MH i2c: E2 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 0E 00 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 0E 00 98 17 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 24 [18:28:51]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:28:51]wFMCommunicate OK [18:28:51]SAM_PROTO_GetShiftState done [18:28:51]FM_GetShiftState done [18:28:51]req_shift_opened done [18:28:51]requested_item shift.open_date is exist - process it [18:28:51]req_shift_open_date [18:28:51]req_shift_open_date done [18:28:51]produce_requested_data done [18:28:51]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50623,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:28:51]process_action_free close_receipt [18:28:51]json_value_free [18:28:51]json_value_free done [18:28:51]process_json_proto returns [18:28:51]Send response to host [18:28:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50623,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:28:51]free response buf [18:28:51]execute_script done [18:28:51]execute_script returns [18:28:51]free content buf [18:28:51]Sock 10.Close socket [18:28:51]Sock 10.Thread stoped [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:08]accept exits with 7 [18:31:08]New connection [18:31:08]New thread 3066645860 created [18:31:08]Thread 3066789220 joined [18:31:08]Waiting for new connection... [18:31:08] Sock 7.Parse request [18:31:08]Sock 7.Check first char [18:31:08]Sock 7.First char is OK [18:31:08]request: POST /json_proto HTTP/1.0 [18:31:08]Method: POST [18:31:08]URL: /json_proto [18:31:08]Method is POST - this is cgi request [18:31:08]url: /json_proto [18:31:08]query_string will be loaded in cgi processing [18:31:08]execute_cgi json_proto POST (null) [18:31:08]execute_cgi path=json_proto method=POST [18:31:08]POST find Content-Length [18:31:08]Host: 172.17.49.196:8080 [18:31:08]Content-Length: 747 [18:31:08]Content-Type: application/json [18:31:08] [18:31:08]POST finish read [18:31:08]Found Content-Length = 747 [18:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164517", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:08]execute_script... [18:31: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)164517", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:08]POST & json_proto [18:31:08]process_json_proto [18:31:08]json parsed OK: [18:31:08]protocol is kg_v1.0 [18:31:08]action value=close_receipt [18:31:08]process_action close_receipt [18:31:08]cmd_close_receipt [18:31:08]MH_GetDate [18:31:08]Write to MH i2c: F0 00 00 99 17 9F [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: F0 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: F0 09 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: F0 09 00 99 17 00 EF E3 1B 67 BD 3B 11 67 6C [18:31:08]GetLastDocTimeStamp 1729880931 [18:31:08]current date 1729881071 [18:31:08]FM_GetShiftState [18:31:08]SAM_PROTO_GetShiftState [18:31:08]wFMCommunicate request_size=4 [18:31:08]MH_SAM_APDU [18:31:08]CAPDU: 80 13 01 00 [18:31:08]Write to MH i2c: E2 08 00 9A 17 80 13 01 00 00 00 00 00 2E [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:08]Read from MH i2c: E2 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 0E 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 0E 00 9A 17 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 26 [18:31:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:31:08]wFMCommunicate OK [18:31:08]SAM_PROTO_GetShiftState done [18:31:08]FM_GetShiftState done [18:31:08]opened in 1729815177 [18:31:08]opened+sec_in_day 1729901577 [18:31:08]quantity*price = 13900 [18:31:08]sum+1 = 13901 [18:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 0.00 Безнал.: 139.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 124 25.10.2024 18:31 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50624 ФПД: 125225304806265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183111&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50624&fm=125225304806265&tin=02508201610067®Number=0000000000097022&sum=13900 0 [18:31:09]StoreToDocumentArchive [18:31:09]shift 493 fd 50624 [18:31:09]save to /storage/0493/doc_00050624 [18:31:09]save last doc name /storage/0493/doc_00050624 to /storage/kkm_last_doc_name [18:31:09]save OK [18:31:09]Clear old archive folders... [18:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:31:09]tlvbuf is 01E715F0 [18:31:09]SAM_PROTO_ClearQueue [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 09 00 00 [18:31:09]Write to MH i2c: E2 08 00 A7 17 80 09 00 00 00 00 00 00 30 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 A7 17 00 90 00 32 [18:31:09]RAPDU: 90 00 [18:31:09]wFMCommunicate OK [18:31:09]SAM_PROTO_ClearQueue done [18:31:09]KKMCreateOFDPacket [18:31:09]OFDProtocolAddRootSTLVToBuf [18:31:09]FM_MakeSignedData [18:31:09]FM_MakeSignedData [18:31:09]SAM_PROTO_SignData [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 0D 01 02 [18:31:09]Write to MH i2c: E2 08 00 A8 17 80 0D 01 02 00 00 00 00 38 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 A8 17 00 90 00 33 [18:31:09]RAPDU: 90 00 [18:31:09]wFMCommunicate OK [18:31:09]wFMCommunicate request_size=255 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 EF E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [18:31:09]Write to MH i2c: E2 02 01 A9 17 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 EF E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 22 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 A9 17 00 90 00 34 [18:31:09]RAPDU: 90 00 [18:31:09]wFMCommunicate OK [18:31:09]wFMCommunicate request_size=31 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 30 10 04 04 00 C0 C5 00 00 35 04 06 00 71 E4 49 CF 53 79 [18:31:09]Write to MH i2c: E2 22 00 AA 17 80 0D 02 02 1A 00 30 30 38 37 35 30 30 30 10 04 04 00 C0 C5 00 00 35 04 06 00 71 E4 49 CF 53 79 00 00 18 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [18:31:09]RAPDU: 90 00 [18:31:09]wFMCommunicate OK [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 0D 03 02 [18:31:09]Write to MH i2c: E2 08 00 AB 17 80 0D 03 02 00 00 00 00 3D [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 0B 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 0B 00 AB 17 00 91 3E 76 B7 D0 6A DD 19 90 00 6A [18:31:09]RAPDU: 91 3E 76 B7 D0 6A DD 19 90 00 [18:31:09]wFMCommunicate OK [18:31:09]SAM_PROTO_SignData done [18:31:09]FM_MakeSignedData done [18:31:09]CreateOFDProtocolMessage [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 11 00 00 [18:31:09]Write to MH i2c: E2 08 00 AC 17 80 11 00 00 00 00 00 00 3D [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:10]Read from MH i2c: E2 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 17 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 17 00 AC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 84 [18:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:31:10]wFMCommunicate OK [18:31:10]CreateOFDProtocolMessage done [18:31:10]OFDSenderStorePacket 50624 [18:31:10]StoreOFDPacket docnum=50624 [18:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 97 EC 1C 01 84 48 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 EF E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C0 C5 00 00 35 04 06 00 71 E4 49 CF 53 79 91 3E 76 B7 D0 6A DD 19 [18:31:10]CheckFolder [18:31:10]dirname=/storage/ofd_packets [18:31:10]CheckFolder done [18:31:10]ProducePacketName [18:31:10]name=ofd_packets/00050624 [18:31:10]NVStorageSaveData ofd_packets/00050624 [18:31:10]File name is /storage/ofd_packets/00050624 [18:31:10]Write 322 bytes [18:31:10]NVStorageSaveData done [18:31:10]OFDSenderStorePacket done [18:31:10]KKMCreateOFDPacket done [18:31:10]NVStorageSaveData kkm_last_timestamp [18:31:10]File name is /storage/kkm_last_timestamp [18:31:10]Write 4 bytes [18:31:10]NVStorageSaveData done [18:31:10]ExternCall_PrintAddStr [18:31:10]wPrintStart [18:31:10]Write to MH i2c: 01 00 00 AD 17 C4 [18:31:10]OFD Sender: Processing packet 50624 [packets to send 7, broken 6] [18:31:10]ProducePacketName [18:31:10]name=ofd_packets/00050624 [18:31:10]OFD Sender: To server: pG, [18:31:10]CommunicateWithHost lk.salyk.kg:30040 [18:31:10]ConnectInit lk.salyk.kg [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 07 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 07 00 AD 17 00 00 00 00 00 FF 0F D9 [18:31:10]RasterBufferAndPrint [18:31:10]line Счет N : (3)164517 [18:31:10]line ИНН: 02508201610067 [18:31:10]line Контрольно-Кассовый Чек [18:31:10]line ПРОДАЖА [18:31:10]line Товар: 48745000 [18:31:10]line Сигареты Winston Purple Mix [18:31:10]line 1.000 * 139.00 [18:31:10]line = 139.00 [18:31:10]line НДС 12% НСП 1% [18:31:10]line > о реализуемом товаре [18:31:10]line ИТОГО: 139.00 [18:31:10]line НСП 1% : 1.23 [18:31:10]line НДС 12% : 14.76 [18:31:10]line Наличными: 0.00 [18:31:10]line Безнал.: 139.00 [18:31:10]line Место: АЗС № 80 "Партнер Нефть" [18:31:10]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:31:10]line СНО: Общий режим [18:31:10]line Чек 124 25.10.2024 18:31 [18:31:10]line Смена: 493 ФФД: 1.0 [18:31:10]line ЗНМ: 0300000090 [18:31:10]line РНМ: 0000000000097022 [18:31:10]line Версия ККМ: 001 [18:31:10]line Платежная система: Mbank [18:31:10]line ФМ: 0000000000875000 [18:31:10]line ФД: 50624 [18:31:10]line ФПД: 125225304806265 [18:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183111&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50624&fm=125225304806265&tin=02508201610067®Number=0000000000097022&sum=13900 [18:31:10]line 0 [18:31:10]Connected sock=10 [18:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 24 01 00 00 97 EC 1C 01 84 48 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 EF E3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C0 C5 00 00 35 04 06 00 71 E4 49 CF 53 79 91 3E 76 B7 D0 6A DD 19 [18:31:10]written 0, free lines is 4095 [18:31:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 9C 0F 47 00 14 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C0 C5 00 00 F4 03 04 00 7F 8F 1B 67 B6 04 01 00 00 6A 78 6E 20 3F CA 0F D8 [18:31:10]CommunicateWithHost err = 0 [18:31:10]CheckOFDResponse [18:31:10]1017 (14) - 77093643461234 [18:31:10]1041 (16) - 0000000000875000 [18:31:10]1040 (4) - 50624 [18:31:10]1012 (4) - 25.10.2024 12:30 [18:31:10]1206 (1) - 0 [18:31:10]OFD Sender: Remove packet 50624 [18:31:10]ProducePacketName [18:31:10]name=ofd_packets/00050624 [18:31:10]NVStorageDeleteData [18:31:10]Write to MH i2c: 01 00 00 D6 17 ED [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 07 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: 01 07 00 D6 17 00 00 00 00 00 08 0D 09 [18:31:10]RasterBufferAndPrint [18:31:10]line [18:31:10]line [18:31:10]line [18:31:10]line [18:31:10]line [18:31:10]written 0, free lines is 3345 [18:31:10]process_action close_receipt done [18:31:10]requested_data is exist [18:31:10]produce_requested_data [18:31:10]requested_item fm.sn is exist - process it [18:31:10]wFMCommunicate request_size=4 [18:31:10]MH_SAM_APDU [18:31:10]CAPDU: 80 11 00 00 [18:31:10]Write to MH i2c: E2 08 00 DD 17 80 11 00 00 00 00 00 00 6E [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:10]Read from MH i2c: E2 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 17 00 [18:31:10]MH_I2C_Read... [18:31:10]Read from MH i2c: E2 17 00 DD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B5 [18:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:31:10]wFMCommunicate OK [18:31:10]requested_item fd.num is exist - process it [18:31:10]SAM_PROTO_GetFieldsCounters [18:31:10]wFMCommunicate request_size=4 [18:31:10]MH_SAM_APDU [18:31:10]CAPDU: 80 13 00 00 [18:31:10]Write to MH i2c: E2 08 00 DE 17 80 13 00 00 00 00 00 00 71 [18:31:10]Write i2c OK [18:31:10]MH_I2C_Read... [18:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 62 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 62 00 DE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [18:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:11]wFMCommunicate OK [18:31:11]SAM_PROTO_GetFieldsCounters done [18:31:11]requested_item shift.num is exist - process it [18:31:11]requested_item shift.opened is exist - process it [18:31:11]req_shift_opened [18:31:11]FM_GetShiftState [18:31:11]SAM_PROTO_GetShiftState [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 13 01 00 [18:31:11]Write to MH i2c: E2 08 00 DF 17 80 13 01 00 00 00 00 00 73 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]OFD Sender: No OFD packet to send [18:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 DF 17 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6B [18:31:11]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:31:11]wFMCommunicate OK [18:31:11]SAM_PROTO_GetShiftState done [18:31:11]FM_GetShiftState done [18:31:11]req_shift_opened done [18:31:11]requested_item shift.open_date is exist - process it [18:31:11]req_shift_open_date [18:31:11]req_shift_open_date done [18:31:11]produce_requested_data done [18:31:11]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50624,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:31:11]process_action_free close_receipt [18:31:11]json_value_free [18:31:11]json_value_free done [18:31:11]process_json_proto returns [18:31:11]Send response to host [18:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50624,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:31:11]free response buf [18:31:11]execute_script done [18:31:11]execute_script returns [18:31:11]free content buf [18:31:11]Sock 7.Close socket [18:31:11]Sock 7.Thread stoped [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:25]accept exits with 9 [18:33:25]New connection [18:33:25]New thread 3066789220 created [18:33:25]Thread 3066645860 joined [18:33:25]Waiting for new connection... [18:33:25] Sock 9.Parse request [18:33:25]Sock 9.Check first char [18:33:25]Sock 9.First char is OK [18:33:25]request: POST /json_proto HTTP/1.0 [18:33:25]Method: POST [18:33:25]URL: /json_proto [18:33:25]Method is POST - this is cgi request [18:33:25]url: /json_proto [18:33:25]query_string will be loaded in cgi processing [18:33:25]execute_cgi json_proto POST (null) [18:33:25]execute_cgi path=json_proto method=POST [18:33:25]POST find Content-Length [18:33:25]Host: 172.17.49.196:8080 [18:33:25]Content-Length: 657 [18:33:25]Content-Type: application/json [18:33:25] [18:33:25]POST finish read [18:33:25]Found Content-Length = 657 [18:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164518", "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" ] } } [18:33:25]execute_script... [18:33: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)164518", "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" ] } } [18:33:25]POST & json_proto [18:33:25]process_json_proto [18:33:25]json parsed OK: [18:33:25]protocol is kg_v1.0 [18:33:25]action value=close_receipt [18:33:25]process_action close_receipt [18:33:25]cmd_close_receipt [18:33:25]MH_GetDate [18:33:25]Write to MH i2c: F0 00 00 E0 17 E6 [18:33:25]Write i2c OK [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: F0 [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: F0 09 00 [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: F0 09 00 E0 17 00 77 E4 1B 67 BD 3B 11 67 3C [18:33:25]GetLastDocTimeStamp 1729881071 [18:33:25]current date 1729881207 [18:33:25]FM_GetShiftState [18:33:25]SAM_PROTO_GetShiftState [18:33:25]wFMCommunicate request_size=4 [18:33:25]MH_SAM_APDU [18:33:25]CAPDU: 80 13 01 00 [18:33:25]Write to MH i2c: E2 08 00 E1 17 80 13 01 00 00 00 00 00 75 [18:33:25]Write i2c OK [18:33:25]MH_I2C_Read... [18:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:25]Read from MH i2c: E2 [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: E2 0E 00 [18:33:25]MH_I2C_Read... [18:33:25]Read from MH i2c: E2 0E 00 E1 17 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6D [18:33:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:33:25]wFMCommunicate OK [18:33:25]SAM_PROTO_GetShiftState done [18:33:25]FM_GetShiftState done [18:33:25]opened in 1729815177 [18:33:25]opened+sec_in_day 1729901577 [18:33:25]quantity*price = 9500 [18:33:25]sum+1 = 9501 [18:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 125 25.10.2024 18:33 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50625 ФПД: 247450664063138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183328&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50625&fm=247450664063138&tin=02508201610067®Number=0000000000097022&sum=9500 0 [18:33:26]StoreToDocumentArchive [18:33:26]shift 493 fd 50625 [18:33:26]save to /storage/0493/doc_00050625 [18:33:26]save last doc name /storage/0493/doc_00050625 to /storage/kkm_last_doc_name [18:33:26]save OK [18:33:26]Clear old archive folders... [18:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=288 [18:33:26]tlvbuf is 01E89560 [18:33:26]SAM_PROTO_ClearQueue [18:33:26]wFMCommunicate request_size=4 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 09 00 00 [18:33:26]Write to MH i2c: E2 08 00 EE 17 80 09 00 00 00 00 00 00 77 [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 EE 17 00 90 00 79 [18:33:26]RAPDU: 90 00 [18:33:26]wFMCommunicate OK [18:33:26]SAM_PROTO_ClearQueue done [18:33:26]KKMCreateOFDPacket [18:33:26]OFDProtocolAddRootSTLVToBuf [18:33:26]FM_MakeSignedData [18:33:26]FM_MakeSignedData [18:33:26]SAM_PROTO_SignData [18:33:26]wFMCommunicate request_size=4 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 0D 01 02 [18:33:26]Write to MH i2c: E2 08 00 EF 17 80 0D 01 02 00 00 00 00 7F [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 EF 17 00 90 00 7A [18:33:26]RAPDU: 90 00 [18:33:26]wFMCommunicate OK [18:33:26]wFMCommunicate request_size=255 [18:33:26]MH_SAM_APDU [18:33:26]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 7D 00 00 00 F4 03 04 00 78 E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [18:33:26]Write to MH i2c: E2 02 01 F0 17 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 7D 00 00 00 F4 03 04 00 78 E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 B3 [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 F0 17 00 90 00 7B [18:33:26]RAPDU: 90 00 [18:33:26]wFMCommunicate OK [18:33:26]wFMCommunicate request_size=47 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 0D 02 02 2A 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C1 C5 00 00 35 04 06 00 E1 0E 18 EE 50 A2 [18:33:26]Write to MH i2c: E2 32 00 F1 17 80 0D 02 02 2A 00 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C1 C5 00 00 35 04 06 00 E1 0E 18 EE 50 A2 00 00 9E [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 03 00 F1 17 00 90 00 7C [18:33:26]RAPDU: 90 00 [18:33:26]wFMCommunicate OK [18:33:26]wFMCommunicate request_size=4 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 0D 03 02 [18:33:26]Write to MH i2c: E2 08 00 F2 17 80 0D 03 02 00 00 00 00 84 [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 0B 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 0B 00 F2 17 00 13 F5 23 63 54 4F 2B 18 90 00 F9 [18:33:26]RAPDU: 13 F5 23 63 54 4F 2B 18 90 00 [18:33:26]wFMCommunicate OK [18:33:26]SAM_PROTO_SignData done [18:33:26]FM_MakeSignedData done [18:33:26]CreateOFDProtocolMessage [18:33:26]wFMCommunicate request_size=4 [18:33:26]MH_SAM_APDU [18:33:26]CAPDU: 80 11 00 00 [18:33:26]Write to MH i2c: E2 08 00 F3 17 80 11 00 00 00 00 00 00 84 [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:26]Read from MH i2c: E2 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 17 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: E2 17 00 F3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CB [18:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:33:26]wFMCommunicate OK [18:33:26]CreateOFDProtocolMessage done [18:33:26]OFDSenderStorePacket 50625 [18:33:26]StoreOFDPacket docnum=50625 [18:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 34 01 00 00 15 DD 2C 01 75 EE 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 7D 00 00 00 F4 03 04 00 78 E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C1 C5 00 00 35 04 06 00 E1 0E 18 EE 50 A2 13 F5 23 63 54 4F 2B 18 [18:33:26]CheckFolder [18:33:26]dirname=/storage/ofd_packets [18:33:26]CheckFolder done [18:33:26]ProducePacketName [18:33:26]name=ofd_packets/00050625 [18:33:26]NVStorageSaveData ofd_packets/00050625 [18:33:26]File name is /storage/ofd_packets/00050625 [18:33:26]Write 338 bytes [18:33:26]NVStorageSaveData done [18:33:26]OFDSenderStorePacket done [18:33:26]KKMCreateOFDPacket done [18:33:26]NVStorageSaveData kkm_last_timestamp [18:33:26]File name is /storage/kkm_last_timestamp [18:33:26]Write 4 bytes [18:33:26]NVStorageSaveData done [18:33:26]ExternCall_PrintAddStr [18:33:26]wPrintStart [18:33:26]Write to MH i2c: 01 00 00 F4 17 0B [18:33:26]Write i2c OK [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: 01 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: 01 07 00 [18:33:26]MH_I2C_Read... [18:33:26]Read from MH i2c: 01 07 00 F4 17 00 00 00 00 00 FF 0F 20 [18:33:26]RasterBufferAndPrint [18:33:26]line Счет N : (3)164518 [18:33:26]line ИНН: 02508201610067 [18:33:26]line Контрольно-Кассовый Чек [18:33:26]line ПРОДАЖА [18:33:26]line Товар: 4700000481453 [18:33:26]line Напиток энерг Nitro Max 0,45 ж/б [18:33:26]line 1.000 * 95.00 [18:33:26]line = 95.00 [18:33:26]line НДС 12% НСП 1% [18:33:26]line > о реализуемом товаре [18:33:26]line ИТОГО: 95.00 [18:33:26]line НСП 1% : 0.84 [18:33:26]line НДС 12% : 10.09 [18:33:26]line Наличными: 95.00 [18:33:26]line Безнал.: 0.00 [18:33:26]line Место: АЗС № 80 "Партнер Нефть" [18:33:26]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:33:26]line СНО: Общий режим [18:33:26]line Чек 125 25.10.2024 18:33 [18:33:26]line Смена: 493 ФФД: 1.0 [18:33:26]line ЗНМ: 0300000090 [18:33:26]line РНМ: 0000000000097022 [18:33:26]line Версия ККМ: 001 [18:33:26]line ФМ: 0000000000875000 [18:33:26]line ФД: 50625 [18:33:26]line ФПД: 247450664063138 [18:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183328&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50625&fm=247450664063138&tin=02508201610067®Number=0000000000097022&sum=9500 [18:33:27]line 0 [18:33:27]OFD Sender: Processing packet 50625 [packets to send 7, broken 6] [18:33:27]ProducePacketName [18:33:27]name=ofd_packets/00050625 [18:33:27]OFD Sender: To server: pG, [18:33:27]CommunicateWithHost lk.salyk.kg:30040 [18:33:27]ConnectInit lk.salyk.kg [18:33:27]written 0, free lines is 4095 [18:33:27]Connected sock=10 [18:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 34 01 00 00 15 DD 2C 01 75 EE 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 7D 00 00 00 F4 03 04 00 78 E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C1 C5 00 00 35 04 06 00 E1 0E 18 EE 50 A2 13 F5 23 63 54 4F 2B 18 [18:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D1 88 47 00 0C 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C1 C5 00 00 F4 03 04 00 08 90 1B 67 B6 04 01 00 00 CB E1 7A D1 2E 77 D2 FF [18:33:27]CommunicateWithHost err = 0 [18:33:27]CheckOFDResponse [18:33:27]1017 (14) - 77093643461234 [18:33:27]1041 (16) - 0000000000875000 [18:33:27]1040 (4) - 50625 [18:33:27]1012 (4) - 25.10.2024 12:33 [18:33:27]1206 (1) - 0 [18:33:27]OFD Sender: Remove packet 50625 [18:33:27]ProducePacketName [18:33:27]name=ofd_packets/00050625 [18:33:27]NVStorageDeleteData [18:33:27]Write to MH i2c: 01 00 00 1D 18 35 [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: 01 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: 01 07 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: 01 07 00 1D 18 00 00 00 00 00 12 0D 5B [18:33:27]RasterBufferAndPrint [18:33:27]line [18:33:27]line [18:33:27]line [18:33:27]line [18:33:27]line [18:33:27]written 0, free lines is 3353 [18:33:27]process_action close_receipt done [18:33:27]requested_data is exist [18:33:27]produce_requested_data [18:33:27]requested_item fm.sn is exist - process it [18:33:27]wFMCommunicate request_size=4 [18:33:27]MH_SAM_APDU [18:33:27]CAPDU: 80 11 00 00 [18:33:27]Write to MH i2c: E2 08 00 24 18 80 11 00 00 00 00 00 00 B6 [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:27]Read from MH i2c: E2 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: E2 17 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: E2 17 00 24 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FD [18:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:33:27]wFMCommunicate OK [18:33:27]requested_item fd.num is exist - process it [18:33:27]SAM_PROTO_GetFieldsCounters [18:33:27]wFMCommunicate request_size=4 [18:33:27]MH_SAM_APDU [18:33:27]CAPDU: 80 13 00 00 [18:33:27]Write to MH i2c: E2 08 00 25 18 80 13 00 00 00 00 00 00 B9 [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:27]Read from MH i2c: E2 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: E2 62 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: E2 62 00 25 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [18:33:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:27]wFMCommunicate OK [18:33:27]SAM_PROTO_GetFieldsCounters done [18:33:27]requested_item shift.num is exist - process it [18:33:27]requested_item shift.opened is exist - process it [18:33:27]req_shift_opened [18:33:27]FM_GetShiftState [18:33:27]SAM_PROTO_GetShiftState [18:33:27]wFMCommunicate request_size=4 [18:33:27]MH_SAM_APDU [18:33:27]CAPDU: 80 13 01 00 [18:33:27]Write to MH i2c: E2 08 00 26 18 80 13 01 00 00 00 00 00 BB [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 0E 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 0E 00 26 18 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B3 [18:33:28]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:33:28]wFMCommunicate OK [18:33:28]SAM_PROTO_GetShiftState done [18:33:28]FM_GetShiftState done [18:33:28]req_shift_opened done [18:33:28]requested_item shift.open_date is exist - process it [18:33:28]req_shift_open_date [18:33:28]req_shift_open_date done [18:33:28]produce_requested_data done [18:33:28]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50625,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:33:28]process_action_free close_receipt [18:33:28]json_value_free [18:33:28]json_value_free done [18:33:28]process_json_proto returns [18:33:28]Send response to host [18:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50625,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:33:28]free response buf [18:33:28]execute_script done [18:33:28]execute_script returns [18:33:28]free content buf [18:33:28]Sock 9.Close socket [18:33:28]Sock 9.Thread stoped [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:37]accept exits with 7 [18:34:37]New connection [18:34:37]New thread 3066645860 created [18:34:37]Thread 3066789220 joined [18:34:37]Waiting for new connection... [18:34:37] Sock 7.Parse request [18:34:37]Sock 7.Check first char [18:34:37]Sock 7.First char is OK [18:34:37]request: POST /json_proto HTTP/1.0 [18:34:37]Method: POST [18:34:37]URL: /json_proto [18:34:37]Method is POST - this is cgi request [18:34:37]url: /json_proto [18:34:37]query_string will be loaded in cgi processing [18:34:37]execute_cgi json_proto POST (null) [18:34:37]execute_cgi path=json_proto method=POST [18:34:37]POST find Content-Length [18:34:37]Host: 172.17.49.196:8080 [18:34:37]Content-Length: 690 [18:34:37]Content-Type: application/json [18:34:37] [18:34:37]POST finish read [18:34:37]Found Content-Length = 690 [18:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:37]execute_script... [18:34:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:37]POST & json_proto [18:34:37]process_json_proto [18:34:37]json parsed OK: [18:34:37]protocol is kg_v1.0 [18:34:37]action value=close_receipt [18:34:37]process_action close_receipt [18:34:37]cmd_close_receipt [18:34:37]MH_GetDate [18:34:37]Write to MH i2c: F0 00 00 27 18 2E [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: F0 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: F0 09 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: F0 09 00 27 18 00 BF E4 1B 67 BD 3B 11 67 CC [18:34:37]GetLastDocTimeStamp 1729881208 [18:34:37]current date 1729881279 [18:34:37]FM_GetShiftState [18:34:37]SAM_PROTO_GetShiftState [18:34:37]wFMCommunicate request_size=4 [18:34:37]MH_SAM_APDU [18:34:37]CAPDU: 80 13 01 00 [18:34:37]Write to MH i2c: E2 08 00 28 18 80 13 01 00 00 00 00 00 BD [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:37]Read from MH i2c: E2 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 0E 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 0E 00 28 18 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B5 [18:34:37]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:34:37]wFMCommunicate OK [18:34:37]SAM_PROTO_GetShiftState done [18:34:37]FM_GetShiftState done [18:34:37]opened in 1729815177 [18:34:37]opened+sec_in_day 1729901577 [18:34:37]quantity*price = 100051 [18:34:37]sum+1 = 100052 [18:34:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 126 25.10.2024 18:34 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50626 ФПД: 136972225464093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183439&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50626&fm=136972225464093&tin=02508201610067®Number=0000000000097022&sum=100000 [18:34:38]StoreToDocumentArchive [18:34:38]shift 493 fd 50626 [18:34:38]save to /storage/0493/doc_00050626 [18:34:38]save last doc name /storage/0493/doc_00050626 to /storage/kkm_last_doc_name [18:34:38]save OK [18:34:38]Clear old archive folders... [18:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:34:38]tlvbuf is 01E62F40 [18:34:38]SAM_PROTO_ClearQueue [18:34:38]wFMCommunicate request_size=4 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 09 00 00 [18:34:38]Write to MH i2c: E2 08 00 35 18 80 09 00 00 00 00 00 00 BF [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 03 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 03 00 35 18 00 90 00 C1 [18:34:38]RAPDU: 90 00 [18:34:38]wFMCommunicate OK [18:34:38]SAM_PROTO_ClearQueue done [18:34:38]KKMCreateOFDPacket [18:34:38]OFDProtocolAddRootSTLVToBuf [18:34:38]FM_MakeSignedData [18:34:38]FM_MakeSignedData [18:34:38]SAM_PROTO_SignData [18:34:38]wFMCommunicate request_size=4 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 0D 01 02 [18:34:38]Write to MH i2c: E2 08 00 36 18 80 0D 01 02 00 00 00 00 C7 [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 03 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 03 00 36 18 00 90 00 C2 [18:34:38]RAPDU: 90 00 [18:34:38]wFMCommunicate OK [18:34:38]wFMCommunicate request_size=255 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BF E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C2 C5 00 [18:34:38]Write to MH i2c: E2 02 01 37 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BF E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C2 C5 00 00 00 42 [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 03 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 03 00 37 18 00 90 00 C3 [18:34:38]RAPDU: 90 00 [18:34:38]wFMCommunicate OK [18:34:38]wFMCommunicate request_size=16 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7C 93 54 D7 C7 1D [18:34:38]Write to MH i2c: E2 13 00 38 18 80 0D 02 02 0B 00 00 35 04 06 00 7C 93 54 D7 C7 1D 00 00 3D [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 03 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 03 00 38 18 00 90 00 C4 [18:34:38]RAPDU: 90 00 [18:34:38]wFMCommunicate OK [18:34:38]wFMCommunicate request_size=4 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 0D 03 02 [18:34:38]Write to MH i2c: E2 08 00 39 18 80 0D 03 02 00 00 00 00 CC [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 0B 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 0B 00 39 18 00 7A 80 FF 89 97 A0 07 C1 90 00 4E [18:34:38]RAPDU: 7A 80 FF 89 97 A0 07 C1 90 00 [18:34:38]wFMCommunicate OK [18:34:38]SAM_PROTO_SignData done [18:34:38]FM_MakeSignedData done [18:34:38]CreateOFDProtocolMessage [18:34:38]wFMCommunicate request_size=4 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 11 00 00 [18:34:38]Write to MH i2c: E2 08 00 3A 18 80 11 00 00 00 00 00 00 CC [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 17 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 17 00 3A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 13 [18:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:34:38]wFMCommunicate OK [18:34:38]CreateOFDProtocolMessage done [18:34:38]OFDSenderStorePacket 50626 [18:34:38]StoreOFDPacket docnum=50626 [18:34:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 8A 66 0D 01 9F 49 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BF E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C2 C5 00 00 35 04 06 00 7C 93 54 D7 C7 1D 7A 80 FF 89 97 A0 07 C1 [18:34:38]CheckFolder [18:34:38]dirname=/storage/ofd_packets [18:34:38]CheckFolder done [18:34:38]ProducePacketName [18:34:38]name=ofd_packets/00050626 [18:34:38]NVStorageSaveData ofd_packets/00050626 [18:34:38]File name is /storage/ofd_packets/00050626 [18:34:38]Write 307 bytes [18:34:38]NVStorageSaveData done [18:34:38]OFDSenderStorePacket done [18:34:38]KKMCreateOFDPacket done [18:34:38]NVStorageSaveData kkm_last_timestamp [18:34:38]File name is /storage/kkm_last_timestamp [18:34:38]Write 4 bytes [18:34:38]NVStorageSaveData done [18:34:38]ExternCall_PrintAddStr [18:34:38]wPrintStart [18:34:38]Write to MH i2c: 01 00 00 3B 18 53 [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: 01 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: 01 07 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [18:34:38]RasterBufferAndPrint [18:34:38]line Счет N : (1)15442662 [18:34:38]line ИНН: 02508201610067 [18:34:38]line Контрольно-Кассовый Чек [18:34:38]line ПРОДАЖА [18:34:38]line ТРК (МРК, ГНК) : 41 [18:34:38]line Товар: 2710194210 [18:34:38]line D-ENERGY ДТ-К-2 [18:34:38]line 12.960 * 77.20 [18:34:38]line = 1000.51 [18:34:38]line НДС 12% НСП 1% [18:34:38]line > о реализуемом товаре [18:34:38]line ОКРУГЛЕНИЕ: -0.51 [18:34:38]line ИТОГО: 1000.00 [18:34:38]line Внесено: 1000.00 [18:34:38]line СДАЧА: 0.00 [18:34:38]line НСП 1% : 8.85 [18:34:38]line НДС 12% : 106.25 [18:34:38]line Наличными: 1000.00 [18:34:38]line Безнал.: 0.00 [18:34:38]line Место: АЗС № 80 "Партнер Нефть" [18:34:38]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:34:38]line СНО: Общий режим [18:34:38]line Чек 126 25.10.2024 18:34 [18:34:38]line Смена: 493 ФФД: 1.0 [18:34:38]line ЗНМ: 0300000090 [18:34:38]line РНМ: 0000000000097022 [18:34:38]line Версия ККМ: 001 [18:34:38]line ФМ: 0000000000875000 [18:34:38]line ФД: 50626 [18:34:38]line ФПД: 136972225464093 [18:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183439&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50626&fm=136972225464093&tin=02508201610067®Number=0000000000097022&sum=100000 [18:34:39]OFD Sender: Processing packet 50626 [packets to send 7, broken 6] [18:34:39]ProducePacketName [18:34:39]name=ofd_packets/00050626 [18:34:39]OFD Sender: To server: pG, [18:34:39]CommunicateWithHost lk.salyk.kg:30040 [18:34:39]ConnectInit lk.salyk.kg [18:34:39]written 0, free lines is 4095 [18:34:39]Connected sock=10 [18:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 8A 66 0D 01 9F 49 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BF E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C2 C5 00 00 35 04 06 00 7C 93 54 D7 C7 1D 7A 80 FF 89 97 A0 07 C1 [18:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 31 98 47 00 FA 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C2 C5 00 00 F4 03 04 00 50 90 1B 67 B6 04 01 00 00 65 71 08 AC A4 B1 45 85 [18:34:39]CommunicateWithHost err = 0 [18:34:39]CheckOFDResponse [18:34:39]1017 (14) - 77093643461234 [18:34:39]1041 (16) - 0000000000875000 [18:34:39]1040 (4) - 50626 [18:34:39]1012 (4) - 25.10.2024 12:34 [18:34:39]1206 (1) - 0 [18:34:39]OFD Sender: Remove packet 50626 [18:34:39]ProducePacketName [18:34:39]name=ofd_packets/00050626 [18:34:39]NVStorageDeleteData [18:34:39]Write to MH i2c: 01 00 00 66 18 7E [18:34:39]Write i2c OK [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: 01 [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: 01 07 00 [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: 01 07 00 66 18 00 00 00 00 00 0C 0D 9E [18:34:39]RasterBufferAndPrint [18:34:39]line [18:34:39]line [18:34:39]line [18:34:39]line [18:34:39]line [18:34:39]written 0, free lines is 3346 [18:34:39]process_action close_receipt done [18:34:39]requested_data is exist [18:34:39]produce_requested_data [18:34:39]requested_item fm.sn is exist - process it [18:34:39]wFMCommunicate request_size=4 [18:34:39]MH_SAM_APDU [18:34:39]CAPDU: 80 11 00 00 [18:34:39]Write to MH i2c: E2 08 00 6D 18 80 11 00 00 00 00 00 00 FF [18:34:39]Write i2c OK [18:34:39]MH_I2C_Read... [18:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:39]Read from MH i2c: E2 [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: E2 17 00 [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: E2 17 00 6D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 46 [18:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:34:39]wFMCommunicate OK [18:34:39]requested_item fd.num is exist - process it [18:34:39]SAM_PROTO_GetFieldsCounters [18:34:39]wFMCommunicate request_size=4 [18:34:39]MH_SAM_APDU [18:34:39]CAPDU: 80 13 00 00 [18:34:39]Write to MH i2c: E2 08 00 6E 18 80 13 00 00 00 00 00 00 02 [18:34:39]Write i2c OK [18:34:39]MH_I2C_Read... [18:34:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:39]Read from MH i2c: E2 [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: E2 62 00 [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: E2 62 00 6E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [18:34:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:39]wFMCommunicate OK [18:34:39]SAM_PROTO_GetFieldsCounters done [18:34:39]requested_item shift.num is exist - process it [18:34:39]requested_item shift.opened is exist - process it [18:34:39]req_shift_opened [18:34:39]FM_GetShiftState [18:34:39]SAM_PROTO_GetShiftState [18:34:39]wFMCommunicate request_size=4 [18:34:39]MH_SAM_APDU [18:34:39]CAPDU: 80 13 01 00 [18:34:39]Write to MH i2c: E2 08 00 6F 18 80 13 01 00 00 00 00 00 04 [18:34:39]Write i2c OK [18:34:39]MH_I2C_Read... [18:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:39]Read from MH i2c: E2 [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: E2 0E 00 [18:34:39]MH_I2C_Read... [18:34:39]Read from MH i2c: E2 0E 00 6F 18 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 FC [18:34:39]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:34:39]wFMCommunicate OK [18:34:39]SAM_PROTO_GetShiftState done [18:34:39]FM_GetShiftState done [18:34:39]req_shift_opened done [18:34:39]requested_item shift.open_date is exist - process it [18:34:39]req_shift_open_date [18:34:39]req_shift_open_date done [18:34:39]produce_requested_data done [18:34:39]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50626,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:34:39]process_action_free close_receipt [18:34:39]json_value_free [18:34:39]json_value_free done [18:34:39]process_json_proto returns [18:34:39]Send response to host [18:34:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50626,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:34:39]free response buf [18:34:39]execute_script done [18:34:39]execute_script returns [18:34:39]free content buf [18:34:39]Sock 7.Close socket [18:34:39]Sock 7.Thread stoped [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:52]accept exits with 9 [18:34:52]New connection [18:34:52]New thread 3066789220 created [18:34:52]Thread 3066645860 joined [18:34:52]Waiting for new connection... [18:34:52] Sock 9.Parse request [18:34:52]Sock 9.Check first char [18:34:52]Sock 9.First char is OK [18:34:52]request: POST /json_proto HTTP/1.0 [18:34:52]Method: POST [18:34:52]URL: /json_proto [18:34:52]Method is POST - this is cgi request [18:34:52]url: /json_proto [18:34:52]query_string will be loaded in cgi processing [18:34:52]execute_cgi json_proto POST (null) [18:34:52]execute_cgi path=json_proto method=POST [18:34:52]POST find Content-Length [18:34:52]Host: 172.17.49.196:8080 [18:34:52]Content-Length: 684 [18:34:52]Content-Type: application/json [18:34:52] [18:34:52]POST finish read [18:34:52]Found Content-Length = 684 [18:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:52]execute_script... [18:34: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)15442663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:52]POST & json_proto [18:34:52]process_json_proto [18:34:52]json parsed OK: [18:34:52]protocol is kg_v1.0 [18:34:52]action value=close_receipt [18:34:52]process_action close_receipt [18:34:52]cmd_close_receipt [18:34:52]MH_GetDate [18:34:52]Write to MH i2c: F0 00 00 70 18 77 [18:34:52]Write i2c OK [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: F0 [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: F0 09 00 [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: F0 09 00 70 18 00 CF E4 1B 67 BD 3B 11 67 25 [18:34:52]GetLastDocTimeStamp 1729881279 [18:34:52]current date 1729881295 [18:34:52]FM_GetShiftState [18:34:52]SAM_PROTO_GetShiftState [18:34:52]wFMCommunicate request_size=4 [18:34:52]MH_SAM_APDU [18:34:52]CAPDU: 80 13 01 00 [18:34:52]Write to MH i2c: E2 08 00 71 18 80 13 01 00 00 00 00 00 06 [18:34:52]Write i2c OK [18:34:52]MH_I2C_Read... [18:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:52]Read from MH i2c: E2 [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: E2 0E 00 [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: E2 0E 00 71 18 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 FE [18:34:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:34:52]wFMCommunicate OK [18:34:52]SAM_PROTO_GetShiftState done [18:34:52]FM_GetShiftState done [18:34:52]opened in 1729815177 [18:34:52]opened+sec_in_day 1729901577 [18:34:52]quantity*price = 100015 [18:34:52]sum+1 = 100017 [18:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 127 25.10.2024 18:34 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50627 ФПД: 113972605420954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183455&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50627&fm=113972605420954&tin=02508201610067®Number=0000000000097022&sum=100000 [18:34:53]StoreToDocumentArchive [18:34:53]shift 493 fd 50627 [18:34:53]save to /storage/0493/doc_00050627 [18:34:53]save last doc name /storage/0493/doc_00050627 to /storage/kkm_last_doc_name [18:34:53]save OK [18:34:53]Clear old archive folders... [18:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:53]tlvbuf is 01E4B9E0 [18:34:53]SAM_PROTO_ClearQueue [18:34:53]wFMCommunicate request_size=4 [18:34:53]MH_SAM_APDU [18:34:53]CAPDU: 80 09 00 00 [18:34:53]Write to MH i2c: E2 08 00 7E 18 80 09 00 00 00 00 00 00 08 [18:34:53]Write i2c OK [18:34:53]MH_I2C_Read... [18:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:53]Read from MH i2c: E2 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: E2 03 00 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: E2 03 00 7E 18 00 90 00 0A [18:34:53]RAPDU: 90 00 [18:34:53]wFMCommunicate OK [18:34:53]SAM_PROTO_ClearQueue done [18:34:53]KKMCreateOFDPacket [18:34:53]OFDProtocolAddRootSTLVToBuf [18:34:53]FM_MakeSignedData [18:34:53]FM_MakeSignedData [18:34:53]SAM_PROTO_SignData [18:34:53]wFMCommunicate request_size=4 [18:34:53]MH_SAM_APDU [18:34:53]CAPDU: 80 0D 01 02 [18:34:53]Write to MH i2c: E2 08 00 7F 18 80 0D 01 02 00 00 00 00 10 [18:34:53]Write i2c OK [18:34:53]MH_I2C_Read... [18:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:54]Read from MH i2c: E2 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 03 00 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 03 00 7F 18 00 90 00 0B [18:34:54]RAPDU: 90 00 [18:34:54]wFMCommunicate OK [18:34:54]wFMCommunicate request_size=255 [18:34:54]MH_SAM_APDU [18:34:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CF E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C3 C5 00 00 35 04 06 00 67 [18:34:54]Write to MH i2c: E2 02 01 80 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CF E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C3 C5 00 00 35 04 06 00 67 00 00 18 [18:34:54]Write i2c OK [18:34:54]MH_I2C_Read... [18:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:54]Read from MH i2c: E2 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 03 00 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 03 00 80 18 00 90 00 0C [18:34:54]RAPDU: 90 00 [18:34:54]wFMCommunicate OK [18:34:54]wFMCommunicate request_size=10 [18:34:54]MH_SAM_APDU [18:34:54]CAPDU: 80 0D 02 02 05 A8 50 A9 05 9A [18:34:54]Write to MH i2c: E2 0D 00 81 18 80 0D 02 02 05 00 A8 50 A9 05 9A 00 00 5D [18:34:54]Write i2c OK [18:34:54]MH_I2C_Read... [18:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:54]Read from MH i2c: E2 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 03 00 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 03 00 81 18 00 90 00 0D [18:34:54]RAPDU: 90 00 [18:34:54]wFMCommunicate OK [18:34:54]wFMCommunicate request_size=4 [18:34:54]MH_SAM_APDU [18:34:54]CAPDU: 80 0D 03 02 [18:34:54]Write to MH i2c: E2 08 00 82 18 80 0D 03 02 00 00 00 00 15 [18:34:54]Write i2c OK [18:34:54]MH_I2C_Read... [18:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:54]Read from MH i2c: E2 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 0B 00 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 0B 00 82 18 00 BD DC 46 FF 67 3B 96 6A 90 00 96 [18:34:54]RAPDU: BD DC 46 FF 67 3B 96 6A 90 00 [18:34:54]wFMCommunicate OK [18:34:54]SAM_PROTO_SignData done [18:34:54]FM_MakeSignedData done [18:34:54]CreateOFDProtocolMessage [18:34:54]wFMCommunicate request_size=4 [18:34:54]MH_SAM_APDU [18:34:54]CAPDU: 80 11 00 00 [18:34:54]Write to MH i2c: E2 08 00 83 18 80 11 00 00 00 00 00 00 15 [18:34:54]Write i2c OK [18:34:54]MH_I2C_Read... [18:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:54]Read from MH i2c: E2 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 17 00 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 17 00 83 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 5C [18:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:34:54]wFMCommunicate OK [18:34:54]CreateOFDProtocolMessage done [18:34:54]OFDSenderStorePacket 50627 [18:34:54]StoreOFDPacket docnum=50627 [18:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 B8 14 07 01 C1 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CF E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C3 C5 00 00 35 04 06 00 67 A8 50 A9 05 9A BD DC 46 FF 67 3B 96 6A [18:34:54]CheckFolder [18:34:54]dirname=/storage/ofd_packets [18:34:54]CheckFolder done [18:34:54]ProducePacketName [18:34:54]name=ofd_packets/00050627 [18:34:54]NVStorageSaveData ofd_packets/00050627 [18:34:54]File name is /storage/ofd_packets/00050627 [18:34:54]Write 301 bytes [18:34:54]NVStorageSaveData done [18:34:54]OFDSenderStorePacket done [18:34:54]KKMCreateOFDPacket done [18:34:54]NVStorageSaveData kkm_last_timestamp [18:34:54]File name is /storage/kkm_last_timestamp [18:34:54]Write 4 bytes [18:34:54]NVStorageSaveData done [18:34:54]ExternCall_PrintAddStr [18:34:54]wPrintStart [18:34:54]Write to MH i2c: 01 00 00 84 18 9C [18:34:54]Write i2c OK [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: 01 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: 01 07 00 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: 01 07 00 84 18 00 00 00 00 00 FF 0F B1 [18:34:54]RasterBufferAndPrint [18:34:54]line Счет N : (1)15442663 [18:34:54]line ИНН: 02508201610067 [18:34:54]line Контрольно-Кассовый Чек [18:34:54]line ПРОДАЖА [18:34:54]line ТРК (МРК, ГНК) : 23 [18:34:54]line Товар: 2710124130 [18:34:54]line Аи-92-К-4 [18:34:54]line 14.950 * 66.90 [18:34:54]line = 1000.16 [18:34:54]line НДС 12% НСП 1% [18:34:54]line > о реализуемом товаре [18:34:54]line ОКРУГЛЕНИЕ: -0.16 [18:34:54]line ИТОГО: 1000.00 [18:34:54]line Внесено: 1000.00 [18:34:54]line СДАЧА: 0.00 [18:34:54]line НСП 1% : 8.85 [18:34:54]line НДС 12% : 106.21 [18:34:54]line Наличными: 1000.00 [18:34:54]line Безнал.: 0.00 [18:34:54]line Место: АЗС № 80 "Партнер Нефть" [18:34:54]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:34:54]line СНО: Общий режим [18:34:54]line Чек 127 25.10.2024 18:34 [18:34:54]line Смена: 493 ФФД: 1.0 [18:34:54]line ЗНМ: 0300000090 [18:34:54]line РНМ: 0000000000097022 [18:34:54]line Версия ККМ: 001 [18:34:54]line ФМ: 0000000000875000 [18:34:54]line ФД: 50627 [18:34:54]line ФПД: 113972605420954 [18:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183455&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50627&fm=113972605420954&tin=02508201610067®Number=0000000000097022&sum=100000 [18:34:54]OFD Sender: Processing packet 50627 [packets to send 7, broken 6] [18:34:54]ProducePacketName [18:34:54]name=ofd_packets/00050627 [18:34:54]OFD Sender: To server: pG, [18:34:54]CommunicateWithHost lk.salyk.kg:30040 [18:34:54]ConnectInit lk.salyk.kg [18:34:54]written 0, free lines is 4095 [18:34:54]Connected sock=10 [18:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 B8 14 07 01 C1 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CF E4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C3 C5 00 00 35 04 06 00 67 A8 50 A9 05 9A BD DC 46 FF 67 3B 96 6A [18:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 21 48 47 00 99 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C3 C5 00 00 F4 03 04 00 5F 90 1B 67 B6 04 01 00 00 7C C3 A9 AC D4 D2 5A 41 [18:34:55]CommunicateWithHost err = 0 [18:34:55]CheckOFDResponse [18:34:55]1017 (14) - 77093643461234 [18:34:55]1041 (16) - 0000000000875000 [18:34:55]1040 (4) - 50627 [18:34:55]1012 (4) - 25.10.2024 12:34 [18:34:55]1206 (1) - 0 [18:34:55]OFD Sender: Remove packet 50627 [18:34:55]ProducePacketName [18:34:55]name=ofd_packets/00050627 [18:34:55]NVStorageDeleteData [18:34:55]Write to MH i2c: 01 00 00 AF 18 C7 [18:34:55]Write i2c OK [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: 01 [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: 01 07 00 [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: 01 07 00 AF 18 00 00 00 00 00 01 0D DC [18:34:55]RasterBufferAndPrint [18:34:55]line [18:34:55]line [18:34:55]line [18:34:55]line [18:34:55]line [18:34:55]written 0, free lines is 3335 [18:34:55]process_action close_receipt done [18:34:55]requested_data is exist [18:34:55]produce_requested_data [18:34:55]requested_item fm.sn is exist - process it [18:34:55]wFMCommunicate request_size=4 [18:34:55]MH_SAM_APDU [18:34:55]CAPDU: 80 11 00 00 [18:34:55]Write to MH i2c: E2 08 00 B6 18 80 11 00 00 00 00 00 00 48 [18:34:55]Write i2c OK [18:34:55]MH_I2C_Read... [18:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:55]Read from MH i2c: E2 [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: E2 17 00 [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: E2 17 00 B6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8F [18:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:34:55]wFMCommunicate OK [18:34:55]requested_item fd.num is exist - process it [18:34:55]SAM_PROTO_GetFieldsCounters [18:34:55]wFMCommunicate request_size=4 [18:34:55]MH_SAM_APDU [18:34:55]CAPDU: 80 13 00 00 [18:34:55]Write to MH i2c: E2 08 00 B7 18 80 13 00 00 00 00 00 00 4B [18:34:55]Write i2c OK [18:34:55]MH_I2C_Read... [18:34:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:55]Read from MH i2c: E2 [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: E2 62 00 [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: E2 62 00 B7 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [18:34:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:55]wFMCommunicate OK [18:34:55]SAM_PROTO_GetFieldsCounters done [18:34:55]requested_item shift.num is exist - process it [18:34:55]requested_item shift.opened is exist - process it [18:34:55]req_shift_opened [18:34:55]FM_GetShiftState [18:34:55]SAM_PROTO_GetShiftState [18:34:55]wFMCommunicate request_size=4 [18:34:55]MH_SAM_APDU [18:34:55]CAPDU: 80 13 01 00 [18:34:55]Write to MH i2c: E2 08 00 B8 18 80 13 01 00 00 00 00 00 4D [18:34:55]Write i2c OK [18:34:55]MH_I2C_Read... [18:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:55]Read from MH i2c: E2 [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: E2 0E 00 [18:34:55]MH_I2C_Read... [18:34:55]Read from MH i2c: E2 0E 00 B8 18 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 45 [18:34:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:34:55]wFMCommunicate OK [18:34:55]SAM_PROTO_GetShiftState done [18:34:55]FM_GetShiftState done [18:34:55]req_shift_opened done [18:34:55]requested_item shift.open_date is exist - process it [18:34:55]req_shift_open_date [18:34:55]req_shift_open_date done [18:34:55]produce_requested_data done [18:34:55]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50627,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:34:55]process_action_free close_receipt [18:34:55]json_value_free [18:34:55]json_value_free done [18:34:55]process_json_proto returns [18:34:55]Send response to host [18:34:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50627,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:34:55]free response buf [18:34:55]execute_script done [18:34:55]execute_script returns [18:34:55]free content buf [18:34:55]Sock 9.Close socket [18:34:55]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]accept exits with 7 [18:36:10]New connection [18:36:10]New thread 3066645860 created [18:36:10]Thread 3066789220 joined [18:36:10]Waiting for new connection... [18:36:10] Sock 7.Parse request [18:36:10]Sock 7.Check first char [18:36:10]Sock 7.First char is OK [18:36:10]request: POST /json_proto HTTP/1.0 [18:36:10]Method: POST [18:36:10]URL: /json_proto [18:36:10]Method is POST - this is cgi request [18:36:10]url: /json_proto [18:36:10]query_string will be loaded in cgi processing [18:36:10]execute_cgi json_proto POST (null) [18:36:10]execute_cgi path=json_proto method=POST [18:36:10]POST find Content-Length [18:36:10]Host: 172.17.49.196:8080 [18:36:10]Content-Length: 761 [18:36:10]Content-Type: application/json [18:36:10] [18:36:10]POST finish read [18:36:10]Found Content-Length = 761 [18:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098125", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:10]execute_script... [18:36:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098125", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:10]POST & json_proto [18:36:10]process_json_proto [18:36:10]json parsed OK: [18:36:10]protocol is kg_v1.0 [18:36:10]action value=close_receipt [18:36:10]process_action close_receipt [18:36:10]cmd_close_receipt [18:36:10]MH_GetDate [18:36:10]Write to MH i2c: F0 00 00 B9 18 C0 [18:36:10]Write i2c OK [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: F0 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: F0 09 00 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: F0 09 00 B9 18 00 1D E5 1B 67 BD 3B 11 67 BD [18:36:10]GetLastDocTimeStamp 1729881295 [18:36:10]current date 1729881373 [18:36:10]FM_GetShiftState [18:36:10]SAM_PROTO_GetShiftState [18:36:10]wFMCommunicate request_size=4 [18:36:10]MH_SAM_APDU [18:36:10]CAPDU: 80 13 01 00 [18:36:10]Write to MH i2c: E2 08 00 BA 18 80 13 01 00 00 00 00 00 4F [18:36:10]Write i2c OK [18:36:10]MH_I2C_Read... [18:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:10]Read from MH i2c: E2 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 0E 00 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 0E 00 BA 18 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 47 [18:36:10]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:36:10]wFMCommunicate OK [18:36:10]SAM_PROTO_GetShiftState done [18:36:10]FM_GetShiftState done [18:36:10]opened in 1729815177 [18:36:10]opened+sec_in_day 1729901577 [18:36:10]quantity*price = 0 [18:36:10]sum+1 = 1 [18:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 128 25.10.2024 18:36 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Талоны: ТК ГПНА Online 30098125 ФМ: 0000000000875000 ФД: 50628 ФПД: 56609002858456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183613&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50628&fm=56609002858456&tin=02508201610067®Number=0000000000097022&sum=0 [18:36:11]StoreToDocumentArchive [18:36:11]shift 493 fd 50628 [18:36:11]save to /storage/0493/doc_00050628 [18:36:11]save last doc name /storage/0493/doc_00050628 to /storage/kkm_last_doc_name [18:36:11]save OK [18:36:11]Clear old archive folders... [18:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:36:11]tlvbuf is 01E89070 [18:36:11]SAM_PROTO_ClearQueue [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 09 00 00 [18:36:11]Write to MH i2c: E2 08 00 C7 18 80 09 00 00 00 00 00 00 51 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 C7 18 00 90 00 53 [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]SAM_PROTO_ClearQueue done [18:36:11]KKMCreateOFDPacket [18:36:11]OFDProtocolAddRootSTLVToBuf [18:36:11]FM_MakeSignedData [18:36:11]FM_MakeSignedData [18:36:11]SAM_PROTO_SignData [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 01 02 [18:36:11]Write to MH i2c: E2 08 00 C8 18 80 0D 01 02 00 00 00 00 59 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 C8 18 00 90 00 54 [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]wFMCommunicate request_size=255 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1D E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C4 C5 00 00 35 04 06 00 [18:36:11]Write to MH i2c: E2 02 01 C9 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1D E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C4 C5 00 00 35 04 06 00 00 00 DA [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 C9 18 00 90 00 55 [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]wFMCommunicate request_size=11 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 02 02 06 33 7C 4F 81 A7 D8 [18:36:11]Write to MH i2c: E2 0E 00 CA 18 80 0D 02 02 06 00 33 7C 4F 81 A7 D8 00 00 66 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 CA 18 00 90 00 56 [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 03 02 [18:36:11]Write to MH i2c: E2 08 00 CB 18 80 0D 03 02 00 00 00 00 5E [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 0B 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 0B 00 CB 18 00 EF 67 DD 3D 9A D0 4A A6 90 00 29 [18:36:11]RAPDU: EF 67 DD 3D 9A D0 4A A6 90 00 [18:36:11]wFMCommunicate OK [18:36:11]SAM_PROTO_SignData done [18:36:11]FM_MakeSignedData done [18:36:11]CreateOFDProtocolMessage [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 11 00 00 [18:36:11]Write to MH i2c: E2 08 00 CC 18 80 11 00 00 00 00 00 00 5E [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 17 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 17 00 CC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A5 [18:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:36:11]wFMCommunicate OK [18:36:11]CreateOFDProtocolMessage done [18:36:11]OFDSenderStorePacket 50628 [18:36:11]StoreOFDPacket docnum=50628 [18:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 01 00 00 85 D7 08 01 A1 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1D E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C4 C5 00 00 35 04 06 00 33 7C 4F 81 A7 D8 EF 67 DD 3D 9A D0 4A A6 [18:36:11]CheckFolder [18:36:11]dirname=/storage/ofd_packets [18:36:11]CheckFolder done [18:36:11]ProducePacketName [18:36:11]name=ofd_packets/00050628 [18:36:11]NVStorageSaveData ofd_packets/00050628 [18:36:11]File name is /storage/ofd_packets/00050628 [18:36:11]Write 302 bytes [18:36:11]NVStorageSaveData done [18:36:11]OFDSenderStorePacket done [18:36:11]KKMCreateOFDPacket done [18:36:11]NVStorageSaveData kkm_last_timestamp [18:36:11]File name is /storage/kkm_last_timestamp [18:36:11]Write 4 bytes [18:36:11]NVStorageSaveData done [18:36:11]ExternCall_PrintAddStr [18:36:11]wPrintStart [18:36:11]Write to MH i2c: 01 00 00 CD 18 E5 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 07 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 07 00 CD 18 00 00 00 00 00 FF 0F FA [18:36:11]RasterBufferAndPrint [18:36:11]line Счет N : (1)15442664 [18:36:11]line ИНН: 02508201610067 [18:36:11]line Контрольно-Кассовый Чек [18:36:11]line ПРОДАЖА [18:36:11]line ТРК (МРК, ГНК) : 51 [18:36:11]line Товар: 2710194210 [18:36:11]line ДТ(л)-К-5 [18:36:11]line 15.000 * 0.00 [18:36:11]line = 0.00 [18:36:11]line НДС 12% НСП 1% [18:36:11]line > о реализуемом товаре [18:36:11]line ИТОГО: 0.00 [18:36:11]line НСП 1% : 0.00 [18:36:11]line НДС 12% : 0.00 [18:36:11]line Наличными: 0.00 [18:36:11]line Безнал.: 0.00 [18:36:11]line Место: АЗС № 80 "Партнер Нефть" [18:36:11]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:36:11]line СНО: Общий режим [18:36:11]line Чек 128 25.10.2024 18:36 [18:36:11]line Смена: 493 ФФД: 1.0 [18:36:11]line ЗНМ: 0300000090 [18:36:11]line РНМ: 0000000000097022 [18:36:11]line Версия ККМ: 001 [18:36:11]line Талоны: ТК ГПНА Online [18:36:11]line 30098125 [18:36:11]line ФМ: 0000000000875000 [18:36:11]line ФД: 50628 [18:36:11]line ФПД: 56609002858456 [18:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183613&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50628&fm=56609002858456&tin=02508201610067®Number=0000000000097022&sum=0 [18:36:12]written 0, free lines is 4095 [18:36:12]OFD Sender: Processing packet 50628 [packets to send 7, broken 6] [18:36:12]ProducePacketName [18:36:12]name=ofd_packets/00050628 [18:36:12]OFD Sender: To server: pG, [18:36:12]CommunicateWithHost lk.salyk.kg:30040 [18:36:12]ConnectInit lk.salyk.kg [18:36:12]Connected sock=10 [18:36:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 01 00 00 85 D7 08 01 A1 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1D E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C4 C5 00 00 35 04 06 00 33 7C 4F 81 A7 D8 EF 67 DD 3D 9A D0 4A A6 [18:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 DB D8 47 00 42 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C4 C5 00 00 F4 03 04 00 AD 90 1B 67 B6 04 01 00 00 DC FD BD 72 DD 51 DA 79 [18:36:12]CommunicateWithHost err = 0 [18:36:12]CheckOFDResponse [18:36:12]1017 (14) - 77093643461234 [18:36:12]1041 (16) - 0000000000875000 [18:36:12]1040 (4) - 50628 [18:36:12]1012 (4) - 25.10.2024 12:35 [18:36:12]1206 (1) - 0 [18:36:12]OFD Sender: Remove packet 50628 [18:36:12]ProducePacketName [18:36:12]name=ofd_packets/00050628 [18:36:12]NVStorageDeleteData [18:36:12]Write to MH i2c: 01 00 00 F7 18 0F [18:36:12]Write i2c OK [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: 01 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: 01 07 00 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: 01 07 00 F7 18 00 00 00 00 00 05 0D 28 [18:36:12]RasterBufferAndPrint [18:36:12]line [18:36:12]line [18:36:12]line [18:36:12]line [18:36:12]line [18:36:12]written 0, free lines is 3339 [18:36:12]process_action close_receipt done [18:36:12]requested_data is exist [18:36:12]produce_requested_data [18:36:12]requested_item fm.sn is exist - process it [18:36:12]wFMCommunicate request_size=4 [18:36:12]MH_SAM_APDU [18:36:12]CAPDU: 80 11 00 00 [18:36:12]Write to MH i2c: E2 08 00 FE 18 80 11 00 00 00 00 00 00 90 [18:36:12]Write i2c OK [18:36:12]MH_I2C_Read... [18:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:12]Read from MH i2c: E2 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: E2 17 00 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: E2 17 00 FE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D7 [18:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:36:12]wFMCommunicate OK [18:36:12]requested_item fd.num is exist - process it [18:36:12]SAM_PROTO_GetFieldsCounters [18:36:12]wFMCommunicate request_size=4 [18:36:12]MH_SAM_APDU [18:36:12]CAPDU: 80 13 00 00 [18:36:12]Write to MH i2c: E2 08 00 FF 18 80 13 00 00 00 00 00 00 93 [18:36:12]Write i2c OK [18:36:12]MH_I2C_Read... [18:36:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:12]Read from MH i2c: E2 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: E2 62 00 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: E2 62 00 FF 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [18:36:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:12]wFMCommunicate OK [18:36:12]SAM_PROTO_GetFieldsCounters done [18:36:12]requested_item shift.num is exist - process it [18:36:12]requested_item shift.opened is exist - process it [18:36:12]req_shift_opened [18:36:12]FM_GetShiftState [18:36:12]SAM_PROTO_GetShiftState [18:36:12]wFMCommunicate request_size=4 [18:36:12]MH_SAM_APDU [18:36:12]CAPDU: 80 13 01 00 [18:36:12]Write to MH i2c: E2 08 00 00 19 80 13 01 00 00 00 00 00 96 [18:36:12]Write i2c OK [18:36:12]MH_I2C_Read... [18:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0E 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0E 00 00 19 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8E [18:36:13]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_GetShiftState done [18:36:13]FM_GetShiftState done [18:36:13]req_shift_opened done [18:36:13]requested_item shift.open_date is exist - process it [18:36:13]req_shift_open_date [18:36:13]req_shift_open_date done [18:36:13]produce_requested_data done [18:36:13]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50628,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:36:13]process_action_free close_receipt [18:36:13]json_value_free [18:36:13]json_value_free done [18:36:13]process_json_proto returns [18:36:13]Send response to host [18:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50628,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:36:13]free response buf [18:36:13]execute_script done [18:36:13]execute_script returns [18:36:13]free content buf [18:36:13]Sock 7.Close socket [18:36:13]Sock 7.Thread stoped [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:52]accept exits with 9 [18:36:52]New connection [18:36:52]New thread 3066789220 created [18:36:52]Thread 3066645860 joined [18:36:52]Waiting for new connection... [18:36:52] Sock 9.Parse request [18:36:52]Sock 9.Check first char [18:36:52]Sock 9.First char is OK [18:36:52]request: POST /json_proto HTTP/1.0 [18:36:52]Method: POST [18:36:52]URL: /json_proto [18:36:52]Method is POST - this is cgi request [18:36:52]url: /json_proto [18:36:52]query_string will be loaded in cgi processing [18:36:52]execute_cgi json_proto POST (null) [18:36:52]execute_cgi path=json_proto method=POST [18:36:52]POST find Content-Length [18:36:52]Host: 172.17.49.196:8080 [18:36:52]Content-Length: 768 [18:36:52]Content-Type: application/json [18:36:52] [18:36:52]POST finish read [18:36:52]Found Content-Length = 768 [18:36:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442665", "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.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:52]execute_script... [18:36: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)15442665", "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.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:52]POST & json_proto [18:36:52]process_json_proto [18:36:52]json parsed OK: [18:36:52]protocol is kg_v1.0 [18:36:52]action value=close_receipt [18:36:52]process_action close_receipt [18:36:52]cmd_close_receipt [18:36:52]MH_GetDate [18:36:52]Write to MH i2c: F0 00 00 01 19 09 [18:36:52]Write i2c OK [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: F0 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: F0 09 00 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: F0 09 00 01 19 00 47 E5 1B 67 BD 3B 11 67 30 [18:36:52]GetLastDocTimeStamp 1729881373 [18:36:52]current date 1729881415 [18:36:52]FM_GetShiftState [18:36:52]SAM_PROTO_GetShiftState [18:36:52]wFMCommunicate request_size=4 [18:36:52]MH_SAM_APDU [18:36:52]CAPDU: 80 13 01 00 [18:36:52]Write to MH i2c: E2 08 00 02 19 80 13 01 00 00 00 00 00 98 [18:36:52]Write i2c OK [18:36:52]MH_I2C_Read... [18:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:52]Read from MH i2c: E2 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: E2 0E 00 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: E2 0E 00 02 19 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 90 [18:36:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:36:52]wFMCommunicate OK [18:36:52]SAM_PROTO_GetShiftState done [18:36:52]FM_GetShiftState done [18:36:52]opened in 1729815177 [18:36:52]opened+sec_in_day 1729901577 [18:36:52]quantity*price = 30038 [18:36:52]sum+1 = 30039 [18:36:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 129 25.10.2024 18:36 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50629 ФПД: 118459608169800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183655&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50629&fm=118459608169800&tin=02508201610067®Number=0000000000097022&sum=30038 [18:36:53]StoreToDocumentArchive [18:36:53]shift 493 fd 50629 [18:36:53]save to /storage/0493/doc_00050629 [18:36:53]save last doc name /storage/0493/doc_00050629 to /storage/kkm_last_doc_name [18:36:53]save OK [18:36:53]Clear old archive folders... [18:36:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:53]tlvbuf is 01E714D0 [18:36:53]SAM_PROTO_ClearQueue [18:36:53]wFMCommunicate request_size=4 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 09 00 00 [18:36:53]Write to MH i2c: E2 08 00 0F 19 80 09 00 00 00 00 00 00 9A [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 0F 19 00 90 00 9C [18:36:53]RAPDU: 90 00 [18:36:53]wFMCommunicate OK [18:36:53]SAM_PROTO_ClearQueue done [18:36:53]KKMCreateOFDPacket [18:36:53]OFDProtocolAddRootSTLVToBuf [18:36:53]FM_MakeSignedData [18:36:53]FM_MakeSignedData [18:36:53]SAM_PROTO_SignData [18:36:53]wFMCommunicate request_size=4 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 0D 01 02 [18:36:53]Write to MH i2c: E2 08 00 10 19 80 0D 01 02 00 00 00 00 A2 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 10 19 00 90 00 9D [18:36:53]RAPDU: 90 00 [18:36:53]wFMCommunicate OK [18:36:53]wFMCommunicate request_size=255 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 47 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C5 C5 00 00 35 04 06 00 6B [18:36:53]Write to MH i2c: E2 02 01 11 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 47 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C5 C5 00 00 35 04 06 00 6B 00 00 71 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 03 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 03 00 11 19 00 90 00 9E [18:36:54]RAPDU: 90 00 [18:36:54]wFMCommunicate OK [18:36:54]wFMCommunicate request_size=10 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 0D 02 02 05 BD 06 DD 7D 48 [18:36:54]Write to MH i2c: E2 0D 00 12 19 80 0D 02 02 05 00 BD 06 DD 7D 48 00 00 14 [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 03 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 03 00 12 19 00 90 00 9F [18:36:54]RAPDU: 90 00 [18:36:54]wFMCommunicate OK [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 0D 03 02 [18:36:54]Write to MH i2c: E2 08 00 13 19 80 0D 03 02 00 00 00 00 A7 [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0B 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0B 00 13 19 00 C6 E2 DD 4A 1D C6 3F 5C 90 00 F5 [18:36:54]RAPDU: C6 E2 DD 4A 1D C6 3F 5C 90 00 [18:36:54]wFMCommunicate OK [18:36:54]SAM_PROTO_SignData done [18:36:54]FM_MakeSignedData done [18:36:54]CreateOFDProtocolMessage [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 11 00 00 [18:36:54]Write to MH i2c: E2 08 00 14 19 80 11 00 00 00 00 00 00 A7 [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 17 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 17 00 14 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EE [18:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:36:54]wFMCommunicate OK [18:36:54]CreateOFDProtocolMessage done [18:36:54]OFDSenderStorePacket 50629 [18:36:54]StoreOFDPacket docnum=50629 [18:36:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 1F 62 07 01 D5 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 47 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C5 C5 00 00 35 04 06 00 6B BD 06 DD 7D 48 C6 E2 DD 4A 1D C6 3F 5C [18:36:54]CheckFolder [18:36:54]dirname=/storage/ofd_packets [18:36:54]CheckFolder done [18:36:54]ProducePacketName [18:36:54]name=ofd_packets/00050629 [18:36:54]NVStorageSaveData ofd_packets/00050629 [18:36:54]File name is /storage/ofd_packets/00050629 [18:36:54]Write 301 bytes [18:36:54]NVStorageSaveData done [18:36:54]OFDSenderStorePacket done [18:36:54]KKMCreateOFDPacket done [18:36:54]NVStorageSaveData kkm_last_timestamp [18:36:54]File name is /storage/kkm_last_timestamp [18:36:54]Write 4 bytes [18:36:54]NVStorageSaveData done [18:36:54]ExternCall_PrintAddStr [18:36:54]wPrintStart [18:36:54]Write to MH i2c: 01 00 00 15 19 2E [18:36:54]OFD Sender: Processing packet 50629 [packets to send 7, broken 6] [18:36:54]ProducePacketName [18:36:54]name=ofd_packets/00050629 [18:36:54]OFD Sender: To server: pG, [18:36:54]CommunicateWithHost lk.salyk.kg:30040 [18:36:54]ConnectInit lk.salyk.kg [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 15 19 00 00 00 00 00 FF 0F 43 [18:36:54]RasterBufferAndPrint [18:36:54]line Счет N : (1)15442665 [18:36:54]line ИНН: 02508201610067 [18:36:54]line Контрольно-Кассовый Чек [18:36:54]line ПРОДАЖА [18:36:54]line ТРК (МРК, ГНК) : 33 [18:36:54]line Товар: 2710124130 [18:36:54]line Аи-92-К-4 [18:36:54]line 4.490 * 66.90 [18:36:54]line = 300.38 [18:36:54]line НДС 12% НСП 1% [18:36:54]line > о реализуемом товаре [18:36:54]line ИТОГО: 300.38 [18:36:54]line НСП 1% : 2.66 [18:36:54]line НДС 12% : 31.90 [18:36:54]line Наличными: 0.00 [18:36:54]line Безнал.: 300.38 [18:36:54]line Место: АЗС № 80 "Партнер Нефть" [18:36:54]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:36:54]line СНО: Общий режим [18:36:54]line Чек 129 25.10.2024 18:36 [18:36:54]line Смена: 493 ФФД: 1.0 [18:36:54]line ЗНМ: 0300000090 [18:36:54]line РНМ: 0000000000097022 [18:36:54]line Версия ККМ: 001 [18:36:54]line Платежная система: Mbank [18:36:54]line ФМ: 0000000000875000 [18:36:54]line ФД: 50629 [18:36:54]line ФПД: 118459608169800 [18:36:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183655&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50629&fm=118459608169800&tin=02508201610067®Number=0000000000097022&sum=30038 [18:36:54]written 0, free lines is 4095 [18:36:54]Connected sock=10 [18:36:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 1F 62 07 01 D5 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 47 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C5 C5 00 00 35 04 06 00 6B BD 06 DD 7D 48 C6 E2 DD 4A 1D C6 3F 5C [18:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 37 6B 47 00 B9 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C5 C5 00 00 F4 03 04 00 D7 90 1B 67 B6 04 01 00 00 59 3F 71 78 DB E7 AE 6B [18:36:54]CommunicateWithHost err = 0 [18:36:54]CheckOFDResponse [18:36:54]1017 (14) - 77093643461234 [18:36:54]1041 (16) - 0000000000875000 [18:36:54]1040 (4) - 50629 [18:36:54]1012 (4) - 25.10.2024 12:36 [18:36:54]1206 (1) - 0 [18:36:54]OFD Sender: Remove packet 50629 [18:36:54]ProducePacketName [18:36:54]name=ofd_packets/00050629 [18:36:54]NVStorageDeleteData [18:36:54]Write to MH i2c: 01 00 00 3E 19 57 [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 3E 19 00 00 00 00 00 21 0D 8C [18:36:54]RasterBufferAndPrint [18:36:54]line [18:36:54]line [18:36:54]line [18:36:54]line [18:36:54]line [18:36:54]written 0, free lines is 3367 [18:36:54]process_action close_receipt done [18:36:54]requested_data is exist [18:36:54]produce_requested_data [18:36:54]requested_item fm.sn is exist - process it [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 11 00 00 [18:36:54]Write to MH i2c: E2 08 00 45 19 80 11 00 00 00 00 00 00 D8 [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 17 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 17 00 45 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1F [18:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:36:54]wFMCommunicate OK [18:36:54]requested_item fd.num is exist - process it [18:36:54]SAM_PROTO_GetFieldsCounters [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 13 00 00 [18:36:54]Write to MH i2c: E2 08 00 46 19 80 13 00 00 00 00 00 00 DB [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 62 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 62 00 46 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [18:36:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:54]wFMCommunicate OK [18:36:54]SAM_PROTO_GetFieldsCounters done [18:36:54]requested_item shift.num is exist - process it [18:36:54]requested_item shift.opened is exist - process it [18:36:54]req_shift_opened [18:36:54]FM_GetShiftState [18:36:54]SAM_PROTO_GetShiftState [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 13 01 00 [18:36:54]Write to MH i2c: E2 08 00 47 19 80 13 01 00 00 00 00 00 DD [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0E 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0E 00 47 19 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D5 [18:36:54]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:36:54]wFMCommunicate OK [18:36:54]SAM_PROTO_GetShiftState done [18:36:54]FM_GetShiftState done [18:36:54]req_shift_opened done [18:36:54]requested_item shift.open_date is exist - process it [18:36:54]req_shift_open_date [18:36:54]req_shift_open_date done [18:36:54]produce_requested_data done [18:36:54]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50629,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:36:54]process_action_free close_receipt [18:36:54]json_value_free [18:36:54]json_value_free done [18:36:54]process_json_proto returns [18:36:54]Send response to host [18:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50629,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:36:54]free response buf [18:36:54]execute_script done [18:36:54]execute_script returns [18:36:54]free content buf [18:36:54]Sock 9.Close socket [18:36:54]Sock 9.Thread stoped [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:34]accept exits with 7 [18:37:34]New connection [18:37:34]New thread 3066645860 created [18:37:34]Thread 3066789220 joined [18:37:34]Waiting for new connection... [18:37:34] Sock 7.Parse request [18:37:34]Sock 7.Check first char [18:37:34]Sock 7.First char is OK [18:37:34]request: POST /json_proto HTTP/1.0 [18:37:34]Method: POST [18:37:34]URL: /json_proto [18:37:34]Method is POST - this is cgi request [18:37:34]url: /json_proto [18:37:34]query_string will be loaded in cgi processing [18:37:34]execute_cgi json_proto POST (null) [18:37:34]execute_cgi path=json_proto method=POST [18:37:34]POST find Content-Length [18:37:34]Host: 172.17.49.196:8080 [18:37:34]Content-Length: 818 [18:37:34]Content-Type: application/json [18:37:34] [18:37:34]POST finish read [18:37:34]Found Content-Length = 818 [18:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:34]execute_script... [18:37:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:34]POST & json_proto [18:37:34]process_json_proto [18:37:34]json parsed OK: [18:37:34]protocol is kg_v1.0 [18:37:34]action value=close_receipt [18:37:34]process_action close_receipt [18:37:34]cmd_close_receipt [18:37:34]MH_GetDate [18:37:34]Write to MH i2c: F0 00 00 48 19 50 [18:37:34]Write i2c OK [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: F0 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: F0 09 00 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: F0 09 00 48 19 00 71 E5 1B 67 BD 3B 11 67 A1 [18:37:34]GetLastDocTimeStamp 1729881415 [18:37:34]current date 1729881457 [18:37:34]FM_GetShiftState [18:37:34]SAM_PROTO_GetShiftState [18:37:34]wFMCommunicate request_size=4 [18:37:34]MH_SAM_APDU [18:37:34]CAPDU: 80 13 01 00 [18:37:34]Write to MH i2c: E2 08 00 49 19 80 13 01 00 00 00 00 00 DF [18:37:34]Write i2c OK [18:37:34]MH_I2C_Read... [18:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:34]Read from MH i2c: E2 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: E2 0E 00 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: E2 0E 00 49 19 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D7 [18:37:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:37:34]wFMCommunicate OK [18:37:34]SAM_PROTO_GetShiftState done [18:37:34]FM_GetShiftState done [18:37:34]opened in 1729815177 [18:37:34]opened+sec_in_day 1729901577 [18:37:34]quantity*price = 50041 [18:37:34]sum+1 = 50042 [18:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 130 25.10.2024 18:37 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875000 ФД: 50630 ФПД: 247647728638729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183737&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50630&fm=247647728638729&tin=02508201610067®Number=0000000000097022&sum=50041 [18:37:35]StoreToDocumentArchive [18:37:35]shift 493 fd 50630 [18:37:35]save to /storage/0493/doc_00050630 [18:37:35]save last doc name /storage/0493/doc_00050630 to /storage/kkm_last_doc_name [18:37:35]save OK [18:37:35]Clear old archive folders... [18:37:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:35]tlvbuf is 01E33860 [18:37:35]SAM_PROTO_ClearQueue [18:37:35]wFMCommunicate request_size=4 [18:37:35]MH_SAM_APDU [18:37:35]CAPDU: 80 09 00 00 [18:37:35]Write to MH i2c: E2 08 00 56 19 80 09 00 00 00 00 00 00 E1 [18:37:35]Write i2c OK [18:37:35]MH_I2C_Read... [18:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:35]Read from MH i2c: E2 [18:37:35]MH_I2C_Read... [18:37:35]Read from MH i2c: E2 03 00 [18:37:35]MH_I2C_Read... [18:37:35]Read from MH i2c: E2 03 00 56 19 00 90 00 E3 [18:37:35]RAPDU: 90 00 [18:37:35]wFMCommunicate OK [18:37:35]SAM_PROTO_ClearQueue done [18:37:35]KKMCreateOFDPacket [18:37:35]OFDProtocolAddRootSTLVToBuf [18:37:35]FM_MakeSignedData [18:37:35]FM_MakeSignedData [18:37:35]SAM_PROTO_SignData [18:37:35]wFMCommunicate request_size=4 [18:37:35]MH_SAM_APDU [18:37:35]CAPDU: 80 0D 01 02 [18:37:35]Write to MH i2c: E2 08 00 57 19 80 0D 01 02 00 00 00 00 E9 [18:37:35]Write i2c OK [18:37:35]MH_I2C_Read... [18:37:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:35]Read from MH i2c: E2 [18:37:35]MH_I2C_Read... [18:37:35]Read from MH i2c: E2 03 00 [18:37:35]MH_I2C_Read... [18:37:35]Read from MH i2c: E2 03 00 57 19 00 90 00 E4 [18:37:35]RAPDU: 90 00 [18:37:35]wFMCommunicate OK [18:37:35]wFMCommunicate request_size=255 [18:37:35]MH_SAM_APDU [18:37:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 71 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C6 C5 00 00 35 04 06 00 E1 [18:37:35]Write to MH i2c: E2 02 01 58 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 71 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C6 C5 00 00 35 04 06 00 E1 00 00 6C [18:37:35]Write i2c OK [18:37:35]MH_I2C_Read... [18:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:36]Read from MH i2c: E2 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 03 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 03 00 58 19 00 90 00 E5 [18:37:36]RAPDU: 90 00 [18:37:36]wFMCommunicate OK [18:37:36]wFMCommunicate request_size=10 [18:37:36]MH_SAM_APDU [18:37:36]CAPDU: 80 0D 02 02 05 3B FA E5 1B 09 [18:37:36]Write to MH i2c: E2 0D 00 59 19 80 0D 02 02 05 00 3B FA E5 1B 09 00 00 34 [18:37:36]Write i2c OK [18:37:36]MH_I2C_Read... [18:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:36]Read from MH i2c: E2 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 03 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 03 00 59 19 00 90 00 E6 [18:37:36]RAPDU: 90 00 [18:37:36]wFMCommunicate OK [18:37:36]wFMCommunicate request_size=4 [18:37:36]MH_SAM_APDU [18:37:36]CAPDU: 80 0D 03 02 [18:37:36]Write to MH i2c: E2 08 00 5A 19 80 0D 03 02 00 00 00 00 EE [18:37:36]Write i2c OK [18:37:36]MH_I2C_Read... [18:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:36]Read from MH i2c: E2 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 0B 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 0B 00 5A 19 00 DC 51 EB B8 5B 12 96 08 90 00 CA [18:37:36]RAPDU: DC 51 EB B8 5B 12 96 08 90 00 [18:37:36]wFMCommunicate OK [18:37:36]SAM_PROTO_SignData done [18:37:36]FM_MakeSignedData done [18:37:36]CreateOFDProtocolMessage [18:37:36]wFMCommunicate request_size=4 [18:37:36]MH_SAM_APDU [18:37:36]CAPDU: 80 11 00 00 [18:37:36]Write to MH i2c: E2 08 00 5B 19 80 11 00 00 00 00 00 00 EE [18:37:36]Write i2c OK [18:37:36]MH_I2C_Read... [18:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:36]Read from MH i2c: E2 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 17 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 17 00 5B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 35 [18:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:37:36]wFMCommunicate OK [18:37:36]CreateOFDProtocolMessage done [18:37:36]OFDSenderStorePacket 50630 [18:37:36]StoreOFDPacket docnum=50630 [18:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 E9 3D 07 01 CE 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 71 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C6 C5 00 00 35 04 06 00 E1 3B FA E5 1B 09 DC 51 EB B8 5B 12 96 08 [18:37:36]CheckFolder [18:37:36]dirname=/storage/ofd_packets [18:37:36]CheckFolder done [18:37:36]ProducePacketName [18:37:36]name=ofd_packets/00050630 [18:37:36]NVStorageSaveData ofd_packets/00050630 [18:37:36]File name is /storage/ofd_packets/00050630 [18:37:36]Write 301 bytes [18:37:36]NVStorageSaveData done [18:37:36]OFDSenderStorePacket done [18:37:36]KKMCreateOFDPacket done [18:37:36]NVStorageSaveData kkm_last_timestamp [18:37:36]File name is /storage/kkm_last_timestamp [18:37:36]Write 4 bytes [18:37:36]NVStorageSaveData done [18:37:36]ExternCall_PrintAddStr [18:37:36]wPrintStart [18:37:36]Write to MH i2c: 01 00 00 5C 19 75 [18:37:36]Write i2c OK [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: 01 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: 01 07 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: 01 07 00 5C 19 00 00 00 00 00 FF 0F 8A [18:37:36]RasterBufferAndPrint [18:37:36]line Счет N : (1)15442666 [18:37:36]line ИНН: 02508201610067 [18:37:36]line Контрольно-Кассовый Чек [18:37:36]line ПРОДАЖА [18:37:36]line ТРК (МРК, ГНК) : 23 [18:37:36]line Товар: 2710124130 [18:37:36]line Аи-92-К-4 [18:37:36]line 7.480 * 66.90 [18:37:36]line = 500.41 [18:37:36]line НДС 12% НСП 1% [18:37:36]line > о реализуемом товаре [18:37:36]line ИТОГО: 500.41 [18:37:36]line НСП 1% : 4.43 [18:37:36]line НДС 12% : 53.14 [18:37:36]line Наличными: 0.00 [18:37:36]line Безнал.: 500.41 [18:37:36]line Место: АЗС № 80 "Партнер Нефть" [18:37:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:37:36]line СНО: Общий режим [18:37:36]line Чек 130 25.10.2024 18:37 [18:37:36]line Смена: 493 ФФД: 1.0 [18:37:36]line ЗНМ: 0300000090 [18:37:36]line РНМ: 0000000000097022 [18:37:36]line Версия ККМ: 001 [18:37:36]line Платежная система: Бакай Банк [18:37:36]line ФМ: 0000000000875000 [18:37:36]line ФД: 50630 [18:37:36]line ФПД: 247647728638729 [18:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183737&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50630&fm=247647728638729&tin=02508201610067®Number=0000000000097022&sum=50041 [18:37:36]OFD Sender: Processing packet 50630 [packets to send 7, broken 6] [18:37:36]ProducePacketName [18:37:36]name=ofd_packets/00050630 [18:37:36]OFD Sender: To server: pG, [18:37:36]CommunicateWithHost lk.salyk.kg:30040 [18:37:36]ConnectInit lk.salyk.kg [18:37:36]written 0, free lines is 4095 [18:37:36]Connected sock=10 [18:37:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 E9 3D 07 01 CE 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 71 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C6 C5 00 00 35 04 06 00 E1 3B FA E5 1B 09 DC 51 EB B8 5B 12 96 08 [18:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 7C 2F 47 00 8E 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C6 C5 00 00 F4 03 04 00 01 91 1B 67 B6 04 01 00 00 BD 32 AC D7 D3 FC 15 FE [18:37:37]CommunicateWithHost err = 0 [18:37:37]CheckOFDResponse [18:37:37]1017 (14) - 77093643461234 [18:37:37]1041 (16) - 0000000000875000 [18:37:37]1040 (4) - 50630 [18:37:37]1012 (4) - 25.10.2024 12:37 [18:37:37]1206 (1) - 0 [18:37:37]OFD Sender: Remove packet 50630 [18:37:37]ProducePacketName [18:37:37]name=ofd_packets/00050630 [18:37:37]NVStorageDeleteData [18:37:37]Write to MH i2c: 01 00 00 86 19 9F [18:37:37]Write i2c OK [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: 01 [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: 01 07 00 [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: 01 07 00 86 19 00 00 00 00 00 13 0D C6 [18:37:37]RasterBufferAndPrint [18:37:37]line [18:37:37]line [18:37:37]line [18:37:37]line [18:37:37]line [18:37:37]written 0, free lines is 3353 [18:37:37]process_action close_receipt done [18:37:37]requested_data is exist [18:37:37]produce_requested_data [18:37:37]requested_item fm.sn is exist - process it [18:37:37]wFMCommunicate request_size=4 [18:37:37]MH_SAM_APDU [18:37:37]CAPDU: 80 11 00 00 [18:37:37]Write to MH i2c: E2 08 00 8D 19 80 11 00 00 00 00 00 00 20 [18:37:37]Write i2c OK [18:37:37]MH_I2C_Read... [18:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:37]Read from MH i2c: E2 [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: E2 17 00 [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: E2 17 00 8D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 67 [18:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:37:37]wFMCommunicate OK [18:37:37]requested_item fd.num is exist - process it [18:37:37]SAM_PROTO_GetFieldsCounters [18:37:37]wFMCommunicate request_size=4 [18:37:37]MH_SAM_APDU [18:37:37]CAPDU: 80 13 00 00 [18:37:37]Write to MH i2c: E2 08 00 8E 19 80 13 00 00 00 00 00 00 23 [18:37:37]Write i2c OK [18:37:37]MH_I2C_Read... [18:37:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:37]Read from MH i2c: E2 [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: E2 62 00 [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: E2 62 00 8E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [18:37:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:37]wFMCommunicate OK [18:37:37]SAM_PROTO_GetFieldsCounters done [18:37:37]requested_item shift.num is exist - process it [18:37:37]requested_item shift.opened is exist - process it [18:37:37]req_shift_opened [18:37:37]FM_GetShiftState [18:37:37]SAM_PROTO_GetShiftState [18:37:37]wFMCommunicate request_size=4 [18:37:37]MH_SAM_APDU [18:37:37]CAPDU: 80 13 01 00 [18:37:37]Write to MH i2c: E2 08 00 8F 19 80 13 01 00 00 00 00 00 25 [18:37:37]Write i2c OK [18:37:37]MH_I2C_Read... [18:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:37]Read from MH i2c: E2 [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: E2 0E 00 [18:37:37]MH_I2C_Read... [18:37:37]Read from MH i2c: E2 0E 00 8F 19 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 1D [18:37:37]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:37:37]wFMCommunicate OK [18:37:37]SAM_PROTO_GetShiftState done [18:37:37]FM_GetShiftState done [18:37:37]req_shift_opened done [18:37:37]requested_item shift.open_date is exist - process it [18:37:37]req_shift_open_date [18:37:37]req_shift_open_date done [18:37:37]produce_requested_data done [18:37:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50630,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:37:37]process_action_free close_receipt [18:37:37]json_value_free [18:37:37]json_value_free done [18:37:37]process_json_proto returns [18:37:37]Send response to host [18:37:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50630,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:37:37]free response buf [18:37:37]execute_script done [18:37:37]execute_script returns [18:37:37]free content buf [18:37:37]Sock 7.Close socket [18:37:37]Sock 7.Thread stoped [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:33]accept exits with 9 [18:39:33]New connection [18:39:33]New thread 3066789220 created [18:39:33]Thread 3066645860 joined [18:39:33]Waiting for new connection... [18:39:33] Sock 9.Parse request [18:39:33]Sock 9.Check first char [18:39:33]Sock 9.First char is OK [18:39:33]request: POST /json_proto HTTP/1.0 [18:39:33]Method: POST [18:39:33]URL: /json_proto [18:39:33]Method is POST - this is cgi request [18:39:33]url: /json_proto [18:39:33]query_string will be loaded in cgi processing [18:39:33]execute_cgi json_proto POST (null) [18:39:33]execute_cgi path=json_proto method=POST [18:39:33]POST find Content-Length [18:39:33]Host: 172.17.49.196:8080 [18:39:33]Content-Length: 802 [18:39:33]Content-Type: application/json [18:39:33] [18:39:33]POST finish read [18:39:33]Found Content-Length = 802 [18:39:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4565151", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:33]execute_script... [18:39:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4565151", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:33]POST & json_proto [18:39:33]process_json_proto [18:39:33]json parsed OK: [18:39:33]protocol is kg_v1.0 [18:39:33]action value=close_receipt [18:39:33]process_action close_receipt [18:39:33]cmd_close_receipt [18:39:33]MH_GetDate [18:39:33]Write to MH i2c: F0 00 00 90 19 98 [18:39:33]Write i2c OK [18:39:33]MH_I2C_Read... [18:39:33]Read from MH i2c: F0 [18:39:33]MH_I2C_Read... [18:39:33]Read from MH i2c: F0 09 00 [18:39:33]MH_I2C_Read... [18:39:33]Read from MH i2c: F0 09 00 90 19 00 E8 E5 1B 67 BD 3B 11 67 60 [18:39:33]GetLastDocTimeStamp 1729881457 [18:39:33]current date 1729881576 [18:39:33]FM_GetShiftState [18:39:33]SAM_PROTO_GetShiftState [18:39:33]wFMCommunicate request_size=4 [18:39:33]MH_SAM_APDU [18:39:33]CAPDU: 80 13 01 00 [18:39:33]Write to MH i2c: E2 08 00 91 19 80 13 01 00 00 00 00 00 27 [18:39:33]Write i2c OK [18:39:33]MH_I2C_Read... [18:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:33]Read from MH i2c: E2 [18:39:33]MH_I2C_Read... [18:39:33]Read from MH i2c: E2 0E 00 [18:39:33]MH_I2C_Read... [18:39:33]Read from MH i2c: E2 0E 00 91 19 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 1F [18:39:33]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:39:33]wFMCommunicate OK [18:39:33]SAM_PROTO_GetShiftState done [18:39:33]FM_GetShiftState done [18:39:33]opened in 1729815177 [18:39:33]opened+sec_in_day 1729901577 [18:39:33]quantity*price = 0 [18:39:33]sum+1 = 1 [18:39:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 131 25.10.2024 18:39 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Талоны: Топливные Талоны 4565151 ФМ: 0000000000875000 ФД: 50631 ФПД: 55286175543448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183936&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50631&fm=55286175543448&tin=02508201610067®Number=0000000000097022&sum=0 [18:39:34]StoreToDocumentArchive [18:39:34]shift 493 fd 50631 [18:39:34]save to /storage/0493/doc_00050631 [18:39:34]save last doc name /storage/0493/doc_00050631 to /storage/kkm_last_doc_name [18:39:34]save OK [18:39:34]Clear old archive folders... [18:39:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:34]tlvbuf is 01F2CFD0 [18:39:34]SAM_PROTO_ClearQueue [18:39:34]wFMCommunicate request_size=4 [18:39:34]MH_SAM_APDU [18:39:34]CAPDU: 80 09 00 00 [18:39:34]Write to MH i2c: E2 08 00 9E 19 80 09 00 00 00 00 00 00 29 [18:39:34]Write i2c OK [18:39:34]MH_I2C_Read... [18:39:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:34]Read from MH i2c: E2 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 03 00 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 03 00 9E 19 00 90 00 2B [18:39:34]RAPDU: 90 00 [18:39:34]wFMCommunicate OK [18:39:34]SAM_PROTO_ClearQueue done [18:39:34]KKMCreateOFDPacket [18:39:34]OFDProtocolAddRootSTLVToBuf [18:39:34]FM_MakeSignedData [18:39:34]FM_MakeSignedData [18:39:34]SAM_PROTO_SignData [18:39:34]wFMCommunicate request_size=4 [18:39:34]MH_SAM_APDU [18:39:34]CAPDU: 80 0D 01 02 [18:39:34]Write to MH i2c: E2 08 00 9F 19 80 0D 01 02 00 00 00 00 31 [18:39:34]Write i2c OK [18:39:34]MH_I2C_Read... [18:39:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:34]Read from MH i2c: E2 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 03 00 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 03 00 9F 19 00 90 00 2C [18:39:34]RAPDU: 90 00 [18:39:34]wFMCommunicate OK [18:39:34]wFMCommunicate request_size=255 [18:39:34]MH_SAM_APDU [18:39:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 E8 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C7 C5 00 00 35 04 06 00 32 [18:39:34]Write to MH i2c: E2 02 01 A0 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 E8 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C7 C5 00 00 35 04 06 00 32 00 00 DE [18:39:34]Write i2c OK [18:39:34]MH_I2C_Read... [18:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:34]Read from MH i2c: E2 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 03 00 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 03 00 A0 19 00 90 00 2D [18:39:34]RAPDU: 90 00 [18:39:34]wFMCommunicate OK [18:39:34]wFMCommunicate request_size=10 [18:39:34]MH_SAM_APDU [18:39:34]CAPDU: 80 0D 02 02 05 48 50 DA B0 98 [18:39:34]Write to MH i2c: E2 0D 00 A1 19 80 0D 02 02 05 00 48 50 DA B0 98 00 00 F8 [18:39:34]Write i2c OK [18:39:34]MH_I2C_Read... [18:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:34]Read from MH i2c: E2 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 03 00 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 03 00 A1 19 00 90 00 2E [18:39:34]RAPDU: 90 00 [18:39:34]wFMCommunicate OK [18:39:34]wFMCommunicate request_size=4 [18:39:34]MH_SAM_APDU [18:39:34]CAPDU: 80 0D 03 02 [18:39:34]Write to MH i2c: E2 08 00 A2 19 80 0D 03 02 00 00 00 00 36 [18:39:34]Write i2c OK [18:39:34]MH_I2C_Read... [18:39:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:34]Read from MH i2c: E2 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 0B 00 [18:39:34]MH_I2C_Read... [18:39:34]Read from MH i2c: E2 0B 00 A2 19 00 3E C2 4F 0C E8 63 FE BD 90 00 98 [18:39:34]RAPDU: 3E C2 4F 0C E8 63 FE BD 90 00 [18:39:34]wFMCommunicate OK [18:39:34]SAM_PROTO_SignData done [18:39:34]FM_MakeSignedData done [18:39:34]CreateOFDProtocolMessage [18:39:34]wFMCommunicate request_size=4 [18:39:34]MH_SAM_APDU [18:39:34]CAPDU: 80 11 00 00 [18:39:34]Write to MH i2c: E2 08 00 A3 19 80 11 00 00 00 00 00 00 36 [18:39:34]Write i2c OK [18:39:34]MH_I2C_Read... [18:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:35]Read from MH i2c: E2 [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: E2 17 00 [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: E2 17 00 A3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7D [18:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:39:35]wFMCommunicate OK [18:39:35]CreateOFDProtocolMessage done [18:39:35]OFDSenderStorePacket 50631 [18:39:35]StoreOFDPacket docnum=50631 [18:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 35 DE 07 01 57 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 E8 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C7 C5 00 00 35 04 06 00 32 48 50 DA B0 98 3E C2 4F 0C E8 63 FE BD [18:39:35]CheckFolder [18:39:35]dirname=/storage/ofd_packets [18:39:35]CheckFolder done [18:39:35]ProducePacketName [18:39:35]name=ofd_packets/00050631 [18:39:35]NVStorageSaveData ofd_packets/00050631 [18:39:35]File name is /storage/ofd_packets/00050631 [18:39:35]Write 301 bytes [18:39:35]NVStorageSaveData done [18:39:35]OFDSenderStorePacket done [18:39:35]KKMCreateOFDPacket done [18:39:35]NVStorageSaveData kkm_last_timestamp [18:39:35]File name is /storage/kkm_last_timestamp [18:39:35]Write 4 bytes [18:39:35]NVStorageSaveData done [18:39:35]ExternCall_PrintAddStr [18:39:35]wPrintStart [18:39:35]Write to MH i2c: 01 00 00 A4 19 BD [18:39:35]Write i2c OK [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: 01 [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: 01 07 00 [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: 01 07 00 A4 19 00 00 00 00 00 FF 0F D2 [18:39:35]RasterBufferAndPrint [18:39:35]line Счет N : (1)15442667 [18:39:35]line ИНН: 02508201610067 [18:39:35]line Контрольно-Кассовый Чек [18:39:35]line ПРОДАЖА [18:39:35]line ТРК (МРК, ГНК) : 13 [18:39:35]line Товар: 2710124130 [18:39:35]line Аи-92-К-4 [18:39:35]line 10.000 * 0.00 [18:39:35]line = 0.00 [18:39:35]line НДС 12% НСП 1% [18:39:35]line > о реализуемом товаре [18:39:35]line ИТОГО: 0.00 [18:39:35]line НСП 1% : 0.00 [18:39:35]line НДС 12% : 0.00 [18:39:35]line Наличными: 0.00 [18:39:35]line Безнал.: 0.00 [18:39:35]line Место: АЗС № 80 "Партнер Нефть" [18:39:35]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:39:35]line СНО: Общий режим [18:39:35]line Чек 131 25.10.2024 18:39 [18:39:35]line Смена: 493 ФФД: 1.0 [18:39:35]line ЗНМ: 0300000090 [18:39:35]line РНМ: 0000000000097022 [18:39:35]line Версия ККМ: 001 [18:39:35]line Талоны: Топливные Талоны [18:39:35]line 4565151 [18:39:35]line ФМ: 0000000000875000 [18:39:35]line ФД: 50631 [18:39:35]line ФПД: 55286175543448 [18:39:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T183936&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50631&fm=55286175543448&tin=02508201610067®Number=0000000000097022&sum=0 [18:39:35]written 0, free lines is 4095 [18:39:35]OFD Sender: Processing packet 50631 [packets to send 7, broken 6] [18:39:35]ProducePacketName [18:39:35]name=ofd_packets/00050631 [18:39:35]OFD Sender: To server: pG, [18:39:35]CommunicateWithHost lk.salyk.kg:30040 [18:39:35]ConnectInit lk.salyk.kg [18:39:35]Connected sock=10 [18:39:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 35 DE 07 01 57 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 E8 E5 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C7 C5 00 00 35 04 06 00 32 48 50 DA B0 98 3E C2 4F 0C E8 63 FE BD [18:39:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 27 2E 47 00 E1 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C7 C5 00 00 F4 03 04 00 78 91 1B 67 B6 04 01 00 00 F3 C9 6F BA D5 02 92 7D [18:39:35]CommunicateWithHost err = 0 [18:39:35]CheckOFDResponse [18:39:35]1017 (14) - 77093643461234 [18:39:35]1041 (16) - 0000000000875000 [18:39:35]1040 (4) - 50631 [18:39:35]1012 (4) - 25.10.2024 12:39 [18:39:35]1206 (1) - 0 [18:39:35]OFD Sender: Remove packet 50631 [18:39:35]ProducePacketName [18:39:35]name=ofd_packets/00050631 [18:39:35]NVStorageDeleteData [18:39:35]Write to MH i2c: 01 00 00 CE 19 E7 [18:39:35]Write i2c OK [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: 01 [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: 01 07 00 [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: 01 07 00 CE 19 00 00 00 00 00 10 0D 0B [18:39:35]RasterBufferAndPrint [18:39:35]line [18:39:35]line [18:39:35]line [18:39:35]line [18:39:35]line [18:39:35]written 0, free lines is 3350 [18:39:35]process_action close_receipt done [18:39:35]requested_data is exist [18:39:35]produce_requested_data [18:39:35]requested_item fm.sn is exist - process it [18:39:35]wFMCommunicate request_size=4 [18:39:35]MH_SAM_APDU [18:39:35]CAPDU: 80 11 00 00 [18:39:35]Write to MH i2c: E2 08 00 D5 19 80 11 00 00 00 00 00 00 68 [18:39:35]Write i2c OK [18:39:35]MH_I2C_Read... [18:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:35]Read from MH i2c: E2 [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: E2 17 00 [18:39:35]MH_I2C_Read... [18:39:35]Read from MH i2c: E2 17 00 D5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AF [18:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:39:35]wFMCommunicate OK [18:39:35]requested_item fd.num is exist - process it [18:39:35]SAM_PROTO_GetFieldsCounters [18:39:35]wFMCommunicate request_size=4 [18:39:35]MH_SAM_APDU [18:39:35]CAPDU: 80 13 00 00 [18:39:35]Write to MH i2c: E2 08 00 D6 19 80 13 00 00 00 00 00 00 6B [18:39:35]Write i2c OK [18:39:35]MH_I2C_Read... [18:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:36]Read from MH i2c: E2 [18:39:36]MH_I2C_Read... [18:39:36]Read from MH i2c: E2 62 00 [18:39:36]MH_I2C_Read... [18:39:36]Read from MH i2c: E2 62 00 D6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [18:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:36]wFMCommunicate OK [18:39:36]SAM_PROTO_GetFieldsCounters done [18:39:36]requested_item shift.num is exist - process it [18:39:36]requested_item shift.opened is exist - process it [18:39:36]req_shift_opened [18:39:36]FM_GetShiftState [18:39:36]SAM_PROTO_GetShiftState [18:39:36]wFMCommunicate request_size=4 [18:39:36]MH_SAM_APDU [18:39:36]CAPDU: 80 13 01 00 [18:39:36]Write to MH i2c: E2 08 00 D7 19 80 13 01 00 00 00 00 00 6D [18:39:36]Write i2c OK [18:39:36]MH_I2C_Read... [18:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:36]Read from MH i2c: E2 [18:39:36]MH_I2C_Read... [18:39:36]Read from MH i2c: E2 0E 00 [18:39:36]MH_I2C_Read... [18:39:36]Read from MH i2c: E2 0E 00 D7 19 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 65 [18:39:36]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:39:36]wFMCommunicate OK [18:39:36]SAM_PROTO_GetShiftState done [18:39:36]FM_GetShiftState done [18:39:36]req_shift_opened done [18:39:36]requested_item shift.open_date is exist - process it [18:39:36]req_shift_open_date [18:39:36]req_shift_open_date done [18:39:36]produce_requested_data done [18:39:36]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50631,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:39:36]process_action_free close_receipt [18:39:36]json_value_free [18:39:36]json_value_free done [18:39:36]process_json_proto returns [18:39:36]Send response to host [18:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50631,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:39:36]free response buf [18:39:36]execute_script done [18:39:36]execute_script returns [18:39:36]free content buf [18:39:36]Sock 9.Close socket [18:39:36]Sock 9.Thread stoped [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:29]accept exits with 7 [18:43:29]New connection [18:43:29]New thread 3066645860 created [18:43:29]Thread 3066789220 joined [18:43:29]Waiting for new connection... [18:43:29] Sock 7.Parse request [18:43:29]Sock 7.Check first char [18:43:29]Sock 7.First char is OK [18:43:29]request: POST /json_proto HTTP/1.0 [18:43:29]Method: POST [18:43:29]URL: /json_proto [18:43:29]Method is POST - this is cgi request [18:43:29]url: /json_proto [18:43:29]query_string will be loaded in cgi processing [18:43:29]execute_cgi json_proto POST (null) [18:43:29]execute_cgi path=json_proto method=POST [18:43:29]POST find Content-Length [18:43:29]Host: 172.17.49.196:8080 [18:43:29]Content-Length: 630 [18:43:29]Content-Type: application/json [18:43:29] [18:43:29]POST finish read [18:43:29]Found Content-Length = 630 [18:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164519", "tax_sys" : 0, "items" : [ { "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 655.00, "quantity" : 1.000, "sum" : 655.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 655.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:29]execute_script... [18:43: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)164519", "tax_sys" : 0, "items" : [ { "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 655.00, "quantity" : 1.000, "sum" : 655.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 655.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:29]POST & json_proto [18:43:29]process_json_proto [18:43:29]json parsed OK: [18:43:29]protocol is kg_v1.0 [18:43:29]action value=close_receipt [18:43:29]process_action close_receipt [18:43:29]cmd_close_receipt [18:43:29]MH_GetDate [18:43:29]Write to MH i2c: F0 00 00 D8 19 E0 [18:43:29]Write i2c OK [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: F0 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: F0 09 00 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: F0 09 00 D8 19 00 D4 E6 1B 67 BD 3B 11 67 95 [18:43:29]GetLastDocTimeStamp 1729881576 [18:43:29]current date 1729881812 [18:43:29]FM_GetShiftState [18:43:29]SAM_PROTO_GetShiftState [18:43:29]wFMCommunicate request_size=4 [18:43:29]MH_SAM_APDU [18:43:29]CAPDU: 80 13 01 00 [18:43:29]Write to MH i2c: E2 08 00 D9 19 80 13 01 00 00 00 00 00 6F [18:43:29]Write i2c OK [18:43:29]MH_I2C_Read... [18:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:29]Read from MH i2c: E2 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: E2 0E 00 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: E2 0E 00 D9 19 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 67 [18:43:29]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:43:29]wFMCommunicate OK [18:43:29]SAM_PROTO_GetShiftState done [18:43:29]FM_GetShiftState done [18:43:29]opened in 1729815177 [18:43:29]opened+sec_in_day 1729901577 [18:43:29]quantity*price = 65500 [18:43:29]sum+1 = 65501 [18:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 655.00 НСП 1% : 5.80 НДС 12% : 69.56 Наличными: 655.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 132 25.10.2024 18:43 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50632 ФПД: 92522592364982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184332&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50632&fm=92522592364982&tin=02508201610067®Number=0000000000097022&sum=65500 0 [18:43:30]StoreToDocumentArchive [18:43:30]shift 493 fd 50632 [18:43:30]save to /storage/0493/doc_00050632 [18:43:30]save last doc name /storage/0493/doc_00050632 to /storage/kkm_last_doc_name [18:43:30]save OK [18:43:30]Clear old archive folders... [18:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=270 [18:43:30]tlvbuf is 01E84770 [18:43:30]SAM_PROTO_ClearQueue [18:43:30]wFMCommunicate request_size=4 [18:43:30]MH_SAM_APDU [18:43:30]CAPDU: 80 09 00 00 [18:43:30]Write to MH i2c: E2 08 00 E6 19 80 09 00 00 00 00 00 00 71 [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:30]Read from MH i2c: E2 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 03 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [18:43:30]RAPDU: 90 00 [18:43:30]wFMCommunicate OK [18:43:30]SAM_PROTO_ClearQueue done [18:43:30]KKMCreateOFDPacket [18:43:30]OFDProtocolAddRootSTLVToBuf [18:43:30]FM_MakeSignedData [18:43:30]FM_MakeSignedData [18:43:30]SAM_PROTO_SignData [18:43:30]wFMCommunicate request_size=4 [18:43:30]MH_SAM_APDU [18:43:30]CAPDU: 80 0D 01 02 [18:43:30]Write to MH i2c: E2 08 00 E7 19 80 0D 01 02 00 00 00 00 79 [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:30]Read from MH i2c: E2 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 03 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [18:43:30]RAPDU: 90 00 [18:43:30]wFMCommunicate OK [18:43:30]wFMCommunicate request_size=255 [18:43:30]MH_SAM_APDU [18:43:30]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 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 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 1B 00 00 00 00 07 04 06 00 DC FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 D4 E6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [18:43:30]Write to MH i2c: E2 02 01 E8 19 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 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 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 1B 00 00 00 00 07 04 06 00 DC FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 D4 E6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 05 [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:30]Read from MH i2c: E2 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 03 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 03 00 E8 19 00 90 00 75 [18:43:30]RAPDU: 90 00 [18:43:30]wFMCommunicate OK [18:43:30]wFMCommunicate request_size=29 [18:43:30]MH_SAM_APDU [18:43:30]CAPDU: 80 0D 02 02 18 38 37 35 30 30 30 10 04 04 00 C8 C5 00 00 35 04 06 00 54 26 18 40 69 B6 [18:43:30]Write to MH i2c: E2 20 00 E9 19 80 0D 02 02 18 00 38 37 35 30 30 30 10 04 04 00 C8 C5 00 00 35 04 06 00 54 26 18 40 69 B6 00 00 B5 [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:30]Read from MH i2c: E2 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 03 00 [18:43:30]MH_I2C_Read... [18:43:30]Read from MH i2c: E2 03 00 E9 19 00 90 00 76 [18:43:30]RAPDU: 90 00 [18:43:30]wFMCommunicate OK [18:43:30]wFMCommunicate request_size=4 [18:43:30]MH_SAM_APDU [18:43:30]CAPDU: 80 0D 03 02 [18:43:30]Write to MH i2c: E2 08 00 EA 19 80 0D 03 02 00 00 00 00 7E [18:43:30]Write i2c OK [18:43:30]MH_I2C_Read... [18:43:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:31]Read from MH i2c: E2 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 0B 00 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 0B 00 EA 19 00 83 AC DA F1 2E 11 65 B7 90 00 D4 [18:43:31]RAPDU: 83 AC DA F1 2E 11 65 B7 90 00 [18:43:31]wFMCommunicate OK [18:43:31]SAM_PROTO_SignData done [18:43:31]FM_MakeSignedData done [18:43:31]CreateOFDProtocolMessage [18:43:31]wFMCommunicate request_size=4 [18:43:31]MH_SAM_APDU [18:43:31]CAPDU: 80 11 00 00 [18:43:31]Write to MH i2c: E2 08 00 EB 19 80 11 00 00 00 00 00 00 7E [18:43:31]Write i2c OK [18:43:31]MH_I2C_Read... [18:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:31]Read from MH i2c: E2 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 17 00 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 17 00 EB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C5 [18:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:43:31]wFMCommunicate OK [18:43:31]CreateOFDProtocolMessage done [18:43:31]OFDSenderStorePacket 50632 [18:43:31]StoreOFDPacket docnum=50632 [18:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 22 01 00 00 6F 66 1A 01 E3 AB 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 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 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 1B 00 00 00 00 07 04 06 00 DC FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 D4 E6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C8 C5 00 00 35 04 06 00 54 26 18 40 69 B6 83 AC DA F1 2E 11 65 B7 [18:43:31]CheckFolder [18:43:31]dirname=/storage/ofd_packets [18:43:31]CheckFolder done [18:43:31]ProducePacketName [18:43:31]name=ofd_packets/00050632 [18:43:31]NVStorageSaveData ofd_packets/00050632 [18:43:31]File name is /storage/ofd_packets/00050632 [18:43:31]Write 320 bytes [18:43:31]NVStorageSaveData done [18:43:31]OFDSenderStorePacket done [18:43:31]KKMCreateOFDPacket done [18:43:31]NVStorageSaveData kkm_last_timestamp [18:43:31]File name is /storage/kkm_last_timestamp [18:43:31]Write 4 bytes [18:43:31]NVStorageSaveData done [18:43:31]ExternCall_PrintAddStr [18:43:31]wPrintStart [18:43:31]Write to MH i2c: 01 00 00 EC 19 05 [18:43:31]Write i2c OK [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: 01 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: 01 07 00 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: 01 07 00 EC 19 00 00 00 00 00 FF 0F 1A [18:43:31]RasterBufferAndPrint [18:43:31]line Счет N : (3)164519 [18:43:31]line ИНН: 02508201610067 [18:43:31]line Контрольно-Кассовый Чек [18:43:31]line ПРОДАЖА [18:43:31]line Товар: 4700003150400 [18:43:31]line Водка Фрунзе 0,75 [18:43:31]line 1.000 * 655.00 [18:43:31]line = 655.00 [18:43:31]line НДС 12% НСП 1% [18:43:31]line > о реализуемом товаре [18:43:31]line ИТОГО: 655.00 [18:43:31]line НСП 1% : 5.80 [18:43:31]line НДС 12% : 69.56 [18:43:31]line Наличными: 655.00 [18:43:31]line Безнал.: 0.00 [18:43:31]line Место: АЗС № 80 "Партнер Нефть" [18:43:31]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:43:31]line СНО: Общий режим [18:43:31]line Чек 132 25.10.2024 18:43 [18:43:31]line Смена: 493 ФФД: 1.0 [18:43:31]line ЗНМ: 0300000090 [18:43:31]line РНМ: 0000000000097022 [18:43:31]line Версия ККМ: 001 [18:43:31]line ФМ: 0000000000875000 [18:43:31]line ФД: 50632 [18:43:31]line ФПД: 92522592364982 [18:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184332&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50632&fm=92522592364982&tin=02508201610067®Number=0000000000097022&sum=65500 [18:43:31]OFD Sender: Processing packet 50632 [packets to send 7, broken 6] [18:43:31]ProducePacketName [18:43:31]name=ofd_packets/00050632 [18:43:31]OFD Sender: To server: pG, [18:43:31]CommunicateWithHost lk.salyk.kg:30040 [18:43:31]ConnectInit lk.salyk.kg [18:43:31]line 0 [18:43:31]written 0, free lines is 4095 [18:43:31]Connected sock=10 [18:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 22 01 00 00 6F 66 1A 01 E3 AB 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 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 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 1B 00 00 00 00 07 04 06 00 DC FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 D4 E6 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C8 C5 00 00 35 04 06 00 54 26 18 40 69 B6 83 AC DA F1 2E 11 65 B7 [18:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F1 9B 47 00 56 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C8 C5 00 00 F4 03 04 00 64 92 1B 67 B6 04 01 00 00 EF E7 95 10 EC 19 D6 F4 [18:43:31]CommunicateWithHost err = 0 [18:43:31]CheckOFDResponse [18:43:31]1017 (14) - 77093643461234 [18:43:31]1041 (16) - 0000000000875000 [18:43:31]1040 (4) - 50632 [18:43:31]1012 (4) - 25.10.2024 12:43 [18:43:31]1206 (1) - 0 [18:43:31]OFD Sender: Remove packet 50632 [18:43:31]ProducePacketName [18:43:31]name=ofd_packets/00050632 [18:43:31]NVStorageDeleteData [18:43:31]Write to MH i2c: 01 00 00 14 1A 2E [18:43:31]Write i2c OK [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: 01 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: 01 07 00 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: 01 07 00 14 1A 00 00 00 00 00 21 0D 63 [18:43:31]RasterBufferAndPrint [18:43:31]line [18:43:31]line [18:43:31]line [18:43:31]line [18:43:31]line [18:43:31]written 0, free lines is 3370 [18:43:31]process_action close_receipt done [18:43:31]requested_data is exist [18:43:31]produce_requested_data [18:43:31]requested_item fm.sn is exist - process it [18:43:31]wFMCommunicate request_size=4 [18:43:31]MH_SAM_APDU [18:43:31]CAPDU: 80 11 00 00 [18:43:31]Write to MH i2c: E2 08 00 1B 1A 80 11 00 00 00 00 00 00 AF [18:43:31]Write i2c OK [18:43:31]MH_I2C_Read... [18:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:31]Read from MH i2c: E2 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 17 00 [18:43:31]MH_I2C_Read... [18:43:31]Read from MH i2c: E2 17 00 1B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F6 [18:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:43:31]wFMCommunicate OK [18:43:31]requested_item fd.num is exist - process it [18:43:31]SAM_PROTO_GetFieldsCounters [18:43:31]wFMCommunicate request_size=4 [18:43:31]MH_SAM_APDU [18:43:31]CAPDU: 80 13 00 00 [18:43:31]Write to MH i2c: E2 08 00 1C 1A 80 13 00 00 00 00 00 00 B2 [18:43:31]Write i2c OK [18:43:31]MH_I2C_Read... [18:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:32]Read from MH i2c: E2 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 62 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 62 00 1C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [18:43:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:32]wFMCommunicate OK [18:43:32]SAM_PROTO_GetFieldsCounters done [18:43:32]requested_item shift.num is exist - process it [18:43:32]requested_item shift.opened is exist - process it [18:43:32]req_shift_opened [18:43:32]FM_GetShiftState [18:43:32]SAM_PROTO_GetShiftState [18:43:32]wFMCommunicate request_size=4 [18:43:32]MH_SAM_APDU [18:43:32]CAPDU: 80 13 01 00 [18:43:32]Write to MH i2c: E2 08 00 1D 1A 80 13 01 00 00 00 00 00 B4 [18:43:32]Write i2c OK [18:43:32]MH_I2C_Read... [18:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:32]Read from MH i2c: E2 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 0E 00 [18:43:32]MH_I2C_Read... [18:43:32]Read from MH i2c: E2 0E 00 1D 1A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 AC [18:43:32]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:43:32]wFMCommunicate OK [18:43:32]SAM_PROTO_GetShiftState done [18:43:32]FM_GetShiftState done [18:43:32]req_shift_opened done [18:43:32]requested_item shift.open_date is exist - process it [18:43:32]req_shift_open_date [18:43:32]req_shift_open_date done [18:43:32]produce_requested_data done [18:43:32]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50632,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:43:32]process_action_free close_receipt [18:43:32]json_value_free [18:43:32]json_value_free done [18:43:32]process_json_proto returns [18:43:32]Send response to host [18:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50632,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:43:32]free response buf [18:43:32]execute_script done [18:43:32]execute_script returns [18:43:32]free content buf [18:43:32]Sock 7.Close socket [18:43:32]Sock 7.Thread stoped [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:25]accept exits with 9 [18:44:25]New connection [18:44:25]New thread 3066789220 created [18:44:25]Thread 3066645860 joined [18:44:25]Waiting for new connection... [18:44:25] Sock 9.Parse request [18:44:25]Sock 9.Check first char [18:44:25]Sock 9.First char is OK [18:44:25]request: POST /json_proto HTTP/1.0 [18:44:25]Method: POST [18:44:25]URL: /json_proto [18:44:25]Method is POST - this is cgi request [18:44:25]url: /json_proto [18:44:25]query_string will be loaded in cgi processing [18:44:25]execute_cgi json_proto POST (null) [18:44:25]execute_cgi path=json_proto method=POST [18:44:25]POST find Content-Length [18:44:25]Host: 172.17.49.196:8080 [18:44:25]Content-Length: 749 [18:44:25]Content-Type: application/json [18:44:25] [18:44:25]POST finish read [18:44:25]Found Content-Length = 749 [18:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164520", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:25]execute_script... [18:44:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164520", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:25]POST & json_proto [18:44:25]process_json_proto [18:44:25]json parsed OK: [18:44:25]protocol is kg_v1.0 [18:44:25]action value=close_receipt [18:44:25]process_action close_receipt [18:44:25]cmd_close_receipt [18:44:25]MH_GetDate [18:44:25]Write to MH i2c: F0 00 00 1E 1A 27 [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: F0 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: F0 09 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: F0 09 00 1E 1A 00 0C E7 1B 67 BD 3B 11 67 15 [18:44:25]GetLastDocTimeStamp 1729881812 [18:44:25]current date 1729881868 [18:44:25]FM_GetShiftState [18:44:25]SAM_PROTO_GetShiftState [18:44:25]wFMCommunicate request_size=4 [18:44:25]MH_SAM_APDU [18:44:25]CAPDU: 80 13 01 00 [18:44:25]Write to MH i2c: E2 08 00 1F 1A 80 13 01 00 00 00 00 00 B6 [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:25]Read from MH i2c: E2 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 0E 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 0E 00 1F 1A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 AE [18:44:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:44:25]wFMCommunicate OK [18:44:25]SAM_PROTO_GetShiftState done [18:44:25]FM_GetShiftState done [18:44:25]opened in 1729815177 [18:44:25]opened+sec_in_day 1729901577 [18:44:25]quantity*price = 16000 [18:44:25]sum+1 = 16001 [18:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 133 25.10.2024 18:44 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50633 ФПД: 206775353352018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184428&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50633&fm=206775353352018&tin=02508201610067®Number=0000000000097022&sum=16000 0 [18:44:26]StoreToDocumentArchive [18:44:26]shift 493 fd 50633 [18:44:26]save to /storage/0493/doc_00050633 [18:44:26]save last doc name /storage/0493/doc_00050633 to /storage/kkm_last_doc_name [18:44:26]save OK [18:44:26]Clear old archive folders... [18:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:44:26]tlvbuf is 01E629D0 [18:44:26]SAM_PROTO_ClearQueue [18:44:26]wFMCommunicate request_size=4 [18:44:26]MH_SAM_APDU [18:44:26]CAPDU: 80 09 00 00 [18:44:26]Write to MH i2c: E2 08 00 2C 1A 80 09 00 00 00 00 00 00 B8 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [18:44:26]RAPDU: 90 00 [18:44:26]wFMCommunicate OK [18:44:26]SAM_PROTO_ClearQueue done [18:44:26]KKMCreateOFDPacket [18:44:26]OFDProtocolAddRootSTLVToBuf [18:44:26]FM_MakeSignedData [18:44:26]FM_MakeSignedData [18:44:26]SAM_PROTO_SignData [18:44:26]wFMCommunicate request_size=4 [18:44:26]MH_SAM_APDU [18:44:26]CAPDU: 80 0D 01 02 [18:44:26]Write to MH i2c: E2 08 00 2D 1A 80 0D 01 02 00 00 00 00 C0 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 2D 1A 00 90 00 BB [18:44:26]RAPDU: 90 00 [18:44:26]wFMCommunicate OK [18:44:26]wFMCommunicate request_size=255 [18:44:26]MH_SAM_APDU [18:44:26]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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0C E7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [18:44:26]Write to MH i2c: E2 02 01 2E 1A 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0C E7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 F4 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 2E 1A 00 90 00 BC [18:44:26]RAPDU: 90 00 [18:44:26]wFMCommunicate OK [18:44:26]wFMCommunicate request_size=33 [18:44:26]MH_SAM_APDU [18:44:26]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C9 C5 00 00 35 04 06 00 BC 0F A3 7C 1F 52 [18:44:26]Write to MH i2c: E2 24 00 2F 1A 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C9 C5 00 00 35 04 06 00 BC 0F A3 7C 1F 52 00 00 2F [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 2F 1A 00 90 00 BD [18:44:26]RAPDU: 90 00 [18:44:26]wFMCommunicate OK [18:44:26]wFMCommunicate request_size=4 [18:44:26]MH_SAM_APDU [18:44:26]CAPDU: 80 0D 03 02 [18:44:26]Write to MH i2c: E2 08 00 30 1A 80 0D 03 02 00 00 00 00 C5 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 0B 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 0B 00 30 1A 00 BD 98 E2 E1 6D 60 48 03 90 00 F6 [18:44:26]RAPDU: BD 98 E2 E1 6D 60 48 03 90 00 [18:44:26]wFMCommunicate OK [18:44:26]SAM_PROTO_SignData done [18:44:26]FM_MakeSignedData done [18:44:26]CreateOFDProtocolMessage [18:44:26]wFMCommunicate request_size=4 [18:44:26]MH_SAM_APDU [18:44:26]CAPDU: 80 11 00 00 [18:44:26]Write to MH i2c: E2 08 00 31 1A 80 11 00 00 00 00 00 00 C5 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 17 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 17 00 31 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 0C [18:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:44:26]wFMCommunicate OK [18:44:26]CreateOFDProtocolMessage done [18:44:26]OFDSenderStorePacket 50633 [18:44:26]StoreOFDPacket docnum=50633 [18:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 BF 5F 1E 01 EC 95 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0C E7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C9 C5 00 00 35 04 06 00 BC 0F A3 7C 1F 52 BD 98 E2 E1 6D 60 48 03 [18:44:26]CheckFolder [18:44:26]dirname=/storage/ofd_packets [18:44:26]CheckFolder done [18:44:26]ProducePacketName [18:44:26]name=ofd_packets/00050633 [18:44:26]NVStorageSaveData ofd_packets/00050633 [18:44:26]File name is /storage/ofd_packets/00050633 [18:44:26]Write 324 bytes [18:44:26]NVStorageSaveData done [18:44:26]OFDSenderStorePacket done [18:44:26]KKMCreateOFDPacket done [18:44:26]NVStorageSaveData kkm_last_timestamp [18:44:26]File name is /storage/kkm_last_timestamp [18:44:26]Write 4 bytes [18:44:26]NVStorageSaveData done [18:44:26]ExternCall_PrintAddStr [18:44:26]wPrintStart [18:44:26]Write to MH i2c: 01 00 00 32 1A 4C [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: 01 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: 01 07 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: 01 07 00 32 1A 00 00 00 00 00 FF 0F 61 [18:44:26]RasterBufferAndPrint [18:44:26]line Счет N : (3)164520 [18:44:26]line ИНН: 02508201610067 [18:44:26]line Контрольно-Кассовый Чек [18:44:26]line ПРОДАЖА [18:44:26]line Товар: 48741958 [18:44:26]line Сигареты Parliament Aqua Blue [18:44:26]line 1.000 * 160.00 [18:44:26]line = 160.00 [18:44:26]line НДС 12% НСП 1% [18:44:26]line > о реализуемом товаре [18:44:26]line ИТОГО: 160.00 [18:44:26]line НСП 1% : 1.42 [18:44:26]line НДС 12% : 16.99 [18:44:26]line Наличными: 0.00 [18:44:26]line Безнал.: 160.00 [18:44:26]line Место: АЗС № 80 "Партнер Нефть" [18:44:26]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:44:26]line СНО: Общий режим [18:44:26]line Чек 133 25.10.2024 18:44 [18:44:26]line Смена: 493 ФФД: 1.0 [18:44:26]line ЗНМ: 0300000090 [18:44:26]line РНМ: 0000000000097022 [18:44:26]line Версия ККМ: 001 [18:44:26]line Платежная система: Mbank [18:44:26]line ФМ: 0000000000875000 [18:44:26]line ФД: 50633 [18:44:26]line ФПД: 206775353352018 [18:44:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T184428&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50633&fm=206775353352018&tin=02508201610067®Number=0000000000097022&sum=16000 [18:44:26]line 0 [18:44:26]written 0, free lines is 4095 [18:44:27]OFD Sender: Processing packet 50633 [packets to send 7, broken 6] [18:44:27]ProducePacketName [18:44:27]name=ofd_packets/00050633 [18:44:27]OFD Sender: To server: pG, [18:44:27]CommunicateWithHost lk.salyk.kg:30040 [18:44:27]ConnectInit lk.salyk.kg [18:44:27]Connected sock=11 [18:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 BF 5F 1E 01 EC 95 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0C E7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C9 C5 00 00 35 04 06 00 BC 0F A3 7C 1F 52 BD 98 E2 E1 6D 60 48 03 [18:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 BC A1 47 00 4A EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 C9 C5 00 00 F4 03 04 00 9B 92 1B 67 B6 04 01 00 00 5E D2 25 46 82 3F 0C D2 [18:44:27]CommunicateWithHost err = 0 [18:44:27]CheckOFDResponse [18:44:27]1017 (14) - 77093643461234 [18:44:27]1041 (16) - 0000000000875000 [18:44:27]1040 (4) - 50633 [18:44:27]1012 (4) - 25.10.2024 12:44 [18:44:27]1206 (1) - 0 [18:44:27]OFD Sender: Remove packet 50633 [18:44:27]ProducePacketName [18:44:27]name=ofd_packets/00050633 [18:44:27]NVStorageDeleteData [18:44:27]Write to MH i2c: 01 00 00 5C 1A 76 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 07 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 07 00 5C 1A 00 00 00 00 00 08 0D 92 [18:44:27]RasterBufferAndPrint [18:44:27]line [18:44:27]line [18:44:27]line [18:44:27]line [18:44:27]line [18:44:27]written 0, free lines is 3342 [18:44:27]process_action close_receipt done [18:44:27]requested_data is exist [18:44:27]produce_requested_data [18:44:27]requested_item fm.sn is exist - process it [18:44:27]wFMCommunicate request_size=4 [18:44:27]MH_SAM_APDU [18:44:27]CAPDU: 80 11 00 00 [18:44:27]Write to MH i2c: E2 08 00 63 1A 80 11 00 00 00 00 00 00 F7 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:27]Read from MH i2c: E2 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 17 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 17 00 63 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3E [18:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:44:27]wFMCommunicate OK [18:44:27]requested_item fd.num is exist - process it [18:44:27]SAM_PROTO_GetFieldsCounters [18:44:27]wFMCommunicate request_size=4 [18:44:27]MH_SAM_APDU [18:44:27]CAPDU: 80 13 00 00 [18:44:27]Write to MH i2c: E2 08 00 64 1A 80 13 00 00 00 00 00 00 FA [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:27]Read from MH i2c: E2 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 62 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 62 00 64 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [18:44:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 C9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:27]wFMCommunicate OK [18:44:27]SAM_PROTO_GetFieldsCounters done [18:44:27]requested_item shift.num is exist - process it [18:44:27]requested_item shift.opened is exist - process it [18:44:27]req_shift_opened [18:44:27]FM_GetShiftState [18:44:27]SAM_PROTO_GetShiftState [18:44:27]wFMCommunicate request_size=4 [18:44:27]MH_SAM_APDU [18:44:27]CAPDU: 80 13 01 00 [18:44:27]Write to MH i2c: E2 08 00 65 1A 80 13 01 00 00 00 00 00 FC [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:27]Read from MH i2c: E2 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 0E 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 0E 00 65 1A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F4 [18:44:27]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:44:27]wFMCommunicate OK [18:44:27]SAM_PROTO_GetShiftState done [18:44:27]FM_GetShiftState done [18:44:27]req_shift_opened done [18:44:27]requested_item shift.open_date is exist - process it [18:44:27]req_shift_open_date [18:44:27]req_shift_open_date done [18:44:27]produce_requested_data done [18:44:27]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50633,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:44:27]process_action_free close_receipt [18:44:27]json_value_free [18:44:27]json_value_free done [18:44:27]process_json_proto returns [18:44:27]Send response to host [18:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50633,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:44:27]free response buf [18:44:27]execute_script done [18:44:27]execute_script returns [18:44:27]free content buf [18:44:27]Sock 9.Close socket [18:44:27]Sock 9.Thread stoped [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:55]accept exits with 7 [18:50:55]New connection [18:50:55]New thread 3066645860 created [18:50:55]Thread 3066789220 joined [18:50:55]Waiting for new connection... [18:50:55] Sock 7.Parse request [18:50:55]Sock 7.Check first char [18:50:55]Sock 7.First char is OK [18:50:55]request: POST /json_proto HTTP/1.0 [18:50:55]Method: POST [18:50:55]URL: /json_proto [18:50:55]Method is POST - this is cgi request [18:50:55]url: /json_proto [18:50:55]query_string will be loaded in cgi processing [18:50:55]execute_cgi json_proto POST (null) [18:50:55]execute_cgi path=json_proto method=POST [18:50:55]POST find Content-Length [18:50:55]Host: 172.17.49.196:8080 [18:50:55]Content-Length: 3326 [18:50:55]Content-Type: application/json [18:50:55] [18:50:55]POST finish read [18:50:55]Found Content-Length = 3326 [18:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164521", "tax_sys" : 0, "items" : [ { "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420362", "name": "\u0421\u043E\u043A Rich \u0410\u043F\u0435\u043B\u044C\u0441\u0438\u043D 0,2", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1016.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:55]execute_script... [18:50:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164521", "tax_sys" : 0, "items" : [ { "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420362", "name": "\u0421\u043E\u043A Rich \u0410\u043F\u0435\u043B\u044C\u0441\u0438\u043D 0,2", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1016.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:55]POST & json_proto [18:50:55]process_json_proto [18:50:55]json parsed OK: [18:50:55]protocol is kg_v1.0 [18:50:55]action value=close_receipt [18:50:55]process_action close_receipt [18:50:55]cmd_close_receipt [18:50:55]MH_GetDate [18:50:55]Write to MH i2c: F0 00 00 66 1A 6F [18:50:55]Write i2c OK [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: F0 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: F0 09 00 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: F0 09 00 66 1A 00 92 E8 1B 67 BD 3B 11 67 E4 [18:50:55]GetLastDocTimeStamp 1729881868 [18:50:55]current date 1729882258 [18:50:55]FM_GetShiftState [18:50:55]SAM_PROTO_GetShiftState [18:50:55]wFMCommunicate request_size=4 [18:50:55]MH_SAM_APDU [18:50:55]CAPDU: 80 13 01 00 [18:50:55]Write to MH i2c: E2 08 00 67 1A 80 13 01 00 00 00 00 00 FE [18:50:55]Write i2c OK [18:50:55]MH_I2C_Read... [18:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:55]Read from MH i2c: E2 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: E2 0E 00 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: E2 0E 00 67 1A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F6 [18:50:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:50:55]wFMCommunicate OK [18:50:55]SAM_PROTO_GetShiftState done [18:50:55]FM_GetShiftState done [18:50:55]opened in 1729815177 [18:50:55]opened+sec_in_day 1729901577 [18:50:55]quantity*price = 16500 [18:50:55]sum+1 = 16501 [18:50:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700001610012 Пиво Арпа 0,5л 2.000 * 145.00 = 290.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 79.00 = 79.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600338001623 Вода Фруто НЯНЯ негазир д/детей 0,33л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870066000476 Палочки Алматинский Продукт сладкие 50г 1.000 * 27.00 = 27.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650075420362 Сок Rich Апельсин 0,2 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1016.00 НСП 1% : 9.00 НДС 12% : 107.90 Наличными: 1016.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 134 25.10.2024 18:50 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50634 ФПД: 17756556042194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185058&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50634&fm=17756556042194&tin=02508201610067®Number=0000000000097022&sum=101600 0 [18:50:57]StoreToDocumentArchive [18:50:57]shift 493 fd 50634 [18:50:57]save to /storage/0493/doc_00050634 [18:50:57]save last doc name /storage/0493/doc_00050634 to /storage/kkm_last_doc_name [18:50:57]save OK [18:50:57]Clear old archive folders... [18:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=1350 [18:50:57]tlvbuf is 01E56640 [18:50:57]SAM_PROTO_ClearQueue [18:50:57]wFMCommunicate request_size=4 [18:50:57]MH_SAM_APDU [18:50:57]CAPDU: 80 09 00 00 [18:50:57]Write to MH i2c: E2 08 00 74 1A 80 09 00 00 00 00 00 00 00 [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:57]Read from MH i2c: E2 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 03 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 03 00 74 1A 00 90 00 02 [18:50:57]RAPDU: 90 00 [18:50:57]wFMCommunicate OK [18:50:57]SAM_PROTO_ClearQueue done [18:50:57]KKMCreateOFDPacket [18:50:57]OFDProtocolAddRootSTLVToBuf [18:50:57]FM_MakeSignedData [18:50:57]FM_MakeSignedData [18:50:57]SAM_PROTO_SignData [18:50:57]wFMCommunicate request_size=4 [18:50:57]MH_SAM_APDU [18:50:57]CAPDU: 80 0D 01 02 [18:50:57]Write to MH i2c: E2 08 00 75 1A 80 0D 01 02 00 00 00 00 08 [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:57]Read from MH i2c: E2 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 03 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 03 00 75 1A 00 90 00 03 [18:50:57]RAPDU: 90 00 [18:50:57]wFMCommunicate OK [18:50:57]wFMCommunicate request_size=255 [18:50:57]MH_SAM_APDU [18:50:57]CAPDU: 80 0D 02 02 FA 03 00 46 05 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 [18:50:57]Write to MH i2c: E2 02 01 76 1A 80 0D 02 02 FA 00 03 00 46 05 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 00 08 [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:57]Read from MH i2c: E2 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 03 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 03 00 76 1A 00 90 00 04 [18:50:57]RAPDU: 90 00 [18:50:57]wFMCommunicate OK [18:50:57]wFMCommunicate request_size=255 [18:50:57]MH_SAM_APDU [18:50:57]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 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 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 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 [18:50:57]Write to MH i2c: E2 02 01 77 1A 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 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 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 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 00 00 80 [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:58]Read from MH i2c: E2 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 77 1A 00 90 00 05 [18:50:58]RAPDU: 90 00 [18:50:58]wFMCommunicate OK [18:50:58]wFMCommunicate request_size=255 [18:50:58]MH_SAM_APDU [18:50:58]CAPDU: 80 0D 02 02 FA D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 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 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 [18:50:58]Write to MH i2c: E2 02 01 78 1A 80 0D 02 02 FA 00 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 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 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 00 00 C9 [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]OFD Sender: No OFD packet to send [18:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:58]Read from MH i2c: E2 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 78 1A 00 90 00 06 [18:50:58]RAPDU: 90 00 [18:50:58]wFMCommunicate OK [18:50:58]wFMCommunicate request_size=255 [18:50:58]MH_SAM_APDU [18:50:58]CAPDU: 80 0D 02 02 FA D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 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 [18:50:58]Write to MH i2c: E2 02 01 79 1A 80 0D 02 02 FA 00 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 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 00 00 99 [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:58]Read from MH i2c: E2 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 79 1A 00 90 00 07 [18:50:58]RAPDU: 90 00 [18:50:58]wFMCommunicate OK [18:50:58]wFMCommunicate request_size=255 [18:50:58]MH_SAM_APDU [18:50:58]CAPDU: 80 0D 02 02 FA 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 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 64 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 33 36 32 06 04 20 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 90 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 2A 00 00 00 00 07 04 06 00 E0 8C 01 00 00 [18:50:58]Write to MH i2c: E2 02 01 7A 1A 80 0D 02 02 FA 00 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 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 64 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 33 36 32 06 04 20 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 90 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 2A 00 00 00 00 07 04 06 00 E0 8C 01 00 00 00 00 1C [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:58]Read from MH i2c: E2 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 7A 1A 00 90 00 08 [18:50:58]RAPDU: 90 00 [18:50:58]wFMCommunicate OK [18:50:58]wFMCommunicate request_size=109 [18:50:58]MH_SAM_APDU [18:50:58]CAPDU: 80 0D 02 02 68 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 92 E8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CA C5 00 00 35 04 06 00 10 26 45 37 1F D2 [18:50:58]Write to MH i2c: E2 70 00 7B 1A 80 0D 02 02 68 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 92 E8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CA C5 00 00 35 04 06 00 10 26 45 37 1F D2 00 00 99 [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 7B 1A 00 90 00 09 [18:50:59]RAPDU: 90 00 [18:50:59]wFMCommunicate OK [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 0D 03 02 [18:50:59]Write to MH i2c: E2 08 00 7C 1A 80 0D 03 02 00 00 00 00 11 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 0B 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 0B 00 7C 1A 00 CE DF 5A 80 8C A9 05 CF 90 00 A2 [18:50:59]RAPDU: CE DF 5A 80 8C A9 05 CF 90 00 [18:50:59]wFMCommunicate OK [18:50:59]SAM_PROTO_SignData done [18:50:59]FM_MakeSignedData done [18:50:59]CreateOFDProtocolMessage [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 11 00 00 [18:50:59]Write to MH i2c: E2 08 00 7D 1A 80 11 00 00 00 00 00 00 11 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 17 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 17 00 7D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 58 [18:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:50:59]wFMCommunicate OK [18:50:59]CreateOFDProtocolMessage done [18:50:59]OFDSenderStorePacket 50634 [18:50:59]StoreOFDPacket docnum=50634 [18:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 5A 05 00 00 62 B2 52 05 FB E9 5A 03 01 00 03 00 46 05 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 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 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 64 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 33 36 32 06 04 20 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 90 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 2A 00 00 00 00 07 04 06 00 E0 8C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 92 E8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CA C5 00 00 35 04 06 00 10 26 45 37 1F D2 CE DF 5A 80 8C A9 05 CF [18:50:59]CheckFolder [18:50:59]dirname=/storage/ofd_packets [18:50:59]CheckFolder done [18:50:59]ProducePacketName [18:50:59]name=ofd_packets/00050634 [18:50:59]NVStorageSaveData ofd_packets/00050634 [18:50:59]File name is /storage/ofd_packets/00050634 [18:50:59]Write 1400 bytes [18:50:59]NVStorageSaveData done [18:50:59]OFDSenderStorePacket done [18:50:59]KKMCreateOFDPacket done [18:50:59]NVStorageSaveData kkm_last_timestamp [18:50:59]File name is /storage/kkm_last_timestamp [18:50:59]Write 4 bytes [18:50:59]NVStorageSaveData done [18:50:59]ExternCall_PrintAddStr [18:50:59]wPrintStart [18:50:59]Write to MH i2c: 01 00 00 7E 1A 98 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 7E 1A 00 00 00 00 00 FF 0F AD [18:50:59]RasterBufferAndPrint [18:50:59]line Счет N : (3)164521 [18:50:59]line ИНН: 02508201610067 [18:50:59]line Контрольно-Кассовый Чек [18:50:59]line ПРОДАЖА [18:50:59]line Товар: 4680988568943 [18:50:59]line Жид/ст ПН апельсин летняя 4,5л [18:50:59]line 1.000 * 165.00 [18:50:59]line = 165.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4660085515163 [18:50:59]line Шок Батончик Сникерс супер 95/80г [18:50:59]line 1.000 * 90.00 [18:50:59]line = 90.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4607065000790 [18:50:59]line Шок M&M`s с арахисом 45г [18:50:59]line 1.000 * 70.00 [18:50:59]line = 70.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4700001610012 [18:50:59]line Пиво Арпа 0,5л [18:50:59]line 2.000 * 145.00 [18:50:59]line = 290.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4700000310043 [18:50:59]line Вода Жалалабат 27 1л [18:50:59]line 1.000 * 79.00 [18:50:59]line = 79.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4600338001623 [18:50:59]line Вода Фруто НЯНЯ негазир д/детей 0,33л [18:50:59]line 1.000 * 80.00 [18:50:59]line = 80.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4700000160358 [18:50:59]line Вода Легенда 1л [18:50:59]line 1.000 * 50.00 [18:50:59]line = 50.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4870066000476 [18:50:59]line Палочки Алматинский Продукт сладкие 50г [18:50:59]line 1.000 * 27.00 [18:50:59]line = 27.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4870112003956 [18:50:59]line Шок батончик ALBENI SUPER Альбени Супер [18:50:59]line 1.000 * 75.00 [18:50:59]line = 75.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line Товар: 4650075420362 [18:50:59]line Сок Rich Апельсин 0,2 [18:50:59]line 1.000 * 90.00 [18:50:59]line = 90.00 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line ИТОГО: 1016.00 [18:50:59]line НСП 1% : 9.00 [18:50:59]line НДС 12% : 107.90 [18:50:59]line Наличными: 1016.00 [18:50:59]line Безнал.: 0.00 [18:50:59]line Место: АЗС № 80 "Партнер Нефть" [18:50:59]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:50:59]line СНО: Общий режим [18:50:59]line Чек 134 25.10.2024 18:50 [18:50:59]line Смена: 493 ФФД: 1.0 [18:50:59]line ЗНМ: 0300000090 [18:50:59]line РНМ: 0000000000097022 [18:50:59]line Версия ККМ: 001 [18:50:59]line ФМ: 0000000000875000 [18:50:59]line ФД: 50634 [18:50:59]line ФПД: 17756556042194 [18:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185058&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50634&fm=17756556042194&tin=02508201610067®Number=0000000000097022&sum=101600 [18:50:59]line 0 [18:50:59]written 0, free lines is 4095 [18:50:59]OFD Sender: Processing packet 50634 [packets to send 7, broken 6] [18:50:59]ProducePacketName [18:50:59]name=ofd_packets/00050634 [18:50:59]OFD Sender: To server: pG, [18:50:59]CommunicateWithHost lk.salyk.kg:30040 [18:50:59]ConnectInit lk.salyk.kg [18:50:59]Connected sock=10 [18:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 5A 05 00 00 62 B2 52 05 FB E9 5A 03 01 00 03 00 46 05 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 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 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 64 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 33 36 32 06 04 20 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 90 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 2A 00 00 00 00 07 04 06 00 E0 8C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 92 E8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CA C5 00 00 35 04 06 00 10 26 45 37 1F D2 CE DF 5A 80 8C A9 05 CF [18:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F6 06 47 00 12 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CA C5 00 00 F4 03 04 00 24 94 1B 67 B6 04 01 00 00 EA 85 09 E1 6F E0 88 91 [18:51:00]CommunicateWithHost err = 0 [18:51:00]CheckOFDResponse [18:51:00]1017 (14) - 77093643461234 [18:51:00]1041 (16) - 0000000000875000 [18:51:00]1040 (4) - 50634 [18:51:00]1012 (4) - 25.10.2024 12:50 [18:51:00]1206 (1) - 0 [18:51:00]OFD Sender: Remove packet 50634 [18:51:00]ProducePacketName [18:51:00]name=ofd_packets/00050634 [18:51:00]NVStorageDeleteData [18:51:00]Write to MH i2c: 01 00 00 E1 1A FB [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 07 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 07 00 E1 1A 00 00 00 00 00 53 0A 5F [18:51:00]RasterBufferAndPrint [18:51:00]line [18:51:00]line [18:51:00]line [18:51:00]line [18:51:00]line [18:51:00]written 0, free lines is 2662 [18:51:00]process_action close_receipt done [18:51:00]requested_data is exist [18:51:00]produce_requested_data [18:51:00]requested_item fm.sn is exist - process it [18:51:00]wFMCommunicate request_size=4 [18:51:00]MH_SAM_APDU [18:51:00]CAPDU: 80 11 00 00 [18:51:00]Write to MH i2c: E2 08 00 E8 1A 80 11 00 00 00 00 00 00 7C [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:00]Read from MH i2c: E2 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 17 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 17 00 E8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C3 [18:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:51:00]wFMCommunicate OK [18:51:00]requested_item fd.num is exist - process it [18:51:00]SAM_PROTO_GetFieldsCounters [18:51:00]wFMCommunicate request_size=4 [18:51:00]MH_SAM_APDU [18:51:00]CAPDU: 80 13 00 00 [18:51:00]Write to MH i2c: E2 08 00 E9 1A 80 13 00 00 00 00 00 00 7F [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]OFD Sender: No OFD packet to send [18:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:00]Read from MH i2c: E2 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 62 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 62 00 E9 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [18:51:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:00]wFMCommunicate OK [18:51:00]SAM_PROTO_GetFieldsCounters done [18:51:00]requested_item shift.num is exist - process it [18:51:00]requested_item shift.opened is exist - process it [18:51:00]req_shift_opened [18:51:00]FM_GetShiftState [18:51:00]SAM_PROTO_GetShiftState [18:51:00]wFMCommunicate request_size=4 [18:51:00]MH_SAM_APDU [18:51:00]CAPDU: 80 13 01 00 [18:51:00]Write to MH i2c: E2 08 00 EA 1A 80 13 01 00 00 00 00 00 81 [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:01]Read from MH i2c: E2 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 0E 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 0E 00 EA 1A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 79 [18:51:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:51:01]wFMCommunicate OK [18:51:01]SAM_PROTO_GetShiftState done [18:51:01]FM_GetShiftState done [18:51:01]req_shift_opened done [18:51:01]requested_item shift.open_date is exist - process it [18:51:01]req_shift_open_date [18:51:01]req_shift_open_date done [18:51:01]produce_requested_data done [18:51:01]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50634,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:51:01]process_action_free close_receipt [18:51:01]json_value_free [18:51:01]json_value_free done [18:51:01]process_json_proto returns [18:51:01]Send response to host [18:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50634,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:51:01]free response buf [18:51:01]execute_script done [18:51:01]execute_script returns [18:51:01]free content buf [18:51:01]Sock 7.Close socket [18:51:01]Sock 7.Thread stoped [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]accept exits with 9 [18:52:05]New connection [18:52:05]New thread 3066789220 created [18:52:05]Thread 3066645860 joined [18:52:05]Waiting for new connection... [18:52:05] Sock 9.Parse request [18:52:05]Sock 9.Check first char [18:52:05]Sock 9.First char is OK [18:52:05]request: POST /json_proto HTTP/1.0 [18:52:05]Method: POST [18:52:05]URL: /json_proto [18:52:05]Method is POST - this is cgi request [18:52:05]url: /json_proto [18:52:05]query_string will be loaded in cgi processing [18:52:05]execute_cgi json_proto POST (null) [18:52:05]execute_cgi path=json_proto method=POST [18:52:05]POST find Content-Length [18:52:05]Host: 172.17.49.196:8080 [18:52:05]Content-Length: 679 [18:52:05]Content-Type: application/json [18:52:05] [18:52:05]POST finish read [18:52:05]Found Content-Length = 679 [18:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164522", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\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" ] } } [18:52:05]execute_script... [18:52:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164522", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\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" ] } } [18:52:05]POST & json_proto [18:52:05]process_json_proto [18:52:05]json parsed OK: [18:52:05]protocol is kg_v1.0 [18:52:05]action value=close_receipt [18:52:05]process_action close_receipt [18:52:05]cmd_close_receipt [18:52:05]MH_GetDate [18:52:05]Write to MH i2c: F0 00 00 EB 1A F4 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: F0 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: F0 09 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: F0 09 00 EB 1A 00 D8 E8 1B 67 BD 3B 11 67 AF [18:52:05]GetLastDocTimeStamp 1729882258 [18:52:05]current date 1729882328 [18:52:05]FM_GetShiftState [18:52:05]SAM_PROTO_GetShiftState [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 13 01 00 [18:52:05]Write to MH i2c: E2 08 00 EC 1A 80 13 01 00 00 00 00 00 83 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0E 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0E 00 EC 1A 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 7B [18:52:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:52:05]wFMCommunicate OK [18:52:05]SAM_PROTO_GetShiftState done [18:52:05]FM_GetShiftState done [18:52:05]opened in 1729815177 [18:52:05]opened+sec_in_day 1729901577 [18:52:05]quantity*price = 8000 [18:52:05]sum+1 = 8001 [18:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 135 25.10.2024 18:52 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50635 ФПД: 100259365603396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185208&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50635&fm=100259365603396&tin=02508201610067®Number=0000000000097022&sum=8000 0 [18:52:06]StoreToDocumentArchive [18:52:06]shift 493 fd 50635 [18:52:06]save to /storage/0493/doc_00050635 [18:52:06]save last doc name /storage/0493/doc_00050635 to /storage/kkm_last_doc_name [18:52:06]save OK [18:52:06]Clear old archive folders... [18:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:52:06]tlvbuf is 01E3AF80 [18:52:06]SAM_PROTO_ClearQueue [18:52:06]wFMCommunicate request_size=4 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 09 00 00 [18:52:06]Write to MH i2c: E2 08 00 F9 1A 80 09 00 00 00 00 00 00 85 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:06]Read from MH i2c: E2 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 03 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [18:52:06]RAPDU: 90 00 [18:52:06]wFMCommunicate OK [18:52:06]SAM_PROTO_ClearQueue done [18:52:06]KKMCreateOFDPacket [18:52:06]OFDProtocolAddRootSTLVToBuf [18:52:06]FM_MakeSignedData [18:52:06]FM_MakeSignedData [18:52:06]SAM_PROTO_SignData [18:52:06]wFMCommunicate request_size=4 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 0D 01 02 [18:52:06]Write to MH i2c: E2 08 00 FA 1A 80 0D 01 02 00 00 00 00 8D [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:06]Read from MH i2c: E2 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 03 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 03 00 FA 1A 00 90 00 88 [18:52:06]RAPDU: 90 00 [18:52:06]wFMCommunicate OK [18:52:06]wFMCommunicate request_size=255 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 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 87 00 00 00 F4 03 04 00 D8 E8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:52:06]Write to MH i2c: E2 02 01 FB 1A 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 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 87 00 00 00 F4 03 04 00 D8 E8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 46 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:06]Read from MH i2c: E2 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 03 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 03 00 FB 1A 00 90 00 89 [18:52:06]RAPDU: 90 00 [18:52:06]wFMCommunicate OK [18:52:06]wFMCommunicate request_size=53 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CB C5 00 00 35 04 06 00 5B 2F 73 DF 48 44 [18:52:06]Write to MH i2c: E2 38 00 FC 1A 80 0D 02 02 30 00 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CB C5 00 00 35 04 06 00 5B 2F 73 DF 48 44 00 00 6C [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:06]Read from MH i2c: E2 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 03 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 03 00 FC 1A 00 90 00 8A [18:52:06]RAPDU: 90 00 [18:52:06]wFMCommunicate OK [18:52:06]wFMCommunicate request_size=4 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 0D 03 02 [18:52:06]Write to MH i2c: E2 08 00 FD 1A 80 0D 03 02 00 00 00 00 92 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:07]Read from MH i2c: E2 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: E2 0B 00 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: E2 0B 00 FD 1A 00 6F A0 5F 66 5E 25 33 3C 90 00 59 [18:52:07]RAPDU: 6F A0 5F 66 5E 25 33 3C 90 00 [18:52:07]wFMCommunicate OK [18:52:07]SAM_PROTO_SignData done [18:52:07]FM_MakeSignedData done [18:52:07]CreateOFDProtocolMessage [18:52:07]wFMCommunicate request_size=4 [18:52:07]MH_SAM_APDU [18:52:07]CAPDU: 80 11 00 00 [18:52:07]Write to MH i2c: E2 08 00 FE 1A 80 11 00 00 00 00 00 00 92 [18:52:07]Write i2c OK [18:52:07]MH_I2C_Read... [18:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:07]Read from MH i2c: E2 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: E2 17 00 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: E2 17 00 FE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D9 [18:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:52:07]wFMCommunicate OK [18:52:07]CreateOFDProtocolMessage done [18:52:07]OFDSenderStorePacket 50635 [18:52:07]StoreOFDPacket docnum=50635 [18:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 75 C8 32 01 3D 10 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 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 87 00 00 00 F4 03 04 00 D8 E8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CB C5 00 00 35 04 06 00 5B 2F 73 DF 48 44 6F A0 5F 66 5E 25 33 3C [18:52:07]CheckFolder [18:52:07]dirname=/storage/ofd_packets [18:52:07]CheckFolder done [18:52:07]ProducePacketName [18:52:07]name=ofd_packets/00050635 [18:52:07]NVStorageSaveData ofd_packets/00050635 [18:52:07]File name is /storage/ofd_packets/00050635 [18:52:07]Write 344 bytes [18:52:07]NVStorageSaveData done [18:52:07]OFDSenderStorePacket done [18:52:07]KKMCreateOFDPacket done [18:52:07]NVStorageSaveData kkm_last_timestamp [18:52:07]File name is /storage/kkm_last_timestamp [18:52:07]Write 4 bytes [18:52:07]NVStorageSaveData done [18:52:07]ExternCall_PrintAddStr [18:52:07]wPrintStart [18:52:07]Write to MH i2c: 01 00 00 FF 1A 19 [18:52:07]Write i2c OK [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: 01 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: 01 07 00 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: 01 07 00 FF 1A 00 00 00 00 00 FF 0F 2E [18:52:07]RasterBufferAndPrint [18:52:07]line Счет N : (3)164522 [18:52:07]line ИНН: 02508201610067 [18:52:07]line Контрольно-Кассовый Чек [18:52:07]line ПРОДАЖА [18:52:07]line Товар: 4700003010353 [18:52:07]line Напиток Let`s Go! с/с груша ПЭТ 1л [18:52:07]line 1.000 * 80.00 [18:52:07]line = 80.00 [18:52:07]line НДС 12% НСП 1% [18:52:07]line > о реализуемом товаре [18:52:07]line ИТОГО: 80.00 [18:52:07]line НСП 1% : 0.71 [18:52:07]line НДС 12% : 8.50 [18:52:07]line Наличными: 80.00 [18:52:07]line Безнал.: 0.00 [18:52:07]line Место: АЗС № 80 "Партнер Нефть" [18:52:07]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:52:07]line СНО: Общий режим [18:52:07]line Чек 135 25.10.2024 18:52 [18:52:07]line Смена: 493 ФФД: 1.0 [18:52:07]line ЗНМ: 0300000090 [18:52:07]line РНМ: 0000000000097022 [18:52:07]line Версия ККМ: 001 [18:52:07]line ФМ: 0000000000875000 [18:52:07]line ФД: 50635 [18:52:07]line ФПД: 100259365603396 [18:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185208&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50635&fm=100259365603396&tin=02508201610067®Number=0000000000097022&sum=8000 [18:52:07]OFD Sender: Processing packet 50635 [packets to send 7, broken 6] [18:52:07]ProducePacketName [18:52:07]name=ofd_packets/00050635 [18:52:07]OFD Sender: To server: pG, [18:52:07]CommunicateWithHost lk.salyk.kg:30040 [18:52:07]ConnectInit lk.salyk.kg [18:52:07]line 0 [18:52:07]written 0, free lines is 4095 [18:52:07]Connected sock=10 [18:52:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 75 C8 32 01 3D 10 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 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 87 00 00 00 F4 03 04 00 D8 E8 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CB C5 00 00 35 04 06 00 5B 2F 73 DF 48 44 6F A0 5F 66 5E 25 33 3C [18:52:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 EB 47 47 00 D4 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CB C5 00 00 F4 03 04 00 68 94 1B 67 B6 04 01 00 00 25 FE 2D 10 4C 66 2C 34 [18:52:07]CommunicateWithHost err = 0 [18:52:07]CheckOFDResponse [18:52:07]1017 (14) - 77093643461234 [18:52:07]1041 (16) - 0000000000875000 [18:52:07]1040 (4) - 50635 [18:52:07]1012 (4) - 25.10.2024 12:51 [18:52:07]1206 (1) - 0 [18:52:07]OFD Sender: Remove packet 50635 [18:52:07]ProducePacketName [18:52:07]name=ofd_packets/00050635 [18:52:07]NVStorageDeleteData [18:52:07]Write to MH i2c: 01 00 00 28 1B 43 [18:52:07]Write i2c OK [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: 01 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: 01 07 00 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: 01 07 00 28 1B 00 00 00 00 00 15 0D 6C [18:52:07]RasterBufferAndPrint [18:52:07]line [18:52:07]line [18:52:07]line [18:52:07]line [18:52:07]line [18:52:07]written 0, free lines is 3353 [18:52:07]process_action close_receipt done [18:52:07]requested_data is exist [18:52:07]produce_requested_data [18:52:07]requested_item fm.sn is exist - process it [18:52:07]wFMCommunicate request_size=4 [18:52:07]MH_SAM_APDU [18:52:07]CAPDU: 80 11 00 00 [18:52:07]Write to MH i2c: E2 08 00 2F 1B 80 11 00 00 00 00 00 00 C4 [18:52:07]Write i2c OK [18:52:07]MH_I2C_Read... [18:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:07]Read from MH i2c: E2 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: E2 17 00 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: E2 17 00 2F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 0B [18:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:52:07]wFMCommunicate OK [18:52:07]requested_item fd.num is exist - process it [18:52:07]SAM_PROTO_GetFieldsCounters [18:52:07]wFMCommunicate request_size=4 [18:52:07]MH_SAM_APDU [18:52:07]CAPDU: 80 13 00 00 [18:52:07]Write to MH i2c: E2 08 00 30 1B 80 13 00 00 00 00 00 00 C7 [18:52:07]Write i2c OK [18:52:07]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 62 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 62 00 30 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [18:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_GetFieldsCounters done [18:52:08]requested_item shift.num is exist - process it [18:52:08]requested_item shift.opened is exist - process it [18:52:08]req_shift_opened [18:52:08]FM_GetShiftState [18:52:08]SAM_PROTO_GetShiftState [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 13 01 00 [18:52:08]Write to MH i2c: E2 08 00 31 1B 80 13 01 00 00 00 00 00 C9 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0E 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0E 00 31 1B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 C1 [18:52:08]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_GetShiftState done [18:52:08]FM_GetShiftState done [18:52:08]req_shift_opened done [18:52:08]requested_item shift.open_date is exist - process it [18:52:08]req_shift_open_date [18:52:08]req_shift_open_date done [18:52:08]produce_requested_data done [18:52:08]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50635,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:52:08]process_action_free close_receipt [18:52:08]json_value_free [18:52:08]json_value_free done [18:52:08]process_json_proto returns [18:52:08]Send response to host [18:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50635,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:52:08]free response buf [18:52:08]execute_script done [18:52:08]execute_script returns [18:52:08]free content buf [18:52:08]Sock 9.Close socket [18:52:08]Sock 9.Thread stoped [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:26]accept exits with 7 [18:56:26]New connection [18:56:26]New thread 3066645860 created [18:56:26]Thread 3066789220 joined [18:56:26]Waiting for new connection... [18:56:26] Sock 7.Parse request [18:56:26]Sock 7.Check first char [18:56:26]Sock 7.First char is OK [18:56:26]request: POST /json_proto HTTP/1.0 [18:56:26]Method: POST [18:56:26]URL: /json_proto [18:56:26]Method is POST - this is cgi request [18:56:26]url: /json_proto [18:56:26]query_string will be loaded in cgi processing [18:56:26]execute_cgi json_proto POST (null) [18:56:26]execute_cgi path=json_proto method=POST [18:56:26]POST find Content-Length [18:56:26]Host: 172.17.49.196:8080 [18:56:26]Content-Length: 944 [18:56:26]Content-Type: application/json [18:56:26] [18:56:26]POST finish read [18:56:26]Found Content-Length = 944 [18:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164523", "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" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:26]execute_script... [18:56:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164523", "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" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:26]POST & json_proto [18:56:26]process_json_proto [18:56:26]json parsed OK: [18:56:26]protocol is kg_v1.0 [18:56:26]action value=close_receipt [18:56:26]process_action close_receipt [18:56:26]cmd_close_receipt [18:56:26]MH_GetDate [18:56:26]Write to MH i2c: F0 00 00 32 1B 3C [18:56:26]Write i2c OK [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: F0 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: F0 09 00 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: F0 09 00 32 1B 00 DD E9 1B 67 BD 3B 11 67 FD [18:56:26]GetLastDocTimeStamp 1729882328 [18:56:26]current date 1729882589 [18:56:26]FM_GetShiftState [18:56:26]SAM_PROTO_GetShiftState [18:56:26]wFMCommunicate request_size=4 [18:56:26]MH_SAM_APDU [18:56:26]CAPDU: 80 13 01 00 [18:56:26]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [18:56:26]Write i2c OK [18:56:26]MH_I2C_Read... [18:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:26]Read from MH i2c: E2 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: E2 0E 00 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 C3 [18:56:26]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:56:26]wFMCommunicate OK [18:56:26]SAM_PROTO_GetShiftState done [18:56:26]FM_GetShiftState done [18:56:26]opened in 1729815177 [18:56:26]opened+sec_in_day 1729901577 [18:56:26]quantity*price = 14000 [18:56:26]sum+1 = 14001 [18:56:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 136 25.10.2024 18:56 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50636 ФПД: 190241690645604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185629&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50636&fm=190241690645604&tin=02508201610067®Number=0000000000097022&sum=25500 0 [18:56:27]StoreToDocumentArchive [18:56:27]shift 493 fd 50636 [18:56:27]save to /storage/0493/doc_00050636 [18:56:27]save last doc name /storage/0493/doc_00050636 to /storage/kkm_last_doc_name [18:56:27]save OK [18:56:27]Clear old archive folders... [18:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=403 [18:56:27]tlvbuf is 01E55E80 [18:56:27]SAM_PROTO_ClearQueue [18:56:27]wFMCommunicate request_size=4 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 09 00 00 [18:56:27]Write to MH i2c: E2 08 00 40 1B 80 09 00 00 00 00 00 00 CD [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:27]Read from MH i2c: E2 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [18:56:27]RAPDU: 90 00 [18:56:27]wFMCommunicate OK [18:56:27]SAM_PROTO_ClearQueue done [18:56:27]KKMCreateOFDPacket [18:56:27]OFDProtocolAddRootSTLVToBuf [18:56:27]FM_MakeSignedData [18:56:27]FM_MakeSignedData [18:56:27]SAM_PROTO_SignData [18:56:27]wFMCommunicate request_size=4 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 0D 01 02 [18:56:27]Write to MH i2c: E2 08 00 41 1B 80 0D 01 02 00 00 00 00 D5 [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:27]Read from MH i2c: E2 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 41 1B 00 90 00 D0 [18:56:27]RAPDU: 90 00 [18:56:27]wFMCommunicate OK [18:56:27]wFMCommunicate request_size=255 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 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 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 [18:56:27]Write to MH i2c: E2 02 01 42 1B 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 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 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 0D [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 [18:56:27]MH_I2C_Read... [18:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:27]Read from MH i2c: E2 03 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [18:56:27]RAPDU: 90 00 [18:56:27]wFMCommunicate OK [18:56:27]wFMCommunicate request_size=162 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 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 88 00 00 00 F4 03 04 00 DD E9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CC C5 00 00 35 04 06 00 AD 06 18 64 74 64 [18:56:27]Write to MH i2c: E2 A5 00 43 1B 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 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 88 00 00 00 F4 03 04 00 DD E9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CC C5 00 00 35 04 06 00 AD 06 18 64 74 64 00 00 13 [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 03 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [18:56:28]RAPDU: 90 00 [18:56:28]wFMCommunicate OK [18:56:28]wFMCommunicate request_size=4 [18:56:28]MH_SAM_APDU [18:56:28]CAPDU: 80 0D 03 02 [18:56:28]Write to MH i2c: E2 08 00 44 1B 80 0D 03 02 00 00 00 00 DA [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 0B 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 0B 00 44 1B 00 CC 14 2D 78 33 57 2B 9F 90 00 B4 [18:56:28]RAPDU: CC 14 2D 78 33 57 2B 9F 90 00 [18:56:28]wFMCommunicate OK [18:56:28]SAM_PROTO_SignData done [18:56:28]FM_MakeSignedData done [18:56:28]CreateOFDProtocolMessage [18:56:28]wFMCommunicate request_size=4 [18:56:28]MH_SAM_APDU [18:56:28]CAPDU: 80 11 00 00 [18:56:28]Write to MH i2c: E2 08 00 45 1B 80 11 00 00 00 00 00 00 DA [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 17 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 17 00 45 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 21 [18:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:56:28]wFMCommunicate OK [18:56:28]CreateOFDProtocolMessage done [18:56:28]OFDSenderStorePacket 50636 [18:56:28]StoreOFDPacket docnum=50636 [18:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A7 01 00 00 2A 74 9F 01 DB DB 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 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 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 94 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 88 00 00 00 F4 03 04 00 DD E9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CC C5 00 00 35 04 06 00 AD 06 18 64 74 64 CC 14 2D 78 33 57 2B 9F [18:56:28]CheckFolder [18:56:28]dirname=/storage/ofd_packets [18:56:28]CheckFolder done [18:56:28]ProducePacketName [18:56:28]name=ofd_packets/00050636 [18:56:28]NVStorageSaveData ofd_packets/00050636 [18:56:28]File name is /storage/ofd_packets/00050636 [18:56:28]Write 453 bytes [18:56:28]NVStorageSaveData done [18:56:28]OFDSenderStorePacket done [18:56:28]KKMCreateOFDPacket done [18:56:28]NVStorageSaveData kkm_last_timestamp [18:56:28]File name is /storage/kkm_last_timestamp [18:56:28]Write 4 bytes [18:56:28]NVStorageSaveData done [18:56:28]ExternCall_PrintAddStr [18:56:28]wPrintStart [18:56:28]Write to MH i2c: 01 00 00 46 1B 61 [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: 01 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: 01 07 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: 01 07 00 46 1B 00 00 00 00 00 FF 0F 76 [18:56:28]RasterBufferAndPrint [18:56:28]line Счет N : (3)164523 [18:56:28]line ИНН: 02508201610067 [18:56:28]line Контрольно-Кассовый Чек [18:56:28]line ПРОДАЖА [18:56:28]line Товар: 4870202521148 [18:56:28]line Напиток MAXI чай зел лимон 0.45л [18:56:28]line 2.000 * 70.00 [18:56:28]line = 140.00 [18:56:28]line НДС 12% НСП 1% [18:56:28]line > о реализуемом товаре [18:56:28]line Товар: 2000036210013 [18:56:28]line Кофе Капучино (GABB TRADE) [18:56:28]line 1.000 * 115.00 [18:56:28]line = 115.00 [18:56:28]line НДС 12% НСП 1% [18:56:28]line > о реализуемом товаре [18:56:28]line ИТОГО: 255.00 [18:56:28]line НСП 1% : 2.26 [18:56:28]line НДС 12% : 27.08 [18:56:28]line Наличными: 255.00 [18:56:28]line Безнал.: 0.00 [18:56:28]line Место: АЗС № 80 "Партнер Нефть" [18:56:28]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:56:28]line СНО: Общий режим [18:56:28]line Чек 136 25.10.2024 18:56 [18:56:28]line Смена: 493 ФФД: 1.0 [18:56:28]line ЗНМ: 0300000090 [18:56:28]line РНМ: 0000000000097022 [18:56:28]line Версия ККМ: 001 [18:56:28]line ФМ: 0000000000875000 [18:56:28]line ФД: 50636 [18:56:28]line ФПД: 190241690645604 [18:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185629&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50636&fm=190241690645604&tin=02508201610067®Number=0000000000097022&sum=25500 [18:56:28]line 0 [18:56:28]OFD Sender: Processing packet 50636 [packets to send 7, broken 6] [18:56:28]ProducePacketName [18:56:28]name=ofd_packets/00050636 [18:56:28]OFD Sender: To server: pG, [18:56:28]CommunicateWithHost lk.salyk.kg:30040 [18:56:28]ConnectInit lk.salyk.kg [18:56:28]written 0, free lines is 4095 [18:56:28]Connected sock=10 [18:56:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A7 01 00 00 2A 74 9F 01 DB DB 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 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 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 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 94 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 88 00 00 00 F4 03 04 00 DD E9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CC C5 00 00 35 04 06 00 AD 06 18 64 74 64 CC 14 2D 78 33 57 2B 9F [18:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 9E 7A 47 00 10 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CC C5 00 00 F4 03 04 00 6D 95 1B 67 B6 04 01 00 00 E5 7C 62 C6 08 F7 87 4B [18:56:28]CommunicateWithHost err = 0 [18:56:28]CheckOFDResponse [18:56:28]1017 (14) - 77093643461234 [18:56:28]1041 (16) - 0000000000875000 [18:56:28]1040 (4) - 50636 [18:56:28]1012 (4) - 25.10.2024 12:56 [18:56:28]1206 (1) - 0 [18:56:28]OFD Sender: Remove packet 50636 [18:56:28]ProducePacketName [18:56:28]name=ofd_packets/00050636 [18:56:28]NVStorageDeleteData [18:56:29]Write to MH i2c: 01 00 00 75 1B 90 [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: 01 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: 01 07 00 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 C7 0C 6A [18:56:29]RasterBufferAndPrint [18:56:29]line [18:56:29]line [18:56:29]line [18:56:29]line [18:56:29]line [18:56:29]written 0, free lines is 3277 [18:56:29]process_action close_receipt done [18:56:29]requested_data is exist [18:56:29]produce_requested_data [18:56:29]requested_item fm.sn is exist - process it [18:56:29]wFMCommunicate request_size=4 [18:56:29]MH_SAM_APDU [18:56:29]CAPDU: 80 11 00 00 [18:56:29]Write to MH i2c: E2 08 00 7C 1B 80 11 00 00 00 00 00 00 11 [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:29]Read from MH i2c: E2 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 17 00 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 17 00 7C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 58 [18:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:56:29]wFMCommunicate OK [18:56:29]requested_item fd.num is exist - process it [18:56:29]SAM_PROTO_GetFieldsCounters [18:56:29]wFMCommunicate request_size=4 [18:56:29]MH_SAM_APDU [18:56:29]CAPDU: 80 13 00 00 [18:56:29]Write to MH i2c: E2 08 00 7D 1B 80 13 00 00 00 00 00 00 14 [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:29]Read from MH i2c: E2 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 62 00 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 62 00 7D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CC C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [18:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CC C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:29]wFMCommunicate OK [18:56:29]SAM_PROTO_GetFieldsCounters done [18:56:29]requested_item shift.num is exist - process it [18:56:29]requested_item shift.opened is exist - process it [18:56:29]req_shift_opened [18:56:29]FM_GetShiftState [18:56:29]SAM_PROTO_GetShiftState [18:56:29]wFMCommunicate request_size=4 [18:56:29]MH_SAM_APDU [18:56:29]CAPDU: 80 13 01 00 [18:56:29]Write to MH i2c: E2 08 00 7E 1B 80 13 01 00 00 00 00 00 16 [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:29]Read from MH i2c: E2 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 0E 00 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 0E 00 7E 1B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 0E [18:56:29]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:56:29]wFMCommunicate OK [18:56:29]SAM_PROTO_GetShiftState done [18:56:29]FM_GetShiftState done [18:56:29]req_shift_opened done [18:56:29]requested_item shift.open_date is exist - process it [18:56:29]req_shift_open_date [18:56:29]req_shift_open_date done [18:56:29]produce_requested_data done [18:56:29]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50636,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:56:29]process_action_free close_receipt [18:56:29]json_value_free [18:56:29]json_value_free done [18:56:29]process_json_proto returns [18:56:29]Send response to host [18:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50636,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:56:29]free response buf [18:56:29]execute_script done [18:56:29]execute_script returns [18:56:29]free content buf [18:56:29]Sock 7.Close socket [18:56:29]Sock 7.Thread stoped [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]accept exits with 9 [18:56:59]New connection [18:56:59]New thread 3066789220 created [18:56:59]Thread 3066645860 joined [18:56:59]Waiting for new connection... [18:56:59] Sock 9.Parse request [18:56:59]Sock 9.Check first char [18:56:59]Sock 9.First char is OK [18:56:59]request: POST /json_proto HTTP/1.0 [18:56:59]Method: POST [18:56:59]URL: /json_proto [18:56:59]Method is POST - this is cgi request [18:56:59]url: /json_proto [18:56:59]query_string will be loaded in cgi processing [18:56:59]execute_cgi json_proto POST (null) [18:56:59]execute_cgi path=json_proto method=POST [18:56:59]POST find Content-Length [18:56:59]Host: 172.17.49.196:8080 [18:56:59]Content-Length: 799 [18:56:59]Content-Type: application/json [18:56:59] [18:56:59]POST finish read [18:56:59]Found Content-Length = 799 [18:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164524", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:59]execute_script... [18:56: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)164524", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:59]POST & json_proto [18:56:59]process_json_proto [18:56:59]json parsed OK: [18:56:59]protocol is kg_v1.0 [18:56:59]action value=close_receipt [18:56:59]process_action close_receipt [18:56:59]cmd_close_receipt [18:56:59]MH_GetDate [18:56:59]Write to MH i2c: F0 00 00 7F 1B 89 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 09 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 09 00 7F 1B 00 FE E9 1B 67 BD 3B 11 67 6B [18:56:59]GetLastDocTimeStamp 1729882589 [18:56:59]current date 1729882622 [18:56:59]FM_GetShiftState [18:56:59]SAM_PROTO_GetShiftState [18:56:59]wFMCommunicate request_size=4 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 80 13 01 00 [18:56:59]Write to MH i2c: E2 08 00 80 1B 80 13 01 00 00 00 00 00 18 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 0E 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 0E 00 80 1B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 10 [18:56:59]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:56:59]wFMCommunicate OK [18:56:59]SAM_PROTO_GetShiftState done [18:56:59]FM_GetShiftState done [18:56:59]opened in 1729815177 [18:56:59]opened+sec_in_day 1729901577 [18:56:59]quantity*price = 15900 [18:56:59]sum+1 = 15901 [18:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 137 25.10.2024 18:57 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875000 ФД: 50637 ФПД: 125323470445360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185702&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50637&fm=125323470445360&tin=02508201610067®Number=0000000000097022&sum=15900 0 [18:57:00]StoreToDocumentArchive [18:57:00]shift 493 fd 50637 [18:57:00]save to /storage/0493/doc_00050637 [18:57:00]save last doc name /storage/0493/doc_00050637 to /storage/kkm_last_doc_name [18:57:00]save OK [18:57:00]Clear old archive folders... [18:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:57:00]tlvbuf is 01E95950 [18:57:00]SAM_PROTO_ClearQueue [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 09 00 00 [18:57:00]Write to MH i2c: E2 08 00 8D 1B 80 09 00 00 00 00 00 00 1A [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [18:57:00]RAPDU: 90 00 [18:57:00]wFMCommunicate OK [18:57:00]SAM_PROTO_ClearQueue done [18:57:00]KKMCreateOFDPacket [18:57:00]OFDProtocolAddRootSTLVToBuf [18:57:00]FM_MakeSignedData [18:57:00]FM_MakeSignedData [18:57:00]SAM_PROTO_SignData [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 0D 01 02 [18:57:00]Write to MH i2c: E2 08 00 8E 1B 80 0D 01 02 00 00 00 00 22 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [18:57:00]RAPDU: 90 00 [18:57:00]wFMCommunicate OK [18:57:00]wFMCommunicate request_size=255 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 FE E9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 [18:57:00]Write to MH i2c: E2 02 01 8F 1B 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 FE E9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 00 00 21 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [18:57:00]RAPDU: 90 00 [18:57:00]wFMCommunicate OK [18:57:00]wFMCommunicate request_size=33 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CD C5 00 00 35 04 06 00 71 FB 24 F0 1B 30 [18:57:00]Write to MH i2c: E2 24 00 90 1B 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CD C5 00 00 35 04 06 00 71 FB 24 F0 1B 30 00 00 05 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [18:57:00]RAPDU: 90 00 [18:57:00]wFMCommunicate OK [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 0D 03 02 [18:57:00]Write to MH i2c: E2 08 00 91 1B 80 0D 03 02 00 00 00 00 27 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 0B 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 0B 00 91 1B 00 39 52 05 F8 4A 1A 41 05 90 00 5A [18:57:00]RAPDU: 39 52 05 F8 4A 1A 41 05 90 00 [18:57:00]wFMCommunicate OK [18:57:00]SAM_PROTO_SignData done [18:57:00]FM_MakeSignedData done [18:57:00]CreateOFDProtocolMessage [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 11 00 00 [18:57:00]Write to MH i2c: E2 08 00 92 1B 80 11 00 00 00 00 00 00 27 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 17 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 17 00 92 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6E [18:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:57:00]wFMCommunicate OK [18:57:00]CreateOFDProtocolMessage done [18:57:00]OFDSenderStorePacket 50637 [18:57:00]StoreOFDPacket docnum=50637 [18:57:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 49 17 1E 01 B3 32 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 FE E9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CD C5 00 00 35 04 06 00 71 FB 24 F0 1B 30 39 52 05 F8 4A 1A 41 05 [18:57:00]CheckFolder [18:57:00]dirname=/storage/ofd_packets [18:57:00]CheckFolder done [18:57:00]ProducePacketName [18:57:00]name=ofd_packets/00050637 [18:57:00]NVStorageSaveData ofd_packets/00050637 [18:57:00]File name is /storage/ofd_packets/00050637 [18:57:00]Write 324 bytes [18:57:00]NVStorageSaveData done [18:57:00]OFDSenderStorePacket done [18:57:00]KKMCreateOFDPacket done [18:57:00]NVStorageSaveData kkm_last_timestamp [18:57:00]File name is /storage/kkm_last_timestamp [18:57:00]Write 4 bytes [18:57:00]NVStorageSaveData done [18:57:00]ExternCall_PrintAddStr [18:57:00]wPrintStart [18:57:00]Write to MH i2c: 01 00 00 93 1B AE [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: 01 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: 01 07 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: 01 07 00 93 1B 00 00 00 00 00 FF 0F C3 [18:57:00]RasterBufferAndPrint [18:57:00]line Счет N : (3)164524 [18:57:00]line ИНН: 02508201610067 [18:57:00]line Контрольно-Кассовый Чек [18:57:00]line ПРОДАЖА [18:57:00]line Товар: 4640030091645 [18:57:00]line Сигареты ESSE Exchange M [18:57:00]line 1.000 * 159.00 [18:57:00]line = 159.00 [18:57:00]line НДС 12% НСП 1% [18:57:00]line > о реализуемом товаре [18:57:00]line ИТОГО: 159.00 [18:57:00]line НСП 1% : 1.41 [18:57:00]line НДС 12% : 16.88 [18:57:00]line Наличными: 0.00 [18:57:00]line Безнал.: 159.00 [18:57:00]line Место: АЗС № 80 "Партнер Нефть" [18:57:00]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [18:57:00]line СНО: Общий режим [18:57:00]line Чек 137 25.10.2024 18:57 [18:57:00]line Смена: 493 ФФД: 1.0 [18:57:00]line ЗНМ: 0300000090 [18:57:00]line РНМ: 0000000000097022 [18:57:00]line Версия ККМ: 001 [18:57:00]line Платежная система: Бакай Банк [18:57:00]line ФМ: 0000000000875000 [18:57:00]line ФД: 50637 [18:57:00]line ФПД: 125323470445360 [18:57:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T185702&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50637&fm=125323470445360&tin=02508201610067®Number=0000000000097022&sum=15900 [18:57:01]OFD Sender: Processing packet 50637 [packets to send 7, broken 6] [18:57:01]ProducePacketName [18:57:01]name=ofd_packets/00050637 [18:57:01]OFD Sender: To server: pG, [18:57:01]CommunicateWithHost lk.salyk.kg:30040 [18:57:01]ConnectInit lk.salyk.kg [18:57:01]line 0 [18:57:01]written 0, free lines is 4095 [18:57:01]Connected sock=7 [18:57:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 26 01 00 00 49 17 1E 01 B3 32 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 FE E9 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CD C5 00 00 35 04 06 00 71 FB 24 F0 1B 30 39 52 05 F8 4A 1A 41 05 [18:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 21 6F 47 00 49 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CD C5 00 00 F4 03 04 00 8E 95 1B 67 B6 04 01 00 00 6C F6 25 A5 99 F8 30 C6 [18:57:01]CommunicateWithHost err = 0 [18:57:01]CheckOFDResponse [18:57:01]1017 (14) - 77093643461234 [18:57:01]1041 (16) - 0000000000875000 [18:57:01]1040 (4) - 50637 [18:57:01]1012 (4) - 25.10.2024 12:56 [18:57:01]1206 (1) - 0 [18:57:01]OFD Sender: Remove packet 50637 [18:57:01]ProducePacketName [18:57:01]name=ofd_packets/00050637 [18:57:01]NVStorageDeleteData [18:57:01]Write to MH i2c: 01 00 00 BD 1B D8 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 BD 1B 00 00 00 00 00 11 0D FD [18:57:01]RasterBufferAndPrint [18:57:01]line [18:57:01]line [18:57:01]line [18:57:01]line [18:57:01]line [18:57:01]written 0, free lines is 3353 [18:57:01]process_action close_receipt done [18:57:01]requested_data is exist [18:57:01]produce_requested_data [18:57:01]requested_item fm.sn is exist - process it [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 11 00 00 [18:57:01]Write to MH i2c: E2 08 00 C4 1B 80 11 00 00 00 00 00 00 59 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 C4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A0 [18:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [18:57:01]wFMCommunicate OK [18:57:01]requested_item fd.num is exist - process it [18:57:01]SAM_PROTO_GetFieldsCounters [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 13 00 00 [18:57:01]Write to MH i2c: E2 08 00 C5 1B 80 13 00 00 00 00 00 00 5C [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 62 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 62 00 C5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CD C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [18:57:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CD C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_GetFieldsCounters done [18:57:01]requested_item shift.num is exist - process it [18:57:01]requested_item shift.opened is exist - process it [18:57:01]req_shift_opened [18:57:01]FM_GetShiftState [18:57:01]SAM_PROTO_GetShiftState [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 13 01 00 [18:57:01]Write to MH i2c: E2 08 00 C6 1B 80 13 01 00 00 00 00 00 5E [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0E 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0E 00 C6 1B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 56 [18:57:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_GetShiftState done [18:57:01]FM_GetShiftState done [18:57:01]req_shift_opened done [18:57:01]requested_item shift.open_date is exist - process it [18:57:01]req_shift_open_date [18:57:01]req_shift_open_date done [18:57:01]produce_requested_data done [18:57:01]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50637,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [18:57:02]process_action_free close_receipt [18:57:02]json_value_free [18:57:02]json_value_free done [18:57:02]process_json_proto returns [18:57:02]Send response to host [18:57:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50637,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [18:57:02]free response buf [18:57:02]execute_script done [18:57:02]execute_script returns [18:57:02]free content buf [18:57:02]Sock 9.Close socket [18:57:02]Sock 9.Thread stoped [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06: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:35]accept exits with 10 [19:09:35]New connection [19:09:35]New thread 3066645860 created [19:09:35]Thread 3066789220 joined [19:09:35]Waiting for new connection... [19:09:35] Sock 10.Parse request [19:09:35]Sock 10.Check first char [19:09:35]Sock 10.First char is OK [19:09:35]request: POST /json_proto HTTP/1.0 [19:09:35]Method: POST [19:09:35]URL: /json_proto [19:09:35]Method is POST - this is cgi request [19:09:35]url: /json_proto [19:09:35]query_string will be loaded in cgi processing [19:09:35]execute_cgi json_proto POST (null) [19:09:35]execute_cgi path=json_proto method=POST [19:09:35]POST find Content-Length [19:09:35]Host: 172.17.49.196:8080 [19:09:35]Content-Length: 883 [19:09:35]Content-Type: application/json [19:09:35] [19:09:35]POST finish read [19:09:35]Found Content-Length = 883 [19:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164525", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:35]execute_script... [19:09: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)164525", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:35]POST & json_proto [19:09:35]process_json_proto [19:09:35]json parsed OK: [19:09:35]protocol is kg_v1.0 [19:09:35]action value=close_receipt [19:09:35]process_action close_receipt [19:09:35]cmd_close_receipt [19:09:35]MH_GetDate [19:09:35]Write to MH i2c: F0 00 00 C7 1B D1 [19:09:35]Write i2c OK [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: F0 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: F0 09 00 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: F0 09 00 C7 1B 00 F2 EC 1B 67 BD 3B 11 67 AA [19:09:35]GetLastDocTimeStamp 1729882622 [19:09:35]current date 1729883378 [19:09:35]FM_GetShiftState [19:09:35]SAM_PROTO_GetShiftState [19:09:35]wFMCommunicate request_size=4 [19:09:35]MH_SAM_APDU [19:09:35]CAPDU: 80 13 01 00 [19:09:35]Write to MH i2c: E2 08 00 C8 1B 80 13 01 00 00 00 00 00 60 [19:09:35]Write i2c OK [19:09:35]MH_I2C_Read... [19:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:35]Read from MH i2c: E2 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: E2 0E 00 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: E2 0E 00 C8 1B 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 58 [19:09:35]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:09:35]wFMCommunicate OK [19:09:35]SAM_PROTO_GetShiftState done [19:09:35]FM_GetShiftState done [19:09:35]opened in 1729815177 [19:09:35]opened+sec_in_day 1729901577 [19:09:35]quantity*price = 15900 [19:09:35]sum+1 = 15901 [19:09:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.85 НДС 12% : 22.19 Наличными: 209.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 138 25.10.2024 19:09 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50638 ФПД: 163399310387943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T190938&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50638&fm=163399310387943&tin=02508201610067®Number=0000000000097022&sum=20900 0 [19:09:36]StoreToDocumentArchive [19:09:36]shift 493 fd 50638 [19:09:36]save to /storage/0493/doc_00050638 [19:09:36]save last doc name /storage/0493/doc_00050638 to /storage/kkm_last_doc_name [19:09:36]save OK [19:09:36]Clear old archive folders... [19:09:36]ProcessDocumentItem done err = 0, tmpTLVsize=379 [19:09:36]tlvbuf is 01E62970 [19:09:36]SAM_PROTO_ClearQueue [19:09:36]wFMCommunicate request_size=4 [19:09:36]MH_SAM_APDU [19:09:36]CAPDU: 80 09 00 00 [19:09:36]Write to MH i2c: E2 08 00 D5 1B 80 09 00 00 00 00 00 00 62 [19:09:36]Write i2c OK [19:09:36]MH_I2C_Read... [19:09:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:36]Read from MH i2c: E2 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 D5 1B 00 90 00 64 [19:09:36]RAPDU: 90 00 [19:09:36]wFMCommunicate OK [19:09:36]SAM_PROTO_ClearQueue done [19:09:36]KKMCreateOFDPacket [19:09:36]OFDProtocolAddRootSTLVToBuf [19:09:36]FM_MakeSignedData [19:09:36]FM_MakeSignedData [19:09:36]SAM_PROTO_SignData [19:09:36]wFMCommunicate request_size=4 [19:09:36]MH_SAM_APDU [19:09:36]CAPDU: 80 0D 01 02 [19:09:36]Write to MH i2c: E2 08 00 D6 1B 80 0D 01 02 00 00 00 00 6A [19:09:36]Write i2c OK [19:09:36]MH_I2C_Read... [19:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:36]Read from MH i2c: E2 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [19:09:36]RAPDU: 90 00 [19:09:36]wFMCommunicate OK [19:09:36]wFMCommunicate request_size=255 [19:09:36]MH_SAM_APDU [19:09:36]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 [19:09:36]Write to MH i2c: E2 02 01 D7 1B 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 00 ED [19:09:36]Write i2c OK [19:09:36]MH_I2C_Read... [19:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:36]Read from MH i2c: E2 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [19:09:36]RAPDU: 90 00 [19:09:36]wFMCommunicate OK [19:09:36]wFMCommunicate request_size=138 [19:09:36]MH_SAM_APDU [19:09:36]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F2 EC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CE C5 00 00 35 04 06 00 94 9C 5D DA 2A E7 [19:09:36]Write to MH i2c: E2 8D 00 D8 1B 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F2 EC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CE C5 00 00 35 04 06 00 94 9C 5D DA 2A E7 00 00 1E [19:09:36]Write i2c OK [19:09:36]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 03 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [19:09:37]RAPDU: 90 00 [19:09:37]wFMCommunicate OK [19:09:37]wFMCommunicate request_size=4 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 0D 03 02 [19:09:37]Write to MH i2c: E2 08 00 D9 1B 80 0D 03 02 00 00 00 00 6F [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 0B 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 0B 00 D9 1B 00 D2 53 C8 B1 48 C1 94 1D 90 00 C8 [19:09:37]RAPDU: D2 53 C8 B1 48 C1 94 1D 90 00 [19:09:37]wFMCommunicate OK [19:09:37]SAM_PROTO_SignData done [19:09:37]FM_MakeSignedData done [19:09:37]CreateOFDProtocolMessage [19:09:37]wFMCommunicate request_size=4 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 11 00 00 [19:09:37]Write to MH i2c: E2 08 00 DA 1B 80 11 00 00 00 00 00 00 6F [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 17 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 17 00 DA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B6 [19:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:09:37]wFMCommunicate OK [19:09:37]CreateOFDProtocolMessage done [19:09:37]OFDSenderStorePacket 50638 [19:09:37]StoreOFDPacket docnum=50638 [19:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8F 01 00 00 A4 84 87 01 8E 1D 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F2 EC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CE C5 00 00 35 04 06 00 94 9C 5D DA 2A E7 D2 53 C8 B1 48 C1 94 1D [19:09:37]CheckFolder [19:09:37]dirname=/storage/ofd_packets [19:09:37]CheckFolder done [19:09:37]ProducePacketName [19:09:37]name=ofd_packets/00050638 [19:09:37]NVStorageSaveData ofd_packets/00050638 [19:09:37]File name is /storage/ofd_packets/00050638 [19:09:37]Write 429 bytes [19:09:37]NVStorageSaveData done [19:09:37]OFDSenderStorePacket done [19:09:37]KKMCreateOFDPacket done [19:09:37]NVStorageSaveData kkm_last_timestamp [19:09:37]File name is /storage/kkm_last_timestamp [19:09:37]Write 4 bytes [19:09:37]NVStorageSaveData done [19:09:37]ExternCall_PrintAddStr [19:09:37]wPrintStart [19:09:37]Write to MH i2c: 01 00 00 DB 1B F6 [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: 01 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: 01 07 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: 01 07 00 DB 1B 00 00 00 00 00 FF 0F 0B [19:09:37]RasterBufferAndPrint [19:09:37]line Счет N : (3)164525 [19:09:37]line ИНН: 02508201610067 [19:09:37]line Контрольно-Кассовый Чек [19:09:37]line ПРОДАЖА [19:09:37]line Товар: 4640030091645 [19:09:37]line Сигареты ESSE Exchange M [19:09:37]line 1.000 * 159.00 [19:09:37]line = 159.00 [19:09:37]line НДС 12% НСП 1% [19:09:37]line > о реализуемом товаре [19:09:37]line Товар: 5449000005489 [19:09:37]line Вода Бонаква 1л б/г [19:09:37]line 1.000 * 50.00 [19:09:37]line = 50.00 [19:09:37]line НДС 12% НСП 1% [19:09:37]line > о реализуемом товаре [19:09:37]line ИТОГО: 209.00 [19:09:37]line НСП 1% : 1.85 [19:09:37]line НДС 12% : 22.19 [19:09:37]line Наличными: 209.00 [19:09:37]line Безнал.: 0.00 [19:09:37]line Место: АЗС № 80 "Партнер Нефть" [19:09:37]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:09:37]line СНО: Общий режим [19:09:37]line Чек 138 25.10.2024 19:09 [19:09:37]line Смена: 493 ФФД: 1.0 [19:09:37]line ЗНМ: 0300000090 [19:09:37]line РНМ: 0000000000097022 [19:09:37]line Версия ККМ: 001 [19:09:37]line ФМ: 0000000000875000 [19:09:37]line ФД: 50638 [19:09:37]line ФПД: 163399310387943 [19:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T190938&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50638&fm=163399310387943&tin=02508201610067®Number=0000000000097022&sum=20900 [19:09:37]OFD Sender: Processing packet 50638 [packets to send 7, broken 6] [19:09:37]ProducePacketName [19:09:37]name=ofd_packets/00050638 [19:09:37]OFD Sender: To server: pG, [19:09:37]CommunicateWithHost lk.salyk.kg:30040 [19:09:37]ConnectInit lk.salyk.kg [19:09:37]line 0 [19:09:37]written 0, free lines is 4095 [19:09:37]Connected sock=9 [19:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8F 01 00 00 A4 84 87 01 8E 1D 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 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 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F2 EC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CE C5 00 00 35 04 06 00 94 9C 5D DA 2A E7 D2 53 C8 B1 48 C1 94 1D [19:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 B6 CE 47 00 C1 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CE C5 00 00 F4 03 04 00 82 98 1B 67 B6 04 01 00 00 40 25 9B 99 13 9B 28 79 [19:09:37]CommunicateWithHost err = 0 [19:09:37]CheckOFDResponse [19:09:37]1017 (14) - 77093643461234 [19:09:37]1041 (16) - 0000000000875000 [19:09:37]1040 (4) - 50638 [19:09:37]1012 (4) - 25.10.2024 13:09 [19:09:37]1206 (1) - 0 [19:09:37]OFD Sender: Remove packet 50638 [19:09:37]ProducePacketName [19:09:37]name=ofd_packets/00050638 [19:09:37]NVStorageDeleteData [19:09:38]Write to MH i2c: 01 00 00 09 1C 25 [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: 01 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: 01 07 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: 01 07 00 09 1C 00 00 00 00 00 D2 0C 0A [19:09:38]RasterBufferAndPrint [19:09:38]line [19:09:38]line [19:09:38]line [19:09:38]line [19:09:38]line [19:09:38]written 0, free lines is 3288 [19:09:38]process_action close_receipt done [19:09:38]requested_data is exist [19:09:38]produce_requested_data [19:09:38]requested_item fm.sn is exist - process it [19:09:38]wFMCommunicate request_size=4 [19:09:38]MH_SAM_APDU [19:09:38]CAPDU: 80 11 00 00 [19:09:38]Write to MH i2c: E2 08 00 10 1C 80 11 00 00 00 00 00 00 A6 [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:38]Read from MH i2c: E2 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 17 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 17 00 10 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 ED [19:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:09:38]wFMCommunicate OK [19:09:38]requested_item fd.num is exist - process it [19:09:38]SAM_PROTO_GetFieldsCounters [19:09:38]wFMCommunicate request_size=4 [19:09:38]MH_SAM_APDU [19:09:38]CAPDU: 80 13 00 00 [19:09:38]Write to MH i2c: E2 08 00 11 1C 80 13 00 00 00 00 00 00 A9 [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:38]Read from MH i2c: E2 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 62 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 62 00 11 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CE C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [19:09:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CE C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:38]wFMCommunicate OK [19:09:38]SAM_PROTO_GetFieldsCounters done [19:09:38]requested_item shift.num is exist - process it [19:09:38]requested_item shift.opened is exist - process it [19:09:38]req_shift_opened [19:09:38]FM_GetShiftState [19:09:38]SAM_PROTO_GetShiftState [19:09:38]wFMCommunicate request_size=4 [19:09:38]MH_SAM_APDU [19:09:38]CAPDU: 80 13 01 00 [19:09:38]Write to MH i2c: E2 08 00 12 1C 80 13 01 00 00 00 00 00 AB [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 [19:09:38]MH_I2C_Read... [19:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:38]Read from MH i2c: E2 0E 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 0E 00 12 1C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A3 [19:09:38]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:09:38]wFMCommunicate OK [19:09:38]SAM_PROTO_GetShiftState done [19:09:38]FM_GetShiftState done [19:09:38]req_shift_opened done [19:09:38]requested_item shift.open_date is exist - process it [19:09:38]req_shift_open_date [19:09:38]req_shift_open_date done [19:09:38]produce_requested_data done [19:09:38]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50638,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:09:38]process_action_free close_receipt [19:09:38]json_value_free [19:09:38]json_value_free done [19:09:38]process_json_proto returns [19:09:38]Send response to host [19:09:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50638,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:09:38]free response buf [19:09:38]execute_script done [19:09:38]execute_script returns [19:09:38]free content buf [19:09:38]Sock 10.Close socket [19:09:38]Sock 10.Thread stoped [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:03]accept exits with 7 [19:10:03]New connection [19:10:03]New thread 3066789220 created [19:10:03]Thread 3066645860 joined [19:10:03]Waiting for new connection... [19:10:03] Sock 7.Parse request [19:10:03]Sock 7.Check first char [19:10:03]Sock 7.First char is OK [19:10:03]request: POST /json_proto HTTP/1.0 [19:10:03]Method: POST [19:10:03]URL: /json_proto [19:10:03]Method is POST - this is cgi request [19:10:03]url: /json_proto [19:10:03]query_string will be loaded in cgi processing [19:10:03]execute_cgi json_proto POST (null) [19:10:03]execute_cgi path=json_proto method=POST [19:10:03]POST find Content-Length [19:10:03]Host: 172.17.49.196:8080 [19:10:03]Content-Length: 690 [19:10:03]Content-Type: application/json [19:10:03] [19:10:03]POST finish read [19:10:03]Found Content-Length = 690 [19:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 82.890, "sum" : 6399.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 6399.00, "payments": [ { "type": 0, "sum" : 6399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:03]execute_script... [19:10:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 82.890, "sum" : 6399.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 6399.00, "payments": [ { "type": 0, "sum" : 6399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:03]POST & json_proto [19:10:03]process_json_proto [19:10:03]json parsed OK: [19:10:03]protocol is kg_v1.0 [19:10:03]action value=close_receipt [19:10:03]process_action close_receipt [19:10:03]cmd_close_receipt [19:10:03]MH_GetDate [19:10:03]Write to MH i2c: F0 00 00 13 1C 1E [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: F0 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: F0 09 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: F0 09 00 13 1C 00 0E ED 1B 67 BD 3B 11 67 14 [19:10:03]GetLastDocTimeStamp 1729883378 [19:10:03]current date 1729883406 [19:10:03]FM_GetShiftState [19:10:03]SAM_PROTO_GetShiftState [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 13 01 00 [19:10:03]Write to MH i2c: E2 08 00 14 1C 80 13 01 00 00 00 00 00 AD [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 0E 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 0E 00 14 1C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A5 [19:10:03]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:10:03]wFMCommunicate OK [19:10:03]SAM_PROTO_GetShiftState done [19:10:03]FM_GetShiftState done [19:10:03]opened in 1729815177 [19:10:03]opened+sec_in_day 1729901577 [19:10:03]quantity*price = 639910 [19:10:03]sum+1 = 639912 [19:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 6399.00 Внесено: 7000.00 СДАЧА: 601.00 НСП 1% : 56.63 НДС 12% : 679.55 Наличными: 6399.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 139 25.10.2024 19:10 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50639 ФПД: 252382846440090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191006&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50639&fm=252382846440090&tin=02508201610067®Number=0000000000097022&sum=639900 [19:10:04]StoreToDocumentArchive [19:10:04]shift 493 fd 50639 [19:10:04]save to /storage/0493/doc_00050639 [19:10:04]save last doc name /storage/0493/doc_00050639 to /storage/kkm_last_doc_name [19:10:04]save OK [19:10:04]Clear old archive folders... [19:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:10:04]tlvbuf is 01F32A30 [19:10:04]SAM_PROTO_ClearQueue [19:10:04]wFMCommunicate request_size=4 [19:10:04]MH_SAM_APDU [19:10:04]CAPDU: 80 09 00 00 [19:10:04]Write to MH i2c: E2 08 00 21 1C 80 09 00 00 00 00 00 00 AF [19:10:04]Write i2c OK [19:10:04]MH_I2C_Read... [19:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:04]Read from MH i2c: E2 [19:10:04]MH_I2C_Read... [19:10:04]Read from MH i2c: E2 03 00 [19:10:04]MH_I2C_Read... [19:10:04]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [19:10:04]RAPDU: 90 00 [19:10:04]wFMCommunicate OK [19:10:04]SAM_PROTO_ClearQueue done [19:10:04]KKMCreateOFDPacket [19:10:04]OFDProtocolAddRootSTLVToBuf [19:10:04]FM_MakeSignedData [19:10:04]FM_MakeSignedData [19:10:04]SAM_PROTO_SignData [19:10:04]wFMCommunicate request_size=4 [19:10:04]MH_SAM_APDU [19:10:04]CAPDU: 80 0D 01 02 [19:10:04]Write to MH i2c: E2 08 00 22 1C 80 0D 01 02 00 00 00 00 B7 [19:10:04]Write i2c OK [19:10:04]MH_I2C_Read... [19:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:05]Read from MH i2c: E2 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 03 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 03 00 22 1C 00 90 00 B2 [19:10:05]RAPDU: 90 00 [19:10:05]wFMCommunicate OK [19:10:05]wFMCommunicate request_size=255 [19:10:05]MH_SAM_APDU [19:10:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CA 43 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A7 C3 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C C3 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 09 01 00 00 00 07 04 06 00 9C C3 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 0E ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CF C5 00 [19:10:05]Write to MH i2c: E2 02 01 23 1C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CA 43 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A7 C3 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C C3 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 09 01 00 00 00 07 04 06 00 9C C3 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 0E ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CF C5 00 00 00 0B [19:10:05]Write i2c OK [19:10:05]MH_I2C_Read... [19:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:05]Read from MH i2c: E2 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 03 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [19:10:05]RAPDU: 90 00 [19:10:05]wFMCommunicate OK [19:10:05]wFMCommunicate request_size=16 [19:10:05]MH_SAM_APDU [19:10:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E5 8A 75 E8 D2 9A [19:10:05]Write to MH i2c: E2 13 00 24 1C 80 0D 02 02 0B 00 00 35 04 06 00 E5 8A 75 E8 D2 9A 00 00 47 [19:10:05]Write i2c OK [19:10:05]MH_I2C_Read... [19:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:05]Read from MH i2c: E2 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 03 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 03 00 24 1C 00 90 00 B4 [19:10:05]RAPDU: 90 00 [19:10:05]wFMCommunicate OK [19:10:05]wFMCommunicate request_size=4 [19:10:05]MH_SAM_APDU [19:10:05]CAPDU: 80 0D 03 02 [19:10:05]Write to MH i2c: E2 08 00 25 1C 80 0D 03 02 00 00 00 00 BC [19:10:05]Write i2c OK [19:10:05]MH_I2C_Read... [19:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:05]Read from MH i2c: E2 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 0B 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 0B 00 25 1C 00 2F E4 F0 CA 2F 1A 77 3E 90 00 88 [19:10:05]RAPDU: 2F E4 F0 CA 2F 1A 77 3E 90 00 [19:10:05]wFMCommunicate OK [19:10:05]SAM_PROTO_SignData done [19:10:05]FM_MakeSignedData done [19:10:05]CreateOFDProtocolMessage [19:10:05]wFMCommunicate request_size=4 [19:10:05]MH_SAM_APDU [19:10:05]CAPDU: 80 11 00 00 [19:10:05]Write to MH i2c: E2 08 00 26 1C 80 11 00 00 00 00 00 00 BC [19:10:05]Write i2c OK [19:10:05]MH_I2C_Read... [19:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:05]Read from MH i2c: E2 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 17 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 17 00 26 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 03 [19:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:10:05]wFMCommunicate OK [19:10:05]CreateOFDProtocolMessage done [19:10:05]OFDSenderStorePacket 50639 [19:10:05]StoreOFDPacket docnum=50639 [19:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 69 B5 0D 01 ED 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CA 43 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A7 C3 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C C3 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 09 01 00 00 00 07 04 06 00 9C C3 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 0E ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CF C5 00 00 35 04 06 00 E5 8A 75 E8 D2 9A 2F E4 F0 CA 2F 1A 77 3E [19:10:05]CheckFolder [19:10:05]dirname=/storage/ofd_packets [19:10:05]CheckFolder done [19:10:05]ProducePacketName [19:10:05]name=ofd_packets/00050639 [19:10:05]NVStorageSaveData ofd_packets/00050639 [19:10:05]File name is /storage/ofd_packets/00050639 [19:10:05]Write 307 bytes [19:10:05]NVStorageSaveData done [19:10:05]OFDSenderStorePacket done [19:10:05]KKMCreateOFDPacket done [19:10:05]NVStorageSaveData kkm_last_timestamp [19:10:05]File name is /storage/kkm_last_timestamp [19:10:05]Write 4 bytes [19:10:05]NVStorageSaveData done [19:10:05]ExternCall_PrintAddStr [19:10:05]wPrintStart [19:10:05]Write to MH i2c: 01 00 00 27 1C 43 [19:10:05]Write i2c OK [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: 01 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: 01 07 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: 01 07 00 27 1C 00 00 00 00 00 FF 0F 58 [19:10:05]RasterBufferAndPrint [19:10:05]line Счет N : (1)15442693 [19:10:05]line ИНН: 02508201610067 [19:10:05]line Контрольно-Кассовый Чек [19:10:05]line ПРОДАЖА [19:10:05]line ТРК (МРК, ГНК) : 41 [19:10:05]line Товар: 2710194210 [19:10:05]line D-ENERGY ДТ-К-2 [19:10:05]line 82.890 * 77.20 [19:10:05]line = 6399.11 [19:10:05]line НДС 12% НСП 1% [19:10:05]line > о реализуемом товаре [19:10:05]line ОКРУГЛЕНИЕ: -0.11 [19:10:05]line ИТОГО: 6399.00 [19:10:05]line Внесено: 7000.00 [19:10:05]line СДАЧА: 601.00 [19:10:05]line НСП 1% : 56.63 [19:10:05]line НДС 12% : 679.55 [19:10:05]line Наличными: 6399.00 [19:10:05]line Безнал.: 0.00 [19:10:05]line Место: АЗС № 80 "Партнер Нефть" [19:10:05]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:10:05]line СНО: Общий режим [19:10:05]line Чек 139 25.10.2024 19:10 [19:10:05]line Смена: 493 ФФД: 1.0 [19:10:05]line ЗНМ: 0300000090 [19:10:05]line РНМ: 0000000000097022 [19:10:05]line Версия ККМ: 001 [19:10:05]line ФМ: 0000000000875000 [19:10:05]line ФД: 50639 [19:10:05]line ФПД: 252382846440090 [19:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191006&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50639&fm=252382846440090&tin=02508201610067®Number=0000000000097022&sum=639900 [19:10:05]OFD Sender: Processing packet 50639 [packets to send 7, broken 6] [19:10:05]ProducePacketName [19:10:05]name=ofd_packets/00050639 [19:10:05]OFD Sender: To server: pG, [19:10:05]CommunicateWithHost lk.salyk.kg:30040 [19:10:05]ConnectInit lk.salyk.kg [19:10:05]written 0, free lines is 4095 [19:10:05]Connected sock=10 [19:10:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 15 01 00 00 69 B5 0D 01 ED 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CA 43 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A7 C3 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C C3 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 09 01 00 00 00 07 04 06 00 9C C3 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 0E ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CF C5 00 00 35 04 06 00 E5 8A 75 E8 D2 9A 2F E4 F0 CA 2F 1A 77 3E [19:10:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 40 92 47 00 03 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 CF C5 00 00 F4 03 04 00 9E 98 1B 67 B6 04 01 00 00 50 91 B7 71 B3 F0 EE ED [19:10:06]CommunicateWithHost err = 0 [19:10:06]CheckOFDResponse [19:10:06]1017 (14) - 77093643461234 [19:10:06]1041 (16) - 0000000000875000 [19:10:06]1040 (4) - 50639 [19:10:06]1012 (4) - 25.10.2024 13:09 [19:10:06]1206 (1) - 0 [19:10:06]OFD Sender: Remove packet 50639 [19:10:06]ProducePacketName [19:10:06]name=ofd_packets/00050639 [19:10:06]NVStorageDeleteData [19:10:06]Write to MH i2c: 01 00 00 52 1C 6E [19:10:06]Write i2c OK [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: 01 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: 01 07 00 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: 01 07 00 52 1C 00 00 00 00 00 FE 0C 7F [19:10:06]RasterBufferAndPrint [19:10:06]line [19:10:06]line [19:10:06]line [19:10:06]line [19:10:06]line [19:10:06]written 0, free lines is 3331 [19:10:06]process_action close_receipt done [19:10:06]requested_data is exist [19:10:06]produce_requested_data [19:10:06]requested_item fm.sn is exist - process it [19:10:06]wFMCommunicate request_size=4 [19:10:06]MH_SAM_APDU [19:10:06]CAPDU: 80 11 00 00 [19:10:06]Write to MH i2c: E2 08 00 59 1C 80 11 00 00 00 00 00 00 EF [19:10:06]Write i2c OK [19:10:06]MH_I2C_Read... [19:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:06]Read from MH i2c: E2 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 17 00 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 17 00 59 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 36 [19:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:10:06]wFMCommunicate OK [19:10:06]requested_item fd.num is exist - process it [19:10:06]SAM_PROTO_GetFieldsCounters [19:10:06]wFMCommunicate request_size=4 [19:10:06]MH_SAM_APDU [19:10:06]CAPDU: 80 13 00 00 [19:10:06]Write to MH i2c: E2 08 00 5A 1C 80 13 00 00 00 00 00 00 F2 [19:10:06]Write i2c OK [19:10:06]MH_I2C_Read... [19:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:06]Read from MH i2c: E2 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 62 00 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 62 00 5A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [19:10:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 CF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:06]wFMCommunicate OK [19:10:06]SAM_PROTO_GetFieldsCounters done [19:10:06]requested_item shift.num is exist - process it [19:10:06]requested_item shift.opened is exist - process it [19:10:06]req_shift_opened [19:10:06]FM_GetShiftState [19:10:06]SAM_PROTO_GetShiftState [19:10:06]wFMCommunicate request_size=4 [19:10:06]MH_SAM_APDU [19:10:06]CAPDU: 80 13 01 00 [19:10:06]Write to MH i2c: E2 08 00 5B 1C 80 13 01 00 00 00 00 00 F4 [19:10:06]Write i2c OK [19:10:06]MH_I2C_Read... [19:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:06]Read from MH i2c: E2 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 0E 00 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 0E 00 5B 1C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 EC [19:10:06]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:10:06]wFMCommunicate OK [19:10:06]SAM_PROTO_GetShiftState done [19:10:06]FM_GetShiftState done [19:10:06]req_shift_opened done [19:10:06]requested_item shift.open_date is exist - process it [19:10:06]req_shift_open_date [19:10:06]req_shift_open_date done [19:10:06]produce_requested_data done [19:10:06]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50639,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:10:06]process_action_free close_receipt [19:10:06]json_value_free [19:10:06]json_value_free done [19:10:06]process_json_proto returns [19:10:06]Send response to host [19:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50639,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:10:06]free response buf [19:10:06]execute_script done [19:10:06]execute_script returns [19:10:06]free content buf [19:10:06]Sock 7.Close socket [19:10:06]Sock 7.Thread stoped [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:18]accept exits with 9 [19:10:18]New connection [19:10:18]New thread 3066645860 created [19:10:18]Thread 3066789220 joined [19:10:18]Waiting for new connection... [19:10:18] Sock 9.Parse request [19:10:18]Sock 9.Check first char [19:10:18]Sock 9.First char is OK [19:10:18]request: POST /json_proto HTTP/1.0 [19:10:18]Method: POST [19:10:18]URL: /json_proto [19:10:18]Method is POST - this is cgi request [19:10:18]url: /json_proto [19:10:18]query_string will be loaded in cgi processing [19:10:18]execute_cgi json_proto POST (null) [19:10:18]execute_cgi path=json_proto method=POST [19:10:18]POST find Content-Length [19:10:18]Host: 172.17.49.196:8080 [19:10:18]Content-Length: 691 [19:10:18]Content-Type: application/json [19:10:18] [19:10:18]POST finish read [19:10:18]Found Content-Length = 691 [19:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164526", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:18]execute_script... [19:10:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164526", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:18]POST & json_proto [19:10:18]process_json_proto [19:10:18]json parsed OK: [19:10:18]protocol is kg_v1.0 [19:10:18]action value=close_receipt [19:10:18]process_action close_receipt [19:10:18]cmd_close_receipt [19:10:18]MH_GetDate [19:10:18]Write to MH i2c: F0 00 00 5C 1C 67 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: F0 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: F0 09 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: F0 09 00 5C 1C 00 1D ED 1B 67 BD 3B 11 67 6C [19:10:18]GetLastDocTimeStamp 1729883406 [19:10:18]current date 1729883421 [19:10:18]FM_GetShiftState [19:10:18]SAM_PROTO_GetShiftState [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 13 01 00 [19:10:18]Write to MH i2c: E2 08 00 5D 1C 80 13 01 00 00 00 00 00 F6 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 0E 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 0E 00 5D 1C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 EE [19:10:18]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:10:18]wFMCommunicate OK [19:10:18]SAM_PROTO_GetShiftState done [19:10:18]FM_GetShiftState done [19:10:18]opened in 1729815177 [19:10:18]opened+sec_in_day 1729901577 [19:10:18]quantity*price = 7900 [19:10:18]sum+1 = 7901 [19:10:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 140 25.10.2024 19:10 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50640 ФПД: 21340284539844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191021&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50640&fm=21340284539844&tin=02508201610067®Number=0000000000097022&sum=7900 0 [19:10:19]StoreToDocumentArchive [19:10:19]shift 493 fd 50640 [19:10:19]save to /storage/0493/doc_00050640 [19:10:19]save last doc name /storage/0493/doc_00050640 to /storage/kkm_last_doc_name [19:10:19]save OK [19:10:19]Clear old archive folders... [19:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=290 [19:10:19]tlvbuf is 01EBCF20 [19:10:19]SAM_PROTO_ClearQueue [19:10:19]wFMCommunicate request_size=4 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 09 00 00 [19:10:19]Write to MH i2c: E2 08 00 6A 1C 80 09 00 00 00 00 00 00 F8 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [19:10:19]RAPDU: 90 00 [19:10:19]wFMCommunicate OK [19:10:19]SAM_PROTO_ClearQueue done [19:10:19]KKMCreateOFDPacket [19:10:19]OFDProtocolAddRootSTLVToBuf [19:10:19]FM_MakeSignedData [19:10:19]FM_MakeSignedData [19:10:19]SAM_PROTO_SignData [19:10:19]wFMCommunicate request_size=4 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 0D 01 02 [19:10:19]Write to MH i2c: E2 08 00 6B 1C 80 0D 01 02 00 00 00 00 00 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [19:10:19]RAPDU: 90 00 [19:10:19]wFMCommunicate OK [19:10:19]wFMCommunicate request_size=255 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 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 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 1D ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [19:10:19]Write to MH i2c: E2 02 01 6C 1C 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 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 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 1D ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 C3 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 6C 1C 00 90 00 FC [19:10:19]RAPDU: 90 00 [19:10:19]wFMCommunicate OK [19:10:19]wFMCommunicate request_size=49 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 0D 02 02 2C 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D0 C5 00 00 35 04 06 00 13 68 AC 14 53 C4 [19:10:19]Write to MH i2c: E2 34 00 6D 1C 80 0D 02 02 2C 00 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D0 C5 00 00 35 04 06 00 13 68 AC 14 53 C4 00 00 06 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 6D 1C 00 90 00 FD [19:10:19]RAPDU: 90 00 [19:10:19]wFMCommunicate OK [19:10:19]wFMCommunicate request_size=4 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 0D 03 02 [19:10:19]Write to MH i2c: E2 08 00 6E 1C 80 0D 03 02 00 00 00 00 05 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 0B 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 0B 00 6E 1C 00 17 7D 02 48 8F 42 62 D1 90 00 E8 [19:10:19]RAPDU: 17 7D 02 48 8F 42 62 D1 90 00 [19:10:19]wFMCommunicate OK [19:10:19]SAM_PROTO_SignData done [19:10:19]FM_MakeSignedData done [19:10:19]CreateOFDProtocolMessage [19:10:19]wFMCommunicate request_size=4 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 11 00 00 [19:10:19]Write to MH i2c: E2 08 00 6F 1C 80 11 00 00 00 00 00 00 05 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:20]Read from MH i2c: E2 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 17 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 17 00 6F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4C [19:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:10:20]wFMCommunicate OK [19:10:20]CreateOFDProtocolMessage done [19:10:20]OFDSenderStorePacket 50640 [19:10:20]StoreOFDPacket docnum=50640 [19:10:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 36 01 00 00 0F E4 2E 01 97 E8 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 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 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 1D ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D0 C5 00 00 35 04 06 00 13 68 AC 14 53 C4 17 7D 02 48 8F 42 62 D1 [19:10:20]CheckFolder [19:10:20]dirname=/storage/ofd_packets [19:10:20]CheckFolder done [19:10:20]ProducePacketName [19:10:20]name=ofd_packets/00050640 [19:10:20]NVStorageSaveData ofd_packets/00050640 [19:10:20]File name is /storage/ofd_packets/00050640 [19:10:20]Write 340 bytes [19:10:20]NVStorageSaveData done [19:10:20]OFDSenderStorePacket done [19:10:20]KKMCreateOFDPacket done [19:10:20]NVStorageSaveData kkm_last_timestamp [19:10:20]File name is /storage/kkm_last_timestamp [19:10:20]Write 4 bytes [19:10:20]NVStorageSaveData done [19:10:20]ExternCall_PrintAddStr [19:10:20]wPrintStart [19:10:20]Write to MH i2c: 01 00 00 70 1C 8C [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 07 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 07 00 70 1C 00 00 00 00 00 FF 0F A1 [19:10:20]RasterBufferAndPrint [19:10:20]line Счет N : (3)164526 [19:10:20]line ИНН: 02508201610067 [19:10:20]line Контрольно-Кассовый Чек [19:10:20]line ПРОДАЖА [19:10:20]line Товар: 4700000310258 [19:10:20]line Напиток Лимонад Келечек 1л [19:10:20]line 1.000 * 79.00 [19:10:20]line = 79.00 [19:10:20]line НДС 12% НСП 1% [19:10:20]line > о реализуемом товаре [19:10:20]line ИТОГО: 79.00 [19:10:20]line НСП 1% : 0.70 [19:10:20]line НДС 12% : 8.39 [19:10:20]line Наличными: 79.00 [19:10:20]line Безнал.: 0.00 [19:10:20]line Место: АЗС № 80 "Партнер Нефть" [19:10:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:10:20]line СНО: Общий режим [19:10:20]line Чек 140 25.10.2024 19:10 [19:10:20]line Смена: 493 ФФД: 1.0 [19:10:20]line ЗНМ: 0300000090 [19:10:20]line РНМ: 0000000000097022 [19:10:20]line Версия ККМ: 001 [19:10:20]line ФМ: 0000000000875000 [19:10:20]line ФД: 50640 [19:10:20]line ФПД: 21340284539844 [19:10:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191021&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50640&fm=21340284539844&tin=02508201610067®Number=0000000000097022&sum=7900 [19:10:20]OFD Sender: Processing packet 50640 [packets to send 7, broken 6] [19:10:20]ProducePacketName [19:10:20]name=ofd_packets/00050640 [19:10:20]OFD Sender: To server: pG, [19:10:20]CommunicateWithHost lk.salyk.kg:30040 [19:10:20]ConnectInit lk.salyk.kg [19:10:20]line 0 [19:10:20]written 0, free lines is 4095 [19:10:20]Connected sock=7 [19:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 36 01 00 00 0F E4 2E 01 97 E8 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 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 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 1D ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D0 C5 00 00 35 04 06 00 13 68 AC 14 53 C4 17 7D 02 48 8F 42 62 D1 [19:10:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 D4 C5 47 00 5D E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D0 C5 00 00 F4 03 04 00 AD 98 1B 67 B6 04 01 00 00 0C B1 B8 2C 98 43 A6 CA [19:10:20]CommunicateWithHost err = 0 [19:10:20]CheckOFDResponse [19:10:20]1017 (14) - 77093643461234 [19:10:20]1041 (16) - 0000000000875000 [19:10:20]1040 (4) - 50640 [19:10:20]1012 (4) - 25.10.2024 13:10 [19:10:20]1206 (1) - 0 [19:10:20]OFD Sender: Remove packet 50640 [19:10:20]ProducePacketName [19:10:20]name=ofd_packets/00050640 [19:10:20]NVStorageDeleteData [19:10:20]Write to MH i2c: 01 00 00 98 1C B4 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 07 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 07 00 98 1C 00 00 00 00 00 12 0D DA [19:10:20]RasterBufferAndPrint [19:10:20]line [19:10:20]line [19:10:20]line [19:10:20]line [19:10:20]line [19:10:20]written 0, free lines is 3353 [19:10:20]process_action close_receipt done [19:10:20]requested_data is exist [19:10:20]produce_requested_data [19:10:20]requested_item fm.sn is exist - process it [19:10:20]wFMCommunicate request_size=4 [19:10:20]MH_SAM_APDU [19:10:20]CAPDU: 80 11 00 00 [19:10:20]Write to MH i2c: E2 08 00 9F 1C 80 11 00 00 00 00 00 00 35 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 [19:10:20]MH_I2C_Read... [19:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:20]Read from MH i2c: E2 17 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 17 00 9F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7C [19:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:10:20]wFMCommunicate OK [19:10:20]requested_item fd.num is exist - process it [19:10:20]SAM_PROTO_GetFieldsCounters [19:10:20]wFMCommunicate request_size=4 [19:10:20]MH_SAM_APDU [19:10:20]CAPDU: 80 13 00 00 [19:10:20]Write to MH i2c: E2 08 00 A0 1C 80 13 00 00 00 00 00 00 38 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:21]Read from MH i2c: E2 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: E2 62 00 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: E2 62 00 A0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [19:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:21]wFMCommunicate OK [19:10:21]SAM_PROTO_GetFieldsCounters done [19:10:21]requested_item shift.num is exist - process it [19:10:21]requested_item shift.opened is exist - process it [19:10:21]req_shift_opened [19:10:21]FM_GetShiftState [19:10:21]SAM_PROTO_GetShiftState [19:10:21]wFMCommunicate request_size=4 [19:10:21]MH_SAM_APDU [19:10:21]CAPDU: 80 13 01 00 [19:10:21]Write to MH i2c: E2 08 00 A1 1C 80 13 01 00 00 00 00 00 3A [19:10:21]Write i2c OK [19:10:21]MH_I2C_Read... [19:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:21]Read from MH i2c: E2 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: E2 0E 00 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: E2 0E 00 A1 1C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 32 [19:10:21]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:10:21]wFMCommunicate OK [19:10:21]SAM_PROTO_GetShiftState done [19:10:21]FM_GetShiftState done [19:10:21]req_shift_opened done [19:10:21]requested_item shift.open_date is exist - process it [19:10:21]req_shift_open_date [19:10:21]req_shift_open_date done [19:10:21]produce_requested_data done [19:10:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50640,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:10:21]process_action_free close_receipt [19:10:21]json_value_free [19:10:21]json_value_free done [19:10:21]process_json_proto returns [19:10:21]Send response to host [19:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50640,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:10:21]free response buf [19:10:21]execute_script done [19:10:21]execute_script returns [19:10:21]free content buf [19:10:21]Sock 9.Close socket [19:10:21]Sock 9.Thread stoped [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:52]accept exits with 10 [19:13:52]New connection [19:13:52]New thread 3066789220 created [19:13:52]Thread 3066645860 joined [19:13:52]Waiting for new connection... [19:13:52] Sock 10.Parse request [19:13:52]Sock 10.Check first char [19:13:52]Sock 10.First char is OK [19:13:52]request: POST /json_proto HTTP/1.0 [19:13:52]Method: POST [19:13:52]URL: /json_proto [19:13:52]Method is POST - this is cgi request [19:13:52]url: /json_proto [19:13:52]query_string will be loaded in cgi processing [19:13:52]execute_cgi json_proto POST (null) [19:13:52]execute_cgi path=json_proto method=POST [19:13:52]POST find Content-Length [19:13:52]Host: 172.17.49.196:8080 [19:13:52]Content-Length: 1240 [19:13:52]Content-Type: application/json [19:13:52] [19:13:52]POST finish read [19:13:52]Found Content-Length = 1240 [19:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164527", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 297.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:52]execute_script... [19:13: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)164527", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 297.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:52]POST & json_proto [19:13:52]process_json_proto [19:13:52]json parsed OK: [19:13:52]protocol is kg_v1.0 [19:13:52]action value=close_receipt [19:13:52]process_action close_receipt [19:13:52]cmd_close_receipt [19:13:52]MH_GetDate [19:13:52]Write to MH i2c: F0 00 00 A2 1C AD [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: F0 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: F0 09 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: F0 09 00 A2 1C 00 F3 ED 1B 67 BD 3B 11 67 88 [19:13:52]GetLastDocTimeStamp 1729883421 [19:13:52]current date 1729883635 [19:13:52]FM_GetShiftState [19:13:52]SAM_PROTO_GetShiftState [19:13:52]wFMCommunicate request_size=4 [19:13:52]MH_SAM_APDU [19:13:52]CAPDU: 80 13 01 00 [19:13:52]Write to MH i2c: E2 08 00 A3 1C 80 13 01 00 00 00 00 00 3C [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:52]Read from MH i2c: E2 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 0E 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 0E 00 A3 1C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 34 [19:13:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:13:52]wFMCommunicate OK [19:13:52]SAM_PROTO_GetShiftState done [19:13:52]FM_GetShiftState done [19:13:52]opened in 1729815177 [19:13:52]opened+sec_in_day 1729901577 [19:13:52]quantity*price = 9900 [19:13:52]sum+1 = 9901 [19:13:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243870968 Напиток Gorilla ж/б 0,45л Персик Абрикос 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 297.00 НСП 1% : 2.64 НДС 12% : 31.53 Наличными: 297.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 141 25.10.2024 19:13 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50641 ФПД: 148292843180528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191355&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50641&fm=148292843180528&tin=02508201610067®Number=0000000000097022&sum=29700 0 [19:13:53]StoreToDocumentArchive [19:13:53]shift 493 fd 50641 [19:13:53]save to /storage/0493/doc_00050641 [19:13:53]save last doc name /storage/0493/doc_00050641 to /storage/kkm_last_doc_name [19:13:53]save OK [19:13:53]Clear old archive folders... [19:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=538 [19:13:53]tlvbuf is 01EFE700 [19:13:53]SAM_PROTO_ClearQueue [19:13:53]wFMCommunicate request_size=4 [19:13:53]MH_SAM_APDU [19:13:53]CAPDU: 80 09 00 00 [19:13:53]Write to MH i2c: E2 08 00 B0 1C 80 09 00 00 00 00 00 00 3E [19:13:53]Write i2c OK [19:13:53]MH_I2C_Read... [19:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:53]Read from MH i2c: E2 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 03 00 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 03 00 B0 1C 00 90 00 40 [19:13:53]RAPDU: 90 00 [19:13:53]wFMCommunicate OK [19:13:53]SAM_PROTO_ClearQueue done [19:13:53]KKMCreateOFDPacket [19:13:53]OFDProtocolAddRootSTLVToBuf [19:13:53]FM_MakeSignedData [19:13:53]FM_MakeSignedData [19:13:53]SAM_PROTO_SignData [19:13:53]wFMCommunicate request_size=4 [19:13:53]MH_SAM_APDU [19:13:53]CAPDU: 80 0D 01 02 [19:13:53]Write to MH i2c: E2 08 00 B1 1C 80 0D 01 02 00 00 00 00 46 [19:13:53]Write i2c OK [19:13:53]MH_I2C_Read... [19:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:53]Read from MH i2c: E2 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 03 00 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 03 00 B1 1C 00 90 00 41 [19:13:53]RAPDU: 90 00 [19:13:53]wFMCommunicate OK [19:13:53]wFMCommunicate request_size=255 [19:13:53]MH_SAM_APDU [19:13:53]CAPDU: 80 0D 02 02 FA 03 00 1A 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [19:13:54]Write to MH i2c: E2 02 01 B2 1C 80 0D 02 02 FA 00 03 00 1A 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 8C [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:54]Read from MH i2c: E2 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 03 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 03 00 B2 1C 00 90 00 42 [19:13:54]RAPDU: 90 00 [19:13:54]wFMCommunicate OK [19:13:54]wFMCommunicate request_size=255 [19:13:54]MH_SAM_APDU [19:13:54]CAPDU: 80 0D 02 02 FA 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 0C 00 00 00 00 07 04 06 00 04 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F3 ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [19:13:54]Write to MH i2c: E2 02 01 B3 1C 80 0D 02 02 FA 00 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 0C 00 00 00 00 07 04 06 00 04 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F3 ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 44 [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:54]Read from MH i2c: E2 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 03 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 03 00 B3 1C 00 90 00 43 [19:13:54]RAPDU: 90 00 [19:13:54]wFMCommunicate OK [19:13:54]wFMCommunicate request_size=47 [19:13:54]MH_SAM_APDU [19:13:54]CAPDU: 80 0D 02 02 2A 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D1 C5 00 00 35 04 06 00 86 DF 1E 3D 91 F0 [19:13:54]Write to MH i2c: E2 32 00 B4 1C 80 0D 02 02 2A 00 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D1 C5 00 00 35 04 06 00 86 DF 1E 3D 91 F0 00 00 D0 [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:54]Read from MH i2c: E2 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 03 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [19:13:54]RAPDU: 90 00 [19:13:54]wFMCommunicate OK [19:13:54]wFMCommunicate request_size=4 [19:13:54]MH_SAM_APDU [19:13:54]CAPDU: 80 0D 03 02 [19:13:54]Write to MH i2c: E2 08 00 B5 1C 80 0D 03 02 00 00 00 00 4C [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:54]Read from MH i2c: E2 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 0B 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 0B 00 B5 1C 00 12 79 6C 39 CE 66 A1 FB 90 00 4D [19:13:54]RAPDU: 12 79 6C 39 CE 66 A1 FB 90 00 [19:13:54]wFMCommunicate OK [19:13:54]SAM_PROTO_SignData done [19:13:54]FM_MakeSignedData done [19:13:54]CreateOFDProtocolMessage [19:13:54]wFMCommunicate request_size=4 [19:13:54]MH_SAM_APDU [19:13:54]CAPDU: 80 11 00 00 [19:13:54]Write to MH i2c: E2 08 00 B6 1C 80 11 00 00 00 00 00 00 4C [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:54]Read from MH i2c: E2 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 17 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 17 00 B6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 93 [19:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:13:54]wFMCommunicate OK [19:13:54]CreateOFDProtocolMessage done [19:13:54]OFDSenderStorePacket 50641 [19:13:54]StoreOFDPacket docnum=50641 [19:13:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 02 00 00 C2 FB 26 02 8C 95 5A 03 01 00 03 00 1A 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 0C 00 00 00 00 07 04 06 00 04 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F3 ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D1 C5 00 00 35 04 06 00 86 DF 1E 3D 91 F0 12 79 6C 39 CE 66 A1 FB [19:13:54]CheckFolder [19:13:54]dirname=/storage/ofd_packets [19:13:54]CheckFolder done [19:13:54]ProducePacketName [19:13:54]name=ofd_packets/00050641 [19:13:54]NVStorageSaveData ofd_packets/00050641 [19:13:54]File name is /storage/ofd_packets/00050641 [19:13:54]Write 588 bytes [19:13:54]NVStorageSaveData done [19:13:54]OFDSenderStorePacket done [19:13:54]KKMCreateOFDPacket done [19:13:54]NVStorageSaveData kkm_last_timestamp [19:13:54]File name is /storage/kkm_last_timestamp [19:13:54]Write 4 bytes [19:13:54]NVStorageSaveData done [19:13:54]ExternCall_PrintAddStr [19:13:54]wPrintStart [19:13:54]Write to MH i2c: 01 00 00 B7 1C D3 [19:13:54]OFD Sender: Processing packet 50641 [packets to send 7, broken 6] [19:13:54]ProducePacketName [19:13:54]name=ofd_packets/00050641 [19:13:54]OFD Sender: To server: pG, [19:13:54]CommunicateWithHost lk.salyk.kg:30040 [19:13:54]ConnectInit lk.salyk.kg [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: 01 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: 01 07 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: 01 07 00 B7 1C 00 00 00 00 00 FF 0F E8 [19:13:54]RasterBufferAndPrint [19:13:54]line Счет N : (3)164527 [19:13:54]line ИНН: 02508201610067 [19:13:54]line Контрольно-Кассовый Чек [19:13:54]line ПРОДАЖА [19:13:54]line Товар: 4650243871781 [19:13:54]line Gorilla эн нап Orange 0,45 ж/б [19:13:54]line 1.000 * 99.00 [19:13:54]line = 99.00 [19:13:54]line НДС 12% НСП 1% [19:13:54]line > о реализуемом товаре [19:13:54]line Товар: 4650243870968 [19:13:54]line Напиток Gorilla ж/б 0,45л Персик Абрикос [19:13:54]line 1.000 * 99.00 [19:13:54]line = 99.00 [19:13:54]line НДС 12% НСП 1% [19:13:54]line > о реализуемом товаре [19:13:54]line Товар: 4870022003312 [19:13:54]line Gorilla эн нап манго-кокос 0,45 ж/б [19:13:54]line 1.000 * 99.00 [19:13:54]line = 99.00 [19:13:54]line НДС 12% НСП 1% [19:13:54]line > о реализуемом товаре [19:13:54]line ИТОГО: 297.00 [19:13:54]line НСП 1% : 2.64 [19:13:54]line НДС 12% : 31.53 [19:13:54]line Наличными: 297.00 [19:13:54]line Безнал.: 0.00 [19:13:54]line Место: АЗС № 80 "Партнер Нефть" [19:13:54]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:13:54]line СНО: Общий режим [19:13:54]line Чек 141 25.10.2024 19:13 [19:13:54]line Смена: 493 ФФД: 1.0 [19:13:54]line ЗНМ: 0300000090 [19:13:54]line РНМ: 0000000000097022 [19:13:54]line Версия ККМ: 001 [19:13:54]line ФМ: 0000000000875000 [19:13:54]line ФД: 50641 [19:13:54]line ФПД: 148292843180528 [19:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191355&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50641&fm=148292843180528&tin=02508201610067®Number=0000000000097022&sum=29700 [19:13:54]line 0 [19:13:54]written 0, free lines is 4095 [19:13:55]Connected sock=9 [19:13:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 02 00 00 C2 FB 26 02 8C 95 5A 03 01 00 03 00 1A 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 0C 00 00 00 00 07 04 06 00 04 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F3 ED 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D1 C5 00 00 35 04 06 00 86 DF 1E 3D 91 F0 12 79 6C 39 CE 66 A1 FB [19:13:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F9 FA 47 00 E0 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D1 C5 00 00 F4 03 04 00 84 99 1B 67 B6 04 01 00 00 AA 5E 36 B2 76 BA EC E8 [19:13:55]CommunicateWithHost err = 0 [19:13:55]CheckOFDResponse [19:13:55]1017 (14) - 77093643461234 [19:13:55]1041 (16) - 0000000000875000 [19:13:55]1040 (4) - 50641 [19:13:55]1012 (4) - 25.10.2024 13:13 [19:13:55]1206 (1) - 0 [19:13:55]OFD Sender: Remove packet 50641 [19:13:55]ProducePacketName [19:13:55]name=ofd_packets/00050641 [19:13:55]NVStorageDeleteData [19:13:55]Write to MH i2c: 01 00 00 ED 1C 09 [19:13:55]Write i2c OK [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: 01 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: 01 07 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: 01 07 00 ED 1C 00 00 00 00 00 76 0C 92 [19:13:55]RasterBufferAndPrint [19:13:55]line [19:13:55]line [19:13:55]line [19:13:55]line [19:13:55]line [19:13:55]written 0, free lines is 3196 [19:13:55]process_action close_receipt done [19:13:55]requested_data is exist [19:13:55]produce_requested_data [19:13:55]requested_item fm.sn is exist - process it [19:13:55]wFMCommunicate request_size=4 [19:13:55]MH_SAM_APDU [19:13:55]CAPDU: 80 11 00 00 [19:13:55]Write to MH i2c: E2 08 00 F4 1C 80 11 00 00 00 00 00 00 8A [19:13:55]Write i2c OK [19:13:55]MH_I2C_Read... [19:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:55]Read from MH i2c: E2 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 17 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 17 00 F4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D1 [19:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:13:55]wFMCommunicate OK [19:13:55]requested_item fd.num is exist - process it [19:13:55]SAM_PROTO_GetFieldsCounters [19:13:55]wFMCommunicate request_size=4 [19:13:55]MH_SAM_APDU [19:13:55]CAPDU: 80 13 00 00 [19:13:55]Write to MH i2c: E2 08 00 F5 1C 80 13 00 00 00 00 00 00 8D [19:13:55]Write i2c OK [19:13:55]MH_I2C_Read... [19:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:55]Read from MH i2c: E2 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 62 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 62 00 F5 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [19:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:55]wFMCommunicate OK [19:13:55]SAM_PROTO_GetFieldsCounters done [19:13:55]requested_item shift.num is exist - process it [19:13:55]requested_item shift.opened is exist - process it [19:13:55]req_shift_opened [19:13:55]FM_GetShiftState [19:13:55]SAM_PROTO_GetShiftState [19:13:55]wFMCommunicate request_size=4 [19:13:55]MH_SAM_APDU [19:13:55]CAPDU: 80 13 01 00 [19:13:55]Write to MH i2c: E2 08 00 F6 1C 80 13 01 00 00 00 00 00 8F [19:13:55]Write i2c OK [19:13:55]MH_I2C_Read... [19:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:55]Read from MH i2c: E2 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 0E 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 0E 00 F6 1C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 87 [19:13:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:13:55]wFMCommunicate OK [19:13:55]SAM_PROTO_GetShiftState done [19:13:55]FM_GetShiftState done [19:13:55]req_shift_opened done [19:13:55]requested_item shift.open_date is exist - process it [19:13:55]req_shift_open_date [19:13:55]req_shift_open_date done [19:13:55]produce_requested_data done [19:13:55]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50641,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:13:55]process_action_free close_receipt [19:13:55]json_value_free [19:13:55]json_value_free done [19:13:55]process_json_proto returns [19:13:55]Send response to host [19:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50641,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:13:55]free response buf [19:13:55]execute_script done [19:13:55]execute_script returns [19:13:55]free content buf [19:13:55]Sock 10.Close socket [19:13:55]Sock 10.Thread stoped [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:41]accept exits with 7 [19:15:41]New connection [19:15:41]New thread 3066645860 created [19:15:41]Thread 3066789220 joined [19:15:41]Waiting for new connection... [19:15:41] Sock 7.Parse request [19:15:41]Sock 7.Check first char [19:15:41]Sock 7.First char is OK [19:15:41]request: POST /json_proto HTTP/1.0 [19:15:41]Method: POST [19:15:41]URL: /json_proto [19:15:41]Method is POST - this is cgi request [19:15:41]url: /json_proto [19:15:41]query_string will be loaded in cgi processing [19:15:41]execute_cgi json_proto POST (null) [19:15:41]execute_cgi path=json_proto method=POST [19:15:41]POST find Content-Length [19:15:41]Host: 172.17.49.196:8080 [19:15:41]Content-Length: 884 [19:15:41]Content-Type: application/json [19:15:41] [19:15:41]POST finish read [19:15:41]Found Content-Length = 884 [19:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164528", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 414.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:41]execute_script... [19:15: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)164528", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 414.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:41]POST & json_proto [19:15:41]process_json_proto [19:15:41]json parsed OK: [19:15:41]protocol is kg_v1.0 [19:15:41]action value=close_receipt [19:15:41]process_action close_receipt [19:15:41]cmd_close_receipt [19:15:41]MH_GetDate [19:15:41]Write to MH i2c: F0 00 00 F7 1C 02 [19:15:41]Write i2c OK [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: F0 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: F0 09 00 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: F0 09 00 F7 1C 00 60 EE 1B 67 BD 3B 11 67 4B [19:15:41]GetLastDocTimeStamp 1729883635 [19:15:41]current date 1729883744 [19:15:41]FM_GetShiftState [19:15:41]SAM_PROTO_GetShiftState [19:15:41]wFMCommunicate request_size=4 [19:15:41]MH_SAM_APDU [19:15:41]CAPDU: 80 13 01 00 [19:15:41]Write to MH i2c: E2 08 00 F8 1C 80 13 01 00 00 00 00 00 91 [19:15:41]Write i2c OK [19:15:41]MH_I2C_Read... [19:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:41]Read from MH i2c: E2 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: E2 0E 00 [19:15:41]MH_I2C_Read... [19:15:41]Read from MH i2c: E2 0E 00 F8 1C 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 89 [19:15:41]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:15:41]wFMCommunicate OK [19:15:41]SAM_PROTO_GetShiftState done [19:15:41]FM_GetShiftState done [19:15:41]opened in 1729815177 [19:15:41]opened+sec_in_day 1729901577 [19:15:41]quantity*price = 14400 [19:15:41]sum+1 = 14401 [19:15:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001061104 Коньяк Семетей 0,2л 1.000 * 270.00 = 270.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 414.00 НСП 1% : 3.66 НДС 12% : 43.96 Наличными: 414.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 142 25.10.2024 19:15 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50642 ФПД: 49582642960438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191544&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50642&fm=49582642960438&tin=02508201610067®Number=0000000000097022&sum=41400 0 [19:15:42]StoreToDocumentArchive [19:15:42]shift 493 fd 50642 [19:15:42]save to /storage/0493/doc_00050642 [19:15:42]save last doc name /storage/0493/doc_00050642 to /storage/kkm_last_doc_name [19:15:42]save OK [19:15:42]Clear old archive folders... [19:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=378 [19:15:42]tlvbuf is 01E65960 [19:15:42]SAM_PROTO_ClearQueue [19:15:42]wFMCommunicate request_size=4 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 09 00 00 [19:15:42]Write to MH i2c: E2 08 00 05 1D 80 09 00 00 00 00 00 00 94 [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:42]Read from MH i2c: E2 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 05 1D 00 90 00 96 [19:15:42]RAPDU: 90 00 [19:15:42]wFMCommunicate OK [19:15:42]SAM_PROTO_ClearQueue done [19:15:42]KKMCreateOFDPacket [19:15:42]OFDProtocolAddRootSTLVToBuf [19:15:42]FM_MakeSignedData [19:15:42]FM_MakeSignedData [19:15:42]SAM_PROTO_SignData [19:15:42]wFMCommunicate request_size=4 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 0D 01 02 [19:15:42]Write to MH i2c: E2 08 00 06 1D 80 0D 01 02 00 00 00 00 9C [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:42]Read from MH i2c: E2 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 06 1D 00 90 00 97 [19:15:42]RAPDU: 90 00 [19:15:42]wFMCommunicate OK [19:15:42]wFMCommunicate request_size=255 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 [19:15:42]Write to MH i2c: E2 02 01 07 1D 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 00 00 1F [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:42]Read from MH i2c: E2 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 [19:15:42]MH_I2C_Read... [19:15:42]Read from MH i2c: E2 03 00 07 1D 00 90 00 98 [19:15:42]RAPDU: 90 00 [19:15:42]wFMCommunicate OK [19:15:42]wFMCommunicate request_size=137 [19:15:42]MH_SAM_APDU [19:15:42]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 B8 A1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 60 EE 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D2 C5 00 00 35 04 06 00 2D 18 5B D2 18 36 [19:15:42]Write to MH i2c: E2 8C 00 08 1D 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 B8 A1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 60 EE 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D2 C5 00 00 35 04 06 00 2D 18 5B D2 18 36 00 00 FC [19:15:42]Write i2c OK [19:15:42]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 03 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 03 00 08 1D 00 90 00 99 [19:15:43]RAPDU: 90 00 [19:15:43]wFMCommunicate OK [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 0D 03 02 [19:15:43]Write to MH i2c: E2 08 00 09 1D 80 0D 03 02 00 00 00 00 A1 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0B 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0B 00 09 1D 00 2B D4 86 A2 CF E9 72 94 90 00 87 [19:15:43]RAPDU: 2B D4 86 A2 CF E9 72 94 90 00 [19:15:43]wFMCommunicate OK [19:15:43]SAM_PROTO_SignData done [19:15:43]FM_MakeSignedData done [19:15:43]CreateOFDProtocolMessage [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 11 00 00 [19:15:43]Write to MH i2c: E2 08 00 0A 1D 80 11 00 00 00 00 00 00 A1 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 17 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 17 00 0A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 E8 [19:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:15:43]wFMCommunicate OK [19:15:43]CreateOFDProtocolMessage done [19:15:43]OFDSenderStorePacket 50642 [19:15:43]StoreOFDPacket docnum=50642 [19:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8E 01 00 00 05 AC 86 01 91 7D 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 B8 A1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 60 EE 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D2 C5 00 00 35 04 06 00 2D 18 5B D2 18 36 2B D4 86 A2 CF E9 72 94 [19:15:43]CheckFolder [19:15:43]dirname=/storage/ofd_packets [19:15:43]CheckFolder done [19:15:43]ProducePacketName [19:15:43]name=ofd_packets/00050642 [19:15:43]NVStorageSaveData ofd_packets/00050642 [19:15:43]File name is /storage/ofd_packets/00050642 [19:15:43]Write 428 bytes [19:15:43]NVStorageSaveData done [19:15:43]OFDSenderStorePacket done [19:15:43]KKMCreateOFDPacket done [19:15:43]NVStorageSaveData kkm_last_timestamp [19:15:43]File name is /storage/kkm_last_timestamp [19:15:43]Write 4 bytes [19:15:43]NVStorageSaveData done [19:15:43]ExternCall_PrintAddStr [19:15:43]wPrintStart [19:15:43]Write to MH i2c: 01 00 00 0B 1D 28 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 07 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 07 00 0B 1D 00 00 00 00 00 FF 0F 3D [19:15:43]RasterBufferAndPrint [19:15:43]line Счет N : (3)164528 [19:15:43]line ИНН: 02508201610067 [19:15:43]line Контрольно-Кассовый Чек [19:15:43]line ПРОДАЖА [19:15:43]line Товар: 48747066 [19:15:43]line Сигареты Winston True Silver [19:15:43]line 1.000 * 144.00 [19:15:43]line = 144.00 [19:15:43]line НДС 12% НСП 1% [19:15:43]line > о реализуемом товаре [19:15:43]line Товар: 4700001061104 [19:15:43]line Коньяк Семетей 0,2л [19:15:43]line 1.000 * 270.00 [19:15:43]line = 270.00 [19:15:43]line НДС 12% НСП 1% [19:15:43]line > о реализуемом товаре [19:15:43]line ИТОГО: 414.00 [19:15:43]line НСП 1% : 3.66 [19:15:43]line НДС 12% : 43.96 [19:15:43]line Наличными: 414.00 [19:15:43]line Безнал.: 0.00 [19:15:43]line Место: АЗС № 80 "Партнер Нефть" [19:15:43]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:15:43]line СНО: Общий режим [19:15:43]line Чек 142 25.10.2024 19:15 [19:15:43]line Смена: 493 ФФД: 1.0 [19:15:43]line ЗНМ: 0300000090 [19:15:43]line РНМ: 0000000000097022 [19:15:43]line Версия ККМ: 001 [19:15:43]line ФМ: 0000000000875000 [19:15:43]line ФД: 50642 [19:15:43]line ФПД: 49582642960438 [19:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191544&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50642&fm=49582642960438&tin=02508201610067®Number=0000000000097022&sum=41400 [19:15:43]OFD Sender: Processing packet 50642 [packets to send 7, broken 6] [19:15:43]ProducePacketName [19:15:43]name=ofd_packets/00050642 [19:15:43]OFD Sender: To server: pG, [19:15:43]CommunicateWithHost lk.salyk.kg:30040 [19:15:43]ConnectInit lk.salyk.kg [19:15:43]line 0 [19:15:43]written 0, free lines is 4095 [19:15:43]Connected sock=10 [19:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8E 01 00 00 05 AC 86 01 91 7D 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 11 00 00 00 00 07 04 06 00 B8 A1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 60 EE 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D2 C5 00 00 35 04 06 00 2D 18 5B D2 18 36 2B D4 86 A2 CF E9 72 94 [19:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 FB CB 47 00 7D 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D2 C5 00 00 F4 03 04 00 F0 99 1B 67 B6 04 01 00 00 0B 60 82 86 6A 0B 79 BD [19:15:43]CommunicateWithHost err = 0 [19:15:43]CheckOFDResponse [19:15:43]1017 (14) - 77093643461234 [19:15:43]1041 (16) - 0000000000875000 [19:15:43]1040 (4) - 50642 [19:15:43]1012 (4) - 25.10.2024 13:15 [19:15:43]1206 (1) - 0 [19:15:43]OFD Sender: Remove packet 50642 [19:15:43]ProducePacketName [19:15:43]name=ofd_packets/00050642 [19:15:43]NVStorageDeleteData [19:15:43]Write to MH i2c: 01 00 00 39 1D 56 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 07 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: 01 07 00 39 1D 00 00 00 00 00 CD 0C 36 [19:15:43]RasterBufferAndPrint [19:15:43]line [19:15:43]line [19:15:43]line [19:15:43]line [19:15:43]line [19:15:43]written 0, free lines is 3286 [19:15:43]process_action close_receipt done [19:15:43]requested_data is exist [19:15:43]produce_requested_data [19:15:43]requested_item fm.sn is exist - process it [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 11 00 00 [19:15:43]Write to MH i2c: E2 08 00 40 1D 80 11 00 00 00 00 00 00 D7 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 17 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 17 00 40 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 1E [19:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:15:44]wFMCommunicate OK [19:15:44]requested_item fd.num is exist - process it [19:15:44]SAM_PROTO_GetFieldsCounters [19:15:44]wFMCommunicate request_size=4 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 13 00 00 [19:15:44]Write to MH i2c: E2 08 00 41 1D 80 13 00 00 00 00 00 00 DA [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 62 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 62 00 41 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [19:15:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:44]wFMCommunicate OK [19:15:44]SAM_PROTO_GetFieldsCounters done [19:15:44]requested_item shift.num is exist - process it [19:15:44]requested_item shift.opened is exist - process it [19:15:44]req_shift_opened [19:15:44]FM_GetShiftState [19:15:44]SAM_PROTO_GetShiftState [19:15:44]wFMCommunicate request_size=4 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 13 01 00 [19:15:44]Write to MH i2c: E2 08 00 42 1D 80 13 01 00 00 00 00 00 DC [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 0E 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 0E 00 42 1D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D4 [19:15:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:15:44]wFMCommunicate OK [19:15:44]SAM_PROTO_GetShiftState done [19:15:44]FM_GetShiftState done [19:15:44]req_shift_opened done [19:15:44]requested_item shift.open_date is exist - process it [19:15:44]req_shift_open_date [19:15:44]req_shift_open_date done [19:15:44]produce_requested_data done [19:15:44]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50642,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:15:44]process_action_free close_receipt [19:15:44]json_value_free [19:15:44]json_value_free done [19:15:44]process_json_proto returns [19:15:44]Send response to host [19:15:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50642,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:15:44]free response buf [19:15:44]execute_script done [19:15:44]execute_script returns [19:15:44]free content buf [19:15:44]Sock 7.Close socket [19:15:44]Sock 7.Thread stoped [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:31]accept exits with 9 [19:18:31]New connection [19:18:31]New thread 3066789220 created [19:18:31]Thread 3066645860 joined [19:18:31]Waiting for new connection... [19:18:31] Sock 9.Parse request [19:18:31]Sock 9.Check first char [19:18:31]Sock 9.First char is OK [19:18:31]request: POST /json_proto HTTP/1.0 [19:18:31]Method: POST [19:18:31]URL: /json_proto [19:18:31]Method is POST - this is cgi request [19:18:31]url: /json_proto [19:18:31]query_string will be loaded in cgi processing [19:18:31]execute_cgi json_proto POST (null) [19:18:31]execute_cgi path=json_proto method=POST [19:18:31]POST find Content-Length [19:18:31]Host: 172.17.49.196:8080 [19:18:31]Content-Length: 641 [19:18:31]Content-Type: application/json [19:18:31] [19:18:31]POST finish read [19:18:31]Found Content-Length = 641 [19:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164529", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:31]execute_script... [19:18:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164529", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:31]POST & json_proto [19:18:31]process_json_proto [19:18:31]json parsed OK: [19:18:31]protocol is kg_v1.0 [19:18:31]action value=close_receipt [19:18:31]process_action close_receipt [19:18:31]cmd_close_receipt [19:18:31]MH_GetDate [19:18:31]Write to MH i2c: F0 00 00 43 1D 4F [19:18:31]Write i2c OK [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: F0 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: F0 09 00 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: F0 09 00 43 1D 00 0A EF 1B 67 BD 3B 11 67 43 [19:18:31]GetLastDocTimeStamp 1729883744 [19:18:31]current date 1729883914 [19:18:31]FM_GetShiftState [19:18:31]SAM_PROTO_GetShiftState [19:18:31]wFMCommunicate request_size=4 [19:18:31]MH_SAM_APDU [19:18:31]CAPDU: 80 13 01 00 [19:18:31]Write to MH i2c: E2 08 00 44 1D 80 13 01 00 00 00 00 00 DE [19:18:31]Write i2c OK [19:18:31]MH_I2C_Read... [19:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:31]Read from MH i2c: E2 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: E2 0E 00 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: E2 0E 00 44 1D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D6 [19:18:31]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:18:31]wFMCommunicate OK [19:18:31]SAM_PROTO_GetShiftState done [19:18:31]FM_GetShiftState done [19:18:31]opened in 1729815177 [19:18:31]opened+sec_in_day 1729901577 [19:18:31]quantity*price = 13000 [19:18:31]sum+1 = 13001 [19:18:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 143 25.10.2024 19:18 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50643 ФПД: 34422411520622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191834&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50643&fm=34422411520622&tin=02508201610067®Number=0000000000097022&sum=13000 0 [19:18:32]StoreToDocumentArchive [19:18:32]shift 493 fd 50643 [19:18:32]save to /storage/0493/doc_00050643 [19:18:32]save last doc name /storage/0493/doc_00050643 to /storage/kkm_last_doc_name [19:18:32]save OK [19:18:32]Clear old archive folders... [19:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:18:32]tlvbuf is 01EBCF20 [19:18:32]SAM_PROTO_ClearQueue [19:18:32]wFMCommunicate request_size=4 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 09 00 00 [19:18:32]Write to MH i2c: E2 08 00 51 1D 80 09 00 00 00 00 00 00 E0 [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 51 1D 00 90 00 E2 [19:18:32]RAPDU: 90 00 [19:18:32]wFMCommunicate OK [19:18:32]SAM_PROTO_ClearQueue done [19:18:32]KKMCreateOFDPacket [19:18:32]OFDProtocolAddRootSTLVToBuf [19:18:32]FM_MakeSignedData [19:18:32]FM_MakeSignedData [19:18:32]SAM_PROTO_SignData [19:18:32]wFMCommunicate request_size=4 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 0D 01 02 [19:18:32]Write to MH i2c: E2 08 00 52 1D 80 0D 01 02 00 00 00 00 E8 [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 52 1D 00 90 00 E3 [19:18:32]RAPDU: 90 00 [19:18:32]wFMCommunicate OK [19:18:32]wFMCommunicate request_size=255 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8F 00 00 00 F4 03 04 00 0A EF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 [19:18:32]Write to MH i2c: E2 02 01 53 1D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8F 00 00 00 F4 03 04 00 0A EF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 B3 [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 53 1D 00 90 00 E4 [19:18:32]RAPDU: 90 00 [19:18:32]wFMCommunicate OK [19:18:32]wFMCommunicate request_size=32 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 30 10 04 04 00 D3 C5 00 00 35 04 06 00 1F 4E 97 9C 6A 6E [19:18:32]Write to MH i2c: E2 23 00 54 1D 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 30 10 04 04 00 D3 C5 00 00 35 04 06 00 1F 4E 97 9C 6A 6E 00 00 4C [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 54 1D 00 90 00 E5 [19:18:32]RAPDU: 90 00 [19:18:32]wFMCommunicate OK [19:18:32]wFMCommunicate request_size=4 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 0D 03 02 [19:18:32]Write to MH i2c: E2 08 00 55 1D 80 0D 03 02 00 00 00 00 ED [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 0B 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 0B 00 55 1D 00 87 31 DF A1 65 80 BF 4C 90 00 16 [19:18:32]RAPDU: 87 31 DF A1 65 80 BF 4C 90 00 [19:18:32]wFMCommunicate OK [19:18:32]SAM_PROTO_SignData done [19:18:32]FM_MakeSignedData done [19:18:32]CreateOFDProtocolMessage [19:18:32]wFMCommunicate request_size=4 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 11 00 00 [19:18:32]Write to MH i2c: E2 08 00 56 1D 80 11 00 00 00 00 00 00 ED [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 17 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 17 00 56 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 34 [19:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:18:32]wFMCommunicate OK [19:18:32]CreateOFDProtocolMessage done [19:18:32]OFDSenderStorePacket 50643 [19:18:32]StoreOFDPacket docnum=50643 [19:18:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 23 6A 1D 01 A0 2C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8F 00 00 00 F4 03 04 00 0A EF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D3 C5 00 00 35 04 06 00 1F 4E 97 9C 6A 6E 87 31 DF A1 65 80 BF 4C [19:18:32]CheckFolder [19:18:32]dirname=/storage/ofd_packets [19:18:32]CheckFolder done [19:18:32]ProducePacketName [19:18:32]name=ofd_packets/00050643 [19:18:32]NVStorageSaveData ofd_packets/00050643 [19:18:32]File name is /storage/ofd_packets/00050643 [19:18:32]Write 323 bytes [19:18:32]NVStorageSaveData done [19:18:32]OFDSenderStorePacket done [19:18:32]KKMCreateOFDPacket done [19:18:32]NVStorageSaveData kkm_last_timestamp [19:18:32]File name is /storage/kkm_last_timestamp [19:18:32]Write 4 bytes [19:18:32]NVStorageSaveData done [19:18:32]ExternCall_PrintAddStr [19:18:32]wPrintStart [19:18:32]Write to MH i2c: 01 00 00 57 1D 74 [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: 01 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: 01 07 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: 01 07 00 57 1D 00 00 00 00 00 FF 0F 89 [19:18:32]RasterBufferAndPrint [19:18:32]line Счет N : (3)164529 [19:18:32]line ИНН: 02508201610067 [19:18:32]line Контрольно-Кассовый Чек [19:18:32]line ПРОДАЖА [19:18:32]line Товар: 4630007400389 [19:18:32]line Семечки ДЖИНН 140г [19:18:32]line 1.000 * 130.00 [19:18:32]line = 130.00 [19:18:32]line НДС 12% НСП 1% [19:18:32]line > о реализуемом товаре [19:18:32]line ИТОГО: 130.00 [19:18:32]line НСП 1% : 1.15 [19:18:32]line НДС 12% : 13.80 [19:18:32]line Наличными: 130.00 [19:18:32]line Безнал.: 0.00 [19:18:32]line Место: АЗС № 80 "Партнер Нефть" [19:18:32]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:18:32]line СНО: Общий режим [19:18:32]line Чек 143 25.10.2024 19:18 [19:18:32]line Смена: 493 ФФД: 1.0 [19:18:32]line ЗНМ: 0300000090 [19:18:32]line РНМ: 0000000000097022 [19:18:32]line Версия ККМ: 001 [19:18:32]line ФМ: 0000000000875000 [19:18:32]line ФД: 50643 [19:18:32]line ФПД: 34422411520622 [19:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T191834&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50643&fm=34422411520622&tin=02508201610067®Number=0000000000097022&sum=13000 [19:18:32]line 0 [19:18:33]written 0, free lines is 4095 [19:18:33]OFD Sender: Processing packet 50643 [packets to send 7, broken 6] [19:18:33]ProducePacketName [19:18:33]name=ofd_packets/00050643 [19:18:33]OFD Sender: To server: pG, [19:18:33]CommunicateWithHost lk.salyk.kg:30040 [19:18:33]ConnectInit lk.salyk.kg [19:18:33]Connected sock=10 [19:18:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 25 01 00 00 23 6A 1D 01 A0 2C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8F 00 00 00 F4 03 04 00 0A EF 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D3 C5 00 00 35 04 06 00 1F 4E 97 9C 6A 6E 87 31 DF A1 65 80 BF 4C [19:18:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 2A 01 47 00 97 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D3 C5 00 00 F4 03 04 00 9A 9A 1B 67 B6 04 01 00 00 8E 25 9E 19 F9 C3 36 33 [19:18:33]CommunicateWithHost err = 0 [19:18:33]CheckOFDResponse [19:18:33]1017 (14) - 77093643461234 [19:18:33]1041 (16) - 0000000000875000 [19:18:33]1040 (4) - 50643 [19:18:33]1012 (4) - 25.10.2024 13:18 [19:18:33]1206 (1) - 0 [19:18:33]OFD Sender: Remove packet 50643 [19:18:33]ProducePacketName [19:18:33]name=ofd_packets/00050643 [19:18:33]NVStorageDeleteData [19:18:33]Write to MH i2c: 01 00 00 7F 1D 9C [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: 01 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: 01 07 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: 01 07 00 7F 1D 00 00 00 00 00 1F 0D CF [19:18:33]RasterBufferAndPrint [19:18:33]line [19:18:33]line [19:18:33]line [19:18:33]line [19:18:33]line [19:18:33]written 0, free lines is 3368 [19:18:33]process_action close_receipt done [19:18:33]requested_data is exist [19:18:33]produce_requested_data [19:18:33]requested_item fm.sn is exist - process it [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 11 00 00 [19:18:33]Write to MH i2c: E2 08 00 86 1D 80 11 00 00 00 00 00 00 1D [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:33]Read from MH i2c: E2 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 17 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 17 00 86 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 64 [19:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:18:33]wFMCommunicate OK [19:18:33]requested_item fd.num is exist - process it [19:18:33]SAM_PROTO_GetFieldsCounters [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 13 00 00 [19:18:33]Write to MH i2c: E2 08 00 87 1D 80 13 00 00 00 00 00 00 20 [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:33]Read from MH i2c: E2 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 62 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 62 00 87 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [19:18:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:33]wFMCommunicate OK [19:18:33]SAM_PROTO_GetFieldsCounters done [19:18:33]requested_item shift.num is exist - process it [19:18:33]requested_item shift.opened is exist - process it [19:18:33]req_shift_opened [19:18:33]FM_GetShiftState [19:18:33]SAM_PROTO_GetShiftState [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 13 01 00 [19:18:33]Write to MH i2c: E2 08 00 88 1D 80 13 01 00 00 00 00 00 22 [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:34]Read from MH i2c: E2 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 0E 00 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 0E 00 88 1D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 1A [19:18:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:18:34]wFMCommunicate OK [19:18:34]SAM_PROTO_GetShiftState done [19:18:34]FM_GetShiftState done [19:18:34]req_shift_opened done [19:18:34]requested_item shift.open_date is exist - process it [19:18:34]req_shift_open_date [19:18:34]req_shift_open_date done [19:18:34]produce_requested_data done [19:18:34]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50643,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:18:34]process_action_free close_receipt [19:18:34]json_value_free [19:18:34]json_value_free done [19:18:34]process_json_proto returns [19:18:34]Send response to host [19:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50643,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:18:34]free response buf [19:18:34]execute_script done [19:18:34]execute_script returns [19:18:34]free content buf [19:18:34]Sock 9.Close socket [19:18:34]Sock 9.Thread stoped [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:52]accept exits with 7 [19:23:52]New connection [19:23:52]New thread 3066645860 created [19:23:52]Thread 3066789220 joined [19:23:52]Waiting for new connection... [19:23:52] Sock 7.Parse request [19:23:52]Sock 7.Check first char [19:23:52]Sock 7.First char is OK [19:23:52]request: POST /json_proto HTTP/1.0 [19:23:52]Method: POST [19:23:52]URL: /json_proto [19:23:52]Method is POST - this is cgi request [19:23:52]url: /json_proto [19:23:52]query_string will be loaded in cgi processing [19:23:52]execute_cgi json_proto POST (null) [19:23:52]execute_cgi path=json_proto method=POST [19:23:52]POST find Content-Length [19:23:52]Host: 172.17.49.196:8080 [19:23:52]Content-Length: 782 [19:23:52]Content-Type: application/json [19:23:52] [19:23:52]POST finish read [19:23:52]Found Content-Length = 782 [19:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164530", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:52]execute_script... [19:23: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)164530", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:52]POST & json_proto [19:23:52]process_json_proto [19:23:52]json parsed OK: [19:23:52]protocol is kg_v1.0 [19:23:52]action value=close_receipt [19:23:52]process_action close_receipt [19:23:52]cmd_close_receipt [19:23:52]MH_GetDate [19:23:52]Write to MH i2c: F0 00 00 89 1D 95 [19:23:52]Write i2c OK [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: F0 [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: F0 09 00 [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: F0 09 00 89 1D 00 4B F0 1B 67 BD 3B 11 67 CB [19:23:52]GetLastDocTimeStamp 1729883914 [19:23:52]current date 1729884235 [19:23:52]FM_GetShiftState [19:23:52]SAM_PROTO_GetShiftState [19:23:52]wFMCommunicate request_size=4 [19:23:52]MH_SAM_APDU [19:23:52]CAPDU: 80 13 01 00 [19:23:52]Write to MH i2c: E2 08 00 8A 1D 80 13 01 00 00 00 00 00 24 [19:23:52]Write i2c OK [19:23:52]MH_I2C_Read... [19:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:52]Read from MH i2c: E2 [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: E2 0E 00 [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: E2 0E 00 8A 1D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 1C [19:23:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:23:52]wFMCommunicate OK [19:23:52]SAM_PROTO_GetShiftState done [19:23:52]FM_GetShiftState done [19:23:52]opened in 1729815177 [19:23:52]opened+sec_in_day 1729901577 [19:23:52]quantity*price = 4500 [19:23:52]sum+1 = 4501 [19:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 144 25.10.2024 19:23 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50644 ФПД: 217994294557582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192355&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50644&fm=217994294557582&tin=02508201610067®Number=0000000000097022&sum=4500 0 [19:23:53]StoreToDocumentArchive [19:23:53]shift 493 fd 50644 [19:23:53]save to /storage/0493/doc_00050644 [19:23:53]save last doc name /storage/0493/doc_00050644 to /storage/kkm_last_doc_name [19:23:53]save OK [19:23:53]Clear old archive folders... [19:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:23:53]tlvbuf is 01E3A9E0 [19:23:53]SAM_PROTO_ClearQueue [19:23:53]wFMCommunicate request_size=4 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 09 00 00 [19:23:53]Write to MH i2c: E2 08 00 97 1D 80 09 00 00 00 00 00 00 26 [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 97 1D 00 90 00 28 [19:23:53]RAPDU: 90 00 [19:23:53]wFMCommunicate OK [19:23:53]SAM_PROTO_ClearQueue done [19:23:53]KKMCreateOFDPacket [19:23:53]OFDProtocolAddRootSTLVToBuf [19:23:53]FM_MakeSignedData [19:23:53]FM_MakeSignedData [19:23:53]SAM_PROTO_SignData [19:23:53]wFMCommunicate request_size=4 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 0D 01 02 [19:23:53]Write to MH i2c: E2 08 00 98 1D 80 0D 01 02 00 00 00 00 2E [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 98 1D 00 90 00 29 [19:23:53]RAPDU: 90 00 [19:23:53]wFMCommunicate OK [19:23:53]wFMCommunicate request_size=255 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 4B F0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [19:23:53]Write to MH i2c: E2 02 01 99 1D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 4B F0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 49 [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 99 1D 00 90 00 2A [19:23:53]RAPDU: 90 00 [19:23:53]wFMCommunicate OK [19:23:53]wFMCommunicate request_size=41 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D4 C5 00 00 35 04 06 00 C6 43 C0 7D 7B 8E [19:23:53]Write to MH i2c: E2 2C 00 9A 1D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D4 C5 00 00 35 04 06 00 C6 43 C0 7D 7B 8E 00 00 DC [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 9A 1D 00 90 00 2B [19:23:53]RAPDU: 90 00 [19:23:53]wFMCommunicate OK [19:23:53]wFMCommunicate request_size=4 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 0D 03 02 [19:23:53]Write to MH i2c: E2 08 00 9B 1D 80 0D 03 02 00 00 00 00 33 [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 0B 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 0B 00 9B 1D 00 EB 32 CF F0 93 0B 84 A2 90 00 D4 [19:23:53]RAPDU: EB 32 CF F0 93 0B 84 A2 90 00 [19:23:53]wFMCommunicate OK [19:23:53]SAM_PROTO_SignData done [19:23:53]FM_MakeSignedData done [19:23:53]CreateOFDProtocolMessage [19:23:53]wFMCommunicate request_size=4 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 11 00 00 [19:23:53]Write to MH i2c: E2 08 00 9C 1D 80 11 00 00 00 00 00 00 33 [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 17 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 17 00 9C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7A [19:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:23:53]wFMCommunicate OK [19:23:53]CreateOFDProtocolMessage done [19:23:53]OFDSenderStorePacket 50644 [19:23:53]StoreOFDPacket docnum=50644 [19:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 A7 4C 26 01 80 3A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 4B F0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D4 C5 00 00 35 04 06 00 C6 43 C0 7D 7B 8E EB 32 CF F0 93 0B 84 A2 [19:23:53]CheckFolder [19:23:53]dirname=/storage/ofd_packets [19:23:53]CheckFolder done [19:23:53]ProducePacketName [19:23:53]name=ofd_packets/00050644 [19:23:53]NVStorageSaveData ofd_packets/00050644 [19:23:53]File name is /storage/ofd_packets/00050644 [19:23:53]Write 332 bytes [19:23:53]NVStorageSaveData done [19:23:53]OFDSenderStorePacket done [19:23:53]KKMCreateOFDPacket done [19:23:53]NVStorageSaveData kkm_last_timestamp [19:23:53]File name is /storage/kkm_last_timestamp [19:23:53]Write 4 bytes [19:23:53]NVStorageSaveData done [19:23:53]ExternCall_PrintAddStr [19:23:53]wPrintStart [19:23:53]Write to MH i2c: 01 00 00 9D 1D BA [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: 01 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: 01 07 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: 01 07 00 9D 1D 00 00 00 00 00 FF 0F CF [19:23:53]RasterBufferAndPrint [19:23:53]line Счет N : (3)164530 [19:23:53]line ИНН: 02508201610067 [19:23:53]line Контрольно-Кассовый Чек [19:23:53]line ПРОДАЖА [19:23:53]line Товар: 4870001159955 [19:23:53]line Вода ASU пит н.газ ПЭТ 1л [19:23:53]line 1.000 * 45.00 [19:23:53]line = 45.00 [19:23:53]line НДС 12% НСП 1% [19:23:53]line > о реализуемом товаре [19:23:53]line ИТОГО: 45.00 [19:23:53]line НСП 1% : 0.40 [19:23:53]line НДС 12% : 4.78 [19:23:53]line Наличными: 0.00 [19:23:53]line Безнал.: 45.00 [19:23:53]line Место: АЗС № 80 "Партнер Нефть" [19:23:53]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:23:53]line СНО: Общий режим [19:23:53]line Чек 144 25.10.2024 19:23 [19:23:53]line Смена: 493 ФФД: 1.0 [19:23:53]line ЗНМ: 0300000090 [19:23:53]line РНМ: 0000000000097022 [19:23:53]line Версия ККМ: 001 [19:23:53]line Платежная система: Mbank [19:23:53]line ФМ: 0000000000875000 [19:23:53]line ФД: 50644 [19:23:54]line ФПД: 217994294557582 [19:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192355&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50644&fm=217994294557582&tin=02508201610067®Number=0000000000097022&sum=4500 [19:23:54]line 0 [19:23:54]OFD Sender: Processing packet 50644 [packets to send 7, broken 6] [19:23:54]ProducePacketName [19:23:54]name=ofd_packets/00050644 [19:23:54]OFD Sender: To server: pG, [19:23:54]CommunicateWithHost lk.salyk.kg:30040 [19:23:54]ConnectInit lk.salyk.kg [19:23:54]written 0, free lines is 4095 [19:23:54]Connected sock=10 [19:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 A7 4C 26 01 80 3A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 4B F0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D4 C5 00 00 35 04 06 00 C6 43 C0 7D 7B 8E EB 32 CF F0 93 0B 84 A2 [19:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E6 EA 47 00 06 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D4 C5 00 00 F4 03 04 00 DB 9B 1B 67 B6 04 01 00 00 55 3A 5F 20 AA 41 5D B2 [19:23:54]CommunicateWithHost err = 0 [19:23:54]CheckOFDResponse [19:23:54]1017 (14) - 77093643461234 [19:23:54]1041 (16) - 0000000000875000 [19:23:54]1040 (4) - 50644 [19:23:54]1012 (4) - 25.10.2024 13:23 [19:23:54]1206 (1) - 0 [19:23:54]OFD Sender: Remove packet 50644 [19:23:54]ProducePacketName [19:23:54]name=ofd_packets/00050644 [19:23:54]NVStorageDeleteData [19:23:54]Write to MH i2c: 01 00 00 C6 1D E3 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: 01 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: 01 07 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: 01 07 00 C6 1D 00 00 00 00 00 16 0D 0D [19:23:54]RasterBufferAndPrint [19:23:54]line [19:23:54]line [19:23:54]line [19:23:54]line [19:23:54]line [19:23:54]written 0, free lines is 3357 [19:23:54]process_action close_receipt done [19:23:54]requested_data is exist [19:23:54]produce_requested_data [19:23:54]requested_item fm.sn is exist - process it [19:23:54]wFMCommunicate request_size=4 [19:23:54]MH_SAM_APDU [19:23:54]CAPDU: 80 11 00 00 [19:23:54]Write to MH i2c: E2 08 00 CD 1D 80 11 00 00 00 00 00 00 64 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:54]Read from MH i2c: E2 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 17 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 17 00 CD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AB [19:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:23:54]wFMCommunicate OK [19:23:54]requested_item fd.num is exist - process it [19:23:54]SAM_PROTO_GetFieldsCounters [19:23:54]wFMCommunicate request_size=4 [19:23:54]MH_SAM_APDU [19:23:54]CAPDU: 80 13 00 00 [19:23:54]Write to MH i2c: E2 08 00 CE 1D 80 13 00 00 00 00 00 00 67 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:54]Read from MH i2c: E2 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 62 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 62 00 CE 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [19:23:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:54]wFMCommunicate OK [19:23:54]SAM_PROTO_GetFieldsCounters done [19:23:54]requested_item shift.num is exist - process it [19:23:54]requested_item shift.opened is exist - process it [19:23:54]req_shift_opened [19:23:54]FM_GetShiftState [19:23:54]SAM_PROTO_GetShiftState [19:23:54]wFMCommunicate request_size=4 [19:23:54]MH_SAM_APDU [19:23:54]CAPDU: 80 13 01 00 [19:23:54]Write to MH i2c: E2 08 00 CF 1D 80 13 01 00 00 00 00 00 69 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:54]Read from MH i2c: E2 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 0E 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 0E 00 CF 1D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 61 [19:23:54]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:23:54]wFMCommunicate OK [19:23:54]SAM_PROTO_GetShiftState done [19:23:54]FM_GetShiftState done [19:23:54]req_shift_opened done [19:23:54]requested_item shift.open_date is exist - process it [19:23:54]req_shift_open_date [19:23:54]req_shift_open_date done [19:23:54]produce_requested_data done [19:23:54]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50644,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:23:54]process_action_free close_receipt [19:23:54]json_value_free [19:23:54]json_value_free done [19:23:54]process_json_proto returns [19:23:54]Send response to host [19:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50644,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:23:54]free response buf [19:23:54]execute_script done [19:23:54]execute_script returns [19:23:54]free content buf [19:23:54]Sock 7.Close socket [19:23:54]Sock 7.Thread stoped [19:23:54]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:21]accept exits with 9 [19:26:21]New connection [19:26:21]New thread 3066789220 created [19:26:21]Thread 3066645860 joined [19:26:21]Waiting for new connection... [19:26:21] Sock 9.Parse request [19:26:21]Sock 9.Check first char [19:26:21]Sock 9.First char is OK [19:26:21]request: POST /json_proto HTTP/1.0 [19:26:21]Method: POST [19:26:21]URL: /json_proto [19:26:21]Method is POST - this is cgi request [19:26:21]url: /json_proto [19:26:21]query_string will be loaded in cgi processing [19:26:21]execute_cgi json_proto POST (null) [19:26:21]execute_cgi path=json_proto method=POST [19:26:21]POST find Content-Length [19:26:21]Host: 172.17.49.196:8080 [19:26:21]Content-Length: 1065 [19:26:21]Content-Type: application/json [19:26:21] [19:26:21]POST finish read [19:26:21]Found Content-Length = 1065 [19:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164531", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:21]execute_script... [19:26:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164531", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:21]POST & json_proto [19:26:21]process_json_proto [19:26:21]json parsed OK: [19:26:21]protocol is kg_v1.0 [19:26:21]action value=close_receipt [19:26:21]process_action close_receipt [19:26:21]cmd_close_receipt [19:26:21]MH_GetDate [19:26:21]Write to MH i2c: F0 00 00 D0 1D DC [19:26:21]Write i2c OK [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: F0 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: F0 09 00 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: F0 09 00 D0 1D 00 E0 F0 1B 67 BD 3B 11 67 A7 [19:26:21]GetLastDocTimeStamp 1729884235 [19:26:21]current date 1729884384 [19:26:21]FM_GetShiftState [19:26:21]SAM_PROTO_GetShiftState [19:26:21]wFMCommunicate request_size=4 [19:26:21]MH_SAM_APDU [19:26:21]CAPDU: 80 13 01 00 [19:26:21]Write to MH i2c: E2 08 00 D1 1D 80 13 01 00 00 00 00 00 6B [19:26:21]Write i2c OK [19:26:21]MH_I2C_Read... [19:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:21]Read from MH i2c: E2 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: E2 0E 00 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: E2 0E 00 D1 1D 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 63 [19:26:21]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:26:21]wFMCommunicate OK [19:26:21]SAM_PROTO_GetShiftState done [19:26:21]FM_GetShiftState done [19:26:21]opened in 1729815177 [19:26:21]opened+sec_in_day 1729901577 [19:26:21]quantity*price = 4500 [19:26:21]sum+1 = 4501 [19:26:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521247 Напиток MAXI чай 1,2 черн.персик 1.000 * 104.00 = 104.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 0.00 Безнал.: 149.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 145 25.10.2024 19:26 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50645 ФПД: 277135473821177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192624&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50645&fm=277135473821177&tin=02508201610067®Number=0000000000097022&sum=14900 0 [19:26:22]StoreToDocumentArchive [19:26:22]shift 493 fd 50645 [19:26:22]save to /storage/0493/doc_00050645 [19:26:22]save last doc name /storage/0493/doc_00050645 to /storage/kkm_last_doc_name [19:26:22]save OK [19:26:22]Clear old archive folders... [19:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=398 [19:26:22]tlvbuf is 01E7F070 [19:26:22]SAM_PROTO_ClearQueue [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 09 00 00 [19:26:22]Write to MH i2c: E2 08 00 DE 1D 80 09 00 00 00 00 00 00 6D [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 03 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 03 00 DE 1D 00 90 00 6F [19:26:22]RAPDU: 90 00 [19:26:22]wFMCommunicate OK [19:26:22]SAM_PROTO_ClearQueue done [19:26:22]KKMCreateOFDPacket [19:26:22]OFDProtocolAddRootSTLVToBuf [19:26:22]FM_MakeSignedData [19:26:22]FM_MakeSignedData [19:26:22]SAM_PROTO_SignData [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 0D 01 02 [19:26:22]Write to MH i2c: E2 08 00 DF 1D 80 0D 01 02 00 00 00 00 75 [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 03 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 03 00 DF 1D 00 90 00 70 [19:26:22]RAPDU: 90 00 [19:26:22]wFMCommunicate OK [19:26:22]wFMCommunicate request_size=255 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 [19:26:22]Write to MH i2c: E2 02 01 E0 1D 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 00 DC [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 03 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 03 00 E0 1D 00 90 00 71 [19:26:22]RAPDU: 90 00 [19:26:22]wFMCommunicate OK [19:26:22]wFMCommunicate request_size=157 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E0 F0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D5 C5 00 00 35 04 06 00 FC 0D A1 78 C5 F9 [19:26:22]Write to MH i2c: E2 A0 00 E1 1D 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E0 F0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D5 C5 00 00 35 04 06 00 FC 0D A1 78 C5 F9 00 00 31 [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [19:26:23]RAPDU: 90 00 [19:26:23]wFMCommunicate OK [19:26:23]wFMCommunicate request_size=4 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 0D 03 02 [19:26:23]Write to MH i2c: E2 08 00 E2 1D 80 0D 03 02 00 00 00 00 7A [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 0B 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 0B 00 E2 1D 00 7C 27 57 0B 2A 66 3D A4 90 00 F1 [19:26:23]RAPDU: 7C 27 57 0B 2A 66 3D A4 90 00 [19:26:23]wFMCommunicate OK [19:26:23]SAM_PROTO_SignData done [19:26:23]FM_MakeSignedData done [19:26:23]CreateOFDProtocolMessage [19:26:23]wFMCommunicate request_size=4 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 11 00 00 [19:26:23]Write to MH i2c: E2 08 00 E3 1D 80 11 00 00 00 00 00 00 7A [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 17 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 17 00 E3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C1 [19:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:26:23]wFMCommunicate OK [19:26:23]CreateOFDProtocolMessage done [19:26:23]OFDSenderStorePacket 50645 [19:26:23]StoreOFDPacket docnum=50645 [19:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A2 01 00 00 59 10 9A 01 F4 C8 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E0 F0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D5 C5 00 00 35 04 06 00 FC 0D A1 78 C5 F9 7C 27 57 0B 2A 66 3D A4 [19:26:23]CheckFolder [19:26:23]dirname=/storage/ofd_packets [19:26:23]CheckFolder done [19:26:23]ProducePacketName [19:26:23]name=ofd_packets/00050645 [19:26:23]NVStorageSaveData ofd_packets/00050645 [19:26:23]File name is /storage/ofd_packets/00050645 [19:26:23]Write 448 bytes [19:26:23]NVStorageSaveData done [19:26:23]OFDSenderStorePacket done [19:26:23]KKMCreateOFDPacket done [19:26:23]NVStorageSaveData kkm_last_timestamp [19:26:23]File name is /storage/kkm_last_timestamp [19:26:23]Write 4 bytes [19:26:23]NVStorageSaveData done [19:26:23]ExternCall_PrintAddStr [19:26:23]wPrintStart [19:26:23]Write to MH i2c: 01 00 00 E4 1D 01 [19:26:23]OFD Sender: Processing packet 50645 [packets to send 7, broken 6] [19:26:23]ProducePacketName [19:26:23]name=ofd_packets/00050645 [19:26:23]OFD Sender: To server: pG, [19:26:23]CommunicateWithHost lk.salyk.kg:30040 [19:26:23]ConnectInit lk.salyk.kg [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: 01 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: 01 07 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: 01 07 00 E4 1D 00 00 00 00 00 FF 0F 16 [19:26:23]RasterBufferAndPrint [19:26:23]line Счет N : (3)164531 [19:26:23]line ИНН: 02508201610067 [19:26:23]line Контрольно-Кассовый Чек [19:26:23]line ПРОДАЖА [19:26:23]line Товар: 50173822 [19:26:23]line Р/ж Orbit б/сах мята 13,6г [19:26:23]line 1.000 * 45.00 [19:26:23]line = 45.00 [19:26:23]line НДС 12% НСП 1% [19:26:23]line > о реализуемом товаре [19:26:23]line Товар: 4870202521247 [19:26:23]line Напиток MAXI чай 1,2 черн.персик [19:26:23]line 1.000 * 104.00 [19:26:23]line = 104.00 [19:26:23]line НДС 12% НСП 1% [19:26:23]line > о реализуемом товаре [19:26:23]line ИТОГО: 149.00 [19:26:23]line НСП 1% : 1.32 [19:26:23]line НДС 12% : 15.82 [19:26:23]line Наличными: 0.00 [19:26:23]line Безнал.: 149.00 [19:26:23]line Место: АЗС № 80 "Партнер Нефть" [19:26:23]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:26:23]line СНО: Общий режим [19:26:23]line Чек 145 25.10.2024 19:26 [19:26:23]line Смена: 493 ФФД: 1.0 [19:26:23]line ЗНМ: 0300000090 [19:26:23]line РНМ: 0000000000097022 [19:26:23]line Версия ККМ: 001 [19:26:23]line Платежная система: Mbank [19:26:23]line ФМ: 0000000000875000 [19:26:23]line ФД: 50645 [19:26:23]line ФПД: 277135473821177 [19:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192624&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50645&fm=277135473821177&tin=02508201610067®Number=0000000000097022&sum=14900 [19:26:23]line 0 [19:26:23]written 0, free lines is 4095 [19:26:23]Connected sock=7 [19:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A2 01 00 00 59 10 9A 01 F4 C8 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E0 F0 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D5 C5 00 00 35 04 06 00 FC 0D A1 78 C5 F9 7C 27 57 0B 2A 66 3D A4 [19:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 7C 10 47 00 0D EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D5 C5 00 00 F4 03 04 00 70 9C 1B 67 B6 04 01 00 00 4D 99 AC 9C 76 85 5E 39 [19:26:23]CommunicateWithHost err = 0 [19:26:23]CheckOFDResponse [19:26:23]1017 (14) - 77093643461234 [19:26:23]1041 (16) - 0000000000875000 [19:26:23]1040 (4) - 50645 [19:26:23]1012 (4) - 25.10.2024 13:26 [19:26:23]1206 (1) - 0 [19:26:23]OFD Sender: Remove packet 50645 [19:26:23]ProducePacketName [19:26:23]name=ofd_packets/00050645 [19:26:23]NVStorageDeleteData [19:26:24]Write to MH i2c: 01 00 00 14 1E 32 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 14 1E 00 00 00 00 00 BB 0C 00 [19:26:24]RasterBufferAndPrint [19:26:24]line [19:26:24]line [19:26:24]line [19:26:24]line [19:26:24]line [19:26:24]written 0, free lines is 3268 [19:26:24]process_action close_receipt done [19:26:24]requested_data is exist [19:26:24]produce_requested_data [19:26:24]requested_item fm.sn is exist - process it [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 11 00 00 [19:26:24]Write to MH i2c: E2 08 00 1B 1E 80 11 00 00 00 00 00 00 B3 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 17 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 17 00 1B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FA [19:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:26:24]wFMCommunicate OK [19:26:24]requested_item fd.num is exist - process it [19:26:24]SAM_PROTO_GetFieldsCounters [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 13 00 00 [19:26:24]Write to MH i2c: E2 08 00 1C 1E 80 13 00 00 00 00 00 00 B6 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 62 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 62 00 1C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [19:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:24]wFMCommunicate OK [19:26:24]SAM_PROTO_GetFieldsCounters done [19:26:24]requested_item shift.num is exist - process it [19:26:24]requested_item shift.opened is exist - process it [19:26:24]req_shift_opened [19:26:24]FM_GetShiftState [19:26:24]SAM_PROTO_GetShiftState [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 13 01 00 [19:26:24]Write to MH i2c: E2 08 00 1D 1E 80 13 01 00 00 00 00 00 B8 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0E 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0E 00 1D 1E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B0 [19:26:24]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:26:24]wFMCommunicate OK [19:26:24]SAM_PROTO_GetShiftState done [19:26:24]FM_GetShiftState done [19:26:24]req_shift_opened done [19:26:24]requested_item shift.open_date is exist - process it [19:26:24]req_shift_open_date [19:26:24]req_shift_open_date done [19:26:24]produce_requested_data done [19:26:24]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50645,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:26:24]process_action_free close_receipt [19:26:24]json_value_free [19:26:24]json_value_free done [19:26:24]process_json_proto returns [19:26:24]Send response to host [19:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50645,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:26:24]free response buf [19:26:24]execute_script done [19:26:24]execute_script returns [19:26:24]free content buf [19:26:24]Sock 9.Close socket [19:26:24]Sock 9.Thread stoped [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:42]accept exits with 10 [19:27:42]New connection [19:27:42]New thread 3066645860 created [19:27:42]Thread 3066789220 joined [19:27:42]Waiting for new connection... [19:27:42] Sock 10.Parse request [19:27:42]Sock 10.Check first char [19:27:42]Sock 10.First char is OK [19:27:42]request: POST /json_proto HTTP/1.0 [19:27:42]Method: POST [19:27:42]URL: /json_proto [19:27:42]Method is POST - this is cgi request [19:27:42]url: /json_proto [19:27:42]query_string will be loaded in cgi processing [19:27:42]execute_cgi json_proto POST (null) [19:27:42]execute_cgi path=json_proto method=POST [19:27:42]POST find Content-Length [19:27:42]Host: 172.17.49.196:8080 [19:27:42]Content-Length: 771 [19:27:42]Content-Type: application/json [19:27:42] [19:27:42]POST finish read [19:27:42]Found Content-Length = 771 [19:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442712", "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.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:42]execute_script... [19:27:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442712", "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.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:42]POST & json_proto [19:27:42]process_json_proto [19:27:42]json parsed OK: [19:27:42]protocol is kg_v1.0 [19:27:42]action value=close_receipt [19:27:42]process_action close_receipt [19:27:42]cmd_close_receipt [19:27:42]MH_GetDate [19:27:42]Write to MH i2c: F0 00 00 1E 1E 2B [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: F0 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: F0 09 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: F0 09 00 1E 1E 00 31 F1 1B 67 BD 3B 11 67 48 [19:27:42]GetLastDocTimeStamp 1729884384 [19:27:42]current date 1729884465 [19:27:42]FM_GetShiftState [19:27:42]SAM_PROTO_GetShiftState [19:27:42]wFMCommunicate request_size=4 [19:27:42]MH_SAM_APDU [19:27:42]CAPDU: 80 13 01 00 [19:27:42]Write to MH i2c: E2 08 00 1F 1E 80 13 01 00 00 00 00 00 BA [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:42]Read from MH i2c: E2 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 0E 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 0E 00 1F 1E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B2 [19:27:42]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:27:42]wFMCommunicate OK [19:27:42]SAM_PROTO_GetShiftState done [19:27:42]FM_GetShiftState done [19:27:42]opened in 1729815177 [19:27:42]opened+sec_in_day 1729901577 [19:27:42]quantity*price = 100015 [19:27:42]sum+1 = 100017 [19:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 146 25.10.2024 19:27 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50646 ФПД: 77507906165996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192745&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50646&fm=77507906165996&tin=02508201610067®Number=0000000000097022&sum=100016 [19:27:43]StoreToDocumentArchive [19:27:43]shift 493 fd 50646 [19:27:43]save to /storage/0493/doc_00050646 [19:27:43]save last doc name /storage/0493/doc_00050646 to /storage/kkm_last_doc_name [19:27:43]save OK [19:27:43]Clear old archive folders... [19:27:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:43]tlvbuf is 01EE93F0 [19:27:43]SAM_PROTO_ClearQueue [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 09 00 00 [19:27:43]Write to MH i2c: E2 08 00 2C 1E 80 09 00 00 00 00 00 00 BC [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 2C 1E 00 90 00 BE [19:27:43]RAPDU: 90 00 [19:27:43]wFMCommunicate OK [19:27:43]SAM_PROTO_ClearQueue done [19:27:43]KKMCreateOFDPacket [19:27:43]OFDProtocolAddRootSTLVToBuf [19:27:43]FM_MakeSignedData [19:27:43]FM_MakeSignedData [19:27:43]SAM_PROTO_SignData [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 0D 01 02 [19:27:43]Write to MH i2c: E2 08 00 2D 1E 80 0D 01 02 00 00 00 00 C4 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 2D 1E 00 90 00 BF [19:27:43]RAPDU: 90 00 [19:27:43]wFMCommunicate OK [19:27:43]wFMCommunicate request_size=255 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 31 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D6 C5 00 00 35 04 06 00 46 [19:27:43]Write to MH i2c: E2 02 01 2E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 31 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D6 C5 00 00 35 04 06 00 46 00 00 60 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 2E 1E 00 90 00 C0 [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]wFMCommunicate request_size=10 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 0D 02 02 05 7E 37 36 DC EC [19:27:44]Write to MH i2c: E2 0D 00 2F 1E 80 0D 02 02 05 00 7E 37 36 DC EC 00 00 84 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 0D 03 02 [19:27:44]Write to MH i2c: E2 08 00 30 1E 80 0D 03 02 00 00 00 00 C9 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0B 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0B 00 30 1E 00 49 36 B5 CF 2B D5 28 1F 90 00 14 [19:27:44]RAPDU: 49 36 B5 CF 2B D5 28 1F 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_SignData done [19:27:44]FM_MakeSignedData done [19:27:44]CreateOFDProtocolMessage [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 11 00 00 [19:27:44]Write to MH i2c: E2 08 00 31 1E 80 11 00 00 00 00 00 00 C9 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 31 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 10 [19:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:27:44]wFMCommunicate OK [19:27:44]CreateOFDProtocolMessage done [19:27:44]OFDSenderStorePacket 50646 [19:27:44]StoreOFDPacket docnum=50646 [19:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 C6 0C 07 01 4A 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 31 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D6 C5 00 00 35 04 06 00 46 7E 37 36 DC EC 49 36 B5 CF 2B D5 28 1F [19:27:44]CheckFolder [19:27:44]dirname=/storage/ofd_packets [19:27:44]CheckFolder done [19:27:44]ProducePacketName [19:27:44]name=ofd_packets/00050646 [19:27:44]NVStorageSaveData ofd_packets/00050646 [19:27:44]File name is /storage/ofd_packets/00050646 [19:27:44]Write 301 bytes [19:27:44]NVStorageSaveData done [19:27:44]OFDSenderStorePacket done [19:27:44]KKMCreateOFDPacket done [19:27:44]NVStorageSaveData kkm_last_timestamp [19:27:44]File name is /storage/kkm_last_timestamp [19:27:44]Write 4 bytes [19:27:44]NVStorageSaveData done [19:27:44]ExternCall_PrintAddStr [19:27:44]wPrintStart [19:27:44]Write to MH i2c: 01 00 00 32 1E 50 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 32 1E 00 00 00 00 00 FF 0F 65 [19:27:44]RasterBufferAndPrint [19:27:44]line Счет N : (1)15442712 [19:27:44]line ИНН: 02508201610067 [19:27:44]line Контрольно-Кассовый Чек [19:27:44]line ПРОДАЖА [19:27:44]line ТРК (МРК, ГНК) : 43 [19:27:44]line Товар: 2710124130 [19:27:44]line Аи-92-К-4 [19:27:44]line 14.950 * 66.90 [19:27:44]line = 1000.16 [19:27:44]line НДС 12% НСП 1% [19:27:44]line > о реализуемом товаре [19:27:44]line ИТОГО: 1000.16 [19:27:44]line НСП 1% : 8.85 [19:27:44]line НДС 12% : 106.21 [19:27:44]line Наличными: 0.00 [19:27:44]line Безнал.: 1000.16 [19:27:44]line Место: АЗС № 80 "Партнер Нефть" [19:27:44]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:27:44]line СНО: Общий режим [19:27:44]line Чек 146 25.10.2024 19:27 [19:27:44]line Смена: 493 ФФД: 1.0 [19:27:44]line ЗНМ: 0300000090 [19:27:44]line РНМ: 0000000000097022 [19:27:44]line Версия ККМ: 001 [19:27:44]line Платежная система: Mbank [19:27:44]line ФМ: 0000000000875000 [19:27:44]line ФД: 50646 [19:27:44]line ФПД: 77507906165996 [19:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192745&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50646&fm=77507906165996&tin=02508201610067®Number=0000000000097022&sum=100016 [19:27:44]written 0, free lines is 4095 [19:27:44]OFD Sender: Processing packet 50646 [packets to send 7, broken 6] [19:27:44]ProducePacketName [19:27:44]name=ofd_packets/00050646 [19:27:44]OFD Sender: To server: pG, [19:27:44]CommunicateWithHost lk.salyk.kg:30040 [19:27:44]ConnectInit lk.salyk.kg [19:27:44]Write to MH i2c: 01 00 00 5B 1E 79 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 5B 1E 00 00 00 00 00 1D 0D AA [19:27:44]RasterBufferAndPrint [19:27:44]line [19:27:44]line [19:27:44]line [19:27:44]line [19:27:44]line [19:27:44]written 0, free lines is 3362 [19:27:44]process_action close_receipt done [19:27:44]requested_data is exist [19:27:44]produce_requested_data [19:27:44]requested_item fm.sn is exist - process it [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 11 00 00 [19:27:44]Write to MH i2c: E2 08 00 62 1E 80 11 00 00 00 00 00 00 FA [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 62 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 41 [19:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:27:44]wFMCommunicate OK [19:27:44]requested_item fd.num is exist - process it [19:27:44]SAM_PROTO_GetFieldsCounters [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 13 00 00 [19:27:44]Write to MH i2c: E2 08 00 63 1E 80 13 00 00 00 00 00 00 FD [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Connected sock=9 [19:27:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 C6 0C 07 01 4A 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 31 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D6 C5 00 00 35 04 06 00 46 7E 37 36 DC EC 49 36 B5 CF 2B D5 28 1F [19:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 62 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 62 00 63 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [19:27:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:45]wFMCommunicate OK [19:27:45]SAM_PROTO_GetFieldsCounters done [19:27:45]requested_item shift.num is exist - process it [19:27:45]requested_item shift.opened is exist - process it [19:27:45]req_shift_opened [19:27:45]FM_GetShiftState [19:27:45]SAM_PROTO_GetShiftState [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 13 01 00 [19:27:45]Write to MH i2c: E2 08 00 64 1E 80 13 01 00 00 00 00 00 FF [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 0E 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 0E 00 64 1E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F7 [19:27:45]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:27:45]wFMCommunicate OK [19:27:45]SAM_PROTO_GetShiftState done [19:27:45]FM_GetShiftState done [19:27:45]req_shift_opened done [19:27:45]requested_item shift.open_date is exist - process it [19:27:45]req_shift_open_date [19:27:45]req_shift_open_date done [19:27:45]produce_requested_data done [19:27:45]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50646,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:27:45]process_action_free close_receipt [19:27:45]json_value_free [19:27:45]json_value_free done [19:27:45]process_json_proto returns [19:27:45]Send response to host [19:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50646,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:27:45]free response buf [19:27:45]execute_script done [19:27:45]execute_script returns [19:27:45]free content buf [19:27:45]Sock 10.Close socket [19:27:45]Sock 10.Thread stoped [19:27:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 2A 31 47 00 FB B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D6 C5 00 00 F4 03 04 00 C1 9C 1B 67 B6 04 01 00 00 0E 5F A4 74 B7 BA 91 89 [19:27:45]CommunicateWithHost err = 0 [19:27:45]CheckOFDResponse [19:27:45]1017 (14) - 77093643461234 [19:27:45]1041 (16) - 0000000000875000 [19:27:45]1040 (4) - 50646 [19:27:45]1012 (4) - 25.10.2024 13:27 [19:27:45]1206 (1) - 0 [19:27:45]OFD Sender: Remove packet 50646 [19:27:45]ProducePacketName [19:27:45]name=ofd_packets/00050646 [19:27:45]NVStorageDeleteData [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:34]accept exits with 7 [19:28:34]New connection [19:28:34]New thread 3066789220 created [19:28:34]Thread 3066645860 joined [19:28:34]Waiting for new connection... [19:28:34] Sock 7.Parse request [19:28:34]Sock 7.Check first char [19:28:34]Sock 7.First char is OK [19:28:34]request: POST /json_proto HTTP/1.0 [19:28:34]Method: POST [19:28:34]URL: /json_proto [19:28:34]Method is POST - this is cgi request [19:28:34]url: /json_proto [19:28:34]query_string will be loaded in cgi processing [19:28:34]execute_cgi json_proto POST (null) [19:28:34]execute_cgi path=json_proto method=POST [19:28:34]POST find Content-Length [19:28:34]Host: 172.17.49.196:8080 [19:28:34]Content-Length: 930 [19:28:34]Content-Type: application/json [19:28:34] [19:28:34]POST finish read [19:28:34]Found Content-Length = 930 [19:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164532", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:34]execute_script... [19:28: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)164532", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:34]POST & json_proto [19:28:34]process_json_proto [19:28:34]json parsed OK: [19:28:34]protocol is kg_v1.0 [19:28:34]action value=close_receipt [19:28:34]process_action close_receipt [19:28:34]cmd_close_receipt [19:28:34]MH_GetDate [19:28:34]Write to MH i2c: F0 00 00 65 1E 72 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: F0 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: F0 09 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: F0 09 00 65 1E 00 65 F1 1B 67 BD 3B 11 67 C3 [19:28:34]GetLastDocTimeStamp 1729884465 [19:28:34]current date 1729884517 [19:28:34]FM_GetShiftState [19:28:34]SAM_PROTO_GetShiftState [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 13 01 00 [19:28:34]Write to MH i2c: E2 08 00 66 1E 80 13 01 00 00 00 00 00 01 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 0E 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 0E 00 66 1E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F9 [19:28:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:28:34]wFMCommunicate OK [19:28:34]SAM_PROTO_GetShiftState done [19:28:34]FM_GetShiftState done [19:28:34]opened in 1729815177 [19:28:34]opened+sec_in_day 1729901577 [19:28:34]quantity*price = 7500 [19:28:34]sum+1 = 7501 [19:28:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006996716 Водка Талка 0,1л 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.76 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 147 25.10.2024 19:28 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50647 ФПД: 263559352419698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192837&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50647&fm=263559352419698&tin=02508201610067®Number=0000000000097022&sum=20500 0 [19:28:35]StoreToDocumentArchive [19:28:35]shift 493 fd 50647 [19:28:35]save to /storage/0493/doc_00050647 [19:28:35]save last doc name /storage/0493/doc_00050647 to /storage/kkm_last_doc_name [19:28:35]save OK [19:28:35]Clear old archive folders... [19:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=394 [19:28:35]tlvbuf is 01E69950 [19:28:35]SAM_PROTO_ClearQueue [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 09 00 00 [19:28:35]Write to MH i2c: E2 08 00 73 1E 80 09 00 00 00 00 00 00 03 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 73 1E 00 90 00 05 [19:28:35]RAPDU: 90 00 [19:28:35]wFMCommunicate OK [19:28:35]SAM_PROTO_ClearQueue done [19:28:35]KKMCreateOFDPacket [19:28:35]OFDProtocolAddRootSTLVToBuf [19:28:35]FM_MakeSignedData [19:28:35]FM_MakeSignedData [19:28:35]SAM_PROTO_SignData [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 0D 01 02 [19:28:35]Write to MH i2c: E2 08 00 74 1E 80 0D 01 02 00 00 00 00 0B [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 74 1E 00 90 00 06 [19:28:35]RAPDU: 90 00 [19:28:35]wFMCommunicate OK [19:28:35]wFMCommunicate request_size=255 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 14 50 00 00 00 00 EB 03 26 00 EF 03 0F [19:28:35]Write to MH i2c: E2 02 01 75 1E 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 CA [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]OFD Sender: No OFD packet to send [19:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 03 00 75 1E 00 90 00 07 [19:28:35]RAPDU: 90 00 [19:28:35]wFMCommunicate OK [19:28:35]wFMCommunicate request_size=153 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 0D 02 02 94 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 80 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 93 00 00 00 F4 03 04 00 65 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D7 C5 00 00 35 04 06 00 EF B4 B1 94 05 72 [19:28:35]Write to MH i2c: E2 9C 00 76 1E 80 0D 02 02 94 00 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 80 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 93 00 00 00 F4 03 04 00 65 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D7 C5 00 00 35 04 06 00 EF B4 B1 94 05 72 00 00 42 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:36]Read from MH i2c: E2 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 03 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 03 00 76 1E 00 90 00 08 [19:28:36]RAPDU: 90 00 [19:28:36]wFMCommunicate OK [19:28:36]wFMCommunicate request_size=4 [19:28:36]MH_SAM_APDU [19:28:36]CAPDU: 80 0D 03 02 [19:28:36]Write to MH i2c: E2 08 00 77 1E 80 0D 03 02 00 00 00 00 10 [19:28:36]Write i2c OK [19:28:36]MH_I2C_Read... [19:28:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:36]Read from MH i2c: E2 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 0B 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 0B 00 77 1E 00 0B 67 BF 59 88 49 A3 73 90 00 82 [19:28:36]RAPDU: 0B 67 BF 59 88 49 A3 73 90 00 [19:28:36]wFMCommunicate OK [19:28:36]SAM_PROTO_SignData done [19:28:36]FM_MakeSignedData done [19:28:36]CreateOFDProtocolMessage [19:28:36]wFMCommunicate request_size=4 [19:28:36]MH_SAM_APDU [19:28:36]CAPDU: 80 11 00 00 [19:28:36]Write to MH i2c: E2 08 00 78 1E 80 11 00 00 00 00 00 00 10 [19:28:36]Write i2c OK [19:28:36]MH_I2C_Read... [19:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:36]Read from MH i2c: E2 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 17 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 17 00 78 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 57 [19:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:28:36]wFMCommunicate OK [19:28:36]CreateOFDProtocolMessage done [19:28:36]OFDSenderStorePacket 50647 [19:28:36]StoreOFDPacket docnum=50647 [19:28:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9E 01 00 00 8E 40 96 01 01 2F 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 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 80 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 93 00 00 00 F4 03 04 00 65 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D7 C5 00 00 35 04 06 00 EF B4 B1 94 05 72 0B 67 BF 59 88 49 A3 73 [19:28:36]CheckFolder [19:28:36]dirname=/storage/ofd_packets [19:28:36]CheckFolder done [19:28:36]ProducePacketName [19:28:36]name=ofd_packets/00050647 [19:28:36]NVStorageSaveData ofd_packets/00050647 [19:28:36]File name is /storage/ofd_packets/00050647 [19:28:36]Write 444 bytes [19:28:36]NVStorageSaveData done [19:28:36]OFDSenderStorePacket done [19:28:36]KKMCreateOFDPacket done [19:28:36]NVStorageSaveData kkm_last_timestamp [19:28:36]File name is /storage/kkm_last_timestamp [19:28:36]Write 4 bytes [19:28:36]NVStorageSaveData done [19:28:36]ExternCall_PrintAddStr [19:28:36]wPrintStart [19:28:36]Write to MH i2c: 01 00 00 79 1E 97 [19:28:36]OFD Sender: Processing packet 50647 [packets to send 7, broken 6] [19:28:36]ProducePacketName [19:28:36]name=ofd_packets/00050647 [19:28:36]OFD Sender: To server: pG, [19:28:36]CommunicateWithHost lk.salyk.kg:30040 [19:28:36]ConnectInit lk.salyk.kg [19:28:36]Write i2c OK [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: 01 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: 01 07 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: 01 07 00 79 1E 00 00 00 00 00 FF 0F AC [19:28:36]RasterBufferAndPrint [19:28:36]line Счет N : (3)164532 [19:28:36]line ИНН: 02508201610067 [19:28:36]line Контрольно-Кассовый Чек [19:28:36]line ПРОДАЖА [19:28:36]line Товар: 5449000027450 [19:28:36]line Напиток FuzeTea чай манго,ром 0,5л [19:28:36]line 1.000 * 75.00 [19:28:36]line = 75.00 [19:28:36]line НДС 12% НСП 1% [19:28:36]line > о реализуемом товаре [19:28:36]line Товар: 4620006996716 [19:28:36]line Водка Талка 0,1л [19:28:36]line 1.000 * 130.00 [19:28:36]line = 130.00 [19:28:36]line НДС 12% НСП 1% [19:28:36]line > о реализуемом товаре [19:28:36]line ИТОГО: 205.00 [19:28:36]line НСП 1% : 1.81 [19:28:36]line НДС 12% : 21.76 [19:28:36]line Наличными: 205.00 [19:28:36]line Безнал.: 0.00 [19:28:36]line Место: АЗС № 80 "Партнер Нефть" [19:28:36]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:28:36]line СНО: Общий режим [19:28:36]line Чек 147 25.10.2024 19:28 [19:28:36]line Смена: 493 ФФД: 1.0 [19:28:36]line ЗНМ: 0300000090 [19:28:36]line РНМ: 0000000000097022 [19:28:36]line Версия ККМ: 001 [19:28:36]line ФМ: 0000000000875000 [19:28:36]line ФД: 50647 [19:28:36]line ФПД: 263559352419698 [19:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192837&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50647&fm=263559352419698&tin=02508201610067®Number=0000000000097022&sum=20500 [19:28:36]line 0 [19:28:36]written 0, free lines is 4095 [19:28:36]Connected sock=10 [19:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 9E 01 00 00 8E 40 96 01 01 2F 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 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 80 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 93 00 00 00 F4 03 04 00 65 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D7 C5 00 00 35 04 06 00 EF B4 B1 94 05 72 0B 67 BF 59 88 49 A3 73 [19:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 26 B6 47 00 F1 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D7 C5 00 00 F4 03 04 00 F5 9C 1B 67 B6 04 01 00 00 E8 0C 8C 3A C2 88 40 5F [19:28:36]CommunicateWithHost err = 0 [19:28:36]CheckOFDResponse [19:28:36]1017 (14) - 77093643461234 [19:28:36]1041 (16) - 0000000000875000 [19:28:36]1040 (4) - 50647 [19:28:36]1012 (4) - 25.10.2024 13:28 [19:28:36]1206 (1) - 0 [19:28:36]OFD Sender: Remove packet 50647 [19:28:36]ProducePacketName [19:28:36]name=ofd_packets/00050647 [19:28:36]NVStorageDeleteData [19:28:37]Write to MH i2c: 01 00 00 A8 1E C6 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 07 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 07 00 A8 1E 00 00 00 00 00 C9 0C A2 [19:28:37]RasterBufferAndPrint [19:28:37]line [19:28:37]line [19:28:37]line [19:28:37]line [19:28:37]line [19:28:37]written 0, free lines is 3283 [19:28:37]process_action close_receipt done [19:28:37]requested_data is exist [19:28:37]produce_requested_data [19:28:37]requested_item fm.sn is exist - process it [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 11 00 00 [19:28:37]Write to MH i2c: E2 08 00 AF 1E 80 11 00 00 00 00 00 00 47 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 17 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 17 00 AF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8E [19:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:28:37]wFMCommunicate OK [19:28:37]requested_item fd.num is exist - process it [19:28:37]SAM_PROTO_GetFieldsCounters [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 13 00 00 [19:28:37]Write to MH i2c: E2 08 00 B0 1E 80 13 00 00 00 00 00 00 4A [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 62 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 62 00 B0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [19:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_GetFieldsCounters done [19:28:37]requested_item shift.num is exist - process it [19:28:37]requested_item shift.opened is exist - process it [19:28:37]req_shift_opened [19:28:37]FM_GetShiftState [19:28:37]SAM_PROTO_GetShiftState [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 13 01 00 [19:28:37]Write to MH i2c: E2 08 00 B1 1E 80 13 01 00 00 00 00 00 4C [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:37]OFD Sender: No OFD packet to send [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0E 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0E 00 B1 1E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 44 [19:28:37]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_GetShiftState done [19:28:37]FM_GetShiftState done [19:28:37]req_shift_opened done [19:28:37]requested_item shift.open_date is exist - process it [19:28:37]req_shift_open_date [19:28:37]req_shift_open_date done [19:28:37]produce_requested_data done [19:28:37]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50647,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:28:37]process_action_free close_receipt [19:28:37]json_value_free [19:28:37]json_value_free done [19:28:37]process_json_proto returns [19:28:37]Send response to host [19:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50647,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:28:37]free response buf [19:28:37]execute_script done [19:28:37]execute_script returns [19:28:37]free content buf [19:28:37]Sock 7.Close socket [19:28:37]Sock 7.Thread stoped [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:19]accept exits with 9 [19:29:19]New connection [19:29:19]New thread 3066645860 created [19:29:19]Thread 3066789220 joined [19:29:19]Waiting for new connection... [19:29:19] Sock 9.Parse request [19:29:19]Sock 9.Check first char [19:29:19]Sock 9.First char is OK [19:29:19]request: POST /json_proto HTTP/1.0 [19:29:19]Method: POST [19:29:19]URL: /json_proto [19:29:19]Method is POST - this is cgi request [19:29:19]url: /json_proto [19:29:19]query_string will be loaded in cgi processing [19:29:19]execute_cgi json_proto POST (null) [19:29:19]execute_cgi path=json_proto method=POST [19:29:19]POST find Content-Length [19:29:19]Host: 172.17.49.196:8080 [19:29:19]Content-Length: 683 [19:29:19]Content-Type: application/json [19:29:19] [19:29:19]POST finish read [19:29:19]Found Content-Length = 683 [19:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164533", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:19]execute_script... [19:29:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164533", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:19]POST & json_proto [19:29:19]process_json_proto [19:29:19]json parsed OK: [19:29:19]protocol is kg_v1.0 [19:29:19]action value=close_receipt [19:29:19]process_action close_receipt [19:29:19]cmd_close_receipt [19:29:19]MH_GetDate [19:29:19]Write to MH i2c: F0 00 00 B2 1E BF [19:29:19]Write i2c OK [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: F0 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: F0 09 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: F0 09 00 B2 1E 00 92 F1 1B 67 BD 3B 11 67 3D [19:29:19]GetLastDocTimeStamp 1729884517 [19:29:19]current date 1729884562 [19:29:19]FM_GetShiftState [19:29:19]SAM_PROTO_GetShiftState [19:29:19]wFMCommunicate request_size=4 [19:29:19]MH_SAM_APDU [19:29:19]CAPDU: 80 13 01 00 [19:29:19]Write to MH i2c: E2 08 00 B3 1E 80 13 01 00 00 00 00 00 4E [19:29:19]Write i2c OK [19:29:19]MH_I2C_Read... [19:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:19]Read from MH i2c: E2 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 0E 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 0E 00 B3 1E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 46 [19:29:19]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:29:19]wFMCommunicate OK [19:29:19]SAM_PROTO_GetShiftState done [19:29:19]FM_GetShiftState done [19:29:19]opened in 1729815177 [19:29:19]opened+sec_in_day 1729901577 [19:29:19]quantity*price = 10400 [19:29:19]sum+1 = 10401 [19:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 148 25.10.2024 19:29 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50648 ФПД: 24399662332658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192922&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50648&fm=24399662332658&tin=02508201610067®Number=0000000000097022&sum=10400 0 [19:29:20]StoreToDocumentArchive [19:29:20]shift 493 fd 50648 [19:29:20]save to /storage/0493/doc_00050648 [19:29:20]save last doc name /storage/0493/doc_00050648 to /storage/kkm_last_doc_name [19:29:20]save OK [19:29:20]Clear old archive folders... [19:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=291 [19:29:20]tlvbuf is 01E69420 [19:29:20]SAM_PROTO_ClearQueue [19:29:20]wFMCommunicate request_size=4 [19:29:20]MH_SAM_APDU [19:29:20]CAPDU: 80 09 00 00 [19:29:20]Write to MH i2c: E2 08 00 C0 1E 80 09 00 00 00 00 00 00 50 [19:29:20]Write i2c OK [19:29:20]MH_I2C_Read... [19:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:20]Read from MH i2c: E2 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 03 00 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 03 00 C0 1E 00 90 00 52 [19:29:20]RAPDU: 90 00 [19:29:20]wFMCommunicate OK [19:29:20]SAM_PROTO_ClearQueue done [19:29:20]KKMCreateOFDPacket [19:29:20]OFDProtocolAddRootSTLVToBuf [19:29:20]FM_MakeSignedData [19:29:20]FM_MakeSignedData [19:29:20]SAM_PROTO_SignData [19:29:20]wFMCommunicate request_size=4 [19:29:20]MH_SAM_APDU [19:29:20]CAPDU: 80 0D 01 02 [19:29:20]Write to MH i2c: E2 08 00 C1 1E 80 0D 01 02 00 00 00 00 58 [19:29:20]Write i2c OK [19:29:20]MH_I2C_Read... [19:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:20]Read from MH i2c: E2 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 03 00 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 03 00 C1 1E 00 90 00 53 [19:29:20]RAPDU: 90 00 [19:29:20]wFMCommunicate OK [19:29:20]wFMCommunicate request_size=255 [19:29:20]MH_SAM_APDU [19:29:20]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 92 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [19:29:20]Write to MH i2c: E2 02 01 C2 1E 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 92 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A5 [19:29:20]Write i2c OK [19:29:20]MH_I2C_Read... [19:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:20]Read from MH i2c: E2 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 03 00 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [19:29:20]RAPDU: 90 00 [19:29:20]wFMCommunicate OK [19:29:20]wFMCommunicate request_size=50 [19:29:20]MH_SAM_APDU [19:29:20]CAPDU: 80 0D 02 02 2D 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D8 C5 00 00 35 04 06 00 16 30 FD 34 BA F2 [19:29:20]Write to MH i2c: E2 35 00 C3 1E 80 0D 02 02 2D 00 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D8 C5 00 00 35 04 06 00 16 30 FD 34 BA F2 00 00 69 [19:29:20]Write i2c OK [19:29:20]MH_I2C_Read... [19:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:20]Read from MH i2c: E2 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 03 00 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [19:29:20]RAPDU: 90 00 [19:29:20]wFMCommunicate OK [19:29:20]wFMCommunicate request_size=4 [19:29:20]MH_SAM_APDU [19:29:20]CAPDU: 80 0D 03 02 [19:29:20]Write to MH i2c: E2 08 00 C4 1E 80 0D 03 02 00 00 00 00 5D [19:29:20]Write i2c OK [19:29:20]MH_I2C_Read... [19:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:20]Read from MH i2c: E2 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 0B 00 [19:29:20]MH_I2C_Read... [19:29:20]Read from MH i2c: E2 0B 00 C4 1E 00 9B 16 2C EA 45 8A AE 59 90 00 FB [19:29:20]RAPDU: 9B 16 2C EA 45 8A AE 59 90 00 [19:29:20]wFMCommunicate OK [19:29:20]SAM_PROTO_SignData done [19:29:20]FM_MakeSignedData done [19:29:20]CreateOFDProtocolMessage [19:29:20]wFMCommunicate request_size=4 [19:29:20]MH_SAM_APDU [19:29:20]CAPDU: 80 11 00 00 [19:29:20]Write to MH i2c: E2 08 00 C5 1E 80 11 00 00 00 00 00 00 5D [19:29:20]Write i2c OK [19:29:20]MH_I2C_Read... [19:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:21]Read from MH i2c: E2 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: E2 17 00 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: E2 17 00 C5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A4 [19:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:29:21]wFMCommunicate OK [19:29:21]CreateOFDProtocolMessage done [19:29:21]OFDSenderStorePacket 50648 [19:29:21]StoreOFDPacket docnum=50648 [19:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 37 01 00 00 EB CB 2F 01 74 54 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 92 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D8 C5 00 00 35 04 06 00 16 30 FD 34 BA F2 9B 16 2C EA 45 8A AE 59 [19:29:21]CheckFolder [19:29:21]dirname=/storage/ofd_packets [19:29:21]CheckFolder done [19:29:21]ProducePacketName [19:29:21]name=ofd_packets/00050648 [19:29:21]NVStorageSaveData ofd_packets/00050648 [19:29:21]File name is /storage/ofd_packets/00050648 [19:29:21]Write 341 bytes [19:29:21]NVStorageSaveData done [19:29:21]OFDSenderStorePacket done [19:29:21]KKMCreateOFDPacket done [19:29:21]NVStorageSaveData kkm_last_timestamp [19:29:21]File name is /storage/kkm_last_timestamp [19:29:21]Write 4 bytes [19:29:21]NVStorageSaveData done [19:29:21]ExternCall_PrintAddStr [19:29:21]wPrintStart [19:29:21]Write to MH i2c: 01 00 00 C6 1E E4 [19:29:21]Write i2c OK [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: 01 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: 01 07 00 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: 01 07 00 C6 1E 00 00 00 00 00 FF 0F F9 [19:29:21]RasterBufferAndPrint [19:29:21]line Счет N : (3)164533 [19:29:21]line ИНН: 02508201610067 [19:29:21]line Контрольно-Кассовый Чек [19:29:21]line ПРОДАЖА [19:29:21]line Товар: 4870202522015 [19:29:21]line Напиток Maxi Чай Грушевый 1,2л [19:29:21]line 1.000 * 104.00 [19:29:21]line = 104.00 [19:29:21]line НДС 12% НСП 1% [19:29:21]line > о реализуемом товаре [19:29:21]line ИТОГО: 104.00 [19:29:21]line НСП 1% : 0.92 [19:29:21]line НДС 12% : 11.04 [19:29:21]line Наличными: 104.00 [19:29:21]line Безнал.: 0.00 [19:29:21]line Место: АЗС № 80 "Партнер Нефть" [19:29:21]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:29:21]line СНО: Общий режим [19:29:21]line Чек 148 25.10.2024 19:29 [19:29:21]line Смена: 493 ФФД: 1.0 [19:29:21]line ЗНМ: 0300000090 [19:29:21]line РНМ: 0000000000097022 [19:29:21]line Версия ККМ: 001 [19:29:21]line ФМ: 0000000000875000 [19:29:21]line ФД: 50648 [19:29:21]line ФПД: 24399662332658 [19:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T192922&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50648&fm=24399662332658&tin=02508201610067®Number=0000000000097022&sum=10400 [19:29:21]OFD Sender: Processing packet 50648 [packets to send 7, broken 6] [19:29:21]ProducePacketName [19:29:21]name=ofd_packets/00050648 [19:29:21]OFD Sender: To server: pG, [19:29:21]CommunicateWithHost lk.salyk.kg:30040 [19:29:21]ConnectInit lk.salyk.kg [19:29:21]line 0 [19:29:21]written 0, free lines is 4095 [19:29:21]Connected sock=10 [19:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 37 01 00 00 EB CB 2F 01 74 54 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 92 F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D8 C5 00 00 35 04 06 00 16 30 FD 34 BA F2 9B 16 2C EA 45 8A AE 59 [19:29:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 62 31 47 00 F1 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D8 C5 00 00 F4 03 04 00 22 9D 1B 67 B6 04 01 00 00 A4 7C 90 46 71 BF 13 0A [19:29:21]CommunicateWithHost err = 0 [19:29:21]CheckOFDResponse [19:29:21]1017 (14) - 77093643461234 [19:29:21]1041 (16) - 0000000000875000 [19:29:21]1040 (4) - 50648 [19:29:21]1012 (4) - 25.10.2024 13:29 [19:29:21]1206 (1) - 0 [19:29:21]OFD Sender: Remove packet 50648 [19:29:21]ProducePacketName [19:29:21]name=ofd_packets/00050648 [19:29:21]NVStorageDeleteData [19:29:21]Write to MH i2c: 01 00 00 EF 1E 0D [19:29:21]Write i2c OK [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: 01 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: 01 07 00 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: 01 07 00 EF 1E 00 00 00 00 00 0E 0D 2F [19:29:21]RasterBufferAndPrint [19:29:21]line [19:29:21]line [19:29:21]line [19:29:21]line [19:29:21]line [19:29:21]written 0, free lines is 3349 [19:29:21]process_action close_receipt done [19:29:21]requested_data is exist [19:29:21]produce_requested_data [19:29:21]requested_item fm.sn is exist - process it [19:29:21]wFMCommunicate request_size=4 [19:29:21]MH_SAM_APDU [19:29:21]CAPDU: 80 11 00 00 [19:29:21]Write to MH i2c: E2 08 00 F6 1E 80 11 00 00 00 00 00 00 8E [19:29:21]Write i2c OK [19:29:21]MH_I2C_Read... [19:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:21]Read from MH i2c: E2 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: E2 17 00 [19:29:21]MH_I2C_Read... [19:29:21]Read from MH i2c: E2 17 00 F6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D5 [19:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:29:21]wFMCommunicate OK [19:29:21]requested_item fd.num is exist - process it [19:29:21]SAM_PROTO_GetFieldsCounters [19:29:21]wFMCommunicate request_size=4 [19:29:21]MH_SAM_APDU [19:29:21]CAPDU: 80 13 00 00 [19:29:21]Write to MH i2c: E2 08 00 F7 1E 80 13 00 00 00 00 00 00 91 [19:29:21]Write i2c OK [19:29:21]MH_I2C_Read... [19:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:22]Read from MH i2c: E2 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 62 00 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 62 00 F7 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:22]wFMCommunicate OK [19:29:22]SAM_PROTO_GetFieldsCounters done [19:29:22]requested_item shift.num is exist - process it [19:29:22]requested_item shift.opened is exist - process it [19:29:22]req_shift_opened [19:29:22]FM_GetShiftState [19:29:22]SAM_PROTO_GetShiftState [19:29:22]wFMCommunicate request_size=4 [19:29:22]MH_SAM_APDU [19:29:22]CAPDU: 80 13 01 00 [19:29:22]Write to MH i2c: E2 08 00 F8 1E 80 13 01 00 00 00 00 00 93 [19:29:22]Write i2c OK [19:29:22]MH_I2C_Read... [19:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:22]Read from MH i2c: E2 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 0E 00 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 0E 00 F8 1E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8B [19:29:22]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:29:22]wFMCommunicate OK [19:29:22]SAM_PROTO_GetShiftState done [19:29:22]FM_GetShiftState done [19:29:22]req_shift_opened done [19:29:22]requested_item shift.open_date is exist - process it [19:29:22]req_shift_open_date [19:29:22]req_shift_open_date done [19:29:22]produce_requested_data done [19:29:22]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50648,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:29:22]process_action_free close_receipt [19:29:22]json_value_free [19:29:22]json_value_free done [19:29:22]process_json_proto returns [19:29:22]Send response to host [19:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50648,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:29:22]free response buf [19:29:22]execute_script done [19:29:22]execute_script returns [19:29:22]free content buf [19:29:22]Sock 9.Close socket [19:29:22]Sock 9.Thread stoped [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:47]accept exits with 7 [19:30:47]New connection [19:30:47]New thread 3066789220 created [19:30:47]Thread 3066645860 joined [19:30:47]Waiting for new connection... [19:30:47] Sock 7.Parse request [19:30:47]Sock 7.Check first char [19:30:47]Sock 7.First char is OK [19:30:47]request: POST /json_proto HTTP/1.0 [19:30:47]Method: POST [19:30:47]URL: /json_proto [19:30:47]Method is POST - this is cgi request [19:30:47]url: /json_proto [19:30:47]query_string will be loaded in cgi processing [19:30:47]execute_cgi json_proto POST (null) [19:30:47]execute_cgi path=json_proto method=POST [19:30:47]POST find Content-Length [19:30:47]Host: 172.17.49.196:8080 [19:30:47]Content-Length: 1099 [19:30:47]Content-Type: application/json [19:30:47] [19:30:47]POST finish read [19:30:47]Found Content-Length = 1099 [19:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164534", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]execute_script... [19:30: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)164534", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]POST & json_proto [19:30:47]process_json_proto [19:30:47]json parsed OK: [19:30:47]protocol is kg_v1.0 [19:30:47]action value=close_receipt [19:30:47]process_action close_receipt [19:30:47]cmd_close_receipt [19:30:47]MH_GetDate [19:30:47]Write to MH i2c: F0 00 00 F9 1E 06 [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 F9 1E 00 EA F1 1B 67 BD 3B 11 67 DC [19:30:47]GetLastDocTimeStamp 1729884562 [19:30:47]current date 1729884650 [19:30:47]FM_GetShiftState [19:30:47]SAM_PROTO_GetShiftState [19:30:47]wFMCommunicate request_size=4 [19:30:47]MH_SAM_APDU [19:30:47]CAPDU: 80 13 01 00 [19:30:47]Write to MH i2c: E2 08 00 FA 1E 80 13 01 00 00 00 00 00 95 [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:47]Read from MH i2c: E2 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 FA 1E 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8D [19:30:47]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:30:47]wFMCommunicate OK [19:30:47]SAM_PROTO_GetShiftState done [19:30:47]FM_GetShiftState done [19:30:47]opened in 1729815177 [19:30:47]opened+sec_in_day 1729901577 [19:30:47]quantity*price = 15000 [19:30:47]sum+1 = 15001 [19:30:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 2.000 * 59.00 = 118.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.46 Наличными: 0.00 Безнал.: 268.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 149 25.10.2024 19:30 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50649 ФПД: 265575916795919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193050&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50649&fm=265575916795919&tin=02508201610067®Number=0000000000097022&sum=26800 0 [19:30:48]StoreToDocumentArchive [19:30:48]shift 493 fd 50649 [19:30:48]save to /storage/0493/doc_00050649 [19:30:48]save last doc name /storage/0493/doc_00050649 to /storage/kkm_last_doc_name [19:30:48]save OK [19:30:48]Clear old archive folders... [19:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=408 [19:30:48]tlvbuf is B6F2D010 [19:30:48]SAM_PROTO_ClearQueue [19:30:48]wFMCommunicate request_size=4 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 09 00 00 [19:30:48]Write to MH i2c: E2 08 00 07 1F 80 09 00 00 00 00 00 00 98 [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:48]Read from MH i2c: E2 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 07 1F 00 90 00 9A [19:30:48]RAPDU: 90 00 [19:30:48]wFMCommunicate OK [19:30:48]SAM_PROTO_ClearQueue done [19:30:48]KKMCreateOFDPacket [19:30:48]OFDProtocolAddRootSTLVToBuf [19:30:48]FM_MakeSignedData [19:30:48]FM_MakeSignedData [19:30:48]SAM_PROTO_SignData [19:30:48]wFMCommunicate request_size=4 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 0D 01 02 [19:30:48]Write to MH i2c: E2 08 00 08 1F 80 0D 01 02 00 00 00 00 A0 [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:48]Read from MH i2c: E2 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 08 1F 00 90 00 9B [19:30:48]RAPDU: 90 00 [19:30:48]wFMCommunicate OK [19:30:48]wFMCommunicate request_size=255 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [19:30:48]Write to MH i2c: E2 02 01 09 1F 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 8E [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:48]Read from MH i2c: E2 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 09 1F 00 90 00 9C [19:30:48]RAPDU: 90 00 [19:30:48]wFMCommunicate OK [19:30:48]wFMCommunicate request_size=167 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 0D 02 02 A2 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 1E 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 95 00 00 00 F4 03 04 00 EA F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D9 C5 00 00 35 04 06 00 F1 8A 36 2E 78 0F [19:30:48]Write to MH i2c: E2 AA 00 0A 1F 80 0D 02 02 A2 00 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 1E 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 95 00 00 00 F4 03 04 00 EA F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D9 C5 00 00 35 04 06 00 F1 8A 36 2E 78 0F 00 00 3D [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 0A 1F 00 90 00 9D [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 03 02 [19:30:49]Write to MH i2c: E2 08 00 0B 1F 80 0D 03 02 00 00 00 00 A5 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 0B 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 0B 00 0B 1F 00 9E 93 24 B6 77 D3 AA 11 90 00 B6 [19:30:49]RAPDU: 9E 93 24 B6 77 D3 AA 11 90 00 [19:30:49]wFMCommunicate OK [19:30:49]SAM_PROTO_SignData done [19:30:49]FM_MakeSignedData done [19:30:49]CreateOFDProtocolMessage [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 11 00 00 [19:30:49]Write to MH i2c: E2 08 00 0C 1F 80 11 00 00 00 00 00 00 A5 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 17 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 17 00 0C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EC [19:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:30:49]wFMCommunicate OK [19:30:49]CreateOFDProtocolMessage done [19:30:49]OFDSenderStorePacket 50649 [19:30:49]StoreOFDPacket docnum=50649 [19:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 AC 01 00 00 74 47 A4 01 2D 10 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1E 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 95 00 00 00 F4 03 04 00 EA F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D9 C5 00 00 35 04 06 00 F1 8A 36 2E 78 0F 9E 93 24 B6 77 D3 AA 11 [19:30:49]CheckFolder [19:30:49]dirname=/storage/ofd_packets [19:30:49]CheckFolder done [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00050649 [19:30:49]NVStorageSaveData ofd_packets/00050649 [19:30:49]File name is /storage/ofd_packets/00050649 [19:30:49]Write 458 bytes [19:30:49]NVStorageSaveData done [19:30:49]OFDSenderStorePacket done [19:30:49]KKMCreateOFDPacket done [19:30:49]NVStorageSaveData kkm_last_timestamp [19:30:49]File name is /storage/kkm_last_timestamp [19:30:49]Write 4 bytes [19:30:49]NVStorageSaveData done [19:30:49]ExternCall_PrintAddStr [19:30:49]wPrintStart [19:30:49]Write to MH i2c: 01 00 00 0D 1F 2C [19:30:49]OFD Sender: Processing packet 50649 [packets to send 7, broken 6] [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00050649 [19:30:49]OFD Sender: To server: pG, [19:30:49]CommunicateWithHost lk.salyk.kg:30040 [19:30:49]ConnectInit lk.salyk.kg [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 0D 1F 00 00 00 00 00 FF 0F 41 [19:30:49]RasterBufferAndPrint [19:30:49]line Счет N : (3)164534 [19:30:49]line ИНН: 02508201610067 [19:30:49]line Контрольно-Кассовый Чек [19:30:49]line ПРОДАЖА [19:30:49]line Товар: 5449000027450 [19:30:49]line Напиток FuzeTea чай манго,ром 0,5л [19:30:49]line 2.000 * 75.00 [19:30:49]line = 150.00 [19:30:49]line НДС 12% НСП 1% [19:30:49]line > о реализуемом товаре [19:30:49]line Товар: 4011100977624 [19:30:49]line Шок Батончик Баунти 55г [19:30:49]line 2.000 * 59.00 [19:30:49]line = 118.00 [19:30:49]line НДС 12% НСП 1% [19:30:49]line > о реализуемом товаре [19:30:49]line ИТОГО: 268.00 [19:30:49]line НСП 1% : 2.37 [19:30:49]line НДС 12% : 28.46 [19:30:49]line Наличными: 0.00 [19:30:49]line Безнал.: 268.00 [19:30:49]line Место: АЗС № 80 "Партнер Нефть" [19:30:49]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:30:49]line СНО: Общий режим [19:30:49]line Чек 149 25.10.2024 19:30 [19:30:49]line Смена: 493 ФФД: 1.0 [19:30:49]line ЗНМ: 0300000090 [19:30:49]line РНМ: 0000000000097022 [19:30:49]line Версия ККМ: 001 [19:30:49]line Платежная система: Mbank [19:30:49]line ФМ: 0000000000875000 [19:30:49]line ФД: 50649 [19:30:49]line ФПД: 265575916795919 [19:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193050&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50649&fm=265575916795919&tin=02508201610067®Number=0000000000097022&sum=26800 [19:30:49]line 0 [19:30:49]written 0, free lines is 4095 [19:30:49]Connected sock=10 [19:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 AC 01 00 00 74 47 A4 01 2D 10 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 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 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1E 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 95 00 00 00 F4 03 04 00 EA F1 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D9 C5 00 00 35 04 06 00 F1 8A 36 2E 78 0F 9E 93 24 B6 77 D3 AA 11 [19:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F0 7B 47 00 CD 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 D9 C5 00 00 F4 03 04 00 7A 9D 1B 67 B6 04 01 00 00 66 91 FD 13 8F 16 89 6B [19:30:49]CommunicateWithHost err = 0 [19:30:49]CheckOFDResponse [19:30:49]1017 (14) - 77093643461234 [19:30:49]1041 (16) - 0000000000875000 [19:30:49]1040 (4) - 50649 [19:30:49]1012 (4) - 25.10.2024 13:30 [19:30:49]1206 (1) - 0 [19:30:49]OFD Sender: Remove packet 50649 [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00050649 [19:30:49]NVStorageDeleteData [19:30:50]Write to MH i2c: 01 00 00 3D 1F 5C [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 C1 0C 30 [19:30:50]RasterBufferAndPrint [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]written 0, free lines is 3274 [19:30:50]process_action close_receipt done [19:30:50]requested_data is exist [19:30:50]produce_requested_data [19:30:50]requested_item fm.sn is exist - process it [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 11 00 00 [19:30:50]Write to MH i2c: E2 08 00 44 1F 80 11 00 00 00 00 00 00 DD [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 44 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 24 [19:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:30:50]wFMCommunicate OK [19:30:50]requested_item fd.num is exist - process it [19:30:50]SAM_PROTO_GetFieldsCounters [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 13 00 00 [19:30:50]Write to MH i2c: E2 08 00 45 1F 80 13 00 00 00 00 00 00 E0 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 62 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 62 00 45 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [19:30:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 D9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:50]wFMCommunicate OK [19:30:50]SAM_PROTO_GetFieldsCounters done [19:30:50]requested_item shift.num is exist - process it [19:30:50]requested_item shift.opened is exist - process it [19:30:50]req_shift_opened [19:30:50]FM_GetShiftState [19:30:50]SAM_PROTO_GetShiftState [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 13 01 00 [19:30:50]Write to MH i2c: E2 08 00 46 1F 80 13 01 00 00 00 00 00 E2 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]OFD Sender: No OFD packet to send [19:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 0E 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 0E 00 46 1F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DA [19:30:50]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:30:50]wFMCommunicate OK [19:30:50]SAM_PROTO_GetShiftState done [19:30:50]FM_GetShiftState done [19:30:50]req_shift_opened done [19:30:50]requested_item shift.open_date is exist - process it [19:30:50]req_shift_open_date [19:30:50]req_shift_open_date done [19:30:50]produce_requested_data done [19:30:50]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50649,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:30:50]process_action_free close_receipt [19:30:50]json_value_free [19:30:50]json_value_free done [19:30:50]process_json_proto returns [19:30:50]Send response to host [19:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50649,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:30:50]free response buf [19:30:50]execute_script done [19:30:50]execute_script returns [19:30:50]free content buf [19:30:50]Sock 7.Close socket [19:30:50]Sock 7.Thread stoped [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]accept exits with 9 [19:32:05]New connection [19:32:05]New thread 3066645860 created [19:32:05]Thread 3066789220 joined [19:32:05]Waiting for new connection... [19:32:05] Sock 9.Parse request [19:32:05]Sock 9.Check first char [19:32:05]Sock 9.First char is OK [19:32:05]request: POST /json_proto HTTP/1.0 [19:32:05]Method: POST [19:32:05]URL: /json_proto [19:32:05]Method is POST - this is cgi request [19:32:05]url: /json_proto [19:32:05]query_string will be loaded in cgi processing [19:32:05]execute_cgi json_proto POST (null) [19:32:05]execute_cgi path=json_proto method=POST [19:32:05]POST find Content-Length [19:32:05]Host: 172.17.49.196:8080 [19:32:05]Content-Length: 646 [19:32:05]Content-Type: application/json [19:32:05] [19:32:05]POST finish read [19:32:05]Found Content-Length = 646 [19:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164535", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 39.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:05]execute_script... [19:32:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164535", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 39.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:05]POST & json_proto [19:32:05]process_json_proto [19:32:05]json parsed OK: [19:32:05]protocol is kg_v1.0 [19:32:05]action value=close_receipt [19:32:05]process_action close_receipt [19:32:05]cmd_close_receipt [19:32:05]MH_GetDate [19:32:05]Write to MH i2c: F0 00 00 47 1F 55 [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: F0 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: F0 09 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: F0 09 00 47 1F 00 38 F2 1B 67 BD 3B 11 67 7A [19:32:05]GetLastDocTimeStamp 1729884650 [19:32:05]current date 1729884728 [19:32:05]FM_GetShiftState [19:32:05]SAM_PROTO_GetShiftState [19:32:05]wFMCommunicate request_size=4 [19:32:05]MH_SAM_APDU [19:32:05]CAPDU: 80 13 01 00 [19:32:05]Write to MH i2c: E2 08 00 48 1F 80 13 01 00 00 00 00 00 E4 [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:05]Read from MH i2c: E2 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 0E 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 0E 00 48 1F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DC [19:32:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:32:05]wFMCommunicate OK [19:32:05]SAM_PROTO_GetShiftState done [19:32:05]FM_GetShiftState done [19:32:05]opened in 1729815177 [19:32:05]opened+sec_in_day 1729901577 [19:32:05]quantity*price = 3900 [19:32:05]sum+1 = 3901 [19:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 39.00 НСП 1% : 0.34 НДС 12% : 4.14 Наличными: 39.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 150 25.10.2024 19:32 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50650 ФПД: 38727052582069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193208&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50650&fm=38727052582069&tin=02508201610067®Number=0000000000097022&sum=3900 0 [19:32:06]StoreToDocumentArchive [19:32:06]shift 493 fd 50650 [19:32:06]save to /storage/0493/doc_00050650 [19:32:06]save last doc name /storage/0493/doc_00050650 to /storage/kkm_last_doc_name [19:32:06]save OK [19:32:06]Clear old archive folders... [19:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=277 [19:32:06]tlvbuf is 01E88EC0 [19:32:06]SAM_PROTO_ClearQueue [19:32:06]wFMCommunicate request_size=4 [19:32:06]MH_SAM_APDU [19:32:06]CAPDU: 80 09 00 00 [19:32:06]Write to MH i2c: E2 08 00 55 1F 80 09 00 00 00 00 00 00 E6 [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:06]Read from MH i2c: E2 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 03 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 03 00 55 1F 00 90 00 E8 [19:32:06]RAPDU: 90 00 [19:32:06]wFMCommunicate OK [19:32:06]SAM_PROTO_ClearQueue done [19:32:06]KKMCreateOFDPacket [19:32:06]OFDProtocolAddRootSTLVToBuf [19:32:06]FM_MakeSignedData [19:32:06]FM_MakeSignedData [19:32:06]SAM_PROTO_SignData [19:32:06]wFMCommunicate request_size=4 [19:32:06]MH_SAM_APDU [19:32:06]CAPDU: 80 0D 01 02 [19:32:06]Write to MH i2c: E2 08 00 56 1F 80 0D 01 02 00 00 00 00 EE [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:06]Read from MH i2c: E2 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 03 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 03 00 56 1F 00 90 00 E9 [19:32:06]RAPDU: 90 00 [19:32:06]wFMCommunicate OK [19:32:06]wFMCommunicate request_size=255 [19:32:06]MH_SAM_APDU [19:32:06]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 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 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 01 00 00 00 00 07 04 06 00 3C 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 96 00 00 00 F4 03 04 00 38 F2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 [19:32:06]Write to MH i2c: E2 02 01 57 1F 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 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 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 01 00 00 00 00 07 04 06 00 3C 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 96 00 00 00 F4 03 04 00 38 F2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 00 00 7C [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:06]Read from MH i2c: E2 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 03 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [19:32:06]RAPDU: 90 00 [19:32:06]wFMCommunicate OK [19:32:06]wFMCommunicate request_size=36 [19:32:06]MH_SAM_APDU [19:32:06]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DA C5 00 00 35 04 06 00 23 38 D8 36 5C B5 [19:32:06]Write to MH i2c: E2 27 00 58 1F 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DA C5 00 00 35 04 06 00 23 38 D8 36 5C B5 00 00 23 [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:06]Read from MH i2c: E2 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 03 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [19:32:06]RAPDU: 90 00 [19:32:06]wFMCommunicate OK [19:32:06]wFMCommunicate request_size=4 [19:32:06]MH_SAM_APDU [19:32:06]CAPDU: 80 0D 03 02 [19:32:06]Write to MH i2c: E2 08 00 59 1F 80 0D 03 02 00 00 00 00 F3 [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:06]Read from MH i2c: E2 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 0B 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 0B 00 59 1F 00 23 60 81 7E 96 AA 15 44 90 00 0F [19:32:06]RAPDU: 23 60 81 7E 96 AA 15 44 90 00 [19:32:06]wFMCommunicate OK [19:32:06]SAM_PROTO_SignData done [19:32:06]FM_MakeSignedData done [19:32:06]CreateOFDProtocolMessage [19:32:06]wFMCommunicate request_size=4 [19:32:06]MH_SAM_APDU [19:32:06]CAPDU: 80 11 00 00 [19:32:06]Write to MH i2c: E2 08 00 5A 1F 80 11 00 00 00 00 00 00 F3 [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:06]Read from MH i2c: E2 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 17 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 17 00 5A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 3A [19:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:32:06]wFMCommunicate OK [19:32:06]CreateOFDProtocolMessage done [19:32:06]OFDSenderStorePacket 50650 [19:32:06]StoreOFDPacket docnum=50650 [19:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 A0 67 21 01 2D CC 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 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 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 01 00 00 00 00 07 04 06 00 3C 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 96 00 00 00 F4 03 04 00 38 F2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DA C5 00 00 35 04 06 00 23 38 D8 36 5C B5 23 60 81 7E 96 AA 15 44 [19:32:06]CheckFolder [19:32:06]dirname=/storage/ofd_packets [19:32:06]CheckFolder done [19:32:06]ProducePacketName [19:32:06]name=ofd_packets/00050650 [19:32:06]NVStorageSaveData ofd_packets/00050650 [19:32:06]File name is /storage/ofd_packets/00050650 [19:32:06]Write 327 bytes [19:32:06]NVStorageSaveData done [19:32:06]OFDSenderStorePacket done [19:32:06]KKMCreateOFDPacket done [19:32:06]NVStorageSaveData kkm_last_timestamp [19:32:06]File name is /storage/kkm_last_timestamp [19:32:06]Write 4 bytes [19:32:06]NVStorageSaveData done [19:32:06]ExternCall_PrintAddStr [19:32:06]wPrintStart [19:32:06]Write to MH i2c: 01 00 00 5B 1F 7A [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: 01 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: 01 07 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: 01 07 00 5B 1F 00 00 00 00 00 FF 0F 8F [19:32:06]RasterBufferAndPrint [19:32:06]line Счет N : (3)164535 [19:32:06]line ИНН: 02508201610067 [19:32:06]line Контрольно-Кассовый Чек [19:32:06]line ПРОДАЖА [19:32:06]line Товар: 4700000310173 [19:32:06]line Вода Адыгене 0,5л б/г [19:32:06]line 1.000 * 39.00 [19:32:06]line = 39.00 [19:32:06]line НДС 12% НСП 1% [19:32:06]line > о реализуемом товаре [19:32:06]line ИТОГО: 39.00 [19:32:06]line НСП 1% : 0.34 [19:32:06]line НДС 12% : 4.14 [19:32:06]line Наличными: 39.00 [19:32:06]line Безнал.: 0.00 [19:32:06]line Место: АЗС № 80 "Партнер Нефть" [19:32:06]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:32:06]line СНО: Общий режим [19:32:06]line Чек 150 25.10.2024 19:32 [19:32:06]line Смена: 493 ФФД: 1.0 [19:32:06]line ЗНМ: 0300000090 [19:32:06]line РНМ: 0000000000097022 [19:32:06]line Версия ККМ: 001 [19:32:06]line ФМ: 0000000000875000 [19:32:06]line ФД: 50650 [19:32:06]line ФПД: 38727052582069 [19:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193208&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50650&fm=38727052582069&tin=02508201610067®Number=0000000000097022&sum=3900 [19:32:06]line 0 [19:32:06]written 0, free lines is 4095 [19:32:07]OFD Sender: Processing packet 50650 [packets to send 7, broken 6] [19:32:07]ProducePacketName [19:32:07]name=ofd_packets/00050650 [19:32:07]OFD Sender: To server: pG, [19:32:07]CommunicateWithHost lk.salyk.kg:30040 [19:32:07]ConnectInit lk.salyk.kg [19:32:07]Connected sock=7 [19:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 A0 67 21 01 2D CC 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 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 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 01 00 00 00 00 07 04 06 00 3C 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 96 00 00 00 F4 03 04 00 38 F2 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DA C5 00 00 35 04 06 00 23 38 D8 36 5C B5 23 60 81 7E 96 AA 15 44 [19:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 0A AC 47 00 1E B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DA C5 00 00 F4 03 04 00 C8 9D 1B 67 B6 04 01 00 00 EC D9 DD 0A 8C F4 8D 17 [19:32:07]CommunicateWithHost err = 0 [19:32:07]CheckOFDResponse [19:32:07]1017 (14) - 77093643461234 [19:32:07]1041 (16) - 0000000000875000 [19:32:07]1040 (4) - 50650 [19:32:07]1012 (4) - 25.10.2024 13:31 [19:32:07]1206 (1) - 0 [19:32:07]OFD Sender: Remove packet 50650 [19:32:07]ProducePacketName [19:32:07]name=ofd_packets/00050650 [19:32:07]NVStorageDeleteData [19:32:07]Write to MH i2c: 01 00 00 83 1F A2 [19:32:07]Write i2c OK [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: 01 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: 01 07 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: 01 07 00 83 1F 00 00 00 00 00 28 0D DE [19:32:07]RasterBufferAndPrint [19:32:07]line [19:32:07]line [19:32:07]line [19:32:07]line [19:32:07]line [19:32:07]written 0, free lines is 3374 [19:32:07]process_action close_receipt done [19:32:07]requested_data is exist [19:32:07]produce_requested_data [19:32:07]requested_item fm.sn is exist - process it [19:32:07]wFMCommunicate request_size=4 [19:32:07]MH_SAM_APDU [19:32:07]CAPDU: 80 11 00 00 [19:32:07]Write to MH i2c: E2 08 00 8A 1F 80 11 00 00 00 00 00 00 23 [19:32:07]Write i2c OK [19:32:07]MH_I2C_Read... [19:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:07]Read from MH i2c: E2 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 17 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 17 00 8A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6A [19:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:32:07]wFMCommunicate OK [19:32:07]requested_item fd.num is exist - process it [19:32:07]SAM_PROTO_GetFieldsCounters [19:32:07]wFMCommunicate request_size=4 [19:32:07]MH_SAM_APDU [19:32:07]CAPDU: 80 13 00 00 [19:32:07]Write to MH i2c: E2 08 00 8B 1F 80 13 00 00 00 00 00 00 26 [19:32:07]Write i2c OK [19:32:07]MH_I2C_Read... [19:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:07]Read from MH i2c: E2 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 62 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 62 00 8B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [19:32:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:07]wFMCommunicate OK [19:32:07]SAM_PROTO_GetFieldsCounters done [19:32:07]requested_item shift.num is exist - process it [19:32:07]requested_item shift.opened is exist - process it [19:32:07]req_shift_opened [19:32:07]FM_GetShiftState [19:32:07]SAM_PROTO_GetShiftState [19:32:07]wFMCommunicate request_size=4 [19:32:07]MH_SAM_APDU [19:32:07]CAPDU: 80 13 01 00 [19:32:07]Write to MH i2c: E2 08 00 8C 1F 80 13 01 00 00 00 00 00 28 [19:32:07]Write i2c OK [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 [19:32:07]MH_I2C_Read... [19:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:07]Read from MH i2c: E2 0E 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 0E 00 8C 1F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 20 [19:32:07]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:32:07]wFMCommunicate OK [19:32:07]SAM_PROTO_GetShiftState done [19:32:07]FM_GetShiftState done [19:32:07]req_shift_opened done [19:32:07]requested_item shift.open_date is exist - process it [19:32:07]req_shift_open_date [19:32:07]req_shift_open_date done [19:32:07]produce_requested_data done [19:32:07]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50650,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:32:07]process_action_free close_receipt [19:32:07]json_value_free [19:32:07]json_value_free done [19:32:07]process_json_proto returns [19:32:07]Send response to host [19:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50650,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:32:07]free response buf [19:32:07]execute_script done [19:32:07]execute_script returns [19:32:07]free content buf [19:32:07]Sock 9.Close socket [19:32:07]Sock 9.Thread stoped [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:24]accept exits with 10 [19:36:24]New connection [19:36:24]New thread 3066789220 created [19:36:24]Thread 3066645860 joined [19:36:24]Waiting for new connection... [19:36:24] Sock 10.Parse request [19:36:24]Sock 10.Check first char [19:36:24]Sock 10.First char is OK [19:36:24]request: POST /json_proto HTTP/1.0 [19:36:24]Method: POST [19:36:24]URL: /json_proto [19:36:24]Method is POST - this is cgi request [19:36:24]url: /json_proto [19:36:24]query_string will be loaded in cgi processing [19:36:24]execute_cgi json_proto POST (null) [19:36:24]execute_cgi path=json_proto method=POST [19:36:24]POST find Content-Length [19:36:24]Host: 172.17.49.196:8080 [19:36:24]Content-Length: 986 [19:36:24]Content-Type: application/json [19:36:24] [19:36:24]POST finish read [19:36:24]Found Content-Length = 986 [19:36:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164536", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:24]execute_script... [19:36:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164536", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:24]POST & json_proto [19:36:24]process_json_proto [19:36:24]json parsed OK: [19:36:24]protocol is kg_v1.0 [19:36:24]action value=close_receipt [19:36:24]process_action close_receipt [19:36:24]cmd_close_receipt [19:36:24]MH_GetDate [19:36:24]Write to MH i2c: F0 00 00 8D 1F 9B [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: F0 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: F0 09 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: F0 09 00 8D 1F 00 3B F3 1B 67 BD 3B 11 67 C4 [19:36:24]GetLastDocTimeStamp 1729884728 [19:36:24]current date 1729884987 [19:36:24]FM_GetShiftState [19:36:24]SAM_PROTO_GetShiftState [19:36:24]wFMCommunicate request_size=4 [19:36:24]MH_SAM_APDU [19:36:24]CAPDU: 80 13 01 00 [19:36:24]Write to MH i2c: E2 08 00 8E 1F 80 13 01 00 00 00 00 00 2A [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:24]Read from MH i2c: E2 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 0E 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 0E 00 8E 1F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 22 [19:36:24]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:36:24]wFMCommunicate OK [19:36:24]SAM_PROTO_GetShiftState done [19:36:24]FM_GetShiftState done [19:36:24]opened in 1729815177 [19:36:24]opened+sec_in_day 1729901577 [19:36:24]quantity*price = 5900 [19:36:24]sum+1 = 5901 [19:36:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325113 Напиток PEPSI газированный ст 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 151 25.10.2024 19:36 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50651 ФПД: 184799451234471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193627&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50651&fm=184799451234471&tin=02508201610067®Number=0000000000097022&sum=14900 0 [19:36:25]StoreToDocumentArchive [19:36:25]shift 493 fd 50651 [19:36:25]save to /storage/0493/doc_00050651 [19:36:25]save last doc name /storage/0493/doc_00050651 to /storage/kkm_last_doc_name [19:36:25]save OK [19:36:25]Clear old archive folders... [19:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=412 [19:36:25]tlvbuf is 01ECAB50 [19:36:25]SAM_PROTO_ClearQueue [19:36:25]wFMCommunicate request_size=4 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 09 00 00 [19:36:25]Write to MH i2c: E2 08 00 9B 1F 80 09 00 00 00 00 00 00 2C [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 9B 1F 00 90 00 2E [19:36:25]RAPDU: 90 00 [19:36:25]wFMCommunicate OK [19:36:25]SAM_PROTO_ClearQueue done [19:36:25]KKMCreateOFDPacket [19:36:25]OFDProtocolAddRootSTLVToBuf [19:36:25]FM_MakeSignedData [19:36:25]FM_MakeSignedData [19:36:25]SAM_PROTO_SignData [19:36:25]wFMCommunicate request_size=4 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 0D 01 02 [19:36:25]Write to MH i2c: E2 08 00 9C 1F 80 0D 01 02 00 00 00 00 34 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [19:36:25]RAPDU: 90 00 [19:36:25]wFMCommunicate OK [19:36:25]wFMCommunicate request_size=255 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 0D 02 02 FA 03 00 9C 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 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 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [19:36:25]Write to MH i2c: E2 02 01 9D 1F 80 0D 02 02 FA 00 03 00 9C 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 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 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 78 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [19:36:25]RAPDU: 90 00 [19:36:25]wFMCommunicate OK [19:36:25]wFMCommunicate request_size=171 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 97 00 00 00 F4 03 04 00 3B F3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DB C5 00 00 35 04 06 00 A8 12 F9 A5 40 A7 [19:36:25]Write to MH i2c: E2 AE 00 9E 1F 80 0D 02 02 A6 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 97 00 00 00 F4 03 04 00 3B F3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DB C5 00 00 35 04 06 00 A8 12 F9 A5 40 A7 00 00 5D [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:26]Read from MH i2c: E2 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 03 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 03 00 9E 1F 00 90 00 31 [19:36:26]RAPDU: 90 00 [19:36:26]wFMCommunicate OK [19:36:26]wFMCommunicate request_size=4 [19:36:26]MH_SAM_APDU [19:36:26]CAPDU: 80 0D 03 02 [19:36:26]Write to MH i2c: E2 08 00 9F 1F 80 0D 03 02 00 00 00 00 39 [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:26]Read from MH i2c: E2 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 0B 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 0B 00 9F 1F 00 41 E4 54 EE 40 88 37 FC 90 00 9C [19:36:26]RAPDU: 41 E4 54 EE 40 88 37 FC 90 00 [19:36:26]wFMCommunicate OK [19:36:26]SAM_PROTO_SignData done [19:36:26]FM_MakeSignedData done [19:36:26]CreateOFDProtocolMessage [19:36:26]wFMCommunicate request_size=4 [19:36:26]MH_SAM_APDU [19:36:26]CAPDU: 80 11 00 00 [19:36:26]Write to MH i2c: E2 08 00 A0 1F 80 11 00 00 00 00 00 00 39 [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:26]Read from MH i2c: E2 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 17 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 17 00 A0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 80 [19:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:36:26]wFMCommunicate OK [19:36:26]CreateOFDProtocolMessage done [19:36:26]OFDSenderStorePacket 50651 [19:36:26]StoreOFDPacket docnum=50651 [19:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 B0 01 00 00 7A 21 A8 01 7D 9C 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 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 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 97 00 00 00 F4 03 04 00 3B F3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DB C5 00 00 35 04 06 00 A8 12 F9 A5 40 A7 41 E4 54 EE 40 88 37 FC [19:36:26]CheckFolder [19:36:26]dirname=/storage/ofd_packets [19:36:26]CheckFolder done [19:36:26]ProducePacketName [19:36:26]name=ofd_packets/00050651 [19:36:26]NVStorageSaveData ofd_packets/00050651 [19:36:26]File name is /storage/ofd_packets/00050651 [19:36:26]Write 462 bytes [19:36:26]NVStorageSaveData done [19:36:26]OFDSenderStorePacket done [19:36:26]KKMCreateOFDPacket done [19:36:26]NVStorageSaveData kkm_last_timestamp [19:36:26]File name is /storage/kkm_last_timestamp [19:36:26]Write 4 bytes [19:36:26]NVStorageSaveData done [19:36:26]ExternCall_PrintAddStr [19:36:26]wPrintStart [19:36:26]Write to MH i2c: 01 00 00 A1 1F C0 [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: 01 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: 01 07 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: 01 07 00 A1 1F 00 00 00 00 00 FF 0F D5 [19:36:26]RasterBufferAndPrint [19:36:26]line Счет N : (3)164536 [19:36:26]line ИНН: 02508201610067 [19:36:26]line Контрольно-Кассовый Чек [19:36:26]line ПРОДАЖА [19:36:26]line Товар: 4011100977624 [19:36:26]line Шок Батончик Баунти 55г [19:36:26]line 1.000 * 59.00 [19:36:26]line = 59.00 [19:36:26]line НДС 12% НСП 1% [19:36:26]line > о реализуемом товаре [19:36:26]line Товар: 4870002325113 [19:36:26]line Напиток PEPSI газированный ст 0,25л [19:36:26]line 1.000 * 90.00 [19:36:26]line = 90.00 [19:36:26]line НДС 12% НСП 1% [19:36:26]line > о реализуемом товаре [19:36:26]line ИТОГО: 149.00 [19:36:26]line НСП 1% : 1.32 [19:36:26]line НДС 12% : 15.82 [19:36:26]line Наличными: 149.00 [19:36:26]line Безнал.: 0.00 [19:36:26]line Место: АЗС № 80 "Партнер Нефть" [19:36:26]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:36:26]line СНО: Общий режим [19:36:26]line Чек 151 25.10.2024 19:36 [19:36:26]line Смена: 493 ФФД: 1.0 [19:36:26]line ЗНМ: 0300000090 [19:36:26]line РНМ: 0000000000097022 [19:36:26]line Версия ККМ: 001 [19:36:26]line ФМ: 0000000000875000 [19:36:26]line ФД: 50651 [19:36:26]line ФПД: 184799451234471 [19:36:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193627&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50651&fm=184799451234471&tin=02508201610067®Number=0000000000097022&sum=14900 [19:36:26]line 0 [19:36:26]OFD Sender: Processing packet 50651 [packets to send 7, broken 6] [19:36:26]ProducePacketName [19:36:26]name=ofd_packets/00050651 [19:36:26]OFD Sender: To server: pG, [19:36:26]CommunicateWithHost lk.salyk.kg:30040 [19:36:26]ConnectInit lk.salyk.kg [19:36:26]written 0, free lines is 4095 [19:36:26]Connected sock=7 [19:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 B0 01 00 00 7A 21 A8 01 7D 9C 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 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 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 97 00 00 00 F4 03 04 00 3B F3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DB C5 00 00 35 04 06 00 A8 12 F9 A5 40 A7 41 E4 54 EE 40 88 37 FC [19:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 0A 55 47 00 A0 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DB C5 00 00 F4 03 04 00 CB 9E 1B 67 B6 04 01 00 00 7B A5 C0 AA 0B 92 D2 E2 [19:36:26]CommunicateWithHost err = 0 [19:36:26]CheckOFDResponse [19:36:26]1017 (14) - 77093643461234 [19:36:26]1041 (16) - 0000000000875000 [19:36:26]1040 (4) - 50651 [19:36:26]1012 (4) - 25.10.2024 13:36 [19:36:26]1206 (1) - 0 [19:36:26]OFD Sender: Remove packet 50651 [19:36:26]ProducePacketName [19:36:26]name=ofd_packets/00050651 [19:36:26]NVStorageDeleteData [19:36:27]Write to MH i2c: 01 00 00 D0 1F EF [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: 01 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: 01 07 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: 01 07 00 D0 1F 00 00 00 00 00 DA 0C DC [19:36:27]RasterBufferAndPrint [19:36:27]line [19:36:27]line [19:36:27]line [19:36:27]line [19:36:27]line [19:36:27]written 0, free lines is 3299 [19:36:27]process_action close_receipt done [19:36:27]requested_data is exist [19:36:27]produce_requested_data [19:36:27]requested_item fm.sn is exist - process it [19:36:27]wFMCommunicate request_size=4 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 11 00 00 [19:36:27]Write to MH i2c: E2 08 00 D7 1F 80 11 00 00 00 00 00 00 70 [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:27]Read from MH i2c: E2 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 17 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 17 00 D7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B7 [19:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:36:27]wFMCommunicate OK [19:36:27]requested_item fd.num is exist - process it [19:36:27]SAM_PROTO_GetFieldsCounters [19:36:27]wFMCommunicate request_size=4 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 13 00 00 [19:36:27]Write to MH i2c: E2 08 00 D8 1F 80 13 00 00 00 00 00 00 73 [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:27]Read from MH i2c: E2 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 62 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 62 00 D8 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:27]wFMCommunicate OK [19:36:27]SAM_PROTO_GetFieldsCounters done [19:36:27]requested_item shift.num is exist - process it [19:36:27]requested_item shift.opened is exist - process it [19:36:27]req_shift_opened [19:36:27]FM_GetShiftState [19:36:27]SAM_PROTO_GetShiftState [19:36:27]wFMCommunicate request_size=4 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 13 01 00 [19:36:27]Write to MH i2c: E2 08 00 D9 1F 80 13 01 00 00 00 00 00 75 [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:27]Read from MH i2c: E2 [19:36:27]MH_I2C_Read... [19:36:27]OFD Sender: No OFD packet to send [19:36:27]Read from MH i2c: E2 0E 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 0E 00 D9 1F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6D [19:36:27]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:36:27]wFMCommunicate OK [19:36:27]SAM_PROTO_GetShiftState done [19:36:27]FM_GetShiftState done [19:36:27]req_shift_opened done [19:36:27]requested_item shift.open_date is exist - process it [19:36:27]req_shift_open_date [19:36:27]req_shift_open_date done [19:36:27]produce_requested_data done [19:36:27]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50651,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:36:27]process_action_free close_receipt [19:36:27]json_value_free [19:36:27]json_value_free done [19:36:27]process_json_proto returns [19:36:27]Send response to host [19:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50651,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:36:27]free response buf [19:36:27]execute_script done [19:36:27]execute_script returns [19:36:27]free content buf [19:36:27]Sock 10.Close socket [19:36:27]Sock 10.Thread stoped [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:40]accept exits with 9 [19:39:40]New connection [19:39:40]New thread 3066645860 created [19:39:40]Thread 3066789220 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.49.196:8080 [19:39:40]Content-Length: 709 [19:39:40]Content-Type: application/json [19:39:40] [19:39:40]POST finish read [19:39:40]Found Content-Length = 709 [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)164537", "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" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)164537", "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" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 DA 1F E8 [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 DA 1F 00 FF F3 1B 67 BD 3B 11 67 D5 [19:39:40]GetLastDocTimeStamp 1729884987 [19:39:40]current date 1729885183 [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 DB 1F 80 13 01 00 00 00 00 00 77 [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 DB 1F 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 6F [19:39:40]RAPDU: 09 00 01 89 E2 1A 67 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 1729815177 [19:39:40]opened+sec_in_day 1729901577 [19:39:40]quantity*price = 7500 [19:39:40]sum+1 = 7501 [19:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 152 25.10.2024 19:39 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50652 ФПД: 80796620140897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193943&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50652&fm=80796620140897&tin=02508201610067®Number=0000000000097022&sum=7500 0 [19:39:41]StoreToDocumentArchive [19:39:41]shift 493 fd 50652 [19:39:41]save to /storage/0493/doc_00050652 [19:39:41]save last doc name /storage/0493/doc_00050652 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=304 [19:39:41]tlvbuf is 01EBD400 [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 E8 1F 80 09 00 00 00 00 00 00 79 [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 E8 1F 00 90 00 7B [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 E9 1F 80 0D 01 02 00 00 00 00 81 [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 E9 1F 00 90 00 7C [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 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 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FF F3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 [19:39:41]Write to MH i2c: E2 02 01 EA 1F 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 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FF F3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 00 00 3F [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 02 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 EA 1F 00 90 00 7D [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]wFMCommunicate request_size=63 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DC C5 00 00 35 04 06 00 49 7B ED D7 B1 61 [19:39:41]Write to MH i2c: E2 42 00 EB 1F 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DC C5 00 00 35 04 06 00 49 7B ED D7 B1 61 00 00 F8 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 02 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 EB 1F 00 90 00 7E [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 03 02 [19:39:41]Write to MH i2c: E2 08 00 EC 1F 80 0D 03 02 00 00 00 00 86 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 0B 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 0B 00 EC 1F 00 20 B5 A9 68 AC 45 51 A1 90 00 50 [19:39:41]RAPDU: 20 B5 A9 68 AC 45 51 A1 90 00 [19:39:41]wFMCommunicate OK [19:39:41]SAM_PROTO_SignData done [19:39:41]FM_MakeSignedData done [19:39:41]CreateOFDProtocolMessage [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 11 00 00 [19:39:41]Write to MH i2c: E2 08 00 ED 1F 80 11 00 00 00 00 00 00 86 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 17 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 17 00 ED 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 CD [19:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:39:41]wFMCommunicate OK [19:39:41]CreateOFDProtocolMessage done [19:39:41]OFDSenderStorePacket 50652 [19:39:41]StoreOFDPacket docnum=50652 [19:39:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 44 01 00 00 C8 5D 3C 01 79 4D 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 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FF F3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DC C5 00 00 35 04 06 00 49 7B ED D7 B1 61 20 B5 A9 68 AC 45 51 A1 [19:39:41]CheckFolder [19:39:41]dirname=/storage/ofd_packets [19:39:41]CheckFolder done [19:39:41]ProducePacketName [19:39:41]name=ofd_packets/00050652 [19:39:41]NVStorageSaveData ofd_packets/00050652 [19:39:41]File name is /storage/ofd_packets/00050652 [19:39:41]Write 354 bytes [19:39:41]NVStorageSaveData done [19:39:41]OFDSenderStorePacket done [19:39:41]KKMCreateOFDPacket done [19:39:41]NVStorageSaveData kkm_last_timestamp [19:39:41]File name is /storage/kkm_last_timestamp [19:39:41]Write 4 bytes [19:39:41]NVStorageSaveData done [19:39:41]ExternCall_PrintAddStr [19:39:41]wPrintStart [19:39:41]Write to MH i2c: 01 00 00 EE 1F 0D [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: 01 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: 01 07 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: 01 07 00 EE 1F 00 00 00 00 00 FF 0F 22 [19:39:41]RasterBufferAndPrint [19:39:41]line Счет N : (3)164537 [19:39:41]line ИНН: 02508201610067 [19:39:41]line Контрольно-Кассовый Чек [19:39:41]line ПРОДАЖА [19:39:41]line Товар: 4870112003956 [19:39:41]line Шок батончик ALBENI SUPER Альбени Супер [19:39:41]line 1.000 * 75.00 [19:39:41]line = 75.00 [19:39:41]line НДС 12% НСП 1% [19:39:41]line > о реализуемом товаре [19:39:41]line ИТОГО: 75.00 [19:39:41]line НСП 1% : 0.66 [19:39:41]line НДС 12% : 7.96 [19:39:41]line Наличными: 75.00 [19:39:41]line Безнал.: 0.00 [19:39:41]line Место: АЗС № 80 "Партнер Нефть" [19:39:41]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:39:41]line СНО: Общий режим [19:39:41]line Чек 152 25.10.2024 19:39 [19:39:41]line Смена: 493 ФФД: 1.0 [19:39:41]line ЗНМ: 0300000090 [19:39:41]line РНМ: 0000000000097022 [19:39:41]line Версия ККМ: 001 [19:39:41]line ФМ: 0000000000875000 [19:39:41]line ФД: 50652 [19:39:41]line ФПД: 80796620140897 [19:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193943&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50652&fm=80796620140897&tin=02508201610067®Number=0000000000097022&sum=7500 [19:39:42]line 0 [19:39:42]OFD Sender: Processing packet 50652 [packets to send 7, broken 6] [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00050652 [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=7 [19:39:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 44 01 00 00 C8 5D 3C 01 79 4D 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 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FF F3 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DC C5 00 00 35 04 06 00 49 7B ED D7 B1 61 20 B5 A9 68 AC 45 51 A1 [19:39:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 F9 44 47 00 75 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DC C5 00 00 F4 03 04 00 8F 9F 1B 67 B6 04 01 00 00 17 5A AD B5 E7 DF 0D 61 [19:39:42]CommunicateWithHost err = 0 [19:39:42]CheckOFDResponse [19:39:42]1017 (14) - 77093643461234 [19:39:42]1041 (16) - 0000000000875000 [19:39:42]1040 (4) - 50652 [19:39:42]1012 (4) - 25.10.2024 13:39 [19:39:42]1206 (1) - 0 [19:39:42]OFD Sender: Remove packet 50652 [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00050652 [19:39:42]NVStorageDeleteData [19:39:42]Write to MH i2c: 01 00 00 17 20 37 [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 17 20 00 00 00 00 00 14 0D 5F [19:39:42]RasterBufferAndPrint [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]written 0, free lines is 3358 [19:39:42]process_action close_receipt done [19:39:42]requested_data is exist [19:39:42]produce_requested_data [19:39:42]requested_item fm.sn is exist - process it [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 1E 20 80 11 00 00 00 00 00 00 B8 [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 1E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FF [19:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:39:42]wFMCommunicate OK [19:39:42]requested_item fd.num is exist - process it [19:39:42]SAM_PROTO_GetFieldsCounters [19:39:42]wFMCommunicate request_size=4 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 13 00 00 [19:39:42]Write to MH i2c: E2 08 00 1F 20 80 13 00 00 00 00 00 00 BB [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 62 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 62 00 1F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DC C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [19:39:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DC C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:43]wFMCommunicate OK [19:39:43]SAM_PROTO_GetFieldsCounters done [19:39:43]requested_item shift.num is exist - process it [19:39:43]requested_item shift.opened is exist - process it [19:39:43]req_shift_opened [19:39:43]FM_GetShiftState [19:39:43]SAM_PROTO_GetShiftState [19:39:43]wFMCommunicate request_size=4 [19:39:43]MH_SAM_APDU [19:39:43]CAPDU: 80 13 01 00 [19:39:43]Write to MH i2c: E2 08 00 20 20 80 13 01 00 00 00 00 00 BD [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:43]Read from MH i2c: E2 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: E2 0E 00 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: E2 0E 00 20 20 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B5 [19:39:43]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:39:43]wFMCommunicate OK [19:39:43]SAM_PROTO_GetShiftState done [19:39:43]FM_GetShiftState done [19:39:43]req_shift_opened done [19:39:43]requested_item shift.open_date is exist - process it [19:39:43]req_shift_open_date [19:39:43]req_shift_open_date done [19:39:43]produce_requested_data done [19:39:43]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50652,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:39:43]process_action_free close_receipt [19:39:43]json_value_free [19:39:43]json_value_free done [19:39:43]process_json_proto returns [19:39:43]Send response to host [19:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50652,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:39:43]free response buf [19:39:43]execute_script done [19:39:43]execute_script returns [19:39:43]free content buf [19:39:43]Sock 9.Close socket [19:39:43]Sock 9.Thread stoped [19:39:43]OFD Sender: No OFD packet to send [19:39:43]accept exits with 10 [19:39:43]New connection [19:39:43]New thread 3066789220 created [19:39:43]Thread 3066645860 joined [19:39:43]Waiting for new connection... [19:39:43] Sock 10.Parse request [19:39:43]Sock 10.Check first char [19:39:43]Sock 10.First char is OK [19:39:43]request: POST /json_proto HTTP/1.0 [19:39:43]Method: POST [19:39:43]URL: /json_proto [19:39:43]Method is POST - this is cgi request [19:39:43]url: /json_proto [19:39:43]query_string will be loaded in cgi processing [19:39:43]execute_cgi json_proto POST (null) [19:39:43]execute_cgi path=json_proto method=POST [19:39:43]POST find Content-Length [19:39:43]Host: 172.17.49.196:8080 [19:39:43]Content-Length: 679 [19:39:43]Content-Type: application/json [19:39:43] [19:39:43]POST finish read [19:39:43]Found Content-Length = 679 [19:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:43]execute_script... [19:39:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:43]POST & json_proto [19:39:43]process_json_proto [19:39:43]json parsed OK: [19:39:43]protocol is kg_v1.0 [19:39:43]action value=close_receipt [19:39:43]process_action close_receipt [19:39:43]cmd_close_receipt [19:39:43]MH_GetDate [19:39:43]Write to MH i2c: F0 00 00 21 20 30 [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: F0 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: F0 09 00 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: F0 09 00 21 20 00 02 F4 1B 67 BD 3B 11 67 21 [19:39:43]GetLastDocTimeStamp 1729885183 [19:39:43]current date 1729885186 [19:39:43]FM_GetShiftState [19:39:43]SAM_PROTO_GetShiftState [19:39:43]wFMCommunicate request_size=4 [19:39:43]MH_SAM_APDU [19:39:43]CAPDU: 80 13 01 00 [19:39:43]Write to MH i2c: E2 08 00 22 20 80 13 01 00 00 00 00 00 BF [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:43]Read from MH i2c: E2 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: E2 0E 00 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: E2 0E 00 22 20 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 B7 [19:39:43]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:39:43]wFMCommunicate OK [19:39:43]SAM_PROTO_GetShiftState done [19:39:43]FM_GetShiftState done [19:39:43]opened in 1729815177 [19:39:43]opened+sec_in_day 1729901577 [19:39:43]quantity*price = 30038 [19:39:43]sum+1 = 30039 [19:39:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 153 25.10.2024 19:39 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50653 ФПД: 118615625288339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193946&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50653&fm=118615625288339&tin=02508201610067®Number=0000000000097022&sum=30000 [19:39:44]StoreToDocumentArchive [19:39:44]shift 493 fd 50653 [19:39:44]save to /storage/0493/doc_00050653 [19:39:44]save last doc name /storage/0493/doc_00050653 to /storage/kkm_last_doc_name [19:39:44]save OK [19:39:44]Clear old archive folders... [19:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:44]tlvbuf is 01E69650 [19:39:44]SAM_PROTO_ClearQueue [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 09 00 00 [19:39:44]Write to MH i2c: E2 08 00 2F 20 80 09 00 00 00 00 00 00 C1 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 2F 20 00 90 00 C3 [19:39:44]RAPDU: 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_ClearQueue done [19:39:44]KKMCreateOFDPacket [19:39:44]OFDProtocolAddRootSTLVToBuf [19:39:44]FM_MakeSignedData [19:39:44]FM_MakeSignedData [19:39:44]SAM_PROTO_SignData [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 0D 01 02 [19:39:44]Write to MH i2c: E2 08 00 30 20 80 0D 01 02 00 00 00 00 C9 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 30 20 00 90 00 C4 [19:39:44]RAPDU: 90 00 [19:39:44]wFMCommunicate OK [19:39:44]wFMCommunicate request_size=255 [19:39:44]MH_SAM_APDU [19:39: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 02 F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DD C5 00 00 35 04 06 00 6B [19:39:44]Write to MH i2c: E2 02 01 31 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 02 F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DD C5 00 00 35 04 06 00 6B 00 00 46 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 31 20 00 90 00 C5 [19:39:45]RAPDU: 90 00 [19:39:45]wFMCommunicate OK [19:39:45]wFMCommunicate request_size=10 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 0D 02 02 05 E1 5A 35 CA 93 [19:39:45]Write to MH i2c: E2 0D 00 32 20 80 0D 02 02 05 00 E1 5A 35 CA 93 00 00 A3 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 [19:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 32 20 00 90 00 C6 [19:39:45]RAPDU: 90 00 [19:39:45]wFMCommunicate OK [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 0D 03 02 [19:39:45]Write to MH i2c: E2 08 00 33 20 80 0D 03 02 00 00 00 00 CE [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 0B 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 0B 00 33 20 00 5A 18 B0 E7 00 B9 8A A2 90 00 BD [19:39:45]RAPDU: 5A 18 B0 E7 00 B9 8A A2 90 00 [19:39:45]wFMCommunicate OK [19:39:45]SAM_PROTO_SignData done [19:39:45]FM_MakeSignedData done [19:39:45]CreateOFDProtocolMessage [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 11 00 00 [19:39:45]Write to MH i2c: E2 08 00 34 20 80 11 00 00 00 00 00 00 CE [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** 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 34 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 15 [19:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:39:45]wFMCommunicate OK [19:39:45]CreateOFDProtocolMessage done [19:39:45]OFDSenderStorePacket 50653 [19:39:45]StoreOFDPacket docnum=50653 [19:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 FE 64 07 01 F5 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 02 F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DD C5 00 00 35 04 06 00 6B E1 5A 35 CA 93 5A 18 B0 E7 00 B9 8A A2 [19:39:45]CheckFolder [19:39:45]dirname=/storage/ofd_packets [19:39:45]CheckFolder done [19:39:45]ProducePacketName [19:39:45]name=ofd_packets/00050653 [19:39:45]NVStorageSaveData ofd_packets/00050653 [19:39:45]File name is /storage/ofd_packets/00050653 [19:39:45]Write 301 bytes [19:39:45]NVStorageSaveData done [19:39:45]OFDSenderStorePacket done [19:39:45]KKMCreateOFDPacket done [19:39:45]NVStorageSaveData kkm_last_timestamp [19:39:45]File name is /storage/kkm_last_timestamp [19:39:45]Write 4 bytes [19:39:45]NVStorageSaveData done [19:39:45]ExternCall_PrintAddStr [19:39:45]wPrintStart [19:39:45]Write to MH i2c: 01 00 00 35 20 55 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 07 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 07 00 35 20 00 00 00 00 00 FF 0F 6A [19:39:45]RasterBufferAndPrint [19:39:45]line Счет N : (1)15442731 [19:39:45]line ИНН: 02508201610067 [19:39:45]line Контрольно-Кассовый Чек [19:39:45]line ПРОДАЖА [19:39:45]line ТРК (МРК, ГНК) : 23 [19:39:45]line Товар: 2710124130 [19:39:45]line Аи-92-К-4 [19:39:45]line 4.490 * 66.90 [19:39:45]line = 300.38 [19:39:45]line НДС 12% НСП 1% [19:39:45]line > о реализуемом товаре [19:39:45]line ОКРУГЛЕНИЕ: -0.38 [19:39:45]line ИТОГО: 300.00 [19:39:45]line Внесено: 300.00 [19:39:45]line СДАЧА: 0.00 [19:39:45]line НСП 1% : 2.66 [19:39:45]line НДС 12% : 31.90 [19:39:45]line Наличными: 300.00 [19:39:45]line Безнал.: 0.00 [19:39:45]line Место: АЗС № 80 "Партнер Нефть" [19:39:45]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:39:45]line СНО: Общий режим [19:39:45]line Чек 153 25.10.2024 19:39 [19:39:45]line Смена: 493 ФФД: 1.0 [19:39:45]line ЗНМ: 0300000090 [19:39:45]line РНМ: 0000000000097022 [19:39:45]line Версия ККМ: 001 [19:39:45]line ФМ: 0000000000875000 [19:39:45]line ФД: 50653 [19:39:45]line ФПД: 118615625288339 [19:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193946&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50653&fm=118615625288339&tin=02508201610067®Number=0000000000097022&sum=30000 [19:39:45]OFD Sender: Processing packet 50653 [packets to send 7, broken 6] [19:39:45]ProducePacketName [19:39:45]name=ofd_packets/00050653 [19:39:45]written 0, free lines is 4095 [19:39:45]OFD Sender: To server: pG, [19:39:45]CommunicateWithHost lk.salyk.kg:30040 [19:39:45]ConnectInit lk.salyk.kg [19:39:45]Connected sock=9 [19:39:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 FE 64 07 01 F5 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 02 F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DD C5 00 00 35 04 06 00 6B E1 5A 35 CA 93 5A 18 B0 E7 00 B9 8A A2 [19:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E3 62 47 00 D8 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DD C5 00 00 F4 03 04 00 92 9F 1B 67 B6 04 01 00 00 79 0A 0D C8 3C 0D E8 AA [19:39:46]CommunicateWithHost err = 0 [19:39:46]CheckOFDResponse [19:39:46]1017 (14) - 77093643461234 [19:39:46]1041 (16) - 0000000000875000 [19:39:46]1040 (4) - 50653 [19:39:46]1012 (4) - 25.10.2024 13:39 [19:39:46]1206 (1) - 0 [19:39:46]OFD Sender: Remove packet 50653 [19:39:46]ProducePacketName [19:39:46]name=ofd_packets/00050653 [19:39:46]NVStorageDeleteData [19:39:46]Write to MH i2c: 01 00 00 60 20 80 [19:39:46]Write i2c OK [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: 01 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: 01 07 00 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: 01 07 00 60 20 00 00 00 00 00 FE 0C 91 [19:39:46]RasterBufferAndPrint [19:39:46]line [19:39:46]line [19:39:46]line [19:39:46]line [19:39:46]line [19:39:46]written 0, free lines is 3340 [19:39:46]process_action close_receipt done [19:39:46]requested_data is exist [19:39:46]produce_requested_data [19:39:46]requested_item fm.sn is exist - process it [19:39:46]wFMCommunicate request_size=4 [19:39:46]MH_SAM_APDU [19:39:46]CAPDU: 80 11 00 00 [19:39:46]Write to MH i2c: E2 08 00 67 20 80 11 00 00 00 00 00 00 01 [19:39:46]Write i2c OK [19:39:46]MH_I2C_Read... [19:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:46]Read from MH i2c: E2 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: E2 17 00 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: E2 17 00 67 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 48 [19:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:39:46]wFMCommunicate OK [19:39:46]requested_item fd.num is exist - process it [19:39:46]SAM_PROTO_GetFieldsCounters [19:39:46]wFMCommunicate request_size=4 [19:39:46]MH_SAM_APDU [19:39:46]CAPDU: 80 13 00 00 [19:39:46]Write to MH i2c: E2 08 00 68 20 80 13 00 00 00 00 00 00 04 [19:39:46]Write i2c OK [19:39:46]MH_I2C_Read... [19:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:46]Read from MH i2c: E2 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: E2 62 00 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: E2 62 00 68 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DD C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [19:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DD C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:46]wFMCommunicate OK [19:39:46]SAM_PROTO_GetFieldsCounters done [19:39:46]requested_item shift.num is exist - process it [19:39:46]requested_item shift.opened is exist - process it [19:39:46]req_shift_opened [19:39:46]FM_GetShiftState [19:39:46]SAM_PROTO_GetShiftState [19:39:46]wFMCommunicate request_size=4 [19:39:46]MH_SAM_APDU [19:39:46]CAPDU: 80 13 01 00 [19:39:46]Write to MH i2c: E2 08 00 69 20 80 13 01 00 00 00 00 00 06 [19:39:46]Write i2c OK [19:39:46]MH_I2C_Read... [19:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:46]Read from MH i2c: E2 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: E2 0E 00 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: E2 0E 00 69 20 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 FE [19:39:46]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:39:46]wFMCommunicate OK [19:39:46]SAM_PROTO_GetShiftState done [19:39:46]FM_GetShiftState done [19:39:46]req_shift_opened done [19:39:46]requested_item shift.open_date is exist - process it [19:39:46]req_shift_open_date [19:39:46]req_shift_open_date done [19:39:46]produce_requested_data done [19:39:46]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50653,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:39:46]process_action_free close_receipt [19:39:46]json_value_free [19:39:46]json_value_free done [19:39:46]process_json_proto returns [19:39:46]Send response to host [19:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50653,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:39:46]free response buf [19:39:46]execute_script done [19:39:46]execute_script returns [19:39:46]free content buf [19:39:46]Sock 10.Close socket [19:39:46]Sock 10.Thread stoped [19:39:46]OFD Sender: No OFD packet to send [19:39:50]accept exits with 7 [19:39:50]New connection [19:39:50]New thread 3066645860 created [19:39:50]Thread 3066789220 joined [19:39:50]Waiting for new connection... [19:39:50] Sock 7.Parse request [19:39:50]Sock 7.Check first char [19:39:50]Sock 7.First char is OK [19:39:50]request: POST /json_proto HTTP/1.0 [19:39:50]Method: POST [19:39:50]URL: /json_proto [19:39:50]Method is POST - this is cgi request [19:39:50]url: /json_proto [19:39:50]query_string will be loaded in cgi processing [19:39:50]execute_cgi json_proto POST (null) [19:39:50]execute_cgi path=json_proto method=POST [19:39:50]POST find Content-Length [19:39:50]Host: 172.17.49.196:8080 [19:39:50]Content-Length: 695 [19:39:50]Content-Type: application/json [19:39:50] [19:39:50]POST finish read [19:39:50]Found Content-Length = 695 [19:39:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164538", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:50]execute_script... [19:39: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)164538", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:50]POST & json_proto [19:39:50]process_json_proto [19:39:50]json parsed OK: [19:39:50]protocol is kg_v1.0 [19:39:50]action value=close_receipt [19:39:50]process_action close_receipt [19:39:50]cmd_close_receipt [19:39:50]MH_GetDate [19:39:50]Write to MH i2c: F0 00 00 6A 20 79 [19:39:50]Write i2c OK [19:39:50]MH_I2C_Read... [19:39:50]Read from MH i2c: F0 [19:39:50]MH_I2C_Read... [19:39:50]Read from MH i2c: F0 09 00 [19:39:50]MH_I2C_Read... [19:39:50]Read from MH i2c: F0 09 00 6A 20 00 09 F4 1B 67 BD 3B 11 67 71 [19:39:50]GetLastDocTimeStamp 1729885186 [19:39:50]current date 1729885193 [19:39:50]FM_GetShiftState [19:39:50]SAM_PROTO_GetShiftState [19:39:50]wFMCommunicate request_size=4 [19:39:50]MH_SAM_APDU [19:39:50]CAPDU: 80 13 01 00 [19:39:50]Write to MH i2c: E2 08 00 6B 20 80 13 01 00 00 00 00 00 08 [19:39:50]Write i2c OK [19:39:50]MH_I2C_Read... [19:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:50]Read from MH i2c: E2 [19:39:50]MH_I2C_Read... [19:39:50]Read from MH i2c: E2 0E 00 [19:39:50]MH_I2C_Read... [19:39:50]Read from MH i2c: E2 0E 00 6B 20 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 00 [19:39:50]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:39:50]wFMCommunicate OK [19:39:50]SAM_PROTO_GetShiftState done [19:39:50]FM_GetShiftState done [19:39:50]opened in 1729815177 [19:39:50]opened+sec_in_day 1729901577 [19:39:50]quantity*price = 8900 [19:39:50]sum+1 = 8901 [19:39:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 154 25.10.2024 19:39 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50654 ФПД: 189135753944221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193953&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50654&fm=189135753944221&tin=02508201610067®Number=0000000000097022&sum=8900 0 [19:39:51]StoreToDocumentArchive [19:39:51]shift 493 fd 50654 [19:39:51]save to /storage/0493/doc_00050654 [19:39:51]save last doc name /storage/0493/doc_00050654 to /storage/kkm_last_doc_name [19:39:51]save OK [19:39:51]Clear old archive folders... [19:39:51]ProcessDocumentItem done err = 0, tmpTLVsize=294 [19:39:51]tlvbuf is 01E335A0 [19:39:51]SAM_PROTO_ClearQueue [19:39:51]wFMCommunicate request_size=4 [19:39:51]MH_SAM_APDU [19:39:51]CAPDU: 80 09 00 00 [19:39:51]Write to MH i2c: E2 08 00 78 20 80 09 00 00 00 00 00 00 0A [19:39:51]Write i2c OK [19:39:51]MH_I2C_Read... [19:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:51]Read from MH i2c: E2 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 03 00 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [19:39:51]RAPDU: 90 00 [19:39:51]wFMCommunicate OK [19:39:51]SAM_PROTO_ClearQueue done [19:39:51]KKMCreateOFDPacket [19:39:51]OFDProtocolAddRootSTLVToBuf [19:39:51]FM_MakeSignedData [19:39:51]FM_MakeSignedData [19:39:51]SAM_PROTO_SignData [19:39:51]wFMCommunicate request_size=4 [19:39:51]MH_SAM_APDU [19:39:51]CAPDU: 80 0D 01 02 [19:39:51]Write to MH i2c: E2 08 00 79 20 80 0D 01 02 00 00 00 00 12 [19:39:51]Write i2c OK [19:39:51]MH_I2C_Read... [19:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:51]Read from MH i2c: E2 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 03 00 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [19:39:51]RAPDU: 90 00 [19:39:51]wFMCommunicate OK [19:39:51]wFMCommunicate request_size=255 [19:39:51]MH_SAM_APDU [19:39:51]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 09 F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [19:39:51]Write to MH i2c: E2 02 01 7A 20 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 09 F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 55 [19:39:51]Write i2c OK [19:39:51]MH_I2C_Read... [19:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:51]Read from MH i2c: E2 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 03 00 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [19:39:51]RAPDU: 90 00 [19:39:51]wFMCommunicate OK [19:39:51]wFMCommunicate request_size=53 [19:39:51]MH_SAM_APDU [19:39:51]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DE C5 00 00 35 04 06 00 AC 04 99 6D 9C 9D [19:39:51]Write to MH i2c: E2 38 00 7B 20 80 0D 02 02 30 00 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DE C5 00 00 35 04 06 00 AC 04 99 6D 9C 9D 00 00 8B [19:39:51]Write i2c OK [19:39:51]MH_I2C_Read... [19:39:51]OFD Sender: No OFD packet to send [19:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:51]Read from MH i2c: E2 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 03 00 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [19:39:51]RAPDU: 90 00 [19:39:51]wFMCommunicate OK [19:39:51]wFMCommunicate request_size=4 [19:39:51]MH_SAM_APDU [19:39:51]CAPDU: 80 0D 03 02 [19:39:51]Write to MH i2c: E2 08 00 7C 20 80 0D 03 02 00 00 00 00 17 [19:39:51]Write i2c OK [19:39:51]MH_I2C_Read... [19:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:51]Read from MH i2c: E2 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 0B 00 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 0B 00 7C 20 00 EC 19 C9 C4 D4 DC F7 8B 90 00 DC [19:39:51]RAPDU: EC 19 C9 C4 D4 DC F7 8B 90 00 [19:39:51]wFMCommunicate OK [19:39:51]SAM_PROTO_SignData done [19:39:51]FM_MakeSignedData done [19:39:51]CreateOFDProtocolMessage [19:39:51]wFMCommunicate request_size=4 [19:39:51]MH_SAM_APDU [19:39:51]CAPDU: 80 11 00 00 [19:39:51]Write to MH i2c: E2 08 00 7D 20 80 11 00 00 00 00 00 00 17 [19:39:51]Write i2c OK [19:39:51]MH_I2C_Read... [19:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:51]Read from MH i2c: E2 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 17 00 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: E2 17 00 7D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 5E [19:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:39:51]wFMCommunicate OK [19:39:51]CreateOFDProtocolMessage done [19:39:51]OFDSenderStorePacket 50654 [19:39:51]StoreOFDPacket docnum=50654 [19:39:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 6C C5 32 01 23 2C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 09 F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DE C5 00 00 35 04 06 00 AC 04 99 6D 9C 9D EC 19 C9 C4 D4 DC F7 8B [19:39:51]CheckFolder [19:39:51]dirname=/storage/ofd_packets [19:39:51]CheckFolder done [19:39:51]ProducePacketName [19:39:51]name=ofd_packets/00050654 [19:39:51]NVStorageSaveData ofd_packets/00050654 [19:39:51]File name is /storage/ofd_packets/00050654 [19:39:51]Write 344 bytes [19:39:51]NVStorageSaveData done [19:39:51]OFDSenderStorePacket done [19:39:51]KKMCreateOFDPacket done [19:39:51]NVStorageSaveData kkm_last_timestamp [19:39:51]File name is /storage/kkm_last_timestamp [19:39:51]Write 4 bytes [19:39:51]NVStorageSaveData done [19:39:51]ExternCall_PrintAddStr [19:39:51]wPrintStart [19:39:51]Write to MH i2c: 01 00 00 7E 20 9E [19:39:51]Write i2c OK [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: 01 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: 01 07 00 [19:39:51]MH_I2C_Read... [19:39:51]Read from MH i2c: 01 07 00 7E 20 00 00 00 00 00 FF 0F B3 [19:39:51]RasterBufferAndPrint [19:39:51]line Счет N : (3)164538 [19:39:51]line ИНН: 02508201610067 [19:39:51]line Контрольно-Кассовый Чек [19:39:51]line ПРОДАЖА [19:39:51]line Товар: 5000159381178 [19:39:51]line Шок Батончик Баунти Трио 82,5г [19:39:51]line 1.000 * 89.00 [19:39:51]line = 89.00 [19:39:51]line НДС 12% НСП 1% [19:39:51]line > о реализуемом товаре [19:39:51]line ИТОГО: 89.00 [19:39:51]line НСП 1% : 0.79 [19:39:51]line НДС 12% : 9.45 [19:39:51]line Наличными: 89.00 [19:39:51]line Безнал.: 0.00 [19:39:51]line Место: АЗС № 80 "Партнер Нефть" [19:39:51]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:39:51]line СНО: Общий режим [19:39:51]line Чек 154 25.10.2024 19:39 [19:39:51]line Смена: 493 ФФД: 1.0 [19:39:51]line ЗНМ: 0300000090 [19:39:51]line РНМ: 0000000000097022 [19:39:51]line Версия ККМ: 001 [19:39:51]line ФМ: 0000000000875000 [19:39:51]line ФД: 50654 [19:39:51]line ФПД: 189135753944221 [19:39:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T193953&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50654&fm=189135753944221&tin=02508201610067®Number=0000000000097022&sum=8900 [19:39:51]line 0 [19:39:51]written 0, free lines is 4095 [19:39:52]OFD Sender: Processing packet 50654 [packets to send 7, broken 6] [19:39:52]ProducePacketName [19:39:52]name=ofd_packets/00050654 [19:39:52]OFD Sender: To server: pG, [19:39:52]CommunicateWithHost lk.salyk.kg:30040 [19:39:52]ConnectInit lk.salyk.kg [19:39:52]Connected sock=10 [19:39:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 6C C5 32 01 23 2C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 09 F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DE C5 00 00 35 04 06 00 AC 04 99 6D 9C 9D EC 19 C9 C4 D4 DC F7 8B [19:39:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 82 11 47 00 48 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DE C5 00 00 F4 03 04 00 99 9F 1B 67 B6 04 01 00 00 EA A4 94 BF 87 F8 90 36 [19:39:52]CommunicateWithHost err = 0 [19:39:52]CheckOFDResponse [19:39:52]1017 (14) - 77093643461234 [19:39:52]1041 (16) - 0000000000875000 [19:39:52]1040 (4) - 50654 [19:39:52]1012 (4) - 25.10.2024 13:39 [19:39:52]1206 (1) - 0 [19:39:52]OFD Sender: Remove packet 50654 [19:39:52]ProducePacketName [19:39:52]name=ofd_packets/00050654 [19:39:52]NVStorageDeleteData [19:39:52]Write to MH i2c: 01 00 00 A7 20 C7 [19:39:52]Write i2c OK [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: 01 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: 01 07 00 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 4C 0D 27 [19:39:52]RasterBufferAndPrint [19:39:52]line [19:39:52]line [19:39:52]line [19:39:52]line [19:39:52]line [19:39:52]written 0, free lines is 3428 [19:39:52]process_action close_receipt done [19:39:52]requested_data is exist [19:39:52]produce_requested_data [19:39:52]requested_item fm.sn is exist - process it [19:39:52]wFMCommunicate request_size=4 [19:39:52]MH_SAM_APDU [19:39:52]CAPDU: 80 11 00 00 [19:39:52]Write to MH i2c: E2 08 00 AE 20 80 11 00 00 00 00 00 00 48 [19:39:52]Write i2c OK [19:39:52]MH_I2C_Read... [19:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:52]Read from MH i2c: E2 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: E2 17 00 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: E2 17 00 AE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8F [19:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:39:52]wFMCommunicate OK [19:39:52]requested_item fd.num is exist - process it [19:39:52]SAM_PROTO_GetFieldsCounters [19:39:52]wFMCommunicate request_size=4 [19:39:52]MH_SAM_APDU [19:39:52]CAPDU: 80 13 00 00 [19:39:52]Write to MH i2c: E2 08 00 AF 20 80 13 00 00 00 00 00 00 4B [19:39:52]Write i2c OK [19:39:52]MH_I2C_Read... [19:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:52]Read from MH i2c: E2 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: E2 62 00 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: E2 62 00 AF 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DE C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [19:39:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DE C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:52]wFMCommunicate OK [19:39:52]SAM_PROTO_GetFieldsCounters done [19:39:52]requested_item shift.num is exist - process it [19:39:52]requested_item shift.opened is exist - process it [19:39:52]req_shift_opened [19:39:52]FM_GetShiftState [19:39:52]SAM_PROTO_GetShiftState [19:39:52]wFMCommunicate request_size=4 [19:39:52]MH_SAM_APDU [19:39:52]CAPDU: 80 13 01 00 [19:39:52]Write to MH i2c: E2 08 00 B0 20 80 13 01 00 00 00 00 00 4D [19:39:52]Write i2c OK [19:39:52]MH_I2C_Read... [19:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:52]Read from MH i2c: E2 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: E2 0E 00 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: E2 0E 00 B0 20 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 45 [19:39:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:39:52]wFMCommunicate OK [19:39:52]SAM_PROTO_GetShiftState done [19:39:52]FM_GetShiftState done [19:39:52]req_shift_opened done [19:39:52]requested_item shift.open_date is exist - process it [19:39:52]req_shift_open_date [19:39:52]req_shift_open_date done [19:39:52]produce_requested_data done [19:39:52]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50654,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:39:52]process_action_free close_receipt [19:39:52]json_value_free [19:39:52]json_value_free done [19:39:52]process_json_proto returns [19:39:52]Send response to host [19:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50654,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:39:52]free response buf [19:39:52]execute_script done [19:39:52]execute_script returns [19:39:52]free content buf [19:39:52]Sock 7.Close socket [19:39:52]Sock 7.Thread stoped [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:10]accept exits with 9 [19:40:10]New connection [19:40:10]New thread 3066789220 created [19:40:10]Thread 3066645860 joined [19:40:10]Waiting for new connection... [19:40:10] Sock 9.Parse request [19:40:10]Sock 9.Check first char [19:40:10]Sock 9.First char is OK [19:40:10]request: POST /json_proto HTTP/1.0 [19:40:10]Method: POST [19:40:10]URL: /json_proto [19:40:10]Method is POST - this is cgi request [19:40:10]url: /json_proto [19:40:10]query_string will be loaded in cgi processing [19:40:10]execute_cgi json_proto POST (null) [19:40:10]execute_cgi path=json_proto method=POST [19:40:10]POST find Content-Length [19:40:10]Host: 172.17.49.196:8080 [19:40:10]Content-Length: 679 [19:40:10]Content-Type: application/json [19:40:10] [19:40:10]POST finish read [19:40:10]Found Content-Length = 679 [19:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442730", "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.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:10]execute_script... [19:40:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)15442730", "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.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:10]POST & json_proto [19:40:10]process_json_proto [19:40:10]json parsed OK: [19:40:10]protocol is kg_v1.0 [19:40:10]action value=close_receipt [19:40:10]process_action close_receipt [19:40:10]cmd_close_receipt [19:40:10]MH_GetDate [19:40:10]Write to MH i2c: F0 00 00 B1 20 C0 [19:40:10]Write i2c OK [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: F0 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: F0 09 00 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: F0 09 00 B1 20 00 1D F4 1B 67 BD 3B 11 67 CC [19:40:10]GetLastDocTimeStamp 1729885193 [19:40:10]current date 1729885213 [19:40:10]FM_GetShiftState [19:40:10]SAM_PROTO_GetShiftState [19:40:10]wFMCommunicate request_size=4 [19:40:10]MH_SAM_APDU [19:40:10]CAPDU: 80 13 01 00 [19:40:10]Write to MH i2c: E2 08 00 B2 20 80 13 01 00 00 00 00 00 4F [19:40:10]Write i2c OK [19:40:10]MH_I2C_Read... [19:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:10]Read from MH i2c: E2 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 0E 00 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 0E 00 B2 20 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 47 [19:40:10]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:40:10]wFMCommunicate OK [19:40:10]SAM_PROTO_GetShiftState done [19:40:10]FM_GetShiftState done [19:40:10]opened in 1729815177 [19:40:10]opened+sec_in_day 1729901577 [19:40:10]quantity*price = 30038 [19:40:10]sum+1 = 30039 [19:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 155 25.10.2024 19:40 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50655 ФПД: 209133757310001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T194013&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50655&fm=209133757310001&tin=02508201610067®Number=0000000000097022&sum=30000 [19:40:11]StoreToDocumentArchive [19:40:11]shift 493 fd 50655 [19:40:11]save to /storage/0493/doc_00050655 [19:40:11]save last doc name /storage/0493/doc_00050655 to /storage/kkm_last_doc_name [19:40:11]save OK [19:40:11]Clear old archive folders... [19:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:11]tlvbuf is 01E8BE40 [19:40:11]SAM_PROTO_ClearQueue [19:40:11]wFMCommunicate request_size=4 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 09 00 00 [19:40:11]Write to MH i2c: E2 08 00 BF 20 80 09 00 00 00 00 00 00 51 [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 03 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 03 00 BF 20 00 90 00 53 [19:40:11]RAPDU: 90 00 [19:40:11]wFMCommunicate OK [19:40:11]SAM_PROTO_ClearQueue done [19:40:11]KKMCreateOFDPacket [19:40:11]OFDProtocolAddRootSTLVToBuf [19:40:11]FM_MakeSignedData [19:40:11]FM_MakeSignedData [19:40:11]SAM_PROTO_SignData [19:40:11]wFMCommunicate request_size=4 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 0D 01 02 [19:40:11]Write to MH i2c: E2 08 00 C0 20 80 0D 01 02 00 00 00 00 59 [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 03 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 03 00 C0 20 00 90 00 54 [19:40:11]RAPDU: 90 00 [19:40:11]wFMCommunicate OK [19:40:11]wFMCommunicate request_size=255 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 1D F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DF C5 00 00 35 04 06 00 BE [19:40:11]Write to MH i2c: E2 02 01 C1 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 1D F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DF C5 00 00 35 04 06 00 BE 00 00 48 [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 03 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 03 00 C1 20 00 90 00 55 [19:40:11]RAPDU: 90 00 [19:40:11]wFMCommunicate OK [19:40:11]wFMCommunicate request_size=10 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 0D 02 02 05 34 BF 50 A4 31 [19:40:11]Write to MH i2c: E2 0D 00 C2 20 80 0D 02 02 05 00 34 BF 50 A4 31 00 00 7E [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 03 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [19:40:11]RAPDU: 90 00 [19:40:11]wFMCommunicate OK [19:40:11]wFMCommunicate request_size=4 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 0D 03 02 [19:40:11]Write to MH i2c: E2 08 00 C3 20 80 0D 03 02 00 00 00 00 5E [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 0B 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 0B 00 C3 20 00 59 F1 E1 F3 3C 84 76 D7 90 00 8A [19:40:11]RAPDU: 59 F1 E1 F3 3C 84 76 D7 90 00 [19:40:11]wFMCommunicate OK [19:40:11]SAM_PROTO_SignData done [19:40:11]FM_MakeSignedData done [19:40:11]CreateOFDProtocolMessage [19:40:11]wFMCommunicate request_size=4 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 11 00 00 [19:40:11]Write to MH i2c: E2 08 00 C4 20 80 11 00 00 00 00 00 00 5E [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 17 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 17 00 C4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A5 [19:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:40:11]wFMCommunicate OK [19:40:11]CreateOFDProtocolMessage done [19:40:11]OFDSenderStorePacket 50655 [19:40:11]StoreOFDPacket docnum=50655 [19:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 6D DC 07 01 61 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 1D F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DF C5 00 00 35 04 06 00 BE 34 BF 50 A4 31 59 F1 E1 F3 3C 84 76 D7 [19:40:11]CheckFolder [19:40:11]dirname=/storage/ofd_packets [19:40:11]CheckFolder done [19:40:11]ProducePacketName [19:40:11]name=ofd_packets/00050655 [19:40:11]NVStorageSaveData ofd_packets/00050655 [19:40:11]File name is /storage/ofd_packets/00050655 [19:40:11]Write 301 bytes [19:40:11]NVStorageSaveData done [19:40:11]OFDSenderStorePacket done [19:40:11]KKMCreateOFDPacket done [19:40:11]NVStorageSaveData kkm_last_timestamp [19:40:11]File name is /storage/kkm_last_timestamp [19:40:11]Write 4 bytes [19:40:11]NVStorageSaveData done [19:40:11]ExternCall_PrintAddStr [19:40:11]wPrintStart [19:40:11]Write to MH i2c: 01 00 00 C5 20 E5 [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: 01 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: 01 07 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: 01 07 00 C5 20 00 00 00 00 00 FF 0F FA [19:40:11]RasterBufferAndPrint [19:40:11]line Счет N : (1)15442730 [19:40:11]line ИНН: 02508201610067 [19:40:11]line Контрольно-Кассовый Чек [19:40:11]line ПРОДАЖА [19:40:11]line ТРК (МРК, ГНК) : 43 [19:40:11]line Товар: 2710124130 [19:40:11]line Аи-92-К-4 [19:40:11]line 4.490 * 66.90 [19:40:11]line = 300.38 [19:40:11]line НДС 12% НСП 1% [19:40:11]line > о реализуемом товаре [19:40:11]line ОКРУГЛЕНИЕ: -0.38 [19:40:11]line ИТОГО: 300.00 [19:40:11]line Внесено: 300.00 [19:40:11]line СДАЧА: 0.00 [19:40:11]line НСП 1% : 2.66 [19:40:11]line НДС 12% : 31.90 [19:40:11]line Наличными: 300.00 [19:40:11]line Безнал.: 0.00 [19:40:11]line Место: АЗС № 80 "Партнер Нефть" [19:40:11]OFD Sender: Processing packet 50655 [packets to send 7, broken 6] [19:40:11]ProducePacketName [19:40:11]name=ofd_packets/00050655 [19:40:11]OFD Sender: To server: pG, [19:40:11]CommunicateWithHost lk.salyk.kg:30040 [19:40:11]ConnectInit lk.salyk.kg [19:40:11]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:40:11]line СНО: Общий режим [19:40:11]line Чек 155 25.10.2024 19:40 [19:40:11]line Смена: 493 ФФД: 1.0 [19:40:11]line ЗНМ: 0300000090 [19:40:11]line РНМ: 0000000000097022 [19:40:11]line Версия ККМ: 001 [19:40:11]line ФМ: 0000000000875000 [19:40:11]line ФД: 50655 [19:40:11]line ФПД: 209133757310001 [19:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T194013&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50655&fm=209133757310001&tin=02508201610067®Number=0000000000097022&sum=30000 [19:40:11]written 0, free lines is 4095 [19:40:11]Connected sock=11 [19:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0F 01 00 00 6D DC 07 01 61 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 1D F4 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DF C5 00 00 35 04 06 00 BE 34 BF 50 A4 31 59 F1 E1 F3 3C 84 76 D7 [19:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 69 2B 47 00 9C 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 DF C5 00 00 F4 03 04 00 AC 9F 1B 67 B6 04 01 00 00 22 F8 9D 6A B8 F6 5F DD [19:40:12]CommunicateWithHost err = 0 [19:40:12]CheckOFDResponse [19:40:12]1017 (14) - 77093643461234 [19:40:12]1041 (16) - 0000000000875000 [19:40:12]1040 (4) - 50655 [19:40:12]1012 (4) - 25.10.2024 13:39 [19:40:12]1206 (1) - 0 [19:40:12]OFD Sender: Remove packet 50655 [19:40:12]ProducePacketName [19:40:12]name=ofd_packets/00050655 [19:40:12]NVStorageDeleteData [19:40:12]Write to MH i2c: 01 00 00 F0 20 10 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 07 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 07 00 F0 20 00 00 00 00 00 23 0D 47 [19:40:12]RasterBufferAndPrint [19:40:12]line [19:40:12]line [19:40:12]line [19:40:12]line [19:40:12]line [19:40:12]written 0, free lines is 3381 [19:40:12]process_action close_receipt done [19:40:12]requested_data is exist [19:40:12]produce_requested_data [19:40:12]requested_item fm.sn is exist - process it [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 11 00 00 [19:40:12]Write to MH i2c: E2 08 00 F7 20 80 11 00 00 00 00 00 00 91 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 17 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 17 00 F7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D8 [19:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:40:12]wFMCommunicate OK [19:40:12]requested_item fd.num is exist - process it [19:40:12]SAM_PROTO_GetFieldsCounters [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 13 00 00 [19:40:12]Write to MH i2c: E2 08 00 F8 20 80 13 00 00 00 00 00 00 94 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 62 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 62 00 F8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:40:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_GetFieldsCounters done [19:40:12]requested_item shift.num is exist - process it [19:40:12]requested_item shift.opened is exist - process it [19:40:12]req_shift_opened [19:40:12]FM_GetShiftState [19:40:12]SAM_PROTO_GetShiftState [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 13 01 00 [19:40:12]Write to MH i2c: E2 08 00 F9 20 80 13 01 00 00 00 00 00 96 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0E 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0E 00 F9 20 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8E [19:40:12]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_GetShiftState done [19:40:12]FM_GetShiftState done [19:40:12]req_shift_opened done [19:40:12]requested_item shift.open_date is exist - process it [19:40:12]req_shift_open_date [19:40:12]req_shift_open_date done [19:40:12]produce_requested_data done [19:40:12]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50655,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:40:12]process_action_free close_receipt [19:40:12]json_value_free [19:40:12]json_value_free done [19:40:12]process_json_proto returns [19:40:12]Send response to host [19:40:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50655,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:40:12]free response buf [19:40:12]execute_script done [19:40:12]execute_script returns [19:40:12]free content buf [19:40:12]Sock 9.Close socket [19:40:12]Sock 9.Thread stoped [19:40:12]OFD Sender: No OFD packet to send [19:40:17]accept exits with 7 [19:40:17]New connection [19:40:17]New thread 3066645860 created [19:40:17]Thread 3066789220 joined [19:40:17]Waiting for new connection... [19:40:17] Sock 7.Parse request [19:40:17]Sock 7.Check first char [19:40:17]Sock 7.First char is OK [19:40:17]request: POST /json_proto HTTP/1.0 [19:40:17]Method: POST [19:40:17]URL: /json_proto [19:40:17]Method is POST - this is cgi request [19:40:17]url: /json_proto [19:40:17]query_string will be loaded in cgi processing [19:40:17]execute_cgi json_proto POST (null) [19:40:17]execute_cgi path=json_proto method=POST [19:40:17]POST find Content-Length [19:40:17]Host: 172.17.49.196:8080 [19:40:17]Content-Length: 215 [19:40:17]Content-Type: application/json [19:40:17] [19:40:17]POST finish read [19:40:17]Found Content-Length = 215 [19:40:17]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:40:17]execute_script... [19:40:17]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:40:17]POST & json_proto [19:40:17]process_json_proto [19:40:17]json parsed OK: [19:40:17]protocol is kg_v1.0 [19:40:17]action value=get_value [19:40:17]process_action get_value [19:40:17]cmd_get_value [19:40:17]process_action get_value done [19:40:17]requested_data is exist [19:40:17]produce_requested_data [19:40:17]requested_item kkm.sn is exist - process it [19:40:17]requested_item kkm.ver is exist - process it [19:40:17]requested_item fm.sn is exist - process it [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 11 00 00 [19:40:17]Write to MH i2c: E2 08 00 FA 20 80 11 00 00 00 00 00 00 94 [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 17 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 17 00 FA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DB [19:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:40:17]wFMCommunicate OK [19:40:17]requested_item fd.num is exist - process it [19:40:17]SAM_PROTO_GetFieldsCounters [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 13 00 00 [19:40:17]Write to MH i2c: E2 08 00 FB 20 80 13 00 00 00 00 00 00 97 [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]OFD Sender: No OFD packet to send [19:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 62 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 62 00 FB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [19:40:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 DF C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:17]wFMCommunicate OK [19:40:17]SAM_PROTO_GetFieldsCounters done [19:40:17]requested_item shift.num is exist - process it [19:40:17]requested_item shift.opened is exist - process it [19:40:17]req_shift_opened [19:40:17]FM_GetShiftState [19:40:17]SAM_PROTO_GetShiftState [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 13 01 00 [19:40:17]Write to MH i2c: E2 08 00 FC 20 80 13 01 00 00 00 00 00 99 [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 0E 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 0E 00 FC 20 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 91 [19:40:17]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:40:17]wFMCommunicate OK [19:40:17]SAM_PROTO_GetShiftState done [19:40:17]FM_GetShiftState done [19:40:17]req_shift_opened done [19:40:17]requested_item shift.open_date is exist - process it [19:40:17]req_shift_open_date [19:40:17]req_shift_open_date done [19:40:17]produce_requested_data done [19:40:17]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50655,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:40:17]process_action_free get_value [19:40:17]json_value_free [19:40:17]json_value_free done [19:40:17]process_json_proto returns [19:40:17]Send response to host [19:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50655,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:40:17]free response buf [19:40:17]execute_script done [19:40:17]execute_script returns [19:40:17]free content buf [19:40:17]Sock 7.Close socket [19:40:17]Sock 7.Thread stoped [19:40:17]accept exits with 9 [19:40:17]New connection [19:40:17]New thread 3066789220 created [19:40:17]Thread 3066645860 joined [19:40:17]Waiting for new connection... [19:40:18] Sock 9.Parse request [19:40:18]Sock 9.Check first char [19:40:18]Sock 9.First char is OK [19:40:18]request: POST /json_proto HTTP/1.0 [19:40:18]Method: POST [19:40:18]URL: /json_proto [19:40:18]Method is POST - this is cgi request [19:40:18]url: /json_proto [19:40:18]query_string will be loaded in cgi processing [19:40:18]execute_cgi json_proto POST (null) [19:40:18]execute_cgi path=json_proto method=POST [19:40:18]POST find Content-Length [19:40:18]Host: 172.17.49.196:8080 [19:40:18]Content-Length: 331 [19:40:18]Content-Type: application/json [19:40:18] [19:40:18]POST finish read [19:40:18]Found Content-Length = 331 [19:40:18]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:40:18]execute_script... [19:40:18]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:40:18]POST & json_proto [19:40:18]process_json_proto [19:40:18]json parsed OK: [19:40:18]protocol is kg_v1.0 [19:40:18]action value=get_value [19:40:18]process_action get_value [19:40:18]cmd_get_value [19:40:18]process_action get_value done [19:40:18]requested_data is exist [19:40:18]produce_requested_data [19:40:18]requested_item fm.sale.total is exist - process it [19:40:18]SAM_PROTO_GetFMData [19:40:18]wFMCommunicate request_size=4 [19:40:18]MH_SAM_APDU [19:40:18]CAPDU: 80 13 03 00 [19:40:18]Write to MH i2c: E2 08 00 FD 20 80 13 03 00 00 00 00 00 9C [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:40:18]Read from MH i2c: E2 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: E2 FD 00 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: E2 FD 00 FD 20 00 C5 04 85 04 C1 04 6E 04 04 00 05 C2 00 00 69 04 A1 00 6F 04 04 00 05 C1 00 00 B1 04 04 00 CB 3B FF 82 70 04 04 00 E8 10 DC 61 72 04 04 00 E3 2A 23 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CF B2 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 33 BC 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 8A [19:40:18]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 05 C2 00 00 69 04 A1 00 6F 04 04 00 05 C1 00 00 B1 04 04 00 CB 3B FF 82 70 04 04 00 E8 10 DC 61 72 04 04 00 E3 2A 23 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CF B2 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 33 BC 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [19:40:18]wFMCommunicate OK [19:40:18]wFMCommunicate request_size=4 [19:40:18]MH_SAM_APDU [19:40:18]CAPDU: 80 17 00 00 [19:40:18]Write to MH i2c: E2 08 00 FE 20 80 17 00 00 00 00 00 00 9E [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:18]Read from MH i2c: E2 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: E2 FD 00 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: E2 FD 00 FE 20 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [19:40:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:40:18]wFMCommunicate OK [19:40:18]wFMCommunicate request_size=4 [19:40:18]MH_SAM_APDU [19:40:18]CAPDU: 80 17 00 00 [19:40:18]Write to MH i2c: E2 08 00 FF 20 80 17 00 00 00 00 00 00 9F [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 FD 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 FD 00 FF 20 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [19:40:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:40:19]wFMCommunicate OK [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 17 00 00 [19:40:19]Write to MH i2c: E2 08 00 00 21 80 17 00 00 00 00 00 00 A1 [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 FD 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 FD 00 00 21 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [19:40:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:40:19]wFMCommunicate OK [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 17 00 00 [19:40:19]Write to MH i2c: E2 08 00 01 21 80 17 00 00 00 00 00 00 A2 [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 E2 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 E2 00 01 21 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 80 [19:40:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40:20]wFMCommunicate OK [19:40:20]SAM_PROTO_GetFMData done [19:40:20]requested_item fm.sale_refund.total is exist - process it [19:40:20]requested_item fm.buy.total is exist - process it [19:40:20]requested_item shift.sale.total is exist - process it [19:40:20]SAM_PROTO_GetShiftData [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 13 02 00 [19:40:20]Write to MH i2c: E2 08 00 02 21 80 13 02 00 00 00 00 00 A1 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 FD 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 FD 00 02 21 00 AE 04 AA 04 AA 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 9B 00 00 00 B1 04 03 00 B6 0E 5D 70 04 03 00 08 51 47 72 04 03 00 AE BD 15 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 09 E2 09 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 D4 D2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 [19:40:20]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9B 00 00 00 69 04 9B 00 6F 04 04 00 9B 00 00 00 B1 04 03 00 B6 0E 5D 70 04 03 00 08 51 47 72 04 03 00 AE BD 15 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 09 E2 09 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 D4 D2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40:20]wFMCommunicate OK [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 17 00 00 [19:40:20]Write to MH i2c: E2 08 00 03 21 80 17 00 00 00 00 00 00 A4 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 FD 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 FD 00 03 21 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 C6 [19:40:21]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:40:21]wFMCommunicate OK [19:40:21]wFMCommunicate request_size=4 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 17 00 00 [19:40:21]Write to MH i2c: E2 08 00 04 21 80 17 00 00 00 00 00 00 A5 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 FD 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 FD 00 04 21 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5C [19:40:21]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:40:21]wFMCommunicate OK [19:40:21]wFMCommunicate request_size=4 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 17 00 00 [19:40:21]Write to MH i2c: E2 08 00 05 21 80 17 00 00 00 00 00 00 A6 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:22]Read from MH i2c: E2 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: E2 FD 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: E2 FD 00 05 21 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 18 [19:40: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 [19:40:22]wFMCommunicate OK [19:40:22]wFMCommunicate request_size=4 [19:40:22]MH_SAM_APDU [19:40:22]CAPDU: 80 17 00 00 [19:40:22]Write to MH i2c: E2 08 00 06 21 80 17 00 00 00 00 00 00 A7 [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:40:22]Read from MH i2c: E2 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: E2 CB 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: E2 CB 00 06 21 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 90 [19:40:22]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:40:22]wFMCommunicate OK [19:40:22]SAM_PROTO_GetShiftData done [19:40:22]requested_item shift.sale.total_cash is exist - process it [19:40:22]requested_item shift.sale_refund.total is exist - process it [19:40:22]requested_item shift.sale_refund.total_cash is exist - process it [19:40:22]requested_item shift.buy.total is exist - process it [19:40:22]requested_item shift.buy.total_cash is exist - process it [19:40:22]produce_requested_data done [19:40:22]produce_requested_data return {"fm.sale.total":21977650.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":60986.14,"shift.sale.total_cash":46738.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:40:22]process_action_free get_value [19:40:22]json_value_free [19:40:22]json_value_free done [19:40:22]process_json_proto returns [19:40:22]Send response to host [19:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21977650.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":60986.14,"shift.sale.total_cash":46738.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:40:22]OFD Sender: No OFD packet to send [19:40:22]free response buf [19:40:22]execute_script done [19:40:22]execute_script returns [19:40:22]free content buf [19:40:22]Sock 9.Close socket [19:40:22]Sock 9.Thread stoped [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:56]accept exits with 7 [19:54:56]New connection [19:54:56]New thread 3066645860 created [19:54:56]Thread 3066789220 joined [19:54:56]Waiting for new connection... [19:54:56] Sock 7.Parse request [19:54:56]Sock 7.Check first char [19:54:56]Sock 7.First char is OK [19:54:56]request: POST /json_proto HTTP/1.0 [19:54:56]Method: POST [19:54:56]URL: /json_proto [19:54:56]Method is POST - this is cgi request [19:54:56]url: /json_proto [19:54:56]query_string will be loaded in cgi processing [19:54:56]execute_cgi json_proto POST (null) [19:54:56]execute_cgi path=json_proto method=POST [19:54:56]POST find Content-Length [19:54:56]Host: 172.17.49.196:8080 [19:54:56]Content-Length: 1156 [19:54:56]Content-Type: application/json [19:54:56] [19:54:56]POST finish read [19:54:56]Found Content-Length = 1156 [19:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164539", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039450010", "name": "\u0427\u0430\u0439 \u0437\u0435\u043B\u0435\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" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:56]execute_script... [19:54:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164539", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039450010", "name": "\u0427\u0430\u0439 \u0437\u0435\u043B\u0435\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" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:56]POST & json_proto [19:54:56]process_json_proto [19:54:56]json parsed OK: [19:54:56]protocol is kg_v1.0 [19:54:56]action value=close_receipt [19:54:56]process_action close_receipt [19:54:56]cmd_close_receipt [19:54:56]MH_GetDate [19:54:56]Write to MH i2c: F0 00 00 07 21 17 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: F0 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: F0 09 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: F0 09 00 07 21 00 93 F7 1B 67 BD 3B 11 67 9C [19:54:56]GetLastDocTimeStamp 1729885213 [19:54:56]current date 1729886099 [19:54:56]FM_GetShiftState [19:54:56]SAM_PROTO_GetShiftState [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 13 01 00 [19:54:56]Write to MH i2c: E2 08 00 08 21 80 13 01 00 00 00 00 00 A6 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0E 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0E 00 08 21 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 9E [19:54:56]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:54:56]wFMCommunicate OK [19:54:56]SAM_PROTO_GetShiftState done [19:54:56]FM_GetShiftState done [19:54:56]opened in 1729815177 [19:54:56]opened+sec_in_day 1729901577 [19:54:56]quantity*price = 13000 [19:54:56]sum+1 = 13001 [19:54:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329999 Напиток Lipton IceTea 1л лимон Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000039450010 Чай зеленый 200 мл 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.85 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 156 25.10.2024 19:54 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50656 ФПД: 269295782305545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T195459&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50656&fm=269295782305545&tin=02508201610067®Number=0000000000097022&sum=30000 0 [19:54:57]StoreToDocumentArchive [19:54:57]shift 493 fd 50656 [19:54:57]save to /storage/0493/doc_00050656 [19:54:57]save last doc name /storage/0493/doc_00050656 to /storage/kkm_last_doc_name [19:54:57]save OK [19:54:57]Clear old archive folders... [19:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=494 [19:54:57]tlvbuf is 01EAECF0 [19:54:57]SAM_PROTO_ClearQueue [19:54:57]wFMCommunicate request_size=4 [19:54:57]MH_SAM_APDU [19:54:57]CAPDU: 80 09 00 00 [19:54:57]Write to MH i2c: E2 08 00 15 21 80 09 00 00 00 00 00 00 A8 [19:54:57]Write i2c OK [19:54:57]MH_I2C_Read... [19:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:57]Read from MH i2c: E2 [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: E2 03 00 [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: E2 03 00 15 21 00 90 00 AA [19:54:57]RAPDU: 90 00 [19:54:57]wFMCommunicate OK [19:54:57]SAM_PROTO_ClearQueue done [19:54:57]KKMCreateOFDPacket [19:54:57]OFDProtocolAddRootSTLVToBuf [19:54:57]FM_MakeSignedData [19:54:57]FM_MakeSignedData [19:54:57]SAM_PROTO_SignData [19:54:57]wFMCommunicate request_size=4 [19:54:57]MH_SAM_APDU [19:54:57]CAPDU: 80 0D 01 02 [19:54:57]Write to MH i2c: E2 08 00 16 21 80 0D 01 02 00 00 00 00 B0 [19:54:57]Write i2c OK [19:54:57]MH_I2C_Read... [19:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:57]Read from MH i2c: E2 [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: E2 03 00 [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [19:54:57]RAPDU: 90 00 [19:54:57]wFMCommunicate OK [19:54:57]wFMCommunicate request_size=255 [19:54:57]MH_SAM_APDU [19:54:57]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 [19:54:57]Write to MH i2c: E2 02 01 17 21 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 00 00 6B [19:54:57]Write i2c OK [19:54:57]MH_I2C_Read... [19:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:58]Read from MH i2c: E2 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 03 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 03 00 17 21 00 90 00 AC [19:54:58]RAPDU: 90 00 [19:54:58]wFMCommunicate OK [19:54:58]wFMCommunicate request_size=253 [19:54:58]MH_SAM_APDU [19:54:58]CAPDU: 80 0D 02 02 F8 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 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 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 93 F7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E0 C5 00 00 35 04 06 00 F4 EC 4F 71 9F 09 [19:54:58]Write to MH i2c: E2 00 01 18 21 80 0D 02 02 F8 00 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 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 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 93 F7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E0 C5 00 00 35 04 06 00 F4 EC 4F 71 9F 09 00 00 31 [19:54:58]Write i2c OK [19:54:58]MH_I2C_Read... [19:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:58]Read from MH i2c: E2 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 03 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 03 00 18 21 00 90 00 AD [19:54:58]RAPDU: 90 00 [19:54:58]wFMCommunicate OK [19:54:58]wFMCommunicate request_size=4 [19:54:58]MH_SAM_APDU [19:54:58]CAPDU: 80 0D 03 02 [19:54:58]Write to MH i2c: E2 08 00 19 21 80 0D 03 02 00 00 00 00 B5 [19:54:58]Write i2c OK [19:54:58]MH_I2C_Read... [19:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:58]Read from MH i2c: E2 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 0B 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 0B 00 19 21 00 C1 FC C1 E8 A9 1E F7 11 90 00 EB [19:54:58]RAPDU: C1 FC C1 E8 A9 1E F7 11 90 00 [19:54:58]wFMCommunicate OK [19:54:58]SAM_PROTO_SignData done [19:54:58]FM_MakeSignedData done [19:54:58]CreateOFDProtocolMessage [19:54:58]wFMCommunicate request_size=4 [19:54:58]MH_SAM_APDU [19:54:58]CAPDU: 80 11 00 00 [19:54:58]Write to MH i2c: E2 08 00 1A 21 80 11 00 00 00 00 00 00 B5 [19:54:58]Write i2c OK [19:54:58]MH_I2C_Read... [19:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:58]Read from MH i2c: E2 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 17 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 17 00 1A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FC [19:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:54:58]wFMCommunicate OK [19:54:58]CreateOFDProtocolMessage done [19:54:58]OFDSenderStorePacket 50656 [19:54:58]StoreOFDPacket docnum=50656 [19:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 02 02 00 00 CF 45 FA 01 8E 46 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 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 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 93 F7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E0 C5 00 00 35 04 06 00 F4 EC 4F 71 9F 09 C1 FC C1 E8 A9 1E F7 11 [19:54:58]CheckFolder [19:54:58]dirname=/storage/ofd_packets [19:54:58]CheckFolder done [19:54:58]ProducePacketName [19:54:58]name=ofd_packets/00050656 [19:54:58]NVStorageSaveData ofd_packets/00050656 [19:54:58]File name is /storage/ofd_packets/00050656 [19:54:58]Write 544 bytes [19:54:58]NVStorageSaveData done [19:54:58]OFDSenderStorePacket done [19:54:58]KKMCreateOFDPacket done [19:54:58]NVStorageSaveData kkm_last_timestamp [19:54:58]File name is /storage/kkm_last_timestamp [19:54:58]Write 4 bytes [19:54:58]NVStorageSaveData done [19:54:58]ExternCall_PrintAddStr [19:54:58]wPrintStart [19:54:58]Write to MH i2c: 01 00 00 1B 21 3C [19:54:58]Write i2c OK [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: 01 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: 01 07 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 FF 0F 51 [19:54:58]RasterBufferAndPrint [19:54:58]line Счет N : (3)164539 [19:54:58]line ИНН: 02508201610067 [19:54:58]line Контрольно-Кассовый Чек [19:54:58]line ПРОДАЖА [19:54:58]line Товар: 4620006996716 [19:54:58]line Водка Талка 0,1л [19:54:58]line 1.000 * 130.00 [19:54:58]line = 130.00 [19:54:58]line НДС 12% НСП 1% [19:54:58]line > о реализуемом товаре [19:54:58]line Товар: 4870002329999 [19:54:58]line Напиток Lipton IceTea 1л лимон Regular [19:54:58]line 1.000 * 130.00 [19:54:58]line = 130.00 [19:54:58]line НДС 12% НСП 1% [19:54:58]line > о реализуемом товаре [19:54:58]line Товар: 2000039450010 [19:54:58]line Чай зеленый 200 мл [19:54:58]line 1.000 * 40.00 [19:54:58]line = 40.00 [19:54:58]line НДС 12% НСП 1% [19:54:58]line > о реализуемом товаре [19:54:58]line ИТОГО: 300.00 [19:54:58]line НСП 1% : 2.65 [19:54:58]line НДС 12% : 31.85 [19:54:58]line Наличными: 300.00 [19:54:58]line Безнал.: 0.00 [19:54:58]line Место: АЗС № 80 "Партнер Нефть" [19:54:58]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [19:54:58]line СНО: Общий режим [19:54:58]line Чек 156 25.10.2024 19:54 [19:54:58]line Смена: 493 ФФД: 1.0 [19:54:58]line ЗНМ: 0300000090 [19:54:58]line РНМ: 0000000000097022 [19:54:58]line Версия ККМ: 001 [19:54:58]line ФМ: 0000000000875000 [19:54:58]line ФД: 50656 [19:54:58]line ФПД: 269295782305545 [19:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T195459&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50656&fm=269295782305545&tin=02508201610067®Number=0000000000097022&sum=30000 [19:54:58]line 0 [19:54:58]OFD Sender: Processing packet 50656 [packets to send 7, broken 6] [19:54:58]ProducePacketName [19:54:58]name=ofd_packets/00050656 [19:54:58]OFD Sender: To server: pG, [19:54:58]CommunicateWithHost lk.salyk.kg:30040 [19:54:58]ConnectInit lk.salyk.kg [19:54:58]written 0, free lines is 4095 [19:54:58]Connected sock=10 [19:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 02 02 00 00 CF 45 FA 01 8E 46 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 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 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 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 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 93 F7 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E0 C5 00 00 35 04 06 00 F4 EC 4F 71 9F 09 C1 FC C1 E8 A9 1E F7 11 [19:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 6A C9 47 00 67 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E0 C5 00 00 F4 03 04 00 23 A3 1B 67 B6 04 01 00 00 F1 0B E3 F9 B7 C0 DD C7 [19:54:59]CommunicateWithHost err = 0 [19:54:59]CheckOFDResponse [19:54:59]1017 (14) - 77093643461234 [19:54:59]1041 (16) - 0000000000875000 [19:54:59]1040 (4) - 50656 [19:54:59]1012 (4) - 25.10.2024 13:54 [19:54:59]1206 (1) - 0 [19:54:59]OFD Sender: Remove packet 50656 [19:54:59]ProducePacketName [19:54:59]name=ofd_packets/00050656 [19:54:59]NVStorageDeleteData [19:54:59]Write to MH i2c: 01 00 00 50 21 71 [19:54:59]Write i2c OK [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: 01 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: 01 07 00 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: 01 07 00 50 21 00 00 00 00 00 83 0C 07 [19:54:59]RasterBufferAndPrint [19:54:59]line [19:54:59]line [19:54:59]line [19:54:59]line [19:54:59]line [19:54:59]written 0, free lines is 3212 [19:54:59]process_action close_receipt done [19:54:59]requested_data is exist [19:54:59]produce_requested_data [19:54:59]requested_item fm.sn is exist - process it [19:54:59]wFMCommunicate request_size=4 [19:54:59]MH_SAM_APDU [19:54:59]CAPDU: 80 11 00 00 [19:54:59]Write to MH i2c: E2 08 00 57 21 80 11 00 00 00 00 00 00 F2 [19:54:59]Write i2c OK [19:54:59]MH_I2C_Read... [19:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:59]Read from MH i2c: E2 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 17 00 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 17 00 57 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 39 [19:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [19:54:59]wFMCommunicate OK [19:54:59]requested_item fd.num is exist - process it [19:54:59]SAM_PROTO_GetFieldsCounters [19:54:59]wFMCommunicate request_size=4 [19:54:59]MH_SAM_APDU [19:54:59]CAPDU: 80 13 00 00 [19:54:59]Write to MH i2c: E2 08 00 58 21 80 13 00 00 00 00 00 00 F5 [19:54:59]Write i2c OK [19:54:59]MH_I2C_Read... [19:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:59]Read from MH i2c: E2 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 62 00 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 62 00 58 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [19:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E0 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:59]wFMCommunicate OK [19:54:59]SAM_PROTO_GetFieldsCounters done [19:54:59]requested_item shift.num is exist - process it [19:54:59]requested_item shift.opened is exist - process it [19:54:59]req_shift_opened [19:54:59]FM_GetShiftState [19:54:59]SAM_PROTO_GetShiftState [19:54:59]wFMCommunicate request_size=4 [19:54:59]MH_SAM_APDU [19:54:59]CAPDU: 80 13 01 00 [19:54:59]Write to MH i2c: E2 08 00 59 21 80 13 01 00 00 00 00 00 F7 [19:54:59]Write i2c OK [19:54:59]MH_I2C_Read... [19:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:59]Read from MH i2c: E2 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 0E 00 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 0E 00 59 21 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 EF [19:54:59]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [19:54:59]wFMCommunicate OK [19:54:59]SAM_PROTO_GetShiftState done [19:54:59]FM_GetShiftState done [19:54:59]req_shift_opened done [19:54:59]requested_item shift.open_date is exist - process it [19:54:59]req_shift_open_date [19:54:59]req_shift_open_date done [19:54:59]produce_requested_data done [19:54:59]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50656,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [19:54:59]process_action_free close_receipt [19:54:59]json_value_free [19:54:59]json_value_free done [19:54:59]process_json_proto returns [19:54:59]Send response to host [19:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50656,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [19:54:59]free response buf [19:54:59]execute_script done [19:54:59]execute_script returns [19:54:59]free content buf [19:54:59]Sock 7.Close socket [19:54:59]Sock 7.Thread stoped [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:19]accept exits with 9 [20:15:19]New connection [20:15:19]New thread 3066789220 created [20:15:19]Thread 3066645860 joined [20:15:19]Waiting for new connection... [20:15:19] Sock 9.Parse request [20:15:19]Sock 9.Check first char [20:15:19]Sock 9.First char is OK [20:15:19]request: POST /json_proto HTTP/1.0 [20:15:19]Method: POST [20:15:19]URL: /json_proto [20:15:19]Method is POST - this is cgi request [20:15:19]url: /json_proto [20:15:19]query_string will be loaded in cgi processing [20:15:19]execute_cgi json_proto POST (null) [20:15:19]execute_cgi path=json_proto method=POST [20:15:19]POST find Content-Length [20:15:19]Host: 172.17.49.196:8080 [20:15:19]Content-Length: 658 [20:15:19]Content-Type: application/json [20:15:19] [20:15:19]POST finish read [20:15:19]Found Content-Length = 658 [20:15:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164540", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:19]execute_script... [20:15:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164540", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:19]POST & json_proto [20:15:19]process_json_proto [20:15:19]json parsed OK: [20:15:19]protocol is kg_v1.0 [20:15:19]action value=close_receipt [20:15:19]process_action close_receipt [20:15:19]cmd_close_receipt [20:15:19]MH_GetDate [20:15:19]Write to MH i2c: F0 00 00 5A 21 6A [20:15:19]Write i2c OK [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: F0 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: F0 09 00 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: F0 09 00 5A 21 00 5A FC 1B 67 BD 3B 11 67 BB [20:15:19]GetLastDocTimeStamp 1729886099 [20:15:19]current date 1729887322 [20:15:19]FM_GetShiftState [20:15:19]SAM_PROTO_GetShiftState [20:15:19]wFMCommunicate request_size=4 [20:15:19]MH_SAM_APDU [20:15:19]CAPDU: 80 13 01 00 [20:15:19]Write to MH i2c: E2 08 00 5B 21 80 13 01 00 00 00 00 00 F9 [20:15:19]Write i2c OK [20:15:19]MH_I2C_Read... [20:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:19]Read from MH i2c: E2 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: E2 0E 00 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: E2 0E 00 5B 21 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F1 [20:15:19]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [20:15:19]wFMCommunicate OK [20:15:19]SAM_PROTO_GetShiftState done [20:15:19]FM_GetShiftState done [20:15:19]opened in 1729815177 [20:15:19]opened+sec_in_day 1729901577 [20:15:19]quantity*price = 14100 [20:15:19]sum+1 = 14101 [20:15:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 157 25.10.2024 20:15 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50657 ФПД: 273890532014547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T201522&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50657&fm=273890532014547&tin=02508201610067®Number=0000000000097022&sum=14100 0 [20:15:20]StoreToDocumentArchive [20:15:20]shift 493 fd 50657 [20:15:20]save to /storage/0493/doc_00050657 [20:15:20]save last doc name /storage/0493/doc_00050657 to /storage/kkm_last_doc_name [20:15:20]save OK [20:15:20]Clear old archive folders... [20:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=294 [20:15:20]tlvbuf is 01E69330 [20:15:20]SAM_PROTO_ClearQueue [20:15:20]wFMCommunicate request_size=4 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 09 00 00 [20:15:20]Write to MH i2c: E2 08 00 68 21 80 09 00 00 00 00 00 00 FB [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 68 21 00 90 00 FD [20:15:20]RAPDU: 90 00 [20:15:20]wFMCommunicate OK [20:15:20]SAM_PROTO_ClearQueue done [20:15:20]KKMCreateOFDPacket [20:15:20]OFDProtocolAddRootSTLVToBuf [20:15:20]FM_MakeSignedData [20:15:20]FM_MakeSignedData [20:15:20]SAM_PROTO_SignData [20:15:20]wFMCommunicate request_size=4 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 0D 01 02 [20:15:20]Write to MH i2c: E2 08 00 69 21 80 0D 01 02 00 00 00 00 03 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 69 21 00 90 00 FE [20:15:20]RAPDU: 90 00 [20:15:20]wFMCommunicate OK [20:15:20]wFMCommunicate request_size=255 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5A FC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [20:15:20]Write to MH i2c: E2 02 01 6A 21 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5A FC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 0F [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 6A 21 00 90 00 FF [20:15:20]RAPDU: 90 00 [20:15:20]wFMCommunicate OK [20:15:20]wFMCommunicate request_size=53 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E1 C5 00 00 35 04 06 00 F9 1A 1B DE 39 D3 [20:15:20]Write to MH i2c: E2 38 00 6B 21 80 0D 02 02 30 00 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E1 C5 00 00 35 04 06 00 F9 1A 1B DE 39 D3 00 00 A8 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]OFD Sender: No OFD packet to send [20:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 03 00 6B 21 00 90 00 00 [20:15:20]RAPDU: 90 00 [20:15:20]wFMCommunicate OK [20:15:20]wFMCommunicate request_size=4 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 0D 03 02 [20:15:20]Write to MH i2c: E2 08 00 6C 21 80 0D 03 02 00 00 00 00 08 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 0B 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 0B 00 6C 21 00 05 0C 99 A3 05 6A 94 DF 90 00 38 [20:15:20]RAPDU: 05 0C 99 A3 05 6A 94 DF 90 00 [20:15:20]wFMCommunicate OK [20:15:20]SAM_PROTO_SignData done [20:15:20]FM_MakeSignedData done [20:15:20]CreateOFDProtocolMessage [20:15:20]wFMCommunicate request_size=4 [20:15:20]MH_SAM_APDU [20:15:20]CAPDU: 80 11 00 00 [20:15:20]Write to MH i2c: E2 08 00 6D 21 80 11 00 00 00 00 00 00 08 [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:20]Read from MH i2c: E2 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 17 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: E2 17 00 6D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 4F [20:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:15:20]wFMCommunicate OK [20:15:20]CreateOFDProtocolMessage done [20:15:20]OFDSenderStorePacket 50657 [20:15:20]StoreOFDPacket docnum=50657 [20:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 62 57 32 01 DA D2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5A FC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E1 C5 00 00 35 04 06 00 F9 1A 1B DE 39 D3 05 0C 99 A3 05 6A 94 DF [20:15:20]CheckFolder [20:15:20]dirname=/storage/ofd_packets [20:15:20]CheckFolder done [20:15:20]ProducePacketName [20:15:20]name=ofd_packets/00050657 [20:15:20]NVStorageSaveData ofd_packets/00050657 [20:15:20]File name is /storage/ofd_packets/00050657 [20:15:20]Write 344 bytes [20:15:20]NVStorageSaveData done [20:15:20]OFDSenderStorePacket done [20:15:20]KKMCreateOFDPacket done [20:15:20]NVStorageSaveData kkm_last_timestamp [20:15:20]File name is /storage/kkm_last_timestamp [20:15:20]Write 4 bytes [20:15:20]NVStorageSaveData done [20:15:20]ExternCall_PrintAddStr [20:15:20]wPrintStart [20:15:20]Write to MH i2c: 01 00 00 6E 21 8F [20:15:20]Write i2c OK [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 07 00 [20:15:20]MH_I2C_Read... [20:15:20]Read from MH i2c: 01 07 00 6E 21 00 00 00 00 00 FF 0F A4 [20:15:20]RasterBufferAndPrint [20:15:20]line Счет N : (3)164540 [20:15:20]line ИНН: 02508201610067 [20:15:20]line Контрольно-Кассовый Чек [20:15:20]line ПРОДАЖА [20:15:20]line Товар: 4870216764968 [20:15:20]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [20:15:20]line 1.000 * 141.00 [20:15:20]line = 141.00 [20:15:20]line НДС 12% НСП 1% [20:15:20]line > о реализуемом товаре [20:15:20]line ИТОГО: 141.00 [20:15:20]line НСП 1% : 1.25 [20:15:20]line НДС 12% : 14.97 [20:15:20]line Наличными: 141.00 [20:15:20]line Безнал.: 0.00 [20:15:20]line Место: АЗС № 80 "Партнер Нефть" [20:15:20]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [20:15:20]line СНО: Общий режим [20:15:20]line Чек 157 25.10.2024 20:15 [20:15:20]line Смена: 493 ФФД: 1.0 [20:15:20]line ЗНМ: 0300000090 [20:15:20]line РНМ: 0000000000097022 [20:15:20]line Версия ККМ: 001 [20:15:20]line ФМ: 0000000000875000 [20:15:20]line ФД: 50657 [20:15:20]line ФПД: 273890532014547 [20:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T201522&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50657&fm=273890532014547&tin=02508201610067®Number=0000000000097022&sum=14100 [20:15:21]line 0 [20:15:21]OFD Sender: Processing packet 50657 [packets to send 7, broken 6] [20:15:21]ProducePacketName [20:15:21]name=ofd_packets/00050657 [20:15:21]OFD Sender: To server: pG, [20:15:21]CommunicateWithHost lk.salyk.kg:30040 [20:15:21]ConnectInit lk.salyk.kg [20:15:21]written 0, free lines is 4095 [20:15:21]Connected sock=10 [20:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 62 57 32 01 DA D2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5A FC 1B 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E1 C5 00 00 35 04 06 00 F9 1A 1B DE 39 D3 05 0C 99 A3 05 6A 94 DF [20:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 19 91 47 00 0C 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E1 C5 00 00 F4 03 04 00 EA A7 1B 67 B6 04 01 00 00 45 0C 4D 97 F1 6D D5 FD [20:15:21]CommunicateWithHost err = 0 [20:15:21]CheckOFDResponse [20:15:21]1017 (14) - 77093643461234 [20:15:21]1041 (16) - 0000000000875000 [20:15:21]1040 (4) - 50657 [20:15:21]1012 (4) - 25.10.2024 14:15 [20:15:21]1206 (1) - 0 [20:15:21]OFD Sender: Remove packet 50657 [20:15:21]ProducePacketName [20:15:21]name=ofd_packets/00050657 [20:15:21]NVStorageDeleteData [20:15:21]Write to MH i2c: 01 00 00 97 21 B8 [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 07 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: 01 07 00 97 21 00 00 00 00 00 1E 0D EA [20:15:21]RasterBufferAndPrint [20:15:21]line [20:15:21]line [20:15:21]line [20:15:21]line [20:15:21]line [20:15:21]written 0, free lines is 3364 [20:15:21]process_action close_receipt done [20:15:21]requested_data is exist [20:15:21]produce_requested_data [20:15:21]requested_item fm.sn is exist - process it [20:15:21]wFMCommunicate request_size=4 [20:15:21]MH_SAM_APDU [20:15:21]CAPDU: 80 11 00 00 [20:15:21]Write to MH i2c: E2 08 00 9E 21 80 11 00 00 00 00 00 00 39 [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:21]Read from MH i2c: E2 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 17 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 17 00 9E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 80 [20:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:15:21]wFMCommunicate OK [20:15:21]requested_item fd.num is exist - process it [20:15:21]SAM_PROTO_GetFieldsCounters [20:15:21]wFMCommunicate request_size=4 [20:15:21]MH_SAM_APDU [20:15:21]CAPDU: 80 13 00 00 [20:15:21]Write to MH i2c: E2 08 00 9F 21 80 13 00 00 00 00 00 00 3C [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:21]Read from MH i2c: E2 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 62 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 62 00 9F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [20:15:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E1 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:21]wFMCommunicate OK [20:15:21]SAM_PROTO_GetFieldsCounters done [20:15:21]requested_item shift.num is exist - process it [20:15:21]requested_item shift.opened is exist - process it [20:15:21]req_shift_opened [20:15:21]FM_GetShiftState [20:15:21]SAM_PROTO_GetShiftState [20:15:21]wFMCommunicate request_size=4 [20:15:21]MH_SAM_APDU [20:15:21]CAPDU: 80 13 01 00 [20:15:21]Write to MH i2c: E2 08 00 A0 21 80 13 01 00 00 00 00 00 3E [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:21]Read from MH i2c: E2 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 0E 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: E2 0E 00 A0 21 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 36 [20:15:21]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [20:15:21]wFMCommunicate OK [20:15:21]SAM_PROTO_GetShiftState done [20:15:21]FM_GetShiftState done [20:15:21]req_shift_opened done [20:15:21]requested_item shift.open_date is exist - process it [20:15:21]req_shift_open_date [20:15:21]req_shift_open_date done [20:15:21]produce_requested_data done [20:15:21]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50657,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [20:15:21]process_action_free close_receipt [20:15:21]json_value_free [20:15:21]json_value_free done [20:15:21]process_json_proto returns [20:15:21]Send response to host [20:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50657,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [20:15:21]free response buf [20:15:21]execute_script done [20:15:21]execute_script returns [20:15:21]free content buf [20:15:21]Sock 9.Close socket [20:15:21]Sock 9.Thread stoped [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15: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:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]accept exits with 7 [20:44:23]New connection [20:44:23]New thread 3066645860 created [20:44:23]Thread 3066789220 joined [20:44:23]Waiting for new connection... [20:44:23] Sock 7.Parse request [20:44:23]Sock 7.Check first char [20:44:23]Sock 7.First char is OK [20:44:23]request: POST /json_proto HTTP/1.0 [20:44:23]Method: POST [20:44:23]URL: /json_proto [20:44:23]Method is POST - this is cgi request [20:44:23]url: /json_proto [20:44:23]query_string will be loaded in cgi processing [20:44:23]execute_cgi json_proto POST (null) [20:44:23]execute_cgi path=json_proto method=POST [20:44:23]POST find Content-Length [20:44:23]Host: 172.17.49.196:8080 [20:44:23]Content-Length: 700 [20:44:23]Content-Type: application/json [20:44:23] [20:44:23]POST finish read [20:44:23]Found Content-Length = 700 [20:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164541", "tax_sys" : 0, "items" : [ { "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:23]execute_script... [20: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)164541", "tax_sys" : 0, "items" : [ { "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:23]POST & json_proto [20:44:23]process_json_proto [20:44:23]json parsed OK: [20:44:23]protocol is kg_v1.0 [20:44:23]action value=close_receipt [20:44:23]process_action close_receipt [20:44:23]cmd_close_receipt [20:44:23]MH_GetDate [20:44:23]Write to MH i2c: F0 00 00 A1 21 B1 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: F0 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: F0 09 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: F0 09 00 A1 21 00 2A 03 1C 67 BD 3B 11 67 DA [20:44:23]GetLastDocTimeStamp 1729887322 [20:44:23]current date 1729889066 [20:44:23]FM_GetShiftState [20:44:23]SAM_PROTO_GetShiftState [20:44:23]wFMCommunicate request_size=4 [20:44:23]MH_SAM_APDU [20:44:23]CAPDU: 80 13 01 00 [20:44:23]Write to MH i2c: E2 08 00 A2 21 80 13 01 00 00 00 00 00 40 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:23]Read from MH i2c: E2 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 0E 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 0E 00 A2 21 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 38 [20:44:23]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [20:44:23]wFMCommunicate OK [20:44:23]SAM_PROTO_GetShiftState done [20:44:23]FM_GetShiftState done [20:44:23]opened in 1729815177 [20:44:23]opened+sec_in_day 1729901577 [20:44:23]quantity*price = 4500 [20:44:23]sum+1 = 4501 [20:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 158 25.10.2024 20:44 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50658 ФПД: 228481913988420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T204426&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50658&fm=228481913988420&tin=02508201610067®Number=0000000000097022&sum=4500 0 [20:44:24]StoreToDocumentArchive [20:44:24]shift 493 fd 50658 [20:44:24]save to /storage/0493/doc_00050658 [20:44:24]save last doc name /storage/0493/doc_00050658 to /storage/kkm_last_doc_name [20:44:24]save OK [20:44:24]Clear old archive folders... [20:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=295 [20:44:24]tlvbuf is 01E84580 [20:44:24]SAM_PROTO_ClearQueue [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 09 00 00 [20:44:24]Write to MH i2c: E2 08 00 AF 21 80 09 00 00 00 00 00 00 42 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 AF 21 00 90 00 44 [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]SAM_PROTO_ClearQueue done [20:44:24]KKMCreateOFDPacket [20:44:24]OFDProtocolAddRootSTLVToBuf [20:44:24]FM_MakeSignedData [20:44:24]FM_MakeSignedData [20:44:24]SAM_PROTO_SignData [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 01 02 [20:44:24]Write to MH i2c: E2 08 00 B0 21 80 0D 01 02 00 00 00 00 4A [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 B0 21 00 90 00 45 [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]wFMCommunicate request_size=255 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 2A 03 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [20:44:24]Write to MH i2c: E2 02 01 B1 21 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 2A 03 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 DA [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 B1 21 00 90 00 46 [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]wFMCommunicate request_size=54 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E2 C5 00 00 35 04 06 00 CF CD 97 52 25 44 [20:44:24]Write to MH i2c: E2 39 00 B2 21 80 0D 02 02 31 00 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E2 C5 00 00 35 04 06 00 CF CD 97 52 25 44 00 00 F8 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 B2 21 00 90 00 47 [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 03 02 [20:44:24]Write to MH i2c: E2 08 00 B3 21 80 0D 03 02 00 00 00 00 4F [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 0B 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 0B 00 B3 21 00 60 8A 00 19 C9 20 B6 2B 90 00 1D [20:44:24]RAPDU: 60 8A 00 19 C9 20 B6 2B 90 00 [20:44:24]wFMCommunicate OK [20:44:24]SAM_PROTO_SignData done [20:44:24]FM_MakeSignedData done [20:44:24]CreateOFDProtocolMessage [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 11 00 00 [20:44:24]Write to MH i2c: E2 08 00 B4 21 80 11 00 00 00 00 00 00 4F [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 17 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 17 00 B4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 96 [20:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:44:24]wFMCommunicate OK [20:44:24]CreateOFDProtocolMessage done [20:44:24]OFDSenderStorePacket 50658 [20:44:24]StoreOFDPacket docnum=50658 [20:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3B 01 00 00 1A 8E 33 01 70 3A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 2A 03 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E2 C5 00 00 35 04 06 00 CF CD 97 52 25 44 60 8A 00 19 C9 20 B6 2B [20:44:24]CheckFolder [20:44:24]dirname=/storage/ofd_packets [20:44:24]CheckFolder done [20:44:24]ProducePacketName [20:44:24]name=ofd_packets/00050658 [20:44:24]NVStorageSaveData ofd_packets/00050658 [20:44:24]File name is /storage/ofd_packets/00050658 [20:44:24]Write 345 bytes [20:44:24]NVStorageSaveData done [20:44:24]OFDSenderStorePacket done [20:44:24]KKMCreateOFDPacket done [20:44:24]NVStorageSaveData kkm_last_timestamp [20:44:24]File name is /storage/kkm_last_timestamp [20:44:24]Write 4 bytes [20:44:24]NVStorageSaveData done [20:44:24]ExternCall_PrintAddStr [20:44:24]wPrintStart [20:44:24]Write to MH i2c: 01 00 00 B5 21 D6 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 B5 21 00 00 00 00 00 FF 0F EB [20:44:24]RasterBufferAndPrint [20:44:24]line Счет N : (3)164541 [20:44:24]line ИНН: 02508201610067 [20:44:24]line Контрольно-Кассовый Чек [20:44:24]line ПРОДАЖА [20:44:24]line Товар: 4607010740757 [20:44:24]line Чипсы Чипсоны сметана, лук 40г [20:44:24]line 1.000 * 45.00 [20:44:24]line = 45.00 [20:44:24]line НДС 12% НСП 1% [20:44:24]line > о реализуемом товаре [20:44:24]line ИТОГО: 45.00 [20:44:24]line НСП 1% : 0.40 [20:44:24]line НДС 12% : 4.78 [20:44:24]line Наличными: 45.00 [20:44:24]line Безнал.: 0.00 [20:44:24]line Место: АЗС № 80 "Партнер Нефть" [20:44:24]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [20:44:24]line СНО: Общий режим [20:44:24]line Чек 158 25.10.2024 20:44 [20:44:24]line Смена: 493 ФФД: 1.0 [20:44:24]line ЗНМ: 0300000090 [20:44:24]line РНМ: 0000000000097022 [20:44:24]line Версия ККМ: 001 [20:44:24]line ФМ: 0000000000875000 [20:44:24]line ФД: 50658 [20:44:24]line ФПД: 228481913988420 [20:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T204426&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50658&fm=228481913988420&tin=02508201610067®Number=0000000000097022&sum=4500 [20:44:25]OFD Sender: Processing packet 50658 [packets to send 7, broken 6] [20:44:25]ProducePacketName [20:44:25]name=ofd_packets/00050658 [20:44:25]OFD Sender: To server: pG, [20:44:25]CommunicateWithHost lk.salyk.kg:30040 [20:44:25]ConnectInit lk.salyk.kg [20:44:25]line 0 [20:44:25]written 0, free lines is 4095 [20:44:25]Connected sock=10 [20:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3B 01 00 00 1A 8E 33 01 70 3A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 2A 03 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E2 C5 00 00 35 04 06 00 CF CD 97 52 25 44 60 8A 00 19 C9 20 B6 2B [20:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 C0 88 47 00 98 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E2 C5 00 00 F4 03 04 00 BA AE 1B 67 B6 04 01 00 00 0F 8C 0C 2F B1 62 98 36 [20:44:25]CommunicateWithHost err = 0 [20:44:25]CheckOFDResponse [20:44:25]1017 (14) - 77093643461234 [20:44:25]1041 (16) - 0000000000875000 [20:44:25]1040 (4) - 50658 [20:44:25]1012 (4) - 25.10.2024 14:44 [20:44:25]1206 (1) - 0 [20:44:25]OFD Sender: Remove packet 50658 [20:44:25]ProducePacketName [20:44:25]name=ofd_packets/00050658 [20:44:25]NVStorageDeleteData [20:44:25]Write to MH i2c: 01 00 00 DE 21 FF [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 07 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 07 00 DE 21 00 00 00 00 00 0F 0D 22 [20:44:25]RasterBufferAndPrint [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]written 0, free lines is 3352 [20:44:25]process_action close_receipt done [20:44:25]requested_data is exist [20:44:25]produce_requested_data [20:44:25]requested_item fm.sn is exist - process it [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 11 00 00 [20:44:25]Write to MH i2c: E2 08 00 E5 21 80 11 00 00 00 00 00 00 80 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 17 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 17 00 E5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C7 [20:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:44:25]wFMCommunicate OK [20:44:25]requested_item fd.num is exist - process it [20:44:25]SAM_PROTO_GetFieldsCounters [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 13 00 00 [20:44:25]Write to MH i2c: E2 08 00 E6 21 80 13 00 00 00 00 00 00 83 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 62 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 62 00 E6 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [20:44:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E2 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:25]wFMCommunicate OK [20:44:25]SAM_PROTO_GetFieldsCounters done [20:44:25]requested_item shift.num is exist - process it [20:44:25]requested_item shift.opened is exist - process it [20:44:25]req_shift_opened [20:44:25]FM_GetShiftState [20:44:25]SAM_PROTO_GetShiftState [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 13 01 00 [20:44:25]Write to MH i2c: E2 08 00 E7 21 80 13 01 00 00 00 00 00 85 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 0E 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 0E 00 E7 21 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 7D [20:44:25]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [20:44:25]wFMCommunicate OK [20:44:25]SAM_PROTO_GetShiftState done [20:44:25]FM_GetShiftState done [20:44:25]req_shift_opened done [20:44:25]requested_item shift.open_date is exist - process it [20:44:25]req_shift_open_date [20:44:25]req_shift_open_date done [20:44:25]produce_requested_data done [20:44:25]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50658,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [20:44:25]process_action_free close_receipt [20:44:25]json_value_free [20:44:25]json_value_free done [20:44:25]process_json_proto returns [20:44:25]Send response to host [20:44:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50658,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [20:44:25]free response buf [20:44:25]execute_script done [20:44:25]execute_script returns [20:44:25]free content buf [20:44:25]Sock 7.Close socket [20:44:25]Sock 7.Thread stoped [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:33]accept exits with 9 [20:48:33]New connection [20:48:33]New thread 3066789220 created [20:48:33]Thread 3066645860 joined [20:48:33]Waiting for new connection... [20:48:33] Sock 9.Parse request [20:48:33]Sock 9.Check first char [20:48:33]Sock 9.First char is OK [20:48:33]request: POST /json_proto HTTP/1.0 [20:48:33]Method: POST [20:48:33]URL: /json_proto [20:48:33]Method is POST - this is cgi request [20:48:33]url: /json_proto [20:48:33]query_string will be loaded in cgi processing [20:48:33]execute_cgi json_proto POST (null) [20:48:33]execute_cgi path=json_proto method=POST [20:48:33]POST find Content-Length [20:48:33]Host: 172.17.49.196:8080 [20:48:33]Content-Length: 655 [20:48:33]Content-Type: application/json [20:48:33] [20:48:33]POST finish read [20:48:33]Found Content-Length = 655 [20:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164542", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 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" ] } } [20:48:33]execute_script... [20:48: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)164542", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 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" ] } } [20:48:33]POST & json_proto [20:48:33]process_json_proto [20:48:33]json parsed OK: [20:48:33]protocol is kg_v1.0 [20:48:33]action value=close_receipt [20:48:33]process_action close_receipt [20:48:33]cmd_close_receipt [20:48:33]MH_GetDate [20:48:33]Write to MH i2c: F0 00 00 E8 21 F8 [20:48:33]Write i2c OK [20:48:33]MH_I2C_Read... [20:48:33]Read from MH i2c: F0 [20:48:33]MH_I2C_Read... [20:48:33]Read from MH i2c: F0 09 00 [20:48:33]MH_I2C_Read... [20:48:34]Read from MH i2c: F0 09 00 E8 21 00 25 04 1C 67 BD 3B 11 67 1D [20:48:34]GetLastDocTimeStamp 1729889066 [20:48:34]current date 1729889317 [20:48:34]FM_GetShiftState [20:48:34]SAM_PROTO_GetShiftState [20:48:34]wFMCommunicate request_size=4 [20:48:34]MH_SAM_APDU [20:48:34]CAPDU: 80 13 01 00 [20:48:34]Write to MH i2c: E2 08 00 E9 21 80 13 01 00 00 00 00 00 87 [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:34]Read from MH i2c: E2 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 0E 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 0E 00 E9 21 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 7F [20:48:34]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [20:48:34]wFMCommunicate OK [20:48:34]SAM_PROTO_GetShiftState done [20:48:34]FM_GetShiftState done [20:48:34]opened in 1729815177 [20:48:34]opened+sec_in_day 1729901577 [20:48:34]quantity*price = 6900 [20:48:34]sum+1 = 6901 [20:48:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 159 25.10.2024 20:48 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50659 ФПД: 274816943711656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T204837&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50659&fm=274816943711656&tin=02508201610067®Number=0000000000097022&sum=6900 0 [20:48:35]StoreToDocumentArchive [20:48:35]shift 493 fd 50659 [20:48:35]save to /storage/0493/doc_00050659 [20:48:35]save last doc name /storage/0493/doc_00050659 to /storage/kkm_last_doc_name [20:48:35]save OK [20:48:35]Clear old archive folders... [20:48:35]ProcessDocumentItem done err = 0, tmpTLVsize=294 [20:48:35]tlvbuf is B6EB24A0 [20:48:35]SAM_PROTO_ClearQueue [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 09 00 00 [20:48:35]Write to MH i2c: E2 08 00 F6 21 80 09 00 00 00 00 00 00 89 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [20:48:35]RAPDU: 90 00 [20:48:35]wFMCommunicate OK [20:48:35]SAM_PROTO_ClearQueue done [20:48:35]KKMCreateOFDPacket [20:48:35]OFDProtocolAddRootSTLVToBuf [20:48:35]FM_MakeSignedData [20:48:35]FM_MakeSignedData [20:48:35]SAM_PROTO_SignData [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 0D 01 02 [20:48:35]Write to MH i2c: E2 08 00 F7 21 80 0D 01 02 00 00 00 00 91 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [20:48:35]RAPDU: 90 00 [20:48:35]wFMCommunicate OK [20:48:35]wFMCommunicate request_size=255 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 9F 00 00 00 F4 03 04 00 25 04 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [20:48:35]Write to MH i2c: E2 02 01 F8 21 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 9F 00 00 00 F4 03 04 00 25 04 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 D9 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [20:48:35]RAPDU: 90 00 [20:48:35]wFMCommunicate OK [20:48:35]wFMCommunicate request_size=53 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E3 C5 00 00 35 04 06 00 F9 F1 CE 4E E5 A8 [20:48:35]Write to MH i2c: E2 38 00 F9 21 80 0D 02 02 30 00 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E3 C5 00 00 35 04 06 00 F9 F1 CE 4E E5 A8 00 00 B3 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 F9 21 00 90 00 8E [20:48:35]RAPDU: 90 00 [20:48:35]wFMCommunicate OK [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 0D 03 02 [20:48:35]Write to MH i2c: E2 08 00 FA 21 80 0D 03 02 00 00 00 00 96 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 0B 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 0B 00 FA 21 00 80 E3 12 1E 77 04 D5 C9 90 00 43 [20:48:35]RAPDU: 80 E3 12 1E 77 04 D5 C9 90 00 [20:48:35]wFMCommunicate OK [20:48:35]SAM_PROTO_SignData done [20:48:35]FM_MakeSignedData done [20:48:35]CreateOFDProtocolMessage [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 11 00 00 [20:48:35]Write to MH i2c: E2 08 00 FB 21 80 11 00 00 00 00 00 00 96 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 17 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 17 00 FB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DD [20:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:48:35]wFMCommunicate OK [20:48:35]CreateOFDProtocolMessage done [20:48:35]OFDSenderStorePacket 50659 [20:48:35]StoreOFDPacket docnum=50659 [20:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 5A 78 32 01 19 D3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 9F 00 00 00 F4 03 04 00 25 04 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E3 C5 00 00 35 04 06 00 F9 F1 CE 4E E5 A8 80 E3 12 1E 77 04 D5 C9 [20:48:35]CheckFolder [20:48:35]dirname=/storage/ofd_packets [20:48:35]CheckFolder done [20:48:35]ProducePacketName [20:48:35]name=ofd_packets/00050659 [20:48:35]NVStorageSaveData ofd_packets/00050659 [20:48:35]File name is /storage/ofd_packets/00050659 [20:48:35]Write 344 bytes [20:48:35]NVStorageSaveData done [20:48:35]OFDSenderStorePacket done [20:48:35]KKMCreateOFDPacket done [20:48:35]NVStorageSaveData kkm_last_timestamp [20:48:35]File name is /storage/kkm_last_timestamp [20:48:35]Write 4 bytes [20:48:35]NVStorageSaveData done [20:48:35]ExternCall_PrintAddStr [20:48:35]wPrintStart [20:48:35]Write to MH i2c: 01 00 00 FC 21 1D [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: 01 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: 01 07 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: 01 07 00 FC 21 00 00 00 00 00 FF 0F 32 [20:48:35]RasterBufferAndPrint [20:48:35]line Счет N : (3)164542 [20:48:35]line ИНН: 02508201610067 [20:48:35]line Контрольно-Кассовый Чек [20:48:35]line ПРОДАЖА [20:48:35]line Товар: 4600682557456 [20:48:35]line Напиток FLash up energy эн ж/б 0,5/0,45л [20:48:35]line 1.000 * 69.00 [20:48:35]line = 69.00 [20:48:35]line НДС 12% НСП 1% [20:48:35]line > о реализуемом товаре [20:48:35]line ИТОГО: 69.00 [20:48:35]line НСП 1% : 0.61 [20:48:35]line НДС 12% : 7.33 [20:48:35]line Наличными: 69.00 [20:48:35]line Безнал.: 0.00 [20:48:35]line Место: АЗС № 80 "Партнер Нефть" [20:48:35]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [20:48:35]line СНО: Общий режим [20:48:35]line Чек 159 25.10.2024 20:48 [20:48:35]line Смена: 493 ФФД: 1.0 [20:48:35]line ЗНМ: 0300000090 [20:48:35]line РНМ: 0000000000097022 [20:48:35]line Версия ККМ: 001 [20:48:35]line ФМ: 0000000000875000 [20:48:35]line ФД: 50659 [20:48:35]line ФПД: 274816943711656 [20:48:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T204837&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50659&fm=274816943711656&tin=02508201610067®Number=0000000000097022&sum=6900 [20:48:36]line 0 [20:48:36]OFD Sender: Processing packet 50659 [packets to send 7, broken 6] [20:48:36]ProducePacketName [20:48:36]name=ofd_packets/00050659 [20:48:36]OFD Sender: To server: pG, [20:48:36]CommunicateWithHost lk.salyk.kg:30040 [20:48:36]ConnectInit lk.salyk.kg [20:48:36]written 0, free lines is 4095 [20:48:36]Connected sock=10 [20:48:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3A 01 00 00 5A 78 32 01 19 D3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 9F 00 00 00 F4 03 04 00 25 04 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E3 C5 00 00 35 04 06 00 F9 F1 CE 4E E5 A8 80 E3 12 1E 77 04 D5 C9 [20:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 69 FA 47 00 5B 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E3 C5 00 00 F4 03 04 00 B5 AF 1B 67 B6 04 01 00 00 48 69 EA FA D0 EA F7 32 [20:48:36]CommunicateWithHost err = 0 [20:48:36]CheckOFDResponse [20:48:36]1017 (14) - 77093643461234 [20:48:36]1041 (16) - 0000000000875000 [20:48:36]1040 (4) - 50659 [20:48:36]1012 (4) - 25.10.2024 14:48 [20:48:36]1206 (1) - 0 [20:48:36]OFD Sender: Remove packet 50659 [20:48:36]ProducePacketName [20:48:36]name=ofd_packets/00050659 [20:48:36]NVStorageDeleteData [20:48:36]Write to MH i2c: 01 00 00 25 22 47 [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: 01 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: 01 07 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: 01 07 00 25 22 00 00 00 00 00 07 0D 62 [20:48:36]RasterBufferAndPrint [20:48:36]line [20:48:36]line [20:48:36]line [20:48:36]line [20:48:36]line [20:48:36]written 0, free lines is 3341 [20:48:36]process_action close_receipt done [20:48:36]requested_data is exist [20:48:36]produce_requested_data [20:48:36]requested_item fm.sn is exist - process it [20:48:36]wFMCommunicate request_size=4 [20:48:36]MH_SAM_APDU [20:48:36]CAPDU: 80 11 00 00 [20:48:36]Write to MH i2c: E2 08 00 2C 22 80 11 00 00 00 00 00 00 C8 [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:36]Read from MH i2c: E2 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 17 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 17 00 2C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 0F [20:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:48:36]wFMCommunicate OK [20:48:36]requested_item fd.num is exist - process it [20:48:36]SAM_PROTO_GetFieldsCounters [20:48:36]wFMCommunicate request_size=4 [20:48:36]MH_SAM_APDU [20:48:36]CAPDU: 80 13 00 00 [20:48:36]Write to MH i2c: E2 08 00 2D 22 80 13 00 00 00 00 00 00 CB [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:36]Read from MH i2c: E2 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 62 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 62 00 2D 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [20:48:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E3 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:36]wFMCommunicate OK [20:48:36]SAM_PROTO_GetFieldsCounters done [20:48:36]requested_item shift.num is exist - process it [20:48:36]requested_item shift.opened is exist - process it [20:48:36]req_shift_opened [20:48:36]FM_GetShiftState [20:48:36]SAM_PROTO_GetShiftState [20:48:36]wFMCommunicate request_size=4 [20:48:36]MH_SAM_APDU [20:48:36]CAPDU: 80 13 01 00 [20:48:36]Write to MH i2c: E2 08 00 2E 22 80 13 01 00 00 00 00 00 CD [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:36]Read from MH i2c: E2 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 0E 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 0E 00 2E 22 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 C5 [20:48:36]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [20:48:36]wFMCommunicate OK [20:48:36]SAM_PROTO_GetShiftState done [20:48:36]FM_GetShiftState done [20:48:36]req_shift_opened done [20:48:36]requested_item shift.open_date is exist - process it [20:48:36]req_shift_open_date [20:48:36]req_shift_open_date done [20:48:36]produce_requested_data done [20:48:36]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50659,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [20:48:36]process_action_free close_receipt [20:48:36]json_value_free [20:48:36]json_value_free done [20:48:36]process_json_proto returns [20:48:36]Send response to host [20:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50659,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [20:48:36]free response buf [20:48:36]execute_script done [20:48:36]execute_script returns [20:48:36]free content buf [20:48:36]Sock 9.Close socket [20:48:36]Sock 9.Thread stoped [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:54]accept exits with 7 [20:48:54]New connection [20:48:54]New thread 3066645860 created [20:48:54]Thread 3066789220 joined [20:48:54]Waiting for new connection... [20:48:54] Sock 7.Parse request [20:48:54]Sock 7.Check first char [20:48:54]Sock 7.First char is OK [20:48:54]request: POST /json_proto HTTP/1.0 [20:48:54]Method: POST [20:48:54]URL: /json_proto [20:48:54]Method is POST - this is cgi request [20:48:54]url: /json_proto [20:48:54]query_string will be loaded in cgi processing [20:48:54]execute_cgi json_proto POST (null) [20:48:54]execute_cgi path=json_proto method=POST [20:48:54]POST find Content-Length [20:48:54]Host: 172.17.49.196:8080 [20:48:54]Content-Length: 825 [20:48:54]Content-Type: application/json [20:48:54] [20:48:54]POST finish read [20:48:54]Found Content-Length = 825 [20:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164543", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:54]execute_script... [20:48: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)164543", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:54]POST & json_proto [20:48:54]process_json_proto [20:48:54]json parsed OK: [20:48:54]protocol is kg_v1.0 [20:48:54]action value=close_receipt [20:48:54]process_action close_receipt [20:48:54]cmd_close_receipt [20:48:54]MH_GetDate [20:48:54]Write to MH i2c: F0 00 00 2F 22 40 [20:48:54]Write i2c OK [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: F0 [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: F0 09 00 [20:48:54]MH_I2C_Read... [20:48:54]Read from MH i2c: F0 09 00 2F 22 00 3A 04 1C 67 BD 3B 11 67 7A [20:48:54]GetLastDocTimeStamp 1729889317 [20:48:54]current date 1729889338 [20:48:55]FM_GetShiftState [20:48:55]SAM_PROTO_GetShiftState [20:48:55]wFMCommunicate request_size=4 [20:48:55]MH_SAM_APDU [20:48:55]CAPDU: 80 13 01 00 [20:48:55]Write to MH i2c: E2 08 00 30 22 80 13 01 00 00 00 00 00 CF [20:48:55]Write i2c OK [20:48:55]MH_I2C_Read... [20:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:55]Read from MH i2c: E2 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 0E 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 0E 00 30 22 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 C7 [20:48:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [20:48:55]wFMCommunicate OK [20:48:55]SAM_PROTO_GetShiftState done [20:48:55]FM_GetShiftState done [20:48:55]opened in 1729815177 [20:48:55]opened+sec_in_day 1729901577 [20:48:55]quantity*price = 10000 [20:48:55]sum+1 = 10001 [20:48:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 0.00 Безнал.: 100.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 160 25.10.2024 20:48 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50660 ФПД: 204732862523180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T204858&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50660&fm=204732862523180&tin=02508201610067®Number=0000000000097022&sum=10000 0 [20:48:56]StoreToDocumentArchive [20:48:56]shift 493 fd 50660 [20:48:56]save to /storage/0493/doc_00050660 [20:48:56]save last doc name /storage/0493/doc_00050660 to /storage/kkm_last_doc_name [20:48:56]save OK [20:48:56]Clear old archive folders... [20:48:56]ProcessDocumentItem done err = 0, tmpTLVsize=298 [20:48:56]tlvbuf is 01F32850 [20:48:56]SAM_PROTO_ClearQueue [20:48:56]wFMCommunicate request_size=4 [20:48:56]MH_SAM_APDU [20:48:56]CAPDU: 80 09 00 00 [20:48:56]Write to MH i2c: E2 08 00 3D 22 80 09 00 00 00 00 00 00 D1 [20:48:56]Write i2c OK [20:48:56]MH_I2C_Read... [20:48:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:56]Read from MH i2c: E2 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 03 00 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 03 00 3D 22 00 90 00 D3 [20:48:56]RAPDU: 90 00 [20:48:56]wFMCommunicate OK [20:48:56]SAM_PROTO_ClearQueue done [20:48:56]KKMCreateOFDPacket [20:48:56]OFDProtocolAddRootSTLVToBuf [20:48:56]FM_MakeSignedData [20:48:56]FM_MakeSignedData [20:48:56]SAM_PROTO_SignData [20:48:56]wFMCommunicate request_size=4 [20:48:56]MH_SAM_APDU [20:48:56]CAPDU: 80 0D 01 02 [20:48:56]Write to MH i2c: E2 08 00 3E 22 80 0D 01 02 00 00 00 00 D9 [20:48:56]Write i2c OK [20:48:56]MH_I2C_Read... [20:48:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:56]Read from MH i2c: E2 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 03 00 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 03 00 3E 22 00 90 00 D4 [20:48:56]RAPDU: 90 00 [20:48:56]wFMCommunicate OK [20:48:56]wFMCommunicate request_size=255 [20:48:56]MH_SAM_APDU [20:48:56]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3A 04 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [20:48:56]Write to MH i2c: E2 02 01 3F 22 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3A 04 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 91 [20:48:56]Write i2c OK [20:48:56]MH_I2C_Read... [20:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:56]Read from MH i2c: E2 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 03 00 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 03 00 3F 22 00 90 00 D5 [20:48:56]RAPDU: 90 00 [20:48:56]wFMCommunicate OK [20:48:56]wFMCommunicate request_size=57 [20:48:56]MH_SAM_APDU [20:48:56]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E4 C5 00 00 35 04 06 00 BA 34 15 8B 67 2C [20:48:56]Write to MH i2c: E2 3C 00 40 22 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E4 C5 00 00 35 04 06 00 BA 34 15 8B 67 2C 00 00 52 [20:48:56]Write i2c OK [20:48:56]MH_I2C_Read... [20:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:56]Read from MH i2c: E2 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 03 00 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [20:48:56]RAPDU: 90 00 [20:48:56]wFMCommunicate OK [20:48:56]wFMCommunicate request_size=4 [20:48:56]MH_SAM_APDU [20:48:56]CAPDU: 80 0D 03 02 [20:48:56]Write to MH i2c: E2 08 00 41 22 80 0D 03 02 00 00 00 00 DE [20:48:56]Write i2c OK [20:48:56]MH_I2C_Read... [20:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:56]Read from MH i2c: E2 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 0B 00 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 0B 00 41 22 00 C3 A4 2B 2A CC 5D A9 CA 90 00 37 [20:48:56]RAPDU: C3 A4 2B 2A CC 5D A9 CA 90 00 [20:48:56]wFMCommunicate OK [20:48:56]SAM_PROTO_SignData done [20:48:56]FM_MakeSignedData done [20:48:56]CreateOFDProtocolMessage [20:48:56]wFMCommunicate request_size=4 [20:48:56]MH_SAM_APDU [20:48:56]CAPDU: 80 11 00 00 [20:48:56]Write to MH i2c: E2 08 00 42 22 80 11 00 00 00 00 00 00 DE [20:48:56]Write i2c OK [20:48:56]MH_I2C_Read... [20:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:56]Read from MH i2c: E2 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 17 00 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: E2 17 00 42 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 25 [20:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:48:56]wFMCommunicate OK [20:48:56]CreateOFDProtocolMessage done [20:48:56]OFDSenderStorePacket 50660 [20:48:56]StoreOFDPacket docnum=50660 [20:48:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 C1 AF 36 01 FE 16 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3A 04 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E4 C5 00 00 35 04 06 00 BA 34 15 8B 67 2C C3 A4 2B 2A CC 5D A9 CA [20:48:56]CheckFolder [20:48:56]dirname=/storage/ofd_packets [20:48:56]CheckFolder done [20:48:56]ProducePacketName [20:48:56]name=ofd_packets/00050660 [20:48:56]NVStorageSaveData ofd_packets/00050660 [20:48:56]File name is /storage/ofd_packets/00050660 [20:48:56]Write 348 bytes [20:48:56]NVStorageSaveData done [20:48:56]OFDSenderStorePacket done [20:48:56]KKMCreateOFDPacket done [20:48:56]NVStorageSaveData kkm_last_timestamp [20:48:56]File name is /storage/kkm_last_timestamp [20:48:56]Write 4 bytes [20:48:56]NVStorageSaveData done [20:48:56]ExternCall_PrintAddStr [20:48:56]wPrintStart [20:48:56]Write to MH i2c: 01 00 00 43 22 65 [20:48:56]Write i2c OK [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: 01 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: 01 07 00 [20:48:56]MH_I2C_Read... [20:48:56]Read from MH i2c: 01 07 00 43 22 00 00 00 00 00 FF 0F 7A [20:48:56]RasterBufferAndPrint [20:48:56]line Счет N : (3)164543 [20:48:56]line ИНН: 02508201610067 [20:48:56]line Контрольно-Кассовый Чек [20:48:56]line ПРОДАЖА [20:48:56]line Товар: 4870001571528 [20:48:56]line Вода ASU пит н.газ персик ПЭТ 1,0 л [20:48:56]line 1.000 * 100.00 [20:48:56]line = 100.00 [20:48:56]line НДС 12% НСП 1% [20:48:56]line > о реализуемом товаре [20:48:56]line ИТОГО: 100.00 [20:48:56]line НСП 1% : 0.88 [20:48:56]line НДС 12% : 10.62 [20:48:56]line Наличными: 0.00 [20:48:56]line Безнал.: 100.00 [20:48:56]line Место: АЗС № 80 "Партнер Нефть" [20:48:56]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [20:48:56]line СНО: Общий режим [20:48:56]line Чек 160 25.10.2024 20:48 [20:48:56]line Смена: 493 ФФД: 1.0 [20:48:56]line ЗНМ: 0300000090 [20:48:56]line РНМ: 0000000000097022 [20:48:56]line Версия ККМ: 001 [20:48:56]line Платежная система: Mbank [20:48:56]line ФМ: 0000000000875000 [20:48:56]line ФД: 50660 [20:48:56]line ФПД: 204732862523180 [20:48:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T204858&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50660&fm=204732862523180&tin=02508201610067®Number=0000000000097022&sum=10000 [20:48:57]line 0 [20:48:57]OFD Sender: Processing packet 50660 [packets to send 7, broken 6] [20:48:57]ProducePacketName [20:48:57]name=ofd_packets/00050660 [20:48:57]OFD Sender: To server: pG, [20:48:57]CommunicateWithHost lk.salyk.kg:30040 [20:48:57]ConnectInit lk.salyk.kg [20:48:57]written 0, free lines is 4095 [20:48:57]Connected sock=10 [20:48:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 3E 01 00 00 C1 AF 36 01 FE 16 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 3A 04 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E4 C5 00 00 35 04 06 00 BA 34 15 8B 67 2C C3 A4 2B 2A CC 5D A9 CA [20:48:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 EE 3A 47 00 8C 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E4 C5 00 00 F4 03 04 00 CA AF 1B 67 B6 04 01 00 00 EA 0E 7F 3D 91 26 8E 50 [20:48:57]CommunicateWithHost err = 0 [20:48:57]CheckOFDResponse [20:48:57]1017 (14) - 77093643461234 [20:48:57]1041 (16) - 0000000000875000 [20:48:57]1040 (4) - 50660 [20:48:57]1012 (4) - 25.10.2024 14:48 [20:48:57]1206 (1) - 0 [20:48:57]OFD Sender: Remove packet 50660 [20:48:57]ProducePacketName [20:48:57]name=ofd_packets/00050660 [20:48:57]NVStorageDeleteData [20:48:57]Write to MH i2c: 01 00 00 6D 22 8F [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: 01 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: 01 07 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 05 0D A8 [20:48:57]RasterBufferAndPrint [20:48:57]line [20:48:57]line [20:48:57]line [20:48:57]line [20:48:57]line [20:48:57]written 0, free lines is 3340 [20:48:57]process_action close_receipt done [20:48:57]requested_data is exist [20:48:57]produce_requested_data [20:48:57]requested_item fm.sn is exist - process it [20:48:57]wFMCommunicate request_size=4 [20:48:57]MH_SAM_APDU [20:48:57]CAPDU: 80 11 00 00 [20:48:57]Write to MH i2c: E2 08 00 74 22 80 11 00 00 00 00 00 00 10 [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:57]Read from MH i2c: E2 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 17 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 17 00 74 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 57 [20:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [20:48:57]wFMCommunicate OK [20:48:57]requested_item fd.num is exist - process it [20:48:57]SAM_PROTO_GetFieldsCounters [20:48:57]wFMCommunicate request_size=4 [20:48:57]MH_SAM_APDU [20:48:57]CAPDU: 80 13 00 00 [20:48:57]Write to MH i2c: E2 08 00 75 22 80 13 00 00 00 00 00 00 13 [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:57]Read from MH i2c: E2 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 62 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 62 00 75 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [20:48:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E4 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:57]wFMCommunicate OK [20:48:57]SAM_PROTO_GetFieldsCounters done [20:48:57]requested_item shift.num is exist - process it [20:48:57]requested_item shift.opened is exist - process it [20:48:57]req_shift_opened [20:48:57]FM_GetShiftState [20:48:57]SAM_PROTO_GetShiftState [20:48:57]wFMCommunicate request_size=4 [20:48:57]MH_SAM_APDU [20:48:57]CAPDU: 80 13 01 00 [20:48:57]Write to MH i2c: E2 08 00 76 22 80 13 01 00 00 00 00 00 15 [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:57]Read from MH i2c: E2 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 0E 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 0E 00 76 22 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 0D [20:48:57]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [20:48:57]wFMCommunicate OK [20:48:57]SAM_PROTO_GetShiftState done [20:48:57]FM_GetShiftState done [20:48:57]req_shift_opened done [20:48:57]requested_item shift.open_date is exist - process it [20:48:57]req_shift_open_date [20:48:57]req_shift_open_date done [20:48:57]produce_requested_data done [20:48:57]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50660,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [20:48:57]process_action_free close_receipt [20:48:57]json_value_free [20:48:57]json_value_free done [20:48:57]process_json_proto returns [20:48:57]Send response to host [20:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50660,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [20:48:57]free response buf [20:48:57]execute_script done [20:48:57]execute_script returns [20:48:57]free content buf [20:48:57]Sock 7.Close socket [20:48:57]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]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:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:01]accept exits with 9 [21:56:01]New connection [21:56:01]New thread 3066789220 created [21:56:01]Thread 3066645860 joined [21:56:01]Waiting for new connection... [21:56:01] Sock 9.Parse request [21:56:01]Sock 9.Check first char [21:56:01]Sock 9.First char is OK [21:56:01]request: POST /json_proto HTTP/1.0 [21:56:01]Method: POST [21:56:01]URL: /json_proto [21:56:01]Method is POST - this is cgi request [21:56:01]url: /json_proto [21:56:01]query_string will be loaded in cgi processing [21:56:01]execute_cgi json_proto POST (null) [21:56:01]execute_cgi path=json_proto method=POST [21:56:01]POST find Content-Length [21:56:01]Host: 172.17.49.196:8080 [21:56:01]Content-Length: 568 [21:56:01]Content-Type: application/json [21:56:01] [21:56:01]POST finish read [21:56:01]Found Content-Length = 568 [21:56:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164544", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:01]execute_script... [21:56:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164544", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:01]POST & json_proto [21:56:01]process_json_proto [21:56:01]json parsed OK: [21:56:01]protocol is kg_v1.0 [21:56:01]action value=close_receipt [21:56:01]process_action close_receipt [21:56:01]cmd_close_receipt [21:56:01]MH_GetDate [21:56:01]Write to MH i2c: F0 00 00 77 22 88 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: F0 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: F0 09 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: F0 09 00 77 22 00 F5 13 1C 67 BD 3B 11 67 8C [21:56:01]GetLastDocTimeStamp 1729889338 [21:56:01]current date 1729893365 [21:56:01]FM_GetShiftState [21:56:01]SAM_PROTO_GetShiftState [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 13 01 00 [21:56:01]Write to MH i2c: E2 08 00 78 22 80 13 01 00 00 00 00 00 17 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0E 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0E 00 78 22 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 0F [21:56:01]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [21:56:01]wFMCommunicate OK [21:56:01]SAM_PROTO_GetShiftState done [21:56:01]FM_GetShiftState done [21:56:01]opened in 1729815177 [21:56:01]opened+sec_in_day 1729901577 [21:56:01]quantity*price = 13400 [21:56:01]sum+1 = 13401 [21:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 161 25.10.2024 21:56 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50661 ФПД: 185237300500088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215605&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50661&fm=185237300500088&tin=02508201610067®Number=0000000000097022&sum=13400 0 [21:56:03]StoreToDocumentArchive [21:56:03]shift 493 fd 50661 [21:56:03]save to /storage/0493/doc_00050661 [21:56:03]save last doc name /storage/0493/doc_00050661 to /storage/kkm_last_doc_name [21:56:03]save OK [21:56:03]Clear old archive folders... [21:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:56:03]tlvbuf is 01F32AC0 [21:56:03]SAM_PROTO_ClearQueue [21:56:03]wFMCommunicate request_size=4 [21:56:03]MH_SAM_APDU [21:56:03]CAPDU: 80 09 00 00 [21:56:03]Write to MH i2c: E2 08 00 85 22 80 09 00 00 00 00 00 00 19 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:03]Read from MH i2c: E2 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 03 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 03 00 85 22 00 90 00 1B [21:56:03]RAPDU: 90 00 [21:56:03]wFMCommunicate OK [21:56:03]SAM_PROTO_ClearQueue done [21:56:03]KKMCreateOFDPacket [21:56:03]OFDProtocolAddRootSTLVToBuf [21:56:03]FM_MakeSignedData [21:56:03]FM_MakeSignedData [21:56:03]SAM_PROTO_SignData [21:56:03]wFMCommunicate request_size=4 [21:56:03]MH_SAM_APDU [21:56:03]CAPDU: 80 0D 01 02 [21:56:03]Write to MH i2c: E2 08 00 86 22 80 0D 01 02 00 00 00 00 21 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:03]Read from MH i2c: E2 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 03 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 03 00 86 22 00 90 00 1C [21:56:03]RAPDU: 90 00 [21:56:03]wFMCommunicate OK [21:56:03]wFMCommunicate request_size=255 [21:56:03]MH_SAM_APDU [21:56:03]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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 A1 00 00 00 F4 03 04 00 F5 13 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E5 C5 00 00 35 04 06 00 [21:56:03]Write to MH i2c: E2 02 01 87 22 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 A1 00 00 00 F4 03 04 00 F5 13 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E5 C5 00 00 35 04 06 00 00 00 64 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:03]Read from MH i2c: E2 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 03 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 03 00 87 22 00 90 00 1D [21:56:03]RAPDU: 90 00 [21:56:03]wFMCommunicate OK [21:56:03]wFMCommunicate request_size=11 [21:56:03]MH_SAM_APDU [21:56:03]CAPDU: 80 0D 02 02 06 A8 78 EB 7E D6 78 [21:56:03]Write to MH i2c: E2 0E 00 88 22 80 0D 02 02 06 00 A8 78 EB 7E D6 78 00 00 07 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:03]Read from MH i2c: E2 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 03 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 03 00 88 22 00 90 00 1E [21:56:03]RAPDU: 90 00 [21:56:03]wFMCommunicate OK [21:56:03]wFMCommunicate request_size=4 [21:56:03]MH_SAM_APDU [21:56:03]CAPDU: 80 0D 03 02 [21:56:03]Write to MH i2c: E2 08 00 89 22 80 0D 03 02 00 00 00 00 26 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:03]Read from MH i2c: E2 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 0B 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 0B 00 89 22 00 7A E8 38 18 8C 76 B6 21 90 00 B2 [21:56:03]RAPDU: 7A E8 38 18 8C 76 B6 21 90 00 [21:56:03]wFMCommunicate OK [21:56:03]SAM_PROTO_SignData done [21:56:03]FM_MakeSignedData done [21:56:03]CreateOFDProtocolMessage [21:56:03]wFMCommunicate request_size=4 [21:56:03]MH_SAM_APDU [21:56:03]CAPDU: 80 11 00 00 [21:56:03]Write to MH i2c: E2 08 00 8A 22 80 11 00 00 00 00 00 00 26 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:03]Read from MH i2c: E2 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 17 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: E2 17 00 8A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6D [21:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:56:03]wFMCommunicate OK [21:56:03]CreateOFDProtocolMessage done [21:56:03]OFDSenderStorePacket 50661 [21:56:03]StoreOFDPacket docnum=50661 [21:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 01 00 00 88 75 08 01 BF 12 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 A1 00 00 00 F4 03 04 00 F5 13 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E5 C5 00 00 35 04 06 00 A8 78 EB 7E D6 78 7A E8 38 18 8C 76 B6 21 [21:56:03]CheckFolder [21:56:03]dirname=/storage/ofd_packets [21:56:03]CheckFolder done [21:56:03]ProducePacketName [21:56:03]name=ofd_packets/00050661 [21:56:03]NVStorageSaveData ofd_packets/00050661 [21:56:03]File name is /storage/ofd_packets/00050661 [21:56:03]Write 302 bytes [21:56:03]NVStorageSaveData done [21:56:03]OFDSenderStorePacket done [21:56:03]KKMCreateOFDPacket done [21:56:03]NVStorageSaveData kkm_last_timestamp [21:56:03]File name is /storage/kkm_last_timestamp [21:56:03]Write 4 bytes [21:56:03]NVStorageSaveData done [21:56:03]ExternCall_PrintAddStr [21:56:03]wPrintStart [21:56:03]Write to MH i2c: 01 00 00 8B 22 AD [21:56:03]OFD Sender: Processing packet 50661 [packets to send 7, broken 6] [21:56:03]ProducePacketName [21:56:03]name=ofd_packets/00050661 [21:56:03]OFD Sender: To server: pG, [21:56:03]CommunicateWithHost lk.salyk.kg:30040 [21:56:03]ConnectInit lk.salyk.kg [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: 01 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: 01 07 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: 01 07 00 8B 22 00 00 00 00 00 FF 0F C2 [21:56:03]RasterBufferAndPrint [21:56:03]line Счет N : (3)164544 [21:56:03]line ИНН: 02508201610067 [21:56:03]line Контрольно-Кассовый Чек [21:56:03]line ПРОДАЖА [21:56:03]line Товар: 48744539 [21:56:03]line LD Compact Blue [21:56:03]line 1.000 * 134.00 [21:56:03]line = 134.00 [21:56:03]line НДС 12% НСП 1% [21:56:03]line > о реализуемом товаре [21:56:03]line ИТОГО: 134.00 [21:56:03]line НСП 1% : 1.19 [21:56:03]line НДС 12% : 14.23 [21:56:03]line Наличными: 134.00 [21:56:03]line Безнал.: 0.00 [21:56:03]line Место: АЗС № 80 "Партнер Нефть" [21:56:03]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [21:56:03]line СНО: Общий режим [21:56:03]line Чек 161 25.10.2024 21:56 [21:56:03]line Смена: 493 ФФД: 1.0 [21:56:03]line ЗНМ: 0300000090 [21:56:03]line РНМ: 0000000000097022 [21:56:03]line Версия ККМ: 001 [21:56:03]line ФМ: 0000000000875000 [21:56:03]line ФД: 50661 [21:56:03]line ФПД: 185237300500088 [21:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T215605&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50661&fm=185237300500088&tin=02508201610067®Number=0000000000097022&sum=13400 [21:56:03]line 0 [21:56:03]written 0, free lines is 4095 [21:56:03]Connected sock=10 [21:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 01 00 00 88 75 08 01 BF 12 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 A1 00 00 00 F4 03 04 00 F5 13 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E5 C5 00 00 35 04 06 00 A8 78 EB 7E D6 78 7A E8 38 18 8C 76 B6 21 [21:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 96 8E 47 00 9D EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E5 C5 00 00 F4 03 04 00 85 BF 1B 67 B6 04 01 00 00 61 EF 73 08 43 C2 8A 4C [21:56:04]CommunicateWithHost err = 0 [21:56:04]CheckOFDResponse [21:56:04]1017 (14) - 77093643461234 [21:56:04]1041 (16) - 0000000000875000 [21:56:04]1040 (4) - 50661 [21:56:04]1012 (4) - 25.10.2024 15:55 [21:56:04]1206 (1) - 0 [21:56:04]OFD Sender: Remove packet 50661 [21:56:04]ProducePacketName [21:56:04]name=ofd_packets/00050661 [21:56:04]NVStorageDeleteData [21:56:04]Write to MH i2c: 01 00 00 B3 22 D5 [21:56:04]Write i2c OK [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: 01 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: 01 07 00 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: 01 07 00 B3 22 00 00 00 00 00 0D 0D F6 [21:56:04]RasterBufferAndPrint [21:56:04]line [21:56:04]line [21:56:04]line [21:56:04]line [21:56:04]line [21:56:04]written 0, free lines is 3347 [21:56:04]process_action close_receipt done [21:56:04]requested_data is exist [21:56:04]produce_requested_data [21:56:04]requested_item fm.sn is exist - process it [21:56:04]wFMCommunicate request_size=4 [21:56:04]MH_SAM_APDU [21:56:04]CAPDU: 80 11 00 00 [21:56:04]Write to MH i2c: E2 08 00 BA 22 80 11 00 00 00 00 00 00 56 [21:56:04]Write i2c OK [21:56:04]MH_I2C_Read... [21:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:04]Read from MH i2c: E2 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 17 00 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 17 00 BA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 9D [21:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [21:56:04]wFMCommunicate OK [21:56:04]requested_item fd.num is exist - process it [21:56:04]SAM_PROTO_GetFieldsCounters [21:56:04]wFMCommunicate request_size=4 [21:56:04]MH_SAM_APDU [21:56:04]CAPDU: 80 13 00 00 [21:56:04]Write to MH i2c: E2 08 00 BB 22 80 13 00 00 00 00 00 00 59 [21:56:04]Write i2c OK [21:56:04]MH_I2C_Read... [21:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:04]Read from MH i2c: E2 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 62 00 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 62 00 BB 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [21:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E5 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:04]wFMCommunicate OK [21:56:04]SAM_PROTO_GetFieldsCounters done [21:56:04]requested_item shift.num is exist - process it [21:56:04]requested_item shift.opened is exist - process it [21:56:04]req_shift_opened [21:56:04]FM_GetShiftState [21:56:04]SAM_PROTO_GetShiftState [21:56:04]wFMCommunicate request_size=4 [21:56:04]MH_SAM_APDU [21:56:04]CAPDU: 80 13 01 00 [21:56:04]Write to MH i2c: E2 08 00 BC 22 80 13 01 00 00 00 00 00 5B [21:56:04]Write i2c OK [21:56:04]MH_I2C_Read... [21:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:04]Read from MH i2c: E2 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 0E 00 [21:56:04]MH_I2C_Read... [21:56:04]Read from MH i2c: E2 0E 00 BC 22 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 53 [21:56:04]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [21:56:04]wFMCommunicate OK [21:56:04]SAM_PROTO_GetShiftState done [21:56:04]FM_GetShiftState done [21:56:04]req_shift_opened done [21:56:04]requested_item shift.open_date is exist - process it [21:56:04]req_shift_open_date [21:56:04]req_shift_open_date done [21:56:04]produce_requested_data done [21:56:04]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50661,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [21:56:04]process_action_free close_receipt [21:56:04]json_value_free [21:56:04]json_value_free done [21:56:04]process_json_proto returns [21:56:04]Send response to host [21:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50661,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [21:56:04]free response buf [21:56:04]execute_script done [21:56:04]execute_script returns [21:56:04]free content buf [21:56:04]Sock 9.Close socket [21:56:04]Sock 9.Thread stoped [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]accept exits with 7 [22:02:44]New connection [22:02:44]New thread 3066645860 created [22:02:44]Thread 3066789220 joined [22:02:44]Waiting for new connection... [22:02:44] Sock 7.Parse request [22:02:44]Sock 7.Check first char [22:02:44]Sock 7.First char is OK [22:02:44]request: POST /json_proto HTTP/1.0 [22:02:44]Method: POST [22:02:44]URL: /json_proto [22:02:44]Method is POST - this is cgi request [22:02:44]url: /json_proto [22:02:44]query_string will be loaded in cgi processing [22:02:44]execute_cgi json_proto POST (null) [22:02:44]execute_cgi path=json_proto method=POST [22:02:44]POST find Content-Length [22:02:44]Host: 172.17.49.196:8080 [22:02:44]Content-Length: 891 [22:02:44]Content-Type: application/json [22:02:44] [22:02:44]POST finish read [22:02:44]Found Content-Length = 891 [22:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164545", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:44]execute_script... [22:02: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)164545", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:44]POST & json_proto [22:02:44]process_json_proto [22:02:44]json parsed OK: [22:02:44]protocol is kg_v1.0 [22:02:44]action value=close_receipt [22:02:44]process_action close_receipt [22:02:44]cmd_close_receipt [22:02:44]MH_GetDate [22:02:44]Write to MH i2c: F0 00 00 BD 22 CE [22:02:44]Write i2c OK [22:02:44]MH_I2C_Read... [22:02:44]Read from MH i2c: F0 [22:02:44]MH_I2C_Read... [22:02:44]Read from MH i2c: F0 09 00 [22:02:44]MH_I2C_Read... [22:02:44]Read from MH i2c: F0 09 00 BD 22 00 87 15 1C 67 BD 3B 11 67 66 [22:02:44]GetLastDocTimeStamp 1729893365 [22:02:44]current date 1729893767 [22:02:44]FM_GetShiftState [22:02:44]SAM_PROTO_GetShiftState [22:02:44]wFMCommunicate request_size=4 [22:02:44]MH_SAM_APDU [22:02:44]CAPDU: 80 13 01 00 [22:02:44]Write to MH i2c: E2 08 00 BE 22 80 13 01 00 00 00 00 00 5D [22:02:44]Write i2c OK [22:02:44]MH_I2C_Read... [22:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:44]Read from MH i2c: E2 [22:02:44]MH_I2C_Read... [22:02:44]Read from MH i2c: E2 0E 00 [22:02:44]MH_I2C_Read... [22:02:44]Read from MH i2c: E2 0E 00 BE 22 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 55 [22:02:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [22:02:44]wFMCommunicate OK [22:02:44]SAM_PROTO_GetShiftState done [22:02:44]FM_GetShiftState done [22:02:44]opened in 1729815177 [22:02:44]opened+sec_in_day 1729901577 [22:02:44]quantity*price = 7500 [22:02:44]sum+1 = 7501 [22:02:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 229.00 НСП 1% : 2.02 НДС 12% : 24.31 Наличными: 229.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 162 25.10.2024 22:02 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50662 ФПД: 118331184282778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T220247&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50662&fm=118331184282778&tin=02508201610067®Number=0000000000097022&sum=22900 0 [22:02:45]StoreToDocumentArchive [22:02:45]shift 493 fd 50662 [22:02:45]save to /storage/0493/doc_00050662 [22:02:45]save last doc name /storage/0493/doc_00050662 to /storage/kkm_last_doc_name [22:02:45]save OK [22:02:45]Clear old archive folders... [22:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=379 [22:02:45]tlvbuf is 01E84640 [22:02:45]SAM_PROTO_ClearQueue [22:02:45]wFMCommunicate request_size=4 [22:02:45]MH_SAM_APDU [22:02:45]CAPDU: 80 09 00 00 [22:02:45]Write to MH i2c: E2 08 00 CB 22 80 09 00 00 00 00 00 00 5F [22:02:45]Write i2c OK [22:02:45]MH_I2C_Read... [22:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:45]Read from MH i2c: E2 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 03 00 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 03 00 CB 22 00 90 00 61 [22:02:45]RAPDU: 90 00 [22:02:45]wFMCommunicate OK [22:02:45]SAM_PROTO_ClearQueue done [22:02:45]KKMCreateOFDPacket [22:02:45]OFDProtocolAddRootSTLVToBuf [22:02:45]FM_MakeSignedData [22:02:45]FM_MakeSignedData [22:02:45]SAM_PROTO_SignData [22:02:45]wFMCommunicate request_size=4 [22:02:45]MH_SAM_APDU [22:02:45]CAPDU: 80 0D 01 02 [22:02:45]Write to MH i2c: E2 08 00 CC 22 80 0D 01 02 00 00 00 00 67 [22:02:45]Write i2c OK [22:02:45]MH_I2C_Read... [22:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:45]Read from MH i2c: E2 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 03 00 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [22:02:45]RAPDU: 90 00 [22:02:45]wFMCommunicate OK [22:02:45]wFMCommunicate request_size=255 [22:02:45]MH_SAM_APDU [22:02:45]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 [22:02:45]Write to MH i2c: E2 02 01 CD 22 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 00 34 [22:02:45]Write i2c OK [22:02:45]MH_I2C_Read... [22:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:45]Read from MH i2c: E2 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 03 00 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 03 00 CD 22 00 90 00 63 [22:02:45]RAPDU: 90 00 [22:02:45]wFMCommunicate OK [22:02:45]wFMCommunicate request_size=138 [22:02:45]MH_SAM_APDU [22:02:45]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 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 A2 00 00 00 F4 03 04 00 87 15 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E6 C5 00 00 35 04 06 00 6B 9F 20 34 7C 9A [22:02:45]Write to MH i2c: E2 8D 00 CE 22 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 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 A2 00 00 00 F4 03 04 00 87 15 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E6 C5 00 00 35 04 06 00 6B 9F 20 34 7C 9A 00 00 B3 [22:02:45]Write i2c OK [22:02:45]MH_I2C_Read... [22:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:45]Read from MH i2c: E2 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 03 00 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [22:02:45]RAPDU: 90 00 [22:02:45]wFMCommunicate OK [22:02:45]wFMCommunicate request_size=4 [22:02:45]MH_SAM_APDU [22:02:45]CAPDU: 80 0D 03 02 [22:02:45]Write to MH i2c: E2 08 00 CF 22 80 0D 03 02 00 00 00 00 6C [22:02:45]Write i2c OK [22:02:45]MH_I2C_Read... [22:02:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:45]Read from MH i2c: E2 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 0B 00 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 0B 00 CF 22 00 F3 D4 B8 DB 08 37 6B 54 90 00 C5 [22:02:45]RAPDU: F3 D4 B8 DB 08 37 6B 54 90 00 [22:02:45]wFMCommunicate OK [22:02:45]SAM_PROTO_SignData done [22:02:45]FM_MakeSignedData done [22:02:45]CreateOFDProtocolMessage [22:02:45]wFMCommunicate request_size=4 [22:02:45]MH_SAM_APDU [22:02:45]CAPDU: 80 11 00 00 [22:02:45]Write to MH i2c: E2 08 00 D0 22 80 11 00 00 00 00 00 00 6C [22:02:45]Write i2c OK [22:02:45]MH_I2C_Read... [22:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:45]Read from MH i2c: E2 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 17 00 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: E2 17 00 D0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 B3 [22:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:02:45]wFMCommunicate OK [22:02:45]CreateOFDProtocolMessage done [22:02:45]OFDSenderStorePacket 50662 [22:02:45]StoreOFDPacket docnum=50662 [22:02:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8F 01 00 00 5B A0 87 01 E5 BC 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 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 A2 00 00 00 F4 03 04 00 87 15 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E6 C5 00 00 35 04 06 00 6B 9F 20 34 7C 9A F3 D4 B8 DB 08 37 6B 54 [22:02:45]CheckFolder [22:02:45]dirname=/storage/ofd_packets [22:02:45]CheckFolder done [22:02:45]ProducePacketName [22:02:45]name=ofd_packets/00050662 [22:02:45]NVStorageSaveData ofd_packets/00050662 [22:02:45]File name is /storage/ofd_packets/00050662 [22:02:45]Write 429 bytes [22:02:45]NVStorageSaveData done [22:02:45]OFDSenderStorePacket done [22:02:45]KKMCreateOFDPacket done [22:02:45]NVStorageSaveData kkm_last_timestamp [22:02:45]File name is /storage/kkm_last_timestamp [22:02:45]Write 4 bytes [22:02:45]NVStorageSaveData done [22:02:45]ExternCall_PrintAddStr [22:02:45]wPrintStart [22:02:45]Write to MH i2c: 01 00 00 D1 22 F3 [22:02:45]Write i2c OK [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: 01 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: 01 07 00 [22:02:45]MH_I2C_Read... [22:02:45]Read from MH i2c: 01 07 00 D1 22 00 00 00 00 00 FF 0F 08 [22:02:45]RasterBufferAndPrint [22:02:45]line Счет N : (3)164545 [22:02:45]line ИНН: 02508201610067 [22:02:45]line Контрольно-Кассовый Чек [22:02:45]line ПРОДАЖА [22:02:45]line Товар: 54491472 [22:02:46]line Напиток Кока-Кола 0,5л [22:02:46]line 1.000 * 75.00 [22:02:46]line = 75.00 [22:02:46]line НДС 12% НСП 1% [22:02:46]line > о реализуемом товаре [22:02:46]line Товар: 46230614 [22:02:46]line Сигареты Richmond Red Edition [22:02:46]line 1.000 * 154.00 [22:02:46]line = 154.00 [22:02:46]line НДС 12% НСП 1% [22:02:46]line > о реализуемом товаре [22:02:46]line ИТОГО: 229.00 [22:02:46]line НСП 1% : 2.02 [22:02:46]line НДС 12% : 24.31 [22:02:46]line Наличными: 229.00 [22:02:46]line Безнал.: 0.00 [22:02:46]line Место: АЗС № 80 "Партнер Нефть" [22:02:46]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [22:02:46]line СНО: Общий режим [22:02:46]line Чек 162 25.10.2024 22:02 [22:02:46]line Смена: 493 ФФД: 1.0 [22:02:46]line ЗНМ: 0300000090 [22:02:46]line РНМ: 0000000000097022 [22:02:46]line Версия ККМ: 001 [22:02:46]line ФМ: 0000000000875000 [22:02:46]line ФД: 50662 [22:02:46]line ФПД: 118331184282778 [22:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T220247&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50662&fm=118331184282778&tin=02508201610067®Number=0000000000097022&sum=22900 [22:02:46]OFD Sender: Processing packet 50662 [packets to send 7, broken 6] [22:02:46]ProducePacketName [22:02:46]name=ofd_packets/00050662 [22:02:46]OFD Sender: To server: pG, [22:02:46]CommunicateWithHost lk.salyk.kg:30040 [22:02:46]ConnectInit lk.salyk.kg [22:02:46]line 0 [22:02:46]written 0, free lines is 4095 [22:02:46]Connected sock=10 [22:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 8F 01 00 00 5B A0 87 01 E5 BC 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 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 A2 00 00 00 F4 03 04 00 87 15 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E6 C5 00 00 35 04 06 00 6B 9F 20 34 7C 9A F3 D4 B8 DB 08 37 6B 54 [22:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 AF 90 47 00 60 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E6 C5 00 00 F4 03 04 00 17 C1 1B 67 B6 04 01 00 00 7F 95 4A 6C 6E AF 6F CB [22:02:46]CommunicateWithHost err = 0 [22:02:46]CheckOFDResponse [22:02:46]1017 (14) - 77093643461234 [22:02:46]1041 (16) - 0000000000875000 [22:02:46]1040 (4) - 50662 [22:02:46]1012 (4) - 25.10.2024 16:02 [22:02:46]1206 (1) - 0 [22:02:46]OFD Sender: Remove packet 50662 [22:02:46]ProducePacketName [22:02:46]name=ofd_packets/00050662 [22:02:46]NVStorageDeleteData [22:02:46]Write to MH i2c: 01 00 00 00 23 23 [22:02:46]Write i2c OK [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: 01 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: 01 07 00 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: 01 07 00 00 23 00 00 00 00 00 B0 0C E6 [22:02:46]RasterBufferAndPrint [22:02:46]line [22:02:46]line [22:02:46]line [22:02:46]line [22:02:46]line [22:02:46]written 0, free lines is 3254 [22:02:46]process_action close_receipt done [22:02:46]requested_data is exist [22:02:46]produce_requested_data [22:02:46]requested_item fm.sn is exist - process it [22:02:46]wFMCommunicate request_size=4 [22:02:46]MH_SAM_APDU [22:02:46]CAPDU: 80 11 00 00 [22:02:46]Write to MH i2c: E2 08 00 07 23 80 11 00 00 00 00 00 00 A4 [22:02:46]Write i2c OK [22:02:46]MH_I2C_Read... [22:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:46]Read from MH i2c: E2 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: E2 17 00 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: E2 17 00 07 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EB [22:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:02:46]wFMCommunicate OK [22:02:46]requested_item fd.num is exist - process it [22:02:46]SAM_PROTO_GetFieldsCounters [22:02:46]wFMCommunicate request_size=4 [22:02:46]MH_SAM_APDU [22:02:46]CAPDU: 80 13 00 00 [22:02:46]Write to MH i2c: E2 08 00 08 23 80 13 00 00 00 00 00 00 A7 [22:02:46]Write i2c OK [22:02:46]MH_I2C_Read... [22:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:46]Read from MH i2c: E2 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: E2 62 00 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: E2 62 00 08 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [22:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E6 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:46]wFMCommunicate OK [22:02:46]SAM_PROTO_GetFieldsCounters done [22:02:46]requested_item shift.num is exist - process it [22:02:46]requested_item shift.opened is exist - process it [22:02:46]req_shift_opened [22:02:46]FM_GetShiftState [22:02:46]SAM_PROTO_GetShiftState [22:02:46]wFMCommunicate request_size=4 [22:02:46]MH_SAM_APDU [22:02:46]CAPDU: 80 13 01 00 [22:02:46]Write to MH i2c: E2 08 00 09 23 80 13 01 00 00 00 00 00 A9 [22:02:46]Write i2c OK [22:02:46]MH_I2C_Read... [22:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:46]Read from MH i2c: E2 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: E2 0E 00 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: E2 0E 00 09 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A1 [22:02:46]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [22:02:46]wFMCommunicate OK [22:02:46]SAM_PROTO_GetShiftState done [22:02:46]FM_GetShiftState done [22:02:46]req_shift_opened done [22:02:46]requested_item shift.open_date is exist - process it [22:02:46]req_shift_open_date [22:02:46]req_shift_open_date done [22:02:46]produce_requested_data done [22:02:46]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50662,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [22:02:46]process_action_free close_receipt [22:02:46]json_value_free [22:02:46]json_value_free done [22:02:46]process_json_proto returns [22:02:46]Send response to host [22:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50662,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [22:02:46]free response buf [22:02:46]execute_script done [22:02:46]execute_script returns [22:02:46]free content buf [22:02:46]Sock 7.Close socket [22:02:46]Sock 7.Thread stoped [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03: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:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:11]accept exits with 9 [22:08:11]New connection [22:08:11]New thread 3066789220 created [22:08:11]Thread 3066645860 joined [22:08:11]Waiting for new connection... [22:08:11] Sock 9.Parse request [22:08:11]Sock 9.Check first char [22:08:11]Sock 9.First char is OK [22:08:11]request: POST /json_proto HTTP/1.0 [22:08:11]Method: POST [22:08:11]URL: /json_proto [22:08:11]Method is POST - this is cgi request [22:08:11]url: /json_proto [22:08:11]query_string will be loaded in cgi processing [22:08:11]execute_cgi json_proto POST (null) [22:08:11]execute_cgi path=json_proto method=POST [22:08:11]POST find Content-Length [22:08:11]Host: 172.17.49.196:8080 [22:08:11]Content-Length: 650 [22:08:11]Content-Type: application/json [22:08:11] [22:08:11]POST finish read [22:08:11]Found Content-Length = 650 [22:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164546", "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" ] } } [22:08:11]execute_script... [22:08:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164546", "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" ] } } [22:08:11]POST & json_proto [22:08:11]process_json_proto [22:08:11]json parsed OK: [22:08:11]protocol is kg_v1.0 [22:08:11]action value=close_receipt [22:08:11]process_action close_receipt [22:08:11]cmd_close_receipt [22:08:11]MH_GetDate [22:08:11]Write to MH i2c: F0 00 00 0A 23 1C [22:08:11]Write i2c OK [22:08:11]MH_I2C_Read... [22:08:11]Read from MH i2c: F0 [22:08:11]MH_I2C_Read... [22:08:11]Read from MH i2c: F0 09 00 [22:08:11]MH_I2C_Read... [22:08:11]Read from MH i2c: F0 09 00 0A 23 00 CF 16 1C 67 BD 3B 11 67 FD [22:08:11]GetLastDocTimeStamp 1729893767 [22:08:11]current date 1729894095 [22:08:11]FM_GetShiftState [22:08:11]SAM_PROTO_GetShiftState [22:08:11]wFMCommunicate request_size=4 [22:08:11]MH_SAM_APDU [22:08:11]CAPDU: 80 13 01 00 [22:08:11]Write to MH i2c: E2 08 00 0B 23 80 13 01 00 00 00 00 00 AB [22:08:11]Write i2c OK [22:08:11]MH_I2C_Read... [22:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:11]Read from MH i2c: E2 [22:08:11]MH_I2C_Read... [22:08:11]Read from MH i2c: E2 0E 00 [22:08:11]MH_I2C_Read... [22:08:11]Read from MH i2c: E2 0E 00 0B 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 A3 [22:08:11]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [22:08:11]wFMCommunicate OK [22:08:11]SAM_PROTO_GetShiftState done [22:08:11]FM_GetShiftState done [22:08:11]opened in 1729815177 [22:08:11]opened+sec_in_day 1729901577 [22:08:11]quantity*price = 3600 [22:08:11]sum+1 = 3601 [22:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 36.00 НСП 1% : 0.32 НДС 12% : 3.82 Наличными: 36.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 163 25.10.2024 22:08 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50663 ФПД: 133299996810343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T220815&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50663&fm=133299996810343&tin=02508201610067®Number=0000000000097022&sum=3600 0 [22:08:12]StoreToDocumentArchive [22:08:12]shift 493 fd 50663 [22:08:12]save to /storage/0493/doc_00050663 [22:08:12]save last doc name /storage/0493/doc_00050663 to /storage/kkm_last_doc_name [22:08:12]save OK [22:08:12]Clear old archive folders... [22:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=277 [22:08:12]tlvbuf is 01EE8B20 [22:08:12]SAM_PROTO_ClearQueue [22:08:12]wFMCommunicate request_size=4 [22:08:12]MH_SAM_APDU [22:08:12]CAPDU: 80 09 00 00 [22:08:12]Write to MH i2c: E2 08 00 18 23 80 09 00 00 00 00 00 00 AD [22:08:12]Write i2c OK [22:08:12]MH_I2C_Read... [22:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:12]Read from MH i2c: E2 [22:08:12]MH_I2C_Read... [22:08:12]Read from MH i2c: E2 03 00 [22:08:12]MH_I2C_Read... [22:08:12]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [22:08:12]RAPDU: 90 00 [22:08:12]wFMCommunicate OK [22:08:12]SAM_PROTO_ClearQueue done [22:08:12]KKMCreateOFDPacket [22:08:12]OFDProtocolAddRootSTLVToBuf [22:08:12]FM_MakeSignedData [22:08:12]FM_MakeSignedData [22:08:12]SAM_PROTO_SignData [22:08:12]wFMCommunicate request_size=4 [22:08:12]MH_SAM_APDU [22:08:12]CAPDU: 80 0D 01 02 [22:08:12]Write to MH i2c: E2 08 00 19 23 80 0D 01 02 00 00 00 00 B5 [22:08:12]Write i2c OK [22:08:12]MH_I2C_Read... [22:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:13]Read from MH i2c: E2 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 03 00 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [22:08:13]RAPDU: 90 00 [22:08:13]wFMCommunicate OK [22:08:13]wFMCommunicate request_size=255 [22:08:13]MH_SAM_APDU [22:08:13]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 A3 00 00 00 F4 03 04 00 CF 16 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 [22:08:13]Write to MH i2c: E2 02 01 1A 23 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 A3 00 00 00 F4 03 04 00 CF 16 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 00 00 BD [22:08:13]Write i2c OK [22:08:13]MH_I2C_Read... [22:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:13]Read from MH i2c: E2 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 03 00 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [22:08:13]RAPDU: 90 00 [22:08:13]wFMCommunicate OK [22:08:13]wFMCommunicate request_size=36 [22:08:13]MH_SAM_APDU [22:08:13]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E7 C5 00 00 35 04 06 00 79 3C 52 F5 5C 67 [22:08:13]Write to MH i2c: E2 27 00 1B 23 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E7 C5 00 00 35 04 06 00 79 3C 52 F5 5C 67 00 00 3C [22:08:13]Write i2c OK [22:08:13]MH_I2C_Read... [22:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:13]Read from MH i2c: E2 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 03 00 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [22:08:13]RAPDU: 90 00 [22:08:13]wFMCommunicate OK [22:08:13]wFMCommunicate request_size=4 [22:08:13]MH_SAM_APDU [22:08:13]CAPDU: 80 0D 03 02 [22:08:13]Write to MH i2c: E2 08 00 1C 23 80 0D 03 02 00 00 00 00 BA [22:08:13]Write i2c OK [22:08:13]MH_I2C_Read... [22:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:13]Read from MH i2c: E2 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 0B 00 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 0B 00 1C 23 00 42 D5 3F 7A 94 D2 76 BC 90 00 23 [22:08:13]RAPDU: 42 D5 3F 7A 94 D2 76 BC 90 00 [22:08:13]wFMCommunicate OK [22:08:13]SAM_PROTO_SignData done [22:08:13]FM_MakeSignedData done [22:08:13]CreateOFDProtocolMessage [22:08:13]wFMCommunicate request_size=4 [22:08:13]MH_SAM_APDU [22:08:13]CAPDU: 80 11 00 00 [22:08:13]Write to MH i2c: E2 08 00 1D 23 80 11 00 00 00 00 00 00 BA [22:08:13]Write i2c OK [22:08:13]MH_I2C_Read... [22:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:13]Read from MH i2c: E2 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 17 00 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: E2 17 00 1D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 01 [22:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:08:13]wFMCommunicate OK [22:08:13]CreateOFDProtocolMessage done [22:08:13]OFDSenderStorePacket 50663 [22:08:13]StoreOFDPacket docnum=50663 [22:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 F0 E5 21 01 BF 14 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 A3 00 00 00 F4 03 04 00 CF 16 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E7 C5 00 00 35 04 06 00 79 3C 52 F5 5C 67 42 D5 3F 7A 94 D2 76 BC [22:08:13]CheckFolder [22:08:13]dirname=/storage/ofd_packets [22:08:13]CheckFolder done [22:08:13]ProducePacketName [22:08:13]name=ofd_packets/00050663 [22:08:13]NVStorageSaveData ofd_packets/00050663 [22:08:13]File name is /storage/ofd_packets/00050663 [22:08:13]Write 327 bytes [22:08:13]NVStorageSaveData done [22:08:13]OFDSenderStorePacket done [22:08:13]KKMCreateOFDPacket done [22:08:13]NVStorageSaveData kkm_last_timestamp [22:08:13]File name is /storage/kkm_last_timestamp [22:08:13]Write 4 bytes [22:08:13]NVStorageSaveData done [22:08:13]ExternCall_PrintAddStr [22:08:13]wPrintStart [22:08:13]Write to MH i2c: 01 00 00 1E 23 41 [22:08:13]Write i2c OK [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: 01 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: 01 07 00 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: 01 07 00 1E 23 00 00 00 00 00 FF 0F 56 [22:08:13]RasterBufferAndPrint [22:08:13]line Счет N : (3)164546 [22:08:13]line ИНН: 02508201610067 [22:08:13]line Контрольно-Кассовый Чек [22:08:13]line ПРОДАЖА [22:08:13]line Товар: 8590042701239 [22:08:13]line Салфетки влажные VOK [22:08:13]line 1.000 * 36.00 [22:08:13]line = 36.00 [22:08:13]line НДС 12% НСП 1% [22:08:13]line > о реализуемом товаре [22:08:13]line ИТОГО: 36.00 [22:08:13]line НСП 1% : 0.32 [22:08:13]line НДС 12% : 3.82 [22:08:13]line Наличными: 36.00 [22:08:13]line Безнал.: 0.00 [22:08:13]line Место: АЗС № 80 "Партнер Нефть" [22:08:13]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [22:08:13]line СНО: Общий режим [22:08:13]line Чек 163 25.10.2024 22:08 [22:08:13]line Смена: 493 ФФД: 1.0 [22:08:13]line ЗНМ: 0300000090 [22:08:13]line РНМ: 0000000000097022 [22:08:13]line Версия ККМ: 001 [22:08:13]line ФМ: 0000000000875000 [22:08:13]line ФД: 50663 [22:08:13]line ФПД: 133299996810343 [22:08:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T220815&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50663&fm=133299996810343&tin=02508201610067®Number=0000000000097022&sum=3600 [22:08:13]line 0 [22:08:13]OFD Sender: Processing packet 50663 [packets to send 7, broken 6] [22:08:13]ProducePacketName [22:08:13]name=ofd_packets/00050663 [22:08:13]OFD Sender: To server: pG, [22:08:13]CommunicateWithHost lk.salyk.kg:30040 [22:08:13]ConnectInit lk.salyk.kg [22:08:13]written 0, free lines is 4095 [22:08:13]Connected sock=10 [22:08:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 F0 E5 21 01 BF 14 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 A3 00 00 00 F4 03 04 00 CF 16 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E7 C5 00 00 35 04 06 00 79 3C 52 F5 5C 67 42 D5 3F 7A 94 D2 76 BC [22:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 B4 FF 47 00 7F 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E7 C5 00 00 F4 03 04 00 5F C2 1B 67 B6 04 01 00 00 63 65 DF AB A0 45 64 12 [22:08:14]CommunicateWithHost err = 0 [22:08:14]CheckOFDResponse [22:08:14]1017 (14) - 77093643461234 [22:08:14]1041 (16) - 0000000000875000 [22:08:14]1040 (4) - 50663 [22:08:14]1012 (4) - 25.10.2024 16:07 [22:08:14]1206 (1) - 0 [22:08:14]OFD Sender: Remove packet 50663 [22:08:14]ProducePacketName [22:08:14]name=ofd_packets/00050663 [22:08:14]NVStorageDeleteData [22:08:14]Write to MH i2c: 01 00 00 46 23 69 [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: 01 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: 01 07 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: 01 07 00 46 23 00 00 00 00 00 26 0D A3 [22:08:14]RasterBufferAndPrint [22:08:14]line [22:08:14]line [22:08:14]line [22:08:14]line [22:08:14]line [22:08:14]written 0, free lines is 3372 [22:08:14]process_action close_receipt done [22:08:14]requested_data is exist [22:08:14]produce_requested_data [22:08:14]requested_item fm.sn is exist - process it [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 11 00 00 [22:08:14]Write to MH i2c: E2 08 00 4D 23 80 11 00 00 00 00 00 00 EA [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 17 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 17 00 4D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 31 [22:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:08:14]wFMCommunicate OK [22:08:14]requested_item fd.num is exist - process it [22:08:14]SAM_PROTO_GetFieldsCounters [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 13 00 00 [22:08:14]Write to MH i2c: E2 08 00 4E 23 80 13 00 00 00 00 00 00 ED [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 62 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 62 00 4E 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [22:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:14]wFMCommunicate OK [22:08:14]SAM_PROTO_GetFieldsCounters done [22:08:14]requested_item shift.num is exist - process it [22:08:14]requested_item shift.opened is exist - process it [22:08:14]req_shift_opened [22:08:14]FM_GetShiftState [22:08:14]SAM_PROTO_GetShiftState [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 13 01 00 [22:08:14]Write to MH i2c: E2 08 00 4F 23 80 13 01 00 00 00 00 00 EF [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 0E 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 0E 00 4F 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 E7 [22:08:14]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [22:08:14]wFMCommunicate OK [22:08:14]SAM_PROTO_GetShiftState done [22:08:14]FM_GetShiftState done [22:08:14]req_shift_opened done [22:08:14]requested_item shift.open_date is exist - process it [22:08:14]req_shift_open_date [22:08:14]req_shift_open_date done [22:08:14]produce_requested_data done [22:08:14]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50663,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [22:08:14]process_action_free close_receipt [22:08:14]json_value_free [22:08:14]json_value_free done [22:08:14]process_json_proto returns [22:08:14]Send response to host [22:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50663,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [22:08:14]free response buf [22:08:14]execute_script done [22:08:14]execute_script returns [22:08:14]free content buf [22:08:14]Sock 9.Close socket [22:08:14]Sock 9.Thread stoped [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:15:59]accept exits with 7 [22:15:59]New connection [22:15:59]New thread 3066645860 created [22:15:59]Thread 3066789220 joined [22:15:59]Waiting for new connection... [22:15:59] Sock 7.Parse request [22:15:59]Sock 7.Check first char [22:15:59]Sock 7.First char is OK [22:15:59]request: POST /json_proto HTTP/1.0 [22:15:59]Method: POST [22:15:59]URL: /json_proto [22:15:59]Method is POST - this is cgi request [22:15:59]url: /json_proto [22:15:59]query_string will be loaded in cgi processing [22:15:59]execute_cgi json_proto POST (null) [22:15:59]execute_cgi path=json_proto method=POST [22:15:59]POST find Content-Length [22:15:59]Host: 172.17.49.196:8080 [22:15:59]Content-Length: 215 [22:15:59]Content-Type: application/json [22:15:59] [22:15:59]POST finish read [22:15:59]Found Content-Length = 215 [22:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:59]execute_script... [22:15:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:59]POST & json_proto [22:15:59]process_json_proto [22:15:59]json parsed OK: [22:15:59]protocol is kg_v1.0 [22:15:59]action value=get_value [22:15:59]process_action get_value [22:15:59]cmd_get_value [22:15:59]process_action get_value done [22:15:59]requested_data is exist [22:15:59]produce_requested_data [22:15:59]requested_item kkm.sn is exist - process it [22:15:59]requested_item kkm.ver is exist - process it [22:15:59]requested_item fm.sn is exist - process it [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 11 00 00 [22:15:59]Write to MH i2c: E2 08 00 50 23 80 11 00 00 00 00 00 00 ED [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:59]Read from MH i2c: E2 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 17 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 17 00 50 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 34 [22:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:15:59]wFMCommunicate OK [22:15:59]requested_item fd.num is exist - process it [22:15:59]SAM_PROTO_GetFieldsCounters [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 13 00 00 [22:15:59]Write to MH i2c: E2 08 00 51 23 80 13 00 00 00 00 00 00 F0 [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:59]Read from MH i2c: E2 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 62 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 62 00 51 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [22:15:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E7 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:59]wFMCommunicate OK [22:15:59]SAM_PROTO_GetFieldsCounters done [22:15:59]requested_item shift.num is exist - process it [22:15:59]requested_item shift.opened is exist - process it [22:15:59]req_shift_opened [22:15:59]FM_GetShiftState [22:15:59]SAM_PROTO_GetShiftState [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 13 01 00 [22:15:59]Write to MH i2c: E2 08 00 52 23 80 13 01 00 00 00 00 00 F2 [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:59]Read from MH i2c: E2 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 0E 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 0E 00 52 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 EA [22:15:59]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [22:15:59]wFMCommunicate OK [22:15:59]SAM_PROTO_GetShiftState done [22:15:59]FM_GetShiftState done [22:15:59]req_shift_opened done [22:15:59]requested_item shift.open_date is exist - process it [22:15:59]req_shift_open_date [22:15:59]req_shift_open_date done [22:15:59]produce_requested_data done [22:15:59]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50663,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [22:15:59]process_action_free get_value [22:15:59]json_value_free [22:15:59]json_value_free done [22:15:59]process_json_proto returns [22:15:59]Send response to host [22:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50663,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [22:15:59]free response buf [22:15:59]execute_script done [22:15:59]execute_script returns [22:15:59]free content buf [22:15:59]Sock 7.Close socket [22:15:59]Sock 7.Thread stoped [22:15:59]accept exits with 9 [22:15:59]New connection [22:15:59]New thread 3066789220 created [22:15:59]Thread 3066645860 joined [22:15:59]Waiting for new connection... [22:15:59] Sock 9.Parse request [22:15:59]Sock 9.Check first char [22:15:59]Sock 9.First char is OK [22:15:59]request: POST /json_proto HTTP/1.0 [22:15:59]Method: POST [22:15:59]URL: /json_proto [22:15:59]Method is POST - this is cgi request [22:15:59]url: /json_proto [22:15:59]query_string will be loaded in cgi processing [22:15:59]execute_cgi json_proto POST (null) [22:15:59]execute_cgi path=json_proto method=POST [22:15:59]POST find Content-Length [22:15:59]Host: 172.17.49.196:8080 [22:15:59]Content-Length: 331 [22:15:59]Content-Type: application/json [22:15:59] [22:15:59]POST finish read [22:15:59]Found Content-Length = 331 [22:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [22:15:59]execute_script... [22:15:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [22:15:59]POST & json_proto [22:15:59]process_json_proto [22:15:59]json parsed OK: [22:15:59]protocol is kg_v1.0 [22:15:59]action value=get_value [22:15:59]process_action get_value [22:15:59]cmd_get_value [22:15:59]process_action get_value done [22:15:59]requested_data is exist [22:15:59]produce_requested_data [22:15:59]requested_item fm.sale.total is exist - process it [22:15:59]SAM_PROTO_GetFMData [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 13 03 00 [22:15:59]Write to MH i2c: E2 08 00 53 23 80 13 03 00 00 00 00 00 F5 [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:16:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 FD 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 FD 00 53 23 00 C5 04 85 04 C1 04 6E 04 04 00 0D C2 00 00 69 04 A1 00 6F 04 04 00 0D C1 00 00 B1 04 04 00 83 D7 00 83 70 04 04 00 90 85 DD 61 72 04 04 00 F3 51 23 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 DE E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 BF 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 28 [22:16:00]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0D C2 00 00 69 04 A1 00 6F 04 04 00 0D C1 00 00 B1 04 04 00 83 D7 00 83 70 04 04 00 90 85 DD 61 72 04 04 00 F3 51 23 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 DE E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 BF 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [22:16:00]wFMCommunicate OK [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 17 00 00 [22:16:00]Write to MH i2c: E2 08 00 54 23 80 17 00 00 00 00 00 00 F7 [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:00]OFD Sender: No OFD packet to send [22:16:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 FD 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 FD 00 54 23 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [22:16:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [22:16:00]wFMCommunicate OK [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 17 00 00 [22:16:00]Write to MH i2c: E2 08 00 55 23 80 17 00 00 00 00 00 00 F8 [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 FD 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 FD 00 55 23 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0A [22:16:00]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [22:16:00]wFMCommunicate OK [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 17 00 00 [22:16:00]Write to MH i2c: E2 08 00 56 23 80 17 00 00 00 00 00 00 F9 [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 FD 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 FD 00 56 23 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [22:16:00]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [22:16:00]wFMCommunicate OK [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 17 00 00 [22:16:00]Write to MH i2c: E2 08 00 57 23 80 17 00 00 00 00 00 00 FA [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 E2 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 E2 00 57 23 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D8 [22:16:01]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01]wFMCommunicate OK [22:16:01]SAM_PROTO_GetFMData done [22:16:01]requested_item fm.sale_refund.total is exist - process it [22:16:01]requested_item fm.buy.total is exist - process it [22:16:01]requested_item shift.sale.total is exist - process it [22:16:01]SAM_PROTO_GetShiftData [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 13 02 00 [22:16:01]Write to MH i2c: E2 08 00 58 23 80 13 02 00 00 00 00 00 F9 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 FD 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 FD 00 58 23 00 AE 04 AA 04 AA 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 A3 00 00 00 B1 04 03 00 6E AA 5E 70 04 03 00 B0 C5 48 72 04 03 00 BE E4 15 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 C0 0D 0A 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 78 D6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F [22:16:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 A3 00 00 00 B1 04 03 00 6E AA 5E 70 04 03 00 B0 C5 48 72 04 03 00 BE E4 15 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 C0 0D 0A 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 78 D6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01]wFMCommunicate OK [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 17 00 00 [22:16:01]Write to MH i2c: E2 08 00 59 23 80 17 00 00 00 00 00 00 FC [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 FD 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 FD 00 59 23 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 1E [22:16:01]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:01]wFMCommunicate OK [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 17 00 00 [22:16:01]Write to MH i2c: E2 08 00 5A 23 80 17 00 00 00 00 00 00 FD [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:02]Read from MH i2c: E2 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: E2 FD 00 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: E2 FD 00 5A 23 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 [22:16:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [22:16:02]wFMCommunicate OK [22:16:02]wFMCommunicate request_size=4 [22:16:02]MH_SAM_APDU [22:16:02]CAPDU: 80 17 00 00 [22:16:02]Write to MH i2c: E2 08 00 5B 23 80 17 00 00 00 00 00 00 FE [22:16:02]Write i2c OK [22:16:02]MH_I2C_Read... [22:16:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:02]Read from MH i2c: E2 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: E2 FD 00 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: E2 FD 00 5B 23 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 70 [22:16:02]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:02]wFMCommunicate OK [22:16:02]wFMCommunicate request_size=4 [22:16:02]MH_SAM_APDU [22:16:02]CAPDU: 80 17 00 00 [22:16:02]Write to MH i2c: E2 08 00 5C 23 80 17 00 00 00 00 00 00 FF [22:16:02]Write i2c OK [22:16:02]MH_I2C_Read... [22:16:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [22:16:02]Read from MH i2c: E2 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: E2 CB 00 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: E2 CB 00 5C 23 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 E8 [22:16: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 [22:16:02]wFMCommunicate OK [22:16:02]SAM_PROTO_GetShiftData done [22:16:02]requested_item shift.sale.total_cash is exist - process it [22:16:02]requested_item shift.sale_refund.total is exist - process it [22:16:02]requested_item shift.sale_refund.total_cash is exist - process it [22:16:02]requested_item shift.buy.total is exist - process it [22:16:02]requested_item shift.buy.total_cash is exist - process it [22:16:02]produce_requested_data done [22:16:02]produce_requested_data return {"fm.sale.total":21978704.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62040.14,"shift.sale.total_cash":47692.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:02]process_action_free get_value [22:16:02]json_value_free [22:16:02]json_value_free done [22:16:02]process_json_proto returns [22:16:02]Send response to host [22:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21978704.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62040.14,"shift.sale.total_cash":47692.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:02]free response buf [22:16:02]execute_script done [22:16:02]execute_script returns [22:16:02]free content buf [22:16:02]Sock 9.Close socket [22:16:02]Sock 9.Thread stoped [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:52]accept exits with 7 [22:30:52]New connection [22:30:52]New thread 3066645860 created [22:30:52]Thread 3066789220 joined [22:30:52]Waiting for new connection... [22:30:52] Sock 7.Parse request [22:30:52]Sock 7.Check first char [22:30:52]Sock 7.First char is OK [22:30:52]request: POST /json_proto HTTP/1.0 [22:30:52]Method: POST [22:30:52]URL: /json_proto [22:30:52]Method is POST - this is cgi request [22:30:52]url: /json_proto [22:30:52]query_string will be loaded in cgi processing [22:30:52]execute_cgi json_proto POST (null) [22:30:52]execute_cgi path=json_proto method=POST [22:30:52]POST find Content-Length [22:30:52]Host: 172.17.49.196:8080 [22:30:52]Content-Length: 1049 [22:30:52]Content-Type: application/json [22:30:52] [22:30:52]POST finish read [22:30:52]Found Content-Length = 1049 [22:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164547", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 248.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:52]execute_script... [22:30: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)164547", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 248.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:52]POST & json_proto [22:30:52]process_json_proto [22:30:52]json parsed OK: [22:30:52]protocol is kg_v1.0 [22:30:52]action value=close_receipt [22:30:52]process_action close_receipt [22:30:52]cmd_close_receipt [22:30:52]MH_GetDate [22:30:52]Write to MH i2c: F0 00 00 5D 23 6F [22:30:52]Write i2c OK [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: F0 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: F0 09 00 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: F0 09 00 5D 23 00 1F 1C 1C 67 BD 3B 11 67 A6 [22:30:52]GetLastDocTimeStamp 1729894095 [22:30:52]current date 1729895455 [22:30:52]FM_GetShiftState [22:30:52]SAM_PROTO_GetShiftState [22:30:52]wFMCommunicate request_size=4 [22:30:52]MH_SAM_APDU [22:30:52]CAPDU: 80 13 01 00 [22:30:52]Write to MH i2c: E2 08 00 5E 23 80 13 01 00 00 00 00 00 FE [22:30:52]Write i2c OK [22:30:52]MH_I2C_Read... [22:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:52]Read from MH i2c: E2 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: E2 0E 00 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: E2 0E 00 5E 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 F6 [22:30:52]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [22:30:52]wFMCommunicate OK [22:30:52]SAM_PROTO_GetShiftState done [22:30:52]FM_GetShiftState done [22:30:52]opened in 1729815177 [22:30:52]opened+sec_in_day 1729901577 [22:30:52]quantity*price = 10400 [22:30:52]sum+1 = 10401 [22:30:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 248.00 НСП 1% : 2.19 НДС 12% : 26.33 Наличными: 0.00 Безнал.: 248.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 164 25.10.2024 22:30 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50664 ФПД: 164304311807308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T223055&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50664&fm=164304311807308&tin=02508201610067®Number=0000000000097022&sum=24800 0 [22:30:53]StoreToDocumentArchive [22:30:53]shift 493 fd 50664 [22:30:53]save to /storage/0493/doc_00050664 [22:30:53]save last doc name /storage/0493/doc_00050664 to /storage/kkm_last_doc_name [22:30:53]save OK [22:30:53]Clear old archive folders... [22:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=396 [22:30:53]tlvbuf is 01EBF5C0 [22:30:53]SAM_PROTO_ClearQueue [22:30:53]wFMCommunicate request_size=4 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 09 00 00 [22:30:53]Write to MH i2c: E2 08 00 6B 23 80 09 00 00 00 00 00 00 00 [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:53]Read from MH i2c: E2 03 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [22:30:53]RAPDU: 90 00 [22:30:53]wFMCommunicate OK [22:30:53]SAM_PROTO_ClearQueue done [22:30:53]KKMCreateOFDPacket [22:30:53]OFDProtocolAddRootSTLVToBuf [22:30:53]FM_MakeSignedData [22:30:53]FM_MakeSignedData [22:30:53]SAM_PROTO_SignData [22:30:53]wFMCommunicate request_size=4 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 0D 01 02 [22:30:53]Write to MH i2c: E2 08 00 6C 23 80 0D 01 02 00 00 00 00 08 [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 6C 23 00 90 00 03 [22:30:53]RAPDU: 90 00 [22:30:53]wFMCommunicate OK [22:30:53]wFMCommunicate request_size=255 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF [22:30:53]Write to MH i2c: E2 02 01 6D 23 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 00 00 AD [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [22:30:53]RAPDU: 90 00 [22:30:53]wFMCommunicate OK [22:30:53]wFMCommunicate request_size=155 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 1F 1C 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E8 C5 00 00 35 04 06 00 95 6F 14 23 ED 4C [22:30:53]Write to MH i2c: E2 9E 00 6E 23 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 1F 1C 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E8 C5 00 00 35 04 06 00 95 6F 14 23 ED 4C 00 00 3F [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 03 00 6E 23 00 90 00 05 [22:30:53]RAPDU: 90 00 [22:30:53]wFMCommunicate OK [22:30:53]wFMCommunicate request_size=4 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 0D 03 02 [22:30:53]Write to MH i2c: E2 08 00 6F 23 80 0D 03 02 00 00 00 00 0D [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 0B 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 0B 00 6F 23 00 25 31 3A A1 41 5C 3A 18 90 00 2E [22:30:53]RAPDU: 25 31 3A A1 41 5C 3A 18 90 00 [22:30:53]wFMCommunicate OK [22:30:53]SAM_PROTO_SignData done [22:30:53]FM_MakeSignedData done [22:30:53]CreateOFDProtocolMessage [22:30:53]wFMCommunicate request_size=4 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 11 00 00 [22:30:53]Write to MH i2c: E2 08 00 70 23 80 11 00 00 00 00 00 00 0D [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 17 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 17 00 70 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 54 [22:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:30:53]wFMCommunicate OK [22:30:53]CreateOFDProtocolMessage done [22:30:53]OFDSenderStorePacket 50664 [22:30:53]StoreOFDPacket docnum=50664 [22:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A0 01 00 00 48 60 98 01 B9 49 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 1F 1C 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E8 C5 00 00 35 04 06 00 95 6F 14 23 ED 4C 25 31 3A A1 41 5C 3A 18 [22:30:53]CheckFolder [22:30:53]dirname=/storage/ofd_packets [22:30:53]CheckFolder done [22:30:53]ProducePacketName [22:30:53]name=ofd_packets/00050664 [22:30:53]NVStorageSaveData ofd_packets/00050664 [22:30:53]File name is /storage/ofd_packets/00050664 [22:30:53]Write 446 bytes [22:30:53]NVStorageSaveData done [22:30:53]OFDSenderStorePacket done [22:30:53]KKMCreateOFDPacket done [22:30:53]NVStorageSaveData kkm_last_timestamp [22:30:53]File name is /storage/kkm_last_timestamp [22:30:53]Write 4 bytes [22:30:53]NVStorageSaveData done [22:30:54]ExternCall_PrintAddStr [22:30:54]wPrintStart [22:30:54]Write to MH i2c: 01 00 00 71 23 94 [22:30:54]OFD Sender: Processing packet 50664 [packets to send 7, broken 6] [22:30:54]ProducePacketName [22:30:54]name=ofd_packets/00050664 [22:30:54]OFD Sender: To server: pG, [22:30:54]CommunicateWithHost lk.salyk.kg:30040 [22:30:54]ConnectInit lk.salyk.kg [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 07 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 07 00 71 23 00 00 00 00 00 FF 0F A9 [22:30:54]RasterBufferAndPrint [22:30:54]line Счет N : (3)164547 [22:30:54]line ИНН: 02508201610067 [22:30:54]line Контрольно-Кассовый Чек [22:30:54]line ПРОДАЖА [22:30:54]line Товар: 4870202522015 [22:30:54]line Напиток Maxi Чай Грушевый 1,2л [22:30:54]line 1.000 * 104.00 [22:30:54]line = 104.00 [22:30:54]line НДС 12% НСП 1% [22:30:54]line > о реализуемом товаре [22:30:54]line Товар: 48743587 [22:30:54]line Сигареты Winston XStyle Silver [22:30:54]line 1.000 * 144.00 [22:30:54]line = 144.00 [22:30:54]line НДС 12% НСП 1% [22:30:54]line > о реализуемом товаре [22:30:54]line ИТОГО: 248.00 [22:30:54]line НСП 1% : 2.19 [22:30:54]line НДС 12% : 26.33 [22:30:54]line Наличными: 0.00 [22:30:54]line Безнал.: 248.00 [22:30:54]line Место: АЗС № 80 "Партнер Нефть" [22:30:54]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [22:30:54]line СНО: Общий режим [22:30:54]line Чек 164 25.10.2024 22:30 [22:30:54]line Смена: 493 ФФД: 1.0 [22:30:54]line ЗНМ: 0300000090 [22:30:54]line РНМ: 0000000000097022 [22:30:54]line Версия ККМ: 001 [22:30:54]line Платежная система: Mbank [22:30:54]line ФМ: 0000000000875000 [22:30:54]line ФД: 50664 [22:30:54]line ФПД: 164304311807308 [22:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T223055&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50664&fm=164304311807308&tin=02508201610067®Number=0000000000097022&sum=24800 [22:30:54]line 0 [22:30:54]written 0, free lines is 4095 [22:30:54]Connected sock=10 [22:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 A0 01 00 00 48 60 98 01 B9 49 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 1F 1C 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E8 C5 00 00 35 04 06 00 95 6F 14 23 ED 4C 25 31 3A A1 41 5C 3A 18 [22:30:54]Write to MH i2c: 01 00 00 A2 23 C5 [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 07 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: 01 07 00 A2 23 00 00 00 00 00 AD 0C 85 [22:30:54]RasterBufferAndPrint [22:30:54]line [22:30:54]line [22:30:54]line [22:30:54]line [22:30:54]line [22:30:54]written 0, free lines is 3251 [22:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 B2 47 47 00 0C 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 38 37 35 30 30 30 10 04 04 00 E8 C5 00 00 F4 03 04 00 AF C7 1B 67 B6 04 01 00 00 A4 F6 FD 6C BA 8C 1C EF [22:30:54]CommunicateWithHost err = 0 [22:30:54]CheckOFDResponse [22:30:54]1017 (14) - 77093643461234 [22:30:54]1041 (16) - 0000000000875000 [22:30:54]1040 (4) - 50664 [22:30:54]1012 (4) - 25.10.2024 16:30 [22:30:54]1206 (1) - 0 [22:30:54]OFD Sender: Remove packet 50664 [22:30:54]ProducePacketName [22:30:54]name=ofd_packets/00050664 [22:30:54]NVStorageDeleteData [22:30:54]process_action close_receipt done [22:30:54]requested_data is exist [22:30:54]produce_requested_data [22:30:54]requested_item fm.sn is exist - process it [22:30:54]wFMCommunicate request_size=4 [22:30:54]MH_SAM_APDU [22:30:54]CAPDU: 80 11 00 00 [22:30:54]Write to MH i2c: E2 08 00 A9 23 80 11 00 00 00 00 00 00 46 [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:54]Read from MH i2c: E2 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 17 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 17 00 A9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 8D [22:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [22:30:54]wFMCommunicate OK [22:30:54]requested_item fd.num is exist - process it [22:30:54]SAM_PROTO_GetFieldsCounters [22:30:54]wFMCommunicate request_size=4 [22:30:54]MH_SAM_APDU [22:30:54]CAPDU: 80 13 00 00 [22:30:54]Write to MH i2c: E2 08 00 AA 23 80 13 00 00 00 00 00 00 49 [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:54]Read from MH i2c: E2 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 62 00 [22:30:54]MH_I2C_Read... [22:30:54]Read from MH i2c: E2 62 00 AA 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [22:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E8 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:54]wFMCommunicate OK [22:30:54]SAM_PROTO_GetFieldsCounters done [22:30:54]requested_item shift.num is exist - process it [22:30:54]requested_item shift.opened is exist - process it [22:30:54]req_shift_opened [22:30:54]FM_GetShiftState [22:30:54]SAM_PROTO_GetShiftState [22:30:54]wFMCommunicate request_size=4 [22:30:54]MH_SAM_APDU [22:30:54]CAPDU: 80 13 01 00 [22:30:54]Write to MH i2c: E2 08 00 AB 23 80 13 01 00 00 00 00 00 4B [22:30:54]Write i2c OK [22:30:54]MH_I2C_Read... [22:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:55]Read from MH i2c: E2 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: E2 0E 00 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: E2 0E 00 AB 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 43 [22:30:55]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [22:30:55]wFMCommunicate OK [22:30:55]SAM_PROTO_GetShiftState done [22:30:55]FM_GetShiftState done [22:30:55]req_shift_opened done [22:30:55]requested_item shift.open_date is exist - process it [22:30:55]req_shift_open_date [22:30:55]req_shift_open_date done [22:30:55]produce_requested_data done [22:30:55]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50664,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [22:30:55]process_action_free close_receipt [22:30:55]json_value_free [22:30:55]json_value_free done [22:30:55]process_json_proto returns [22:30:55]Send response to host [22:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50664,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [22:30:55]free response buf [22:30:55]execute_script done [22:30:55]execute_script returns [22:30:55]free content buf [22:30:55]Sock 7.Close socket [22:30:55]Sock 7.Thread stoped [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]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: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:45]ConnectInit Can't connect to host [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:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]accept exits with 9 [23:19:02]New connection [23:19:02]New thread 3066789220 created [23:19:02]Thread 3066645860 joined [23:19:02]Waiting for new connection... [23:19:02] Sock 9.Parse request [23:19:02]Sock 9.Check first char [23:19:02]Sock 9.First char is OK [23:19:02]request: POST /json_proto HTTP/1.0 [23:19:02]Method: POST [23:19:02]URL: /json_proto [23:19:02]Method is POST - this is cgi request [23:19:02]url: /json_proto [23:19:02]query_string will be loaded in cgi processing [23:19:02]execute_cgi json_proto POST (null) [23:19:02]execute_cgi path=json_proto method=POST [23:19:02]POST find Content-Length [23:19:02]Host: 172.17.49.196:8080 [23:19:02]Content-Length: 1017 [23:19:02]Content-Type: application/json [23:19:02] [23:19:02]POST finish read [23:19:02]Found Content-Length = 1017 [23:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164548", "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 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:02]execute_script... [23:19: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)164548", "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 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:02]POST & json_proto [23:19:02]process_json_proto [23:19:02]json parsed OK: [23:19:02]protocol is kg_v1.0 [23:19:02]action value=close_receipt [23:19:02]process_action close_receipt [23:19:02]cmd_close_receipt [23:19:02]MH_GetDate [23:19:02]Write to MH i2c: F0 00 00 AC 23 BE [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: F0 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: F0 09 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: F0 09 00 AC 23 00 69 27 1C 67 BD 3B 11 67 4A [23:19:02]GetLastDocTimeStamp 1729895455 [23:19:02]current date 1729898345 [23:19:02]FM_GetShiftState [23:19:02]SAM_PROTO_GetShiftState [23:19:02]wFMCommunicate request_size=4 [23:19:02]MH_SAM_APDU [23:19:02]CAPDU: 80 13 01 00 [23:19:02]Write to MH i2c: E2 08 00 AD 23 80 13 01 00 00 00 00 00 4D [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:02]Read from MH i2c: E2 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 0E 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 0E 00 AD 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 45 [23:19:02]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:19:02]wFMCommunicate OK [23:19:02]SAM_PROTO_GetShiftState done [23:19:02]FM_GetShiftState done [23:19:02]opened in 1729815177 [23:19:02]opened+sec_in_day 1729901577 [23:19:02]quantity*price = 13000 [23:19:02]sum+1 = 13001 [23:19:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 165 25.10.2024 23:19 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50665 ФПД: 57267212803623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T231905&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50665&fm=57267212803623&tin=02508201610067®Number=0000000000097022&sum=26000 0 [23:19:03]StoreToDocumentArchive [23:19:03]shift 493 fd 50665 [23:19:03]save to /storage/0493/doc_00050665 [23:19:03]save last doc name /storage/0493/doc_00050665 to /storage/kkm_last_doc_name [23:19:03]save OK [23:19:03]Clear old archive folders... [23:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=388 [23:19:03]tlvbuf is 01EC1810 [23:19:03]SAM_PROTO_ClearQueue [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 09 00 00 [23:19:03]Write to MH i2c: E2 08 00 BA 23 80 09 00 00 00 00 00 00 4F [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 BA 23 00 90 00 51 [23:19:03]RAPDU: 90 00 [23:19:03]wFMCommunicate OK [23:19:03]SAM_PROTO_ClearQueue done [23:19:03]KKMCreateOFDPacket [23:19:03]OFDProtocolAddRootSTLVToBuf [23:19:03]FM_MakeSignedData [23:19:03]FM_MakeSignedData [23:19:03]SAM_PROTO_SignData [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 0D 01 02 [23:19:03]Write to MH i2c: E2 08 00 BB 23 80 0D 01 02 00 00 00 00 57 [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 BB 23 00 90 00 52 [23:19:03]RAPDU: 90 00 [23:19:03]wFMCommunicate OK [23:19:03]wFMCommunicate request_size=255 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 0D 02 02 FA 03 00 84 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 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 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [23:19:03]Write to MH i2c: E2 02 01 BC 23 80 0D 02 02 FA 00 03 00 84 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 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 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 DC [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 BC 23 00 90 00 53 [23:19:03]RAPDU: 90 00 [23:19:03]wFMCommunicate OK [23:19:03]wFMCommunicate request_size=147 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 0D 02 02 8E 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 A5 00 00 00 F4 03 04 00 69 27 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E9 C5 00 00 35 04 06 00 34 15 8F E0 5E 27 [23:19:03]Write to MH i2c: E2 96 00 BD 23 80 0D 02 02 8E 00 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 A5 00 00 00 F4 03 04 00 69 27 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E9 C5 00 00 35 04 06 00 34 15 8F E0 5E 27 00 00 D0 [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 03 00 BD 23 00 90 00 54 [23:19:03]RAPDU: 90 00 [23:19:03]wFMCommunicate OK [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 0D 03 02 [23:19:03]Write to MH i2c: E2 08 00 BE 23 80 0D 03 02 00 00 00 00 5C [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 0B 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 0B 00 BE 23 00 D5 BD 0A E5 4F B1 18 FF 90 00 F5 [23:19:03]RAPDU: D5 BD 0A E5 4F B1 18 FF 90 00 [23:19:03]wFMCommunicate OK [23:19:03]SAM_PROTO_SignData done [23:19:03]FM_MakeSignedData done [23:19:03]CreateOFDProtocolMessage [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 11 00 00 [23:19:03]Write to MH i2c: E2 08 00 BF 23 80 11 00 00 00 00 00 00 5C [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 17 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 17 00 BF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A3 [23:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:19:03]wFMCommunicate OK [23:19:03]CreateOFDProtocolMessage done [23:19:03]OFDSenderStorePacket 50665 [23:19:03]StoreOFDPacket docnum=50665 [23:19:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 98 01 00 00 58 66 90 01 00 AF 5A 03 01 00 03 00 84 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 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 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 A5 00 00 00 F4 03 04 00 69 27 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E9 C5 00 00 35 04 06 00 34 15 8F E0 5E 27 D5 BD 0A E5 4F B1 18 FF [23:19:03]CheckFolder [23:19:03]dirname=/storage/ofd_packets [23:19:03]CheckFolder done [23:19:03]ProducePacketName [23:19:03]name=ofd_packets/00050665 [23:19:03]NVStorageSaveData ofd_packets/00050665 [23:19:03]File name is /storage/ofd_packets/00050665 [23:19:03]Write 438 bytes [23:19:03]NVStorageSaveData done [23:19:03]OFDSenderStorePacket done [23:19:03]KKMCreateOFDPacket done [23:19:03]NVStorageSaveData kkm_last_timestamp [23:19:03]File name is /storage/kkm_last_timestamp [23:19:03]Write 4 bytes [23:19:03]NVStorageSaveData done [23:19:03]ExternCall_PrintAddStr [23:19:03]wPrintStart [23:19:03]Write to MH i2c: 01 00 00 C0 23 E3 [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: 01 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: 01 07 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: 01 07 00 C0 23 00 00 00 00 00 FF 0F F8 [23:19:03]RasterBufferAndPrint [23:19:03]line Счет N : (3)164548 [23:19:03]line ИНН: 02508201610067 [23:19:04]line Контрольно-Кассовый Чек [23:19:04]line ПРОДАЖА [23:19:04]line Товар: 2000036220012 [23:19:04]line Кофе Капучино XL(GABB TRADE) [23:19:04]line 1.000 * 130.00 [23:19:04]line = 130.00 [23:19:04]line НДС 12% НСП 1% [23:19:04]line > о реализуемом товаре [23:19:04]line Товар: 2000036230011 [23:19:04]line Кофе Латте XL(GABB TRADE) [23:19:04]line 1.000 * 130.00 [23:19:04]line = 130.00 [23:19:04]line НДС 12% НСП 1% [23:19:04]line > о реализуемом товаре [23:19:04]line ИТОГО: 260.00 [23:19:04]line НСП 1% : 2.30 [23:19:04]line НДС 12% : 27.60 [23:19:04]line Наличными: 0.00 [23:19:04]line Безнал.: 260.00 [23:19:04]line Место: АЗС № 80 "Партнер Нефть" [23:19:04]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [23:19:04]line СНО: Общий режим [23:19:04]line Чек 165 25.10.2024 23:19 [23:19:04]line Смена: 493 ФФД: 1.0 [23:19:04]line ЗНМ: 0300000090 [23:19:04]line РНМ: 0000000000097022 [23:19:04]line Версия ККМ: 001 [23:19:04]line Платежная система: Mbank [23:19:04]line ФМ: 0000000000875000 [23:19:04]line ФД: 50665 [23:19:04]line ФПД: 57267212803623 [23:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T231905&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50665&fm=57267212803623&tin=02508201610067®Number=0000000000097022&sum=26000 [23:19:04]line 0 [23:19:04]OFD Sender: Processing packet 50665 [packets to send 7, broken 6] [23:19:04]ProducePacketName [23:19:04]name=ofd_packets/00050665 [23:19:04]OFD Sender: To server: pG, [23:19:04]CommunicateWithHost lk.salyk.kg:30040 [23:19:04]ConnectInit lk.salyk.kg [23:19:04]written 0, free lines is 4095 [23:19:04]Connected sock=11 [23:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 98 01 00 00 58 66 90 01 00 AF 5A 03 01 00 03 00 84 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 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 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 A5 00 00 00 F4 03 04 00 69 27 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E9 C5 00 00 35 04 06 00 34 15 8F E0 5E 27 D5 BD 0A E5 4F B1 18 FF [23:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 CA 93 47 00 83 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 E9 C5 00 00 F4 03 04 00 F9 D2 1B 67 B6 04 01 00 00 EC D3 2F 71 C3 A3 A5 AA [23:19:04]CommunicateWithHost err = 0 [23:19:04]CheckOFDResponse [23:19:04]1017 (14) - 77093643461234 [23:19:04]1041 (16) - 0000000000875000 [23:19:04]1040 (4) - 50665 [23:19:04]1012 (4) - 25.10.2024 17:18 [23:19:04]1206 (1) - 0 [23:19:04]OFD Sender: Remove packet 50665 [23:19:04]ProducePacketName [23:19:04]name=ofd_packets/00050665 [23:19:04]NVStorageDeleteData [23:19:04]Write to MH i2c: 01 00 00 F0 23 13 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 07 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 07 00 F0 23 00 00 00 00 00 E5 0C 0B [23:19:04]RasterBufferAndPrint [23:19:04]line [23:19:04]line [23:19:04]line [23:19:04]line [23:19:04]line [23:19:04]written 0, free lines is 3310 [23:19:04]process_action close_receipt done [23:19:04]requested_data is exist [23:19:04]produce_requested_data [23:19:04]requested_item fm.sn is exist - process it [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 11 00 00 [23:19:04]Write to MH i2c: E2 08 00 F7 23 80 11 00 00 00 00 00 00 94 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 17 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 17 00 F7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 DB [23:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:19:04]wFMCommunicate OK [23:19:04]requested_item fd.num is exist - process it [23:19:04]SAM_PROTO_GetFieldsCounters [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 13 00 00 [23:19:04]Write to MH i2c: E2 08 00 F8 23 80 13 00 00 00 00 00 00 97 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 62 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 62 00 F8 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [23:19:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 E9 C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:04]wFMCommunicate OK [23:19:04]SAM_PROTO_GetFieldsCounters done [23:19:04]requested_item shift.num is exist - process it [23:19:04]requested_item shift.opened is exist - process it [23:19:04]req_shift_opened [23:19:04]FM_GetShiftState [23:19:04]SAM_PROTO_GetShiftState [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 13 01 00 [23:19:04]Write to MH i2c: E2 08 00 F9 23 80 13 01 00 00 00 00 00 99 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:05]OFD Sender: No OFD packet to send [23:19:05]Read from MH i2c: E2 [23:19:05]MH_I2C_Read... [23:19:05]Read from MH i2c: E2 0E 00 [23:19:05]MH_I2C_Read... [23:19:05]Read from MH i2c: E2 0E 00 F9 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 91 [23:19:05]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:19:05]wFMCommunicate OK [23:19:05]SAM_PROTO_GetShiftState done [23:19:05]FM_GetShiftState done [23:19:05]req_shift_opened done [23:19:05]requested_item shift.open_date is exist - process it [23:19:05]req_shift_open_date [23:19:05]req_shift_open_date done [23:19:05]produce_requested_data done [23:19:05]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50665,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [23:19:05]process_action_free close_receipt [23:19:05]json_value_free [23:19:05]json_value_free done [23:19:05]process_json_proto returns [23:19:05]Send response to host [23:19:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50665,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [23:19:05]free response buf [23:19:05]execute_script done [23:19:05]execute_script returns [23:19:05]free content buf [23:19:05]Sock 9.Close socket [23:19:05]Sock 9.Thread stoped [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:32]ConnectInit Can't connect to host [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:02]ConnectInit Can't connect to host [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:39]accept exits with 10 [23:31:39]New connection [23:31:39]New thread 3066645860 created [23:31:39]Thread 3066789220 joined [23:31:39]Waiting for new connection... [23:31:39] Sock 10.Parse request [23:31:39]Sock 10.Check first char [23:31:39]Sock 10.First char is OK [23:31:39]request: POST /json_proto HTTP/1.0 [23:31:39]Method: POST [23:31:39]URL: /json_proto [23:31:39]Method is POST - this is cgi request [23:31:39]url: /json_proto [23:31:39]query_string will be loaded in cgi processing [23:31:39]execute_cgi json_proto POST (null) [23:31:39]execute_cgi path=json_proto method=POST [23:31:39]POST find Content-Length [23:31:39]Host: 172.17.49.196:8080 [23:31:39]Content-Length: 625 [23:31:39]Content-Type: application/json [23:31:39] [23:31:39]POST finish read [23:31:39]Found Content-Length = 625 [23:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164549", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:39]execute_script... [23:31: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)164549", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:39]POST & json_proto [23:31:39]process_json_proto [23:31:39]json parsed OK: [23:31:39]protocol is kg_v1.0 [23:31:39]action value=close_receipt [23:31:39]process_action close_receipt [23:31:39]cmd_close_receipt [23:31:39]MH_GetDate [23:31:39]Write to MH i2c: F0 00 00 FA 23 0C [23:31:39]Write i2c OK [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: F0 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: F0 09 00 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: F0 09 00 FA 23 00 5F 2A 1C 67 BD 3B 11 67 91 [23:31:39]GetLastDocTimeStamp 1729898345 [23:31:39]current date 1729899103 [23:31:39]FM_GetShiftState [23:31:39]SAM_PROTO_GetShiftState [23:31:39]wFMCommunicate request_size=4 [23:31:39]MH_SAM_APDU [23:31:39]CAPDU: 80 13 01 00 [23:31:39]Write to MH i2c: E2 08 00 FB 23 80 13 01 00 00 00 00 00 9B [23:31:39]Write i2c OK [23:31:39]MH_I2C_Read... [23:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:39]Read from MH i2c: E2 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: E2 0E 00 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: E2 0E 00 FB 23 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 93 [23:31:39]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:31:39]wFMCommunicate OK [23:31:39]SAM_PROTO_GetShiftState done [23:31:39]FM_GetShiftState done [23:31:39]opened in 1729815177 [23:31:39]opened+sec_in_day 1729901577 [23:31:39]quantity*price = 15400 [23:31:39]sum+1 = 15401 [23:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 166 25.10.2024 23:31 Смена: 493 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50666 ФПД: 79776983302247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T233143&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50666&fm=79776983302247&tin=02508201610067®Number=0000000000097022&sum=15400 0 [23:31:40]StoreToDocumentArchive [23:31:40]shift 493 fd 50666 [23:31:40]save to /storage/0493/doc_00050666 [23:31:40]save last doc name /storage/0493/doc_00050666 to /storage/kkm_last_doc_name [23:31:40]save OK [23:31:40]Clear old archive folders... [23:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=277 [23:31:40]tlvbuf is B6EB26B0 [23:31:40]SAM_PROTO_ClearQueue [23:31:40]wFMCommunicate request_size=4 [23:31:40]MH_SAM_APDU [23:31:40]CAPDU: 80 09 00 00 [23:31:40]Write to MH i2c: E2 08 00 08 24 80 09 00 00 00 00 00 00 9E [23:31:40]Write i2c OK [23:31:40]MH_I2C_Read... [23:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 08 24 00 90 00 A0 [23:31:41]RAPDU: 90 00 [23:31:41]wFMCommunicate OK [23:31:41]SAM_PROTO_ClearQueue done [23:31:41]KKMCreateOFDPacket [23:31:41]OFDProtocolAddRootSTLVToBuf [23:31:41]FM_MakeSignedData [23:31:41]FM_MakeSignedData [23:31:41]SAM_PROTO_SignData [23:31:41]wFMCommunicate request_size=4 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 0D 01 02 [23:31:41]Write to MH i2c: E2 08 00 09 24 80 0D 01 02 00 00 00 00 A6 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 09 24 00 90 00 A1 [23:31:41]RAPDU: 90 00 [23:31:41]wFMCommunicate OK [23:31:41]wFMCommunicate request_size=255 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 5F 2A 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 [23:31:41]Write to MH i2c: E2 02 01 0A 24 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 5F 2A 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 00 00 9E [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 0A 24 00 90 00 A2 [23:31:41]RAPDU: 90 00 [23:31:41]wFMCommunicate OK [23:31:41]wFMCommunicate request_size=36 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EA C5 00 00 35 04 06 00 48 8E 86 C0 40 67 [23:31:41]Write to MH i2c: E2 27 00 0B 24 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EA C5 00 00 35 04 06 00 48 8E 86 C0 40 67 00 00 34 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 0B 24 00 90 00 A3 [23:31:41]RAPDU: 90 00 [23:31:41]wFMCommunicate OK [23:31:41]wFMCommunicate request_size=4 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 0D 03 02 [23:31:41]Write to MH i2c: E2 08 00 0C 24 80 0D 03 02 00 00 00 00 AB [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 0B 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 0B 00 0C 24 00 6D 1C FB E4 31 CB 37 51 90 00 98 [23:31:41]RAPDU: 6D 1C FB E4 31 CB 37 51 90 00 [23:31:41]wFMCommunicate OK [23:31:41]SAM_PROTO_SignData done [23:31:41]FM_MakeSignedData done [23:31:41]CreateOFDProtocolMessage [23:31:41]wFMCommunicate request_size=4 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 11 00 00 [23:31:41]Write to MH i2c: E2 08 00 0D 24 80 11 00 00 00 00 00 00 AB [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 17 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 17 00 0D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F2 [23:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:31:41]wFMCommunicate OK [23:31:41]CreateOFDProtocolMessage done [23:31:41]OFDSenderStorePacket 50666 [23:31:41]StoreOFDPacket docnum=50666 [23:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 8F 3F 21 01 5F 26 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 5F 2A 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EA C5 00 00 35 04 06 00 48 8E 86 C0 40 67 6D 1C FB E4 31 CB 37 51 [23:31:41]CheckFolder [23:31:41]dirname=/storage/ofd_packets [23:31:41]CheckFolder done [23:31:41]ProducePacketName [23:31:41]name=ofd_packets/00050666 [23:31:41]NVStorageSaveData ofd_packets/00050666 [23:31:41]File name is /storage/ofd_packets/00050666 [23:31:41]Write 327 bytes [23:31:41]NVStorageSaveData done [23:31:41]OFDSenderStorePacket done [23:31:41]KKMCreateOFDPacket done [23:31:41]NVStorageSaveData kkm_last_timestamp [23:31:41]File name is /storage/kkm_last_timestamp [23:31:41]Write 4 bytes [23:31:41]NVStorageSaveData done [23:31:41]ExternCall_PrintAddStr [23:31:41]wPrintStart [23:31:41]Write to MH i2c: 01 00 00 0E 24 32 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: 01 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: 01 07 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: 01 07 00 0E 24 00 00 00 00 00 FF 0F 47 [23:31:41]RasterBufferAndPrint [23:31:41]line Счет N : (3)164549 [23:31:41]line ИНН: 02508201610067 [23:31:41]line Контрольно-Кассовый Чек [23:31:41]line ПРОДАЖА [23:31:41]line Товар: 46230607 [23:31:41]line Сигареты Richmond Bronze Edition [23:31:41]line 1.000 * 154.00 [23:31:41]line = 154.00 [23:31:41]line НДС 12% НСП 1% [23:31:41]line > о реализуемом товаре [23:31:41]line ИТОГО: 154.00 [23:31:41]line НСП 1% : 1.36 [23:31:41]line НДС 12% : 16.35 [23:31:41]line Наличными: 154.00 [23:31:41]line Безнал.: 0.00 [23:31:41]line Место: АЗС № 80 "Партнер Нефть" [23:31:41]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [23:31:41]line СНО: Общий режим [23:31:41]line Чек 166 25.10.2024 23:31 [23:31:41]line Смена: 493 ФФД: 1.0 [23:31:41]line ЗНМ: 0300000090 [23:31:41]line РНМ: 0000000000097022 [23:31:41]line Версия ККМ: 001 [23:31:41]line ФМ: 0000000000875000 [23:31:41]line ФД: 50666 [23:31:41]line ФПД: 79776983302247 [23:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T233143&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50666&fm=79776983302247&tin=02508201610067®Number=0000000000097022&sum=15400 [23:31:41]line 0 [23:31:41]OFD Sender: Processing packet 50666 [packets to send 7, broken 6] [23:31:41]ProducePacketName [23:31:41]name=ofd_packets/00050666 [23:31:41]OFD Sender: To server: pG, [23:31:41]CommunicateWithHost lk.salyk.kg:30040 [23:31:41]ConnectInit lk.salyk.kg [23:31:41]written 0, free lines is 4095 [23:31:41]Connected sock=9 [23:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 29 01 00 00 8F 3F 21 01 5F 26 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 5F 2A 1C 67 0E 04 04 00 ED 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EA C5 00 00 35 04 06 00 48 8E 86 C0 40 67 6D 1C FB E4 31 CB 37 51 [23:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 0D DC 47 00 C9 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EA C5 00 00 F4 03 04 00 EF D5 1B 67 B6 04 01 00 00 C2 29 49 80 C1 80 08 4D [23:31:42]CommunicateWithHost err = 0 [23:31:42]CheckOFDResponse [23:31:42]1017 (14) - 77093643461234 [23:31:42]1041 (16) - 0000000000875000 [23:31:42]1040 (4) - 50666 [23:31:42]1012 (4) - 25.10.2024 17:31 [23:31:42]1206 (1) - 0 [23:31:42]OFD Sender: Remove packet 50666 [23:31:42]ProducePacketName [23:31:42]name=ofd_packets/00050666 [23:31:42]NVStorageDeleteData [23:31:42]Write to MH i2c: 01 00 00 37 24 5B [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: 01 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: 01 07 00 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: 01 07 00 37 24 00 00 00 00 00 01 0D 70 [23:31:42]RasterBufferAndPrint [23:31:42]line [23:31:42]line [23:31:42]line [23:31:42]line [23:31:42]line [23:31:42]written 0, free lines is 3335 [23:31:42]process_action close_receipt done [23:31:42]requested_data is exist [23:31:42]produce_requested_data [23:31:42]requested_item fm.sn is exist - process it [23:31:42]wFMCommunicate request_size=4 [23:31:42]MH_SAM_APDU [23:31:42]CAPDU: 80 11 00 00 [23:31:42]Write to MH i2c: E2 08 00 3E 24 80 11 00 00 00 00 00 00 DC [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:42]Read from MH i2c: E2 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 17 00 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 17 00 3E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 23 [23:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:31:42]wFMCommunicate OK [23:31:42]requested_item fd.num is exist - process it [23:31:42]SAM_PROTO_GetFieldsCounters [23:31:42]wFMCommunicate request_size=4 [23:31:42]MH_SAM_APDU [23:31:42]CAPDU: 80 13 00 00 [23:31:42]Write to MH i2c: E2 08 00 3F 24 80 13 00 00 00 00 00 00 DF [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:42]Read from MH i2c: E2 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 62 00 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 62 00 3F 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [23:31:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:42]wFMCommunicate OK [23:31:42]SAM_PROTO_GetFieldsCounters done [23:31:42]requested_item shift.num is exist - process it [23:31:42]requested_item shift.opened is exist - process it [23:31:42]req_shift_opened [23:31:42]FM_GetShiftState [23:31:42]SAM_PROTO_GetShiftState [23:31:42]wFMCommunicate request_size=4 [23:31:42]MH_SAM_APDU [23:31:42]CAPDU: 80 13 01 00 [23:31:42]Write to MH i2c: E2 08 00 40 24 80 13 01 00 00 00 00 00 E1 [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:42]Read from MH i2c: E2 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 0E 00 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 0E 00 40 24 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 D9 [23:31:42]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:31:42]wFMCommunicate OK [23:31:42]SAM_PROTO_GetShiftState done [23:31:42]FM_GetShiftState done [23:31:42]req_shift_opened done [23:31:42]requested_item shift.open_date is exist - process it [23:31:42]req_shift_open_date [23:31:42]req_shift_open_date done [23:31:42]produce_requested_data done [23:31:42]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [23:31:42]process_action_free close_receipt [23:31:42]json_value_free [23:31:42]json_value_free done [23:31:42]process_json_proto returns [23:31:42]Send response to host [23:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [23:31:42]free response buf [23:31:42]execute_script done [23:31:42]execute_script returns [23:31:42]free content buf [23:31:42]Sock 10.Close socket [23:31:42]Sock 10.Thread stoped [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]accept exits with 7 [23:48:53]New connection [23:48:53]New thread 3066789220 created [23:48:53]Thread 3066645860 joined [23:48:53]Waiting for new connection... [23:48:53] Sock 7.Parse request [23:48:53]Sock 7.Check first char [23:48:53]Sock 7.First char is OK [23:48:53]request: POST /json_proto HTTP/1.0 [23:48:53]Method: POST [23:48:53]URL: /json_proto [23:48:53]Method is POST - this is cgi request [23:48:53]url: /json_proto [23:48:53]query_string will be loaded in cgi processing [23:48:53]execute_cgi json_proto POST (null) [23:48:53]execute_cgi path=json_proto method=POST [23:48:53]POST find Content-Length [23:48:53]Host: 172.17.49.196:8080 [23:48:53]Content-Length: 215 [23:48:53]Content-Type: application/json [23:48:53] [23:48:53]POST finish read [23:48:53]Found Content-Length = 215 [23:48: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:48:53]execute_script... [23:48: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:48:53]POST & json_proto [23:48:53]process_json_proto [23:48:53]json parsed OK: [23:48:53]protocol is kg_v1.0 [23:48:53]action value=get_value [23:48:53]process_action get_value [23:48:53]cmd_get_value [23:48:53]process_action get_value done [23:48:53]requested_data is exist [23:48:53]produce_requested_data [23:48:53]requested_item kkm.sn is exist - process it [23:48:53]requested_item kkm.ver is exist - process it [23:48:53]requested_item fm.sn is exist - process it [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 11 00 00 [23:48:53]Write to MH i2c: E2 08 00 41 24 80 11 00 00 00 00 00 00 DF [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 17 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 17 00 41 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 26 [23:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:48:53]wFMCommunicate OK [23:48:53]requested_item fd.num is exist - process it [23:48:53]SAM_PROTO_GetFieldsCounters [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 13 00 00 [23:48:53]Write to MH i2c: E2 08 00 42 24 80 13 00 00 00 00 00 00 E2 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 62 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 62 00 42 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [23:48:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:53]wFMCommunicate OK [23:48:53]SAM_PROTO_GetFieldsCounters done [23:48:53]requested_item shift.num is exist - process it [23:48:53]requested_item shift.opened is exist - process it [23:48:53]req_shift_opened [23:48:53]FM_GetShiftState [23:48:53]SAM_PROTO_GetShiftState [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 13 01 00 [23:48:53]Write to MH i2c: E2 08 00 43 24 80 13 01 00 00 00 00 00 E4 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 0E 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 0E 00 43 24 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 DC [23:48:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:48:53]wFMCommunicate OK [23:48:53]SAM_PROTO_GetShiftState done [23:48:53]FM_GetShiftState done [23:48:53]req_shift_opened done [23:48:53]requested_item shift.open_date is exist - process it [23:48:53]req_shift_open_date [23:48:53]req_shift_open_date done [23:48:53]produce_requested_data done [23:48:53]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [23:48:53]process_action_free get_value [23:48:53]json_value_free [23:48:53]json_value_free done [23:48:53]process_json_proto returns [23:48:53]Send response to host [23:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [23:48:53]free response buf [23:48:53]execute_script done [23:48:53]execute_script returns [23:48:53]free content buf [23:48:53]Sock 7.Close socket [23:48:53]Sock 7.Thread stoped [23:48:53]accept exits with 9 [23:48:53]New connection [23:48:53]New thread 3066645860 created [23:48:53]Thread 3066789220 joined [23:48:53]Waiting for new connection... [23:48:53] Sock 9.Parse request [23:48:53]Sock 9.Check first char [23:48:53]Sock 9.First char is OK [23:48:53]request: POST /json_proto HTTP/1.0 [23:48:53]Method: POST [23:48:53]URL: /json_proto [23:48:53]Method is POST - this is cgi request [23:48:53]url: /json_proto [23:48:53]query_string will be loaded in cgi processing [23:48:53]execute_cgi json_proto POST (null) [23:48:53]execute_cgi path=json_proto method=POST [23:48:53]POST find Content-Length [23:48:53]Host: 172.17.49.196:8080 [23:48:53]Content-Length: 331 [23:48:53]Content-Type: application/json [23:48:53] [23:48:53]POST finish read [23:48:53]Found Content-Length = 331 [23:48: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:48:53]execute_script... [23:48: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:48:53]POST & json_proto [23:48:53]process_json_proto [23:48:53]json parsed OK: [23:48:53]protocol is kg_v1.0 [23:48:53]action value=get_value [23:48:53]process_action get_value [23:48:53]cmd_get_value [23:48:53]process_action get_value done [23:48:53]requested_data is exist [23:48:53]produce_requested_data [23:48:53]requested_item fm.sale.total is exist - process it [23:48:53]SAM_PROTO_GetFMData [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 13 03 00 [23:48:53]Write to MH i2c: E2 08 00 44 24 80 13 03 00 00 00 00 00 E7 [23:48:53]OFD Sender: No OFD packet to send [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:48:54]Read from MH i2c: E2 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 FD 00 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 FD 00 44 24 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 33 [23:48:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [23:48:54]wFMCommunicate OK [23:48:54]wFMCommunicate request_size=4 [23:48:54]MH_SAM_APDU [23:48:54]CAPDU: 80 17 00 00 [23:48:54]Write to MH i2c: E2 08 00 45 24 80 17 00 00 00 00 00 00 E9 [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:54]Read from MH i2c: E2 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 FD 00 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 FD 00 45 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [23:48:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:54]wFMCommunicate OK [23:48:54]wFMCommunicate request_size=4 [23:48:54]MH_SAM_APDU [23:48:54]CAPDU: 80 17 00 00 [23:48:54]Write to MH i2c: E2 08 00 46 24 80 17 00 00 00 00 00 00 EA [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:54]Read from MH i2c: E2 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 FD 00 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 FD 00 46 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FC [23:48:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:54]wFMCommunicate OK [23:48:54]wFMCommunicate request_size=4 [23:48:54]MH_SAM_APDU [23:48:54]CAPDU: 80 17 00 00 [23:48:54]Write to MH i2c: E2 08 00 47 24 80 17 00 00 00 00 00 00 EB [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:54]Read from MH i2c: E2 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 FD 00 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 FD 00 47 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [23:48:54]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:54]wFMCommunicate OK [23:48:54]wFMCommunicate request_size=4 [23:48:54]MH_SAM_APDU [23:48:54]CAPDU: 80 17 00 00 [23:48:54]Write to MH i2c: E2 08 00 48 24 80 17 00 00 00 00 00 00 EC [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 E2 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 E2 00 48 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CA [23:48:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:55]wFMCommunicate OK [23:48:55]SAM_PROTO_GetFMData done [23:48:55]requested_item fm.sale_refund.total is exist - process it [23:48:55]requested_item fm.buy.total is exist - process it [23:48:55]requested_item shift.sale.total is exist - process it [23:48:55]SAM_PROTO_GetShiftData [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 13 02 00 [23:48:55]Write to MH i2c: E2 08 00 49 24 80 13 02 00 00 00 00 00 EB [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 FD 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 FD 00 49 24 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [23:48:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:55]wFMCommunicate OK [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 17 00 00 [23:48:55]Write to MH i2c: E2 08 00 4A 24 80 17 00 00 00 00 00 00 EE [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 FD 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 FD 00 4A 24 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 10 [23:48:55]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:48:55]wFMCommunicate OK [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 17 00 00 [23:48:55]Write to MH i2c: E2 08 00 4B 24 80 17 00 00 00 00 00 00 EF [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:56]Read from MH i2c: E2 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 4B 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A6 [23:48: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:48:56]wFMCommunicate OK [23:48:56]wFMCommunicate request_size=4 [23:48:56]MH_SAM_APDU [23:48:56]CAPDU: 80 17 00 00 [23:48:56]Write to MH i2c: E2 08 00 4C 24 80 17 00 00 00 00 00 00 F0 [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:56]Read from MH i2c: E2 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 4C 24 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 62 [23:48:56]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:48:56]wFMCommunicate OK [23:48:56]wFMCommunicate request_size=4 [23:48:56]MH_SAM_APDU [23:48:56]CAPDU: 80 17 00 00 [23:48:56]Write to MH i2c: E2 08 00 4D 24 80 17 00 00 00 00 00 00 F1 [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:48:56]Read from MH i2c: E2 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 CB 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 CB 00 4D 24 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 DA [23:48:56]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:48:56]wFMCommunicate OK [23:48:56]SAM_PROTO_GetShiftData done [23:48:56]requested_item shift.sale.total_cash is exist - process it [23:48:56]requested_item shift.sale_refund.total is exist - process it [23:48:56]requested_item shift.sale_refund.total_cash is exist - process it [23:48:56]requested_item shift.buy.total is exist - process it [23:48:56]requested_item shift.buy.total_cash is exist - process it [23:48:56]produce_requested_data done [23:48:56]produce_requested_data return {"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:48:56]process_action_free get_value [23:48:56]json_value_free [23:48:56]json_value_free done [23:48:56]process_json_proto returns [23:48:56]Send response to host [23:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:48:56]free response buf [23:48:56]execute_script done [23:48:56]execute_script returns [23:48:56]free content buf [23:48:56]Sock 9.Close socket [23:48:56]Sock 9.Thread stoped [23:48:58]OFD Sender: No OFD packet to send [23:48:58]int [23:48:58]Write to MH i2c: 01 00 00 4E 24 72 [23:48:58]*** FLAG_PRN_PAP1 set [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 07 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 07 00 4E 24 00 01 00 00 00 FF 0F 88 [23:48:58]state=0 [23:48:58]No paper [23:48:58]int [23:48:58]Write to MH i2c: 01 00 00 4F 24 73 [23:48:58]*** FLAG_PRN_PAP2 set [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 07 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 07 00 4F 24 00 03 00 00 00 FF 0F 8B [23:48:58]state=0 [23:48:58]No paper [23:48:58]Cover opened [23:49:02]int [23:49:02]Write to MH i2c: 01 00 00 50 24 74 [23:49:02]*** FLAG_PRN_PAP2 reset [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 50 24 00 01 00 00 00 FF 0F 8A [23:49:02]state=3 [23:49:02]No paper [23:49:02]Cover closed [23:49:02]int [23:49:02]Write to MH i2c: 01 00 00 51 24 75 [23:49:02]*** FLAG_PRN_PAP2 set [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 51 24 00 03 00 00 00 FF 0F 8D [23:49:02]state=0 [23:49:02]No paper [23:49:02]Cover opened [23:49:02]int [23:49:02]Write to MH i2c: 01 00 00 52 24 76 [23:49:02]*** FLAG_PRN_PAP2 reset [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 52 24 00 01 00 00 00 FF 0F 8C [23:49:02]state=3 [23:49:02]No paper [23:49:02]Cover closed [23:49:02]int [23:49:02]Write to MH i2c: 01 00 00 53 24 77 [23:49:02]*** FLAG_PRN_PAP1 reset [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 53 24 00 00 00 00 00 FF 0F 8C [23:49:02]state=0 [23:49:03]OFD Sender: No OFD packet to send [23:49:06]accept exits with 7 [23:49:06]New connection [23:49:06]New thread 3066789220 created [23:49:06]Thread 3066645860 joined [23:49:06]Waiting for new connection... [23:49:06] Sock 7.Parse request [23:49:06]Sock 7.Check first char [23:49:06]Sock 7.First char is OK [23:49:06]request: POST /json_proto HTTP/1.0 [23:49:06]Method: POST [23:49:06]URL: /json_proto [23:49:06]Method is POST - this is cgi request [23:49:06]url: /json_proto [23:49:06]query_string will be loaded in cgi processing [23:49:06]execute_cgi json_proto POST (null) [23:49:06]execute_cgi path=json_proto method=POST [23:49:06]POST find Content-Length [23:49:06]Host: 172.17.49.196:8080 [23:49:06]Content-Length: 215 [23:49:06]Content-Type: application/json [23:49:06] [23:49:06]POST finish read [23:49:06]Found Content-Length = 215 [23:49:06]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:49:06]execute_script... [23:49:06]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:49:06]POST & json_proto [23:49:06]process_json_proto [23:49:06]json parsed OK: [23:49:06]protocol is kg_v1.0 [23:49:06]action value=get_value [23:49:06]process_action get_value [23:49:06]cmd_get_value [23:49:06]process_action get_value done [23:49:06]requested_data is exist [23:49:06]produce_requested_data [23:49:06]requested_item kkm.sn is exist - process it [23:49:06]requested_item kkm.ver is exist - process it [23:49:06]requested_item fm.sn is exist - process it [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 11 00 00 [23:49:06]Write to MH i2c: E2 08 00 54 24 80 11 00 00 00 00 00 00 F2 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 17 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 17 00 54 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 39 [23:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:49:06]wFMCommunicate OK [23:49:06]requested_item fd.num is exist - process it [23:49:06]SAM_PROTO_GetFieldsCounters [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 13 00 00 [23:49:06]Write to MH i2c: E2 08 00 55 24 80 13 00 00 00 00 00 00 F5 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 62 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 62 00 55 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [23:49:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:06]wFMCommunicate OK [23:49:06]SAM_PROTO_GetFieldsCounters done [23:49:06]requested_item shift.num is exist - process it [23:49:06]requested_item shift.opened is exist - process it [23:49:06]req_shift_opened [23:49:06]FM_GetShiftState [23:49:06]SAM_PROTO_GetShiftState [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 13 01 00 [23:49:06]Write to MH i2c: E2 08 00 56 24 80 13 01 00 00 00 00 00 F7 [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:06]Read from MH i2c: E2 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 0E 00 [23:49:06]MH_I2C_Read... [23:49:06]Read from MH i2c: E2 0E 00 56 24 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 EF [23:49:06]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:49:06]wFMCommunicate OK [23:49:06]SAM_PROTO_GetShiftState done [23:49:06]FM_GetShiftState done [23:49:06]req_shift_opened done [23:49:06]requested_item shift.open_date is exist - process it [23:49:06]req_shift_open_date [23:49:06]req_shift_open_date done [23:49:06]produce_requested_data done [23:49:06]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [23:49:06]process_action_free get_value [23:49:06]json_value_free [23:49:06]json_value_free done [23:49:06]process_json_proto returns [23:49:06]Send response to host [23:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [23:49:06]free response buf [23:49:06]execute_script done [23:49:06]execute_script returns [23:49:06]free content buf [23:49:06]Sock 7.Close socket [23:49:06]Sock 7.Thread stoped [23:49:06]accept exits with 9 [23:49:06]New connection [23:49:06]New thread 3066645860 created [23:49:06]Thread 3066789220 joined [23:49:06]Waiting for new connection... [23:49:06] Sock 9.Parse request [23:49:06]Sock 9.Check first char [23:49:06]Sock 9.First char is OK [23:49:06]request: POST /json_proto HTTP/1.0 [23:49:06]Method: POST [23:49:06]URL: /json_proto [23:49:06]Method is POST - this is cgi request [23:49:06]url: /json_proto [23:49:06]query_string will be loaded in cgi processing [23:49:06]execute_cgi json_proto POST (null) [23:49:06]execute_cgi path=json_proto method=POST [23:49:06]POST find Content-Length [23:49:06]Host: 172.17.49.196:8080 [23:49:06]Content-Length: 331 [23:49:06]Content-Type: application/json [23:49:06] [23:49:06]POST finish read [23:49:06]Found Content-Length = 331 [23:49:06]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:49:06]execute_script... [23:49:06]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:49:06]POST & json_proto [23:49:06]process_json_proto [23:49:06]json parsed OK: [23:49:06]protocol is kg_v1.0 [23:49:06]action value=get_value [23:49:06]process_action get_value [23:49:06]cmd_get_value [23:49:06]process_action get_value done [23:49:06]requested_data is exist [23:49:06]produce_requested_data [23:49:06]requested_item fm.sale.total is exist - process it [23:49:06]SAM_PROTO_GetFMData [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 13 03 00 [23:49:06]Write to MH i2c: E2 08 00 57 24 80 13 03 00 00 00 00 00 FA [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 57 24 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 46 [23:49:07]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [23:49:07]wFMCommunicate OK [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 17 00 00 [23:49:07]Write to MH i2c: E2 08 00 58 24 80 17 00 00 00 00 00 00 FC [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 58 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 19 [23:49:07]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:07]wFMCommunicate OK [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 17 00 00 [23:49:07]Write to MH i2c: E2 08 00 59 24 80 17 00 00 00 00 00 00 FD [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:07]Read from MH i2c: E2 FD 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 59 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0F [23:49:07]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:07]wFMCommunicate OK [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 17 00 00 [23:49:07]Write to MH i2c: E2 08 00 5A 24 80 17 00 00 00 00 00 00 FE [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:08]Read from MH i2c: E2 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 5A 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8A [23:49:08]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:08]wFMCommunicate OK [23:49:08]wFMCommunicate request_size=4 [23:49:08]MH_SAM_APDU [23:49:08]CAPDU: 80 17 00 00 [23:49:08]Write to MH i2c: E2 08 00 5B 24 80 17 00 00 00 00 00 00 FF [23:49:08]Write i2c OK [23:49:08]MH_I2C_Read... [23:49:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:49:08]Read from MH i2c: E2 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 E2 00 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 E2 00 5B 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DD [23:49:08]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:08]wFMCommunicate OK [23:49:08]SAM_PROTO_GetFMData done [23:49:08]requested_item fm.sale_refund.total is exist - process it [23:49:08]requested_item fm.buy.total is exist - process it [23:49:08]requested_item shift.sale.total is exist - process it [23:49:08]SAM_PROTO_GetShiftData [23:49:08]wFMCommunicate request_size=4 [23:49:08]MH_SAM_APDU [23:49:08]CAPDU: 80 13 02 00 [23:49:08]Write to MH i2c: E2 08 00 5C 24 80 13 02 00 00 00 00 00 FE [23:49:08]Write i2c OK [23:49:08]MH_I2C_Read... [23:49:08]OFD Sender: No OFD packet to send [23:49:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:08]Read from MH i2c: E2 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 5C 24 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2E [23:49:08]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 5D 24 80 17 00 00 00 00 00 00 01 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 5D 24 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 23 [23:49:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 5E 24 80 17 00 00 00 00 00 00 02 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 5E 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B9 [23:49:09]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:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 5F 24 80 17 00 00 00 00 00 00 03 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 5F 24 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 75 [23:49: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:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 60 24 80 17 00 00 00 00 00 00 04 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:49:10]Read from MH i2c: E2 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 CB 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 CB 00 60 24 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 ED [23:49:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:10]wFMCommunicate OK [23:49:10]SAM_PROTO_GetShiftData done [23:49:10]requested_item shift.sale.total_cash is exist - process it [23:49:10]requested_item shift.sale_refund.total is exist - process it [23:49:10]requested_item shift.sale_refund.total_cash is exist - process it [23:49:10]requested_item shift.buy.total is exist - process it [23:49:10]requested_item shift.buy.total_cash is exist - process it [23:49:10]produce_requested_data done [23:49:10]produce_requested_data return {"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:49:10]process_action_free get_value [23:49:10]json_value_free [23:49:10]json_value_free done [23:49:10]process_json_proto returns [23:49:10]Send response to host [23:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:49:10]free response buf [23:49:10]execute_script done [23:49:10]execute_script returns [23:49:10]free content buf [23:49:10]Sock 9.Close socket [23:49:10]Sock 9.Thread stoped [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [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:35]accept exits with 7 [23:51:35]New connection [23:51:35]New thread 3066789220 created [23:51:35]Thread 3066645860 joined [23:51:35]Waiting for new connection... [23:51:35] Sock 7.Parse request [23:51:35]Sock 7.Check first char [23:51:35]Sock 7.First char is OK [23:51:35]request: POST /json_proto HTTP/1.0 [23:51:35]Method: POST [23:51:35]URL: /json_proto [23:51:35]Method is POST - this is cgi request [23:51:35]url: /json_proto [23:51:35]query_string will be loaded in cgi processing [23:51:35]execute_cgi json_proto POST (null) [23:51:35]execute_cgi path=json_proto method=POST [23:51:35]POST find Content-Length [23:51:35]Host: 172.17.49.196:8080 [23:51:35]Content-Length: 215 [23:51:35]Content-Type: application/json [23:51:35] [23:51:35]POST finish read [23:51:35]Found Content-Length = 215 [23:51:35]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:51:35]execute_script... [23:51:35]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:51:35]POST & json_proto [23:51:35]process_json_proto [23:51:35]json parsed OK: [23:51:35]protocol is kg_v1.0 [23:51:35]action value=get_value [23:51:35]process_action get_value [23:51:35]cmd_get_value [23:51:35]process_action get_value done [23:51:35]requested_data is exist [23:51:35]produce_requested_data [23:51:35]requested_item kkm.sn is exist - process it [23:51:35]requested_item kkm.ver is exist - process it [23:51:35]requested_item fm.sn is exist - process it [23:51:35]wFMCommunicate request_size=4 [23:51:35]MH_SAM_APDU [23:51:35]CAPDU: 80 11 00 00 [23:51:35]Write to MH i2c: E2 08 00 61 24 80 11 00 00 00 00 00 00 FF [23:51:35]Write i2c OK [23:51:35]MH_I2C_Read... [23:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:35]Read from MH i2c: E2 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 17 00 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 17 00 61 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 46 [23:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:51:35]wFMCommunicate OK [23:51:35]requested_item fd.num is exist - process it [23:51:35]SAM_PROTO_GetFieldsCounters [23:51:35]wFMCommunicate request_size=4 [23:51:35]MH_SAM_APDU [23:51:35]CAPDU: 80 13 00 00 [23:51:35]Write to MH i2c: E2 08 00 62 24 80 13 00 00 00 00 00 00 02 [23:51:35]Write i2c OK [23:51:35]MH_I2C_Read... [23:51:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 62 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 62 00 62 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [23:51:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:36]wFMCommunicate OK [23:51:36]SAM_PROTO_GetFieldsCounters done [23:51:36]requested_item shift.num is exist - process it [23:51:36]requested_item shift.opened is exist - process it [23:51:36]req_shift_opened [23:51:36]FM_GetShiftState [23:51:36]SAM_PROTO_GetShiftState [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 13 01 00 [23:51:36]Write to MH i2c: E2 08 00 63 24 80 13 01 00 00 00 00 00 04 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 0E 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 0E 00 63 24 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 FC [23:51:36]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:51:36]wFMCommunicate OK [23:51:36]SAM_PROTO_GetShiftState done [23:51:36]FM_GetShiftState done [23:51:36]req_shift_opened done [23:51:36]requested_item shift.open_date is exist - process it [23:51:36]req_shift_open_date [23:51:36]req_shift_open_date done [23:51:36]produce_requested_data done [23:51:36]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [23:51:36]process_action_free get_value [23:51:36]json_value_free [23:51:36]json_value_free done [23:51:36]process_json_proto returns [23:51:36]Send response to host [23:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [23:51:36]free response buf [23:51:36]execute_script done [23:51:36]execute_script returns [23:51:36]free content buf [23:51:36]Sock 7.Close socket [23:51:36]Sock 7.Thread stoped [23:51:36]accept exits with 9 [23:51:36]New connection [23:51:36]New thread 3066645860 created [23:51:36]Thread 3066789220 joined [23:51:36]Waiting for new connection... [23:51:36] Sock 9.Parse request [23:51:36]Sock 9.Check first char [23:51:36]Sock 9.First char is OK [23:51:36]request: POST /json_proto HTTP/1.0 [23:51:36]Method: POST [23:51:36]URL: /json_proto [23:51:36]Method is POST - this is cgi request [23:51:36]url: /json_proto [23:51:36]query_string will be loaded in cgi processing [23:51:36]execute_cgi json_proto POST (null) [23:51:36]execute_cgi path=json_proto method=POST [23:51:36]POST find Content-Length [23:51:36]Host: 172.17.49.196:8080 [23:51:36]Content-Length: 331 [23:51:36]Content-Type: application/json [23:51:36] [23:51:36]POST finish read [23:51:36]Found Content-Length = 331 [23:51:36]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:51:36]execute_script... [23:51:36]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:51:36]POST & json_proto [23:51:36]process_json_proto [23:51:36]json parsed OK: [23:51:36]protocol is kg_v1.0 [23:51:36]action value=get_value [23:51:36]process_action get_value [23:51:36]cmd_get_value [23:51:36]process_action get_value done [23:51:36]requested_data is exist [23:51:36]produce_requested_data [23:51:36]requested_item fm.sale.total is exist - process it [23:51:36]SAM_PROTO_GetFMData [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 13 03 00 [23:51:36]Write to MH i2c: E2 08 00 64 24 80 13 03 00 00 00 00 00 07 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 FD 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 FD 00 64 24 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 53 [23:51:36]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [23:51:36]wFMCommunicate OK [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 17 00 00 [23:51:36]Write to MH i2c: E2 08 00 65 24 80 17 00 00 00 00 00 00 09 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 65 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [23:51:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:37]wFMCommunicate OK [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 17 00 00 [23:51:37]Write to MH i2c: E2 08 00 66 24 80 17 00 00 00 00 00 00 0A [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 66 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [23:51:37]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:37]wFMCommunicate OK [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 17 00 00 [23:51:37]Write to MH i2c: E2 08 00 67 24 80 17 00 00 00 00 00 00 0B [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 67 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [23:51:37]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:37]wFMCommunicate OK [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 17 00 00 [23:51:37]Write to MH i2c: E2 08 00 68 24 80 17 00 00 00 00 00 00 0C [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 E2 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 E2 00 68 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EA [23:51:37]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:37]wFMCommunicate OK [23:51:37]SAM_PROTO_GetFMData done [23:51:37]requested_item fm.sale_refund.total is exist - process it [23:51:37]requested_item fm.buy.total is exist - process it [23:51:37]requested_item shift.sale.total is exist - process it [23:51:37]SAM_PROTO_GetShiftData [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 13 02 00 [23:51:37]Write to MH i2c: E2 08 00 69 24 80 13 02 00 00 00 00 00 0B [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 69 24 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [23:51:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:38]wFMCommunicate OK [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 17 00 00 [23:51:38]Write to MH i2c: E2 08 00 6A 24 80 17 00 00 00 00 00 00 0E [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 6A 24 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 30 [23:51:38]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:51:38]wFMCommunicate OK [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 17 00 00 [23:51:38]Write to MH i2c: E2 08 00 6B 24 80 17 00 00 00 00 00 00 0F [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 [23:51:38]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 6B 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [23:51:39]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:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 17 00 00 [23:51:39]Write to MH i2c: E2 08 00 6C 24 80 17 00 00 00 00 00 00 10 [23:51:39]OFD Sender: No OFD packet to send [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 6C 24 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 82 [23:51:39]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:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 17 00 00 [23:51:39]Write to MH i2c: E2 08 00 6D 24 80 17 00 00 00 00 00 00 11 [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 CB 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 CB 00 6D 24 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 FA [23:51:39]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:51:39]wFMCommunicate OK [23:51:39]SAM_PROTO_GetShiftData done [23:51:39]requested_item shift.sale.total_cash is exist - process it [23:51:39]requested_item shift.sale_refund.total is exist - process it [23:51:39]requested_item shift.sale_refund.total_cash is exist - process it [23:51:39]requested_item shift.buy.total is exist - process it [23:51:39]requested_item shift.buy.total_cash is exist - process it [23:51:39]produce_requested_data done [23:51:39]produce_requested_data return {"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:51:39]process_action_free get_value [23:51:39]json_value_free [23:51:39]json_value_free done [23:51:39]process_json_proto returns [23:51:39]Send response to host [23:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:51:39]free response buf [23:51:39]execute_script done [23:51:39]execute_script returns [23:51:39]free content buf [23:51:39]Sock 9.Close socket [23:51:39]Sock 9.Thread stoped [23:51:39]accept exits with 7 [23:51:39]New connection [23:51:39]New thread 3066789220 created [23:51:39]Thread 3066645860 joined [23:51:39]Waiting for new connection... [23:51:39] Sock 7.Parse request [23:51:39]Sock 7.Check first char [23:51:39]Sock 7.First char is OK [23:51:39]request: POST /json_proto HTTP/1.0 [23:51:39]Method: POST [23:51:39]URL: /json_proto [23:51:39]Method is POST - this is cgi request [23:51:39]url: /json_proto [23:51:39]query_string will be loaded in cgi processing [23:51:39]execute_cgi json_proto POST (null) [23:51:39]execute_cgi path=json_proto method=POST [23:51:39]POST find Content-Length [23:51:39]Host: 172.17.49.196:8080 [23:51:39]Content-Length: 331 [23:51:39]Content-Type: application/json [23:51:39] [23:51:39]POST finish read [23:51:39]Found Content-Length = 331 [23:51: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" ] } } [23:51:39]execute_script... [23:51: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" ] } } [23:51:39]POST & json_proto [23:51:39]process_json_proto [23:51:39]json parsed OK: [23:51:39]protocol is kg_v1.0 [23:51:39]action value=get_value [23:51:39]process_action get_value [23:51:39]cmd_get_value [23:51:39]process_action get_value done [23:51:39]requested_data is exist [23:51:39]produce_requested_data [23:51:39]requested_item fm.sale.total is exist - process it [23:51:39]SAM_PROTO_GetFMData [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 13 03 00 [23:51:39]Write to MH i2c: E2 08 00 6E 24 80 13 03 00 00 00 00 00 11 [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:40]Read from MH i2c: E2 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 FD 00 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 FD 00 6E 24 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 5D [23:51:40]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [23:51:40]wFMCommunicate OK [23:51:40]wFMCommunicate request_size=4 [23:51:40]MH_SAM_APDU [23:51:40]CAPDU: 80 17 00 00 [23:51:40]Write to MH i2c: E2 08 00 6F 24 80 17 00 00 00 00 00 00 13 [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:40]Read from MH i2c: E2 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 FD 00 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 FD 00 6F 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [23:51:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:40]wFMCommunicate OK [23:51:40]wFMCommunicate request_size=4 [23:51:40]MH_SAM_APDU [23:51:40]CAPDU: 80 17 00 00 [23:51:40]Write to MH i2c: E2 08 00 70 24 80 17 00 00 00 00 00 00 14 [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 70 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [23:51:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:41]wFMCommunicate OK [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 17 00 00 [23:51:41]Write to MH i2c: E2 08 00 71 24 80 17 00 00 00 00 00 00 15 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 71 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [23:51:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:41]wFMCommunicate OK [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 17 00 00 [23:51:41]Write to MH i2c: E2 08 00 72 24 80 17 00 00 00 00 00 00 16 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 E2 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 E2 00 72 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F4 [23:51:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:41]wFMCommunicate OK [23:51:41]SAM_PROTO_GetFMData done [23:51:41]requested_item fm.sale_refund.total is exist - process it [23:51:41]requested_item fm.buy.total is exist - process it [23:51:41]requested_item shift.sale.total is exist - process it [23:51:41]SAM_PROTO_GetShiftData [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 13 02 00 [23:51:41]Write to MH i2c: E2 08 00 73 24 80 13 02 00 00 00 00 00 15 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 73 24 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 45 [23:51:42]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:42]wFMCommunicate OK [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 74 24 80 17 00 00 00 00 00 00 18 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 74 24 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 3A [23:51: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 [23:51:42]wFMCommunicate OK [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 75 24 80 17 00 00 00 00 00 00 19 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 75 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [23:51:43]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:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 76 24 80 17 00 00 00 00 00 00 1A [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 76 24 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 8C [23:51:43]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:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 77 24 80 17 00 00 00 00 00 00 1B [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 CB 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 CB 00 77 24 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 04 [23:51: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 OFD Sender: No OFD packet to send [23:51:44]03 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:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetShiftData done [23:51:44]requested_item shift.sale.total_cash is exist - process it [23:51:44]requested_item shift.sale_refund.total is exist - process it [23:51:44]requested_item shift.sale_refund.total_cash is exist - process it [23:51:44]requested_item shift.buy.total is exist - process it [23:51:44]requested_item shift.buy.total_cash is exist - process it [23:51:44]produce_requested_data done [23:51:44]produce_requested_data return {"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:51:44]process_action_free get_value [23:51:44]json_value_free [23:51:44]json_value_free done [23:51:44]process_json_proto returns [23:51:44]Send response to host [23:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:51:44]free response buf [23:51:44]execute_script done [23:51:44]execute_script returns [23:51:44]free content buf [23:51:44]Sock 7.Close socket [23:51:44]Sock 7.Thread stoped [23:51:44]accept exits with 9 [23:51:44]New connection [23:51:44]New thread 3066645860 created [23:51:44]Thread 3066789220 joined [23:51:44]Waiting for new connection... [23:51:44] Sock 9.Parse request [23:51:44]Sock 9.Check first char [23:51:44]Sock 9.First char is OK [23:51:44]request: POST /json_proto HTTP/1.0 [23:51:44]Method: POST [23:51:44]URL: /json_proto [23:51:44]Method is POST - this is cgi request [23:51:44]url: /json_proto [23:51:44]query_string will be loaded in cgi processing [23:51:44]execute_cgi json_proto POST (null) [23:51:44]execute_cgi path=json_proto method=POST [23:51:44]POST find Content-Length [23:51:44]Host: 172.17.49.196:8080 [23:51:44]Content-Length: 262 [23:51:44]Content-Type: application/json [23:51:44] [23:51:44]POST finish read [23:51:44]Found Content-Length = 262 [23:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0431\u0434\u0443\u043B\u043B\u0430\u0435\u0432 \u0414." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:44]execute_script... [23:51:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0431\u0434\u0443\u043B\u043B\u0430\u0435\u0432 \u0414." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:44]POST & json_proto [23:51:44]process_json_proto [23:51:44]json parsed OK: [23:51:44]protocol is kg_v1.0 [23:51:44]action value=x_report [23:51:44]process_action x_report [23:51:44]cmd_x_report [23:51:44]MH_GetDate [23:51:44]Write to MH i2c: F0 00 00 78 24 8B [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 09 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 09 00 78 24 00 14 2F 1C 67 BD 3B 11 67 CA [23:51:44]GetLastDocTimeStamp 1729899103 [23:51:44]current date 1729900308 [23:51:44]FM_GetShiftState [23:51:44]SAM_PROTO_GetShiftState [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 13 01 00 [23:51:44]Write to MH i2c: E2 08 00 79 24 80 13 01 00 00 00 00 00 1A [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 0E 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 0E 00 79 24 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 12 [23:51:44]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetShiftState done [23:51:44]FM_GetShiftState done [23:51:44]KKMCreateXReportDocument [23:51:44]Load OK [23:51:44]Malloc new data [23:51:44]MH_GetDate [23:51:44]Write to MH i2c: F0 00 00 7A 24 8D [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 09 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 09 00 7A 24 00 14 2F 1C 67 BD 3B 11 67 CC [23:51:44]Malloc new data [23:51:44]Malloc new data [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 11 00 00 [23:51:44]Write to MH i2c: E2 08 00 7B 24 80 11 00 00 00 00 00 00 19 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 17 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 17 00 7B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 60 [23:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetFieldsCounters [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 13 00 00 [23:51:44]Write to MH i2c: E2 08 00 7C 24 80 13 00 00 00 00 00 00 1C [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 62 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 62 00 7C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [23:51:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetFieldsCounters done [23:51:44]Malloc new data [23:51:44]Malloc new data [23:51:44]Malloc new data [23:51:44]KKMCreateXReportDocument OK [23:51:44]KKMSetXReportData OK [23:51:44]KKMPrepareXReportFMData [23:51:44]SAM_PROTO_GetShiftData [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 13 02 00 [23:51:44]Write to MH i2c: E2 08 00 7D 24 80 13 02 00 00 00 00 00 1F [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 7D 24 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [23:51:45]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:45]wFMCommunicate OK [23:51:45]wFMCommunicate request_size=4 [23:51:45]MH_SAM_APDU [23:51:45]CAPDU: 80 17 00 00 [23:51:45]Write to MH i2c: E2 08 00 7E 24 80 17 00 00 00 00 00 00 22 [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 7E 24 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 44 [23:51:45]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:51:45]wFMCommunicate OK [23:51:45]wFMCommunicate request_size=4 [23:51:45]MH_SAM_APDU [23:51:45]CAPDU: 80 17 00 00 [23:51:45]Write to MH i2c: E2 08 00 7F 24 80 17 00 00 00 00 00 00 23 [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:46]Read from MH i2c: E2 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 7F 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DA [23:51:46]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:51:46]wFMCommunicate OK [23:51:46]wFMCommunicate request_size=4 [23:51:46]MH_SAM_APDU [23:51:46]CAPDU: 80 17 00 00 [23:51:46]Write to MH i2c: E2 08 00 80 24 80 17 00 00 00 00 00 00 24 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:46]Read from MH i2c: E2 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 80 24 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 96 [23:51:46]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:51:46]wFMCommunicate OK [23:51:46]wFMCommunicate request_size=4 [23:51:46]MH_SAM_APDU [23:51:46]CAPDU: 80 17 00 00 [23:51:46]Write to MH i2c: E2 08 00 81 24 80 17 00 00 00 00 00 00 25 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 CB 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 CB 00 81 24 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 0E [23:51:47]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:51:47]wFMCommunicate OK [23:51:47]SAM_PROTO_GetShiftData done [23:51:47]1194 (1194) - счетчики итогов смены [23:51:47] 1134 (4) - 166 - количество чеков со всеми признаками расчетов [23:51:47] 1129 (155) - счетчики операций «приход» [23:51:47] 1135 (4) - 166 - количество чеков по признаку расчетов [23:51:47] 1201 (3) - 62702.14 - общая итоговая сумма в чеках [23:51:47] 1136 (3) - 47846.00 - итоговая сумма в чеках наличными [23:51:47] 1138 (3) - 14856.14 - итоговая сумма в чеках безналичными [23:51:47] 1024 (122) - суммы налогов [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 0% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1006 (12) - суммы НДС [23:51:47] 1010 (1) - 12% - код ставки НДС [23:51:47] 1011 (3) - 6659.08 - сумма НДС по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (11) - суммы НСП [23:51:47] 1014 (1) - 1% - код ставки НСП [23:51:47] 1015 (2) - 554.89 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 2% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 3% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 5% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1130 (141) - счетчики операций «возврат прихода» [23:51:47] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:47] 1024 (117) - суммы налогов [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 0% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 12% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 2% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 3% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 5% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1131 (141) - счетчики операций «расход» [23:51:47] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:47] 1024 (117) - суммы налогов [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 0% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 12% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 2% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 3% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 5% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1132 (141) - счетчики операций «возврат расхода» [23:51:47] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:47] 1024 (117) - суммы налогов [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 0% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 12% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 2% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 3% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 5% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1133 (588) - - счетчики коррекции - не используются [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1194 (04AA) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1134 (046E) [23:51:47]Malloc new data [23:51:47]Processing tag 1129 (0469) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1135 (046F) [23:51:47]Malloc new data [23:51:47]Processing tag 1201 (04B1) [23:51:47]Malloc new data [23:51:47]Processing tag 1136 (0470) [23:51:47]Malloc new data [23:51:47]Processing tag 1138 (0472) [23:51:47]Malloc new data [23:51:47]Processing tag 1024 (0400) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1006 (03EE) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1010 (03F2) [23:51:47]Malloc new data [23:51:47]Processing tag 1011 (03F3) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1006 (03EE) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1010 (03F2) [23:51:47]Malloc new data [23:51:47]Processing tag 1011 (03F3) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]SetTLVBufToDocument err=0 [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1130 (046A) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1135 (046F) [23:51:47]Malloc new data [23:51:47]Processing tag 1201 (04B1) [23:51:47]Malloc new data [23:51:47]Processing tag 1136 (0470) [23:51:47]Malloc new data [23:51:47]Processing tag 1138 (0472) [23:51:47]Malloc new data [23:51:47]Processing tag 1024 (0400) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1006 (03EE) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1010 (03F2) [23:51:47]Malloc new data [23:51:47]Processing tag 1011 (03F3) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1006 (03EE) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1010 (03F2) [23:51:47]Malloc new data [23:51:47]Processing tag 1011 (03F3) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:47]Malloc new data [23:51:47]SetTLVBufToDocument err=0 [23:51:47]Processing tag 1007 (03EF) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1014 (03F6) [23:51:47]Malloc new data [23:51:47]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1131 (046B) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1135 (046F) [23:51:48]Malloc new data [23:51:48]Processing tag 1201 (04B1) [23:51:48]Malloc new data [23:51:48]Processing tag 1136 (0470) [23:51:48]Malloc new data [23:51:48]Processing tag 1138 (0472) [23:51:48]Malloc new data [23:51:48]Processing tag 1024 (0400) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1132 (046C) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1135 (046F) [23:51:48]Malloc new data [23:51:48]Processing tag 1201 (04B1) [23:51:48]Malloc new data [23:51:48]Processing tag 1136 (0470) [23:51:48]Malloc new data [23:51:48]Processing tag 1138 (0472) [23:51:48]Malloc new data [23:51:48]Processing tag 1024 (0400) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1133 (046D) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Malloc new data [23:51:48]SAM_PROTO_GetFMData [23:51:48]wFMCommunicate request_size=4 [23:51:48]MH_SAM_APDU [23:51:48]CAPDU: 80 13 03 00 [23:51:48]Write to MH i2c: E2 08 00 82 24 80 13 03 00 00 00 00 00 25 [23:51:48]Write i2c OK [23:51:48]MH_I2C_Read... [23:51:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:48]Read from MH i2c: E2 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 FD 00 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 FD 00 82 24 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 71 [23:51:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [23:51:49]wFMCommunicate OK [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 17 00 00 [23:51:49]Write to MH i2c: E2 08 00 83 24 80 17 00 00 00 00 00 00 27 [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]OFD Sender: No OFD packet to send [23:51:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 83 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [23:51:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:49]wFMCommunicate OK [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 17 00 00 [23:51:49]Write to MH i2c: E2 08 00 84 24 80 17 00 00 00 00 00 00 28 [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 84 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [23:51:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:50]wFMCommunicate OK [23:51:50]wFMCommunicate request_size=4 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 17 00 00 [23:51:50]Write to MH i2c: E2 08 00 85 24 80 17 00 00 00 00 00 00 29 [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 85 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B5 [23:51:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:50]wFMCommunicate OK [23:51:50]wFMCommunicate request_size=4 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 17 00 00 [23:51:50]Write to MH i2c: E2 08 00 86 24 80 17 00 00 00 00 00 00 2A [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 E2 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 E2 00 86 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:51]wFMCommunicate OK [23:51:51]SAM_PROTO_GetFMData done [23:51:51]FM_GetFMData:85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E 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 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:52]oper:6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 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:51:52]total:1B DA 01 83 [23:51:52]Malloc new data [23:51:52]oper:6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E 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 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:52]total:68 BD E6 02 [23:51:52]Malloc new data [23:51:52]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:51:52]total: [23:51:52]Malloc new data [23:51:52]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:51:52]total: [23:51:52]Malloc new data [23:51:52]KKMPrepareXReportFMData err=0 [23:51:52]Х отчет ИНН: 02508201610067 Кассир: Абдуллаев Д. 25.10.2024 23:51 Смена: 266 РНМ: 0000000000097022 ЗНМ: 0300000090 СНО: Общий режим Всего чеков: 166 ИТОГИ ПРИХОД Чеков: 166 Общий итог: 62702.14 Итого наличными: 47846.00 Итого безнал.: 14856.14 НДС 0% : 0.00 НДС 12% : 6659.08 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 554.89 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 47846.00 НС Приход: 21979366.67 НС Возвр.Прихода: 486762.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875000 [23:51:52]StoreToDocumentArchive [23:51:52]MH_GetDate [23:51:52]Write to MH i2c: F0 00 00 87 24 9A [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: F0 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: F0 09 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: F0 09 00 87 24 00 1C 2F 1C 67 BD 3B 11 67 E1 [23:51:52]shift 266 fd 1729900316 [23:51:52]Create dir for shift 0266 [23:51:52]save to /storage/0266/doc_1729900316 [23:51:52]save last doc name /storage/0266/doc_1729900316 to /storage/kkm_last_doc_name [23:51:52]save OK [23:51:52]Clear old archive folders... [23:51:52]NVStorageSaveData kkm_last_timestamp [23:51:52]File name is /storage/kkm_last_timestamp [23:51:52]Write 4 bytes [23:51:52]NVStorageSaveData done [23:51:52]ExternCall_PrintAddStr [23:51:52]wPrintStart [23:51:52]Write to MH i2c: 01 00 00 88 24 AC [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 07 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 07 00 88 24 00 00 00 00 00 FF 0F C1 [23:51:52]RasterBufferAndPrint [23:51:52]line Х отчет [23:51:52]line ИНН: 02508201610067 [23:51:52]line Кассир: Абдуллаев Д. [23:51:52]line 25.10.2024 23:51 [23:51:52]line Смена: 266 [23:51:52]line РНМ: 0000000000097022 [23:51:52]line ЗНМ: 0300000090 [23:51:52]line СНО: Общий режим [23:51:52]line Всего чеков: 166 [23:51:52]line ИТОГИ ПРИХОД [23:51:52]line Чеков: 166 [23:51:52]line Общий итог: 62702.14 [23:51:52]line Итого наличными: 47846.00 [23:51:52]line Итого безнал.: 14856.14 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 6659.08 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 554.89 [23:51:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:52]line Чеков: 0 [23:51:52]line Общий итог: 0.00 [23:51:52]line Итого наличными: 0.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 0.00 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 0.00 [23:51:52]line ИТОГИ РАСХОД [23:51:52]line Чеков: 0 [23:51:52]line Общий итог: 0.00 [23:51:52]line Итого наличными: 0.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 0.00 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 0.00 [23:51:52]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:52]line Чеков: 0 [23:51:52]line Общий итог: 0.00 [23:51:52]line Итого наличными: 0.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 0.00 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 0.00 [23:51:52]line Сумма внесений: 0.00 [23:51:52]line Сумма выплат: 0.00 [23:51:52]line Нал. в кассе: 47846.00 [23:51:52]line НС Приход: 21979366.67 [23:51:52]line НС Возвр.Прихода: 486762.00 [23:51:52]line НС Расход: 0.00 [23:51:52]line НС Возвр.Расхода: 0.00 [23:51:52]line ФМ: 0000000000875000 [23:51:52]written 0, free lines is 4095 [23:51:53]Write to MH i2c: 01 00 00 D3 24 F7 [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: 01 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: 01 07 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: 01 07 00 D3 24 00 00 00 00 00 22 0B 2B [23:51:53]RasterBufferAndPrint [23:51:53]line [23:51:53]line [23:51:53]line [23:51:53]line [23:51:53]line [23:51:53]written 0, free lines is 2886 [23:51:53]process_action x_report done [23:51:53]requested_data is exist [23:51:53]produce_requested_data [23:51:53]requested_item fd.num is exist - process it [23:51:53]SAM_PROTO_GetFieldsCounters [23:51:53]wFMCommunicate request_size=4 [23:51:53]MH_SAM_APDU [23:51:53]CAPDU: 80 13 00 00 [23:51:53]Write to MH i2c: E2 08 00 DA 24 80 13 00 00 00 00 00 00 7A [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:53]Read from MH i2c: E2 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 62 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 62 00 DA 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [23:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:53]wFMCommunicate OK [23:51:53]SAM_PROTO_GetFieldsCounters done [23:51:53]requested_item shift.num is exist - process it [23:51:53]requested_item shift.opened is exist - process it [23:51:53]req_shift_opened [23:51:53]FM_GetShiftState [23:51:53]SAM_PROTO_GetShiftState [23:51:53]wFMCommunicate request_size=4 [23:51:53]MH_SAM_APDU [23:51:53]CAPDU: 80 13 01 00 [23:51:53]Write to MH i2c: E2 08 00 DB 24 80 13 01 00 00 00 00 00 7C [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:53]Read from MH i2c: E2 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 0E 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 0E 00 DB 24 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 74 [23:51:53]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:51:53]wFMCommunicate OK [23:51:53]SAM_PROTO_GetShiftState done [23:51:53]FM_GetShiftState done [23:51:53]req_shift_opened done [23:51:53]requested_item shift.open_date is exist - process it [23:51:53]req_shift_open_date [23:51:53]req_shift_open_date done [23:51:53]produce_requested_data done [23:51:53]produce_requested_data return {"fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [23:51:53]process_action_free x_report [23:51:53]json_value_free [23:51:53]json_value_free done [23:51:53]process_json_proto returns [23:51:53]Send response to host [23:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [23:51:53]free response buf [23:51:53]execute_script done [23:51:53]execute_script returns [23:51:53]free content buf [23:51:53]Sock 9.Close socket [23:51:53]Sock 9.Thread stoped [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:30]accept exits with 7 [23:52:30]New connection [23:52:30]New thread 3066789220 created [23:52:30]Thread 3066645860 joined [23:52:30]Waiting for new connection... [23:52:30] Sock 7.Parse request [23:52:30]Sock 7.Check first char [23:52:30]Sock 7.First char is OK [23:52:30]request: POST /json_proto HTTP/1.0 [23:52:30]Method: POST [23:52:30]URL: /json_proto [23:52:30]Method is POST - this is cgi request [23:52:30]url: /json_proto [23:52:30]query_string will be loaded in cgi processing [23:52:30]execute_cgi json_proto POST (null) [23:52:30]execute_cgi path=json_proto method=POST [23:52:30]POST find Content-Length [23:52:30]Host: 172.17.49.196:8080 [23:52:30]Content-Length: 215 [23:52:30]Content-Type: application/json [23:52:30] [23:52:30]POST finish read [23:52:30]Found Content-Length = 215 [23:52:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:30]execute_script... [23:52:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:30]POST & json_proto [23:52:30]process_json_proto [23:52:30]json parsed OK: [23:52:30]protocol is kg_v1.0 [23:52:30]action value=get_value [23:52:30]process_action get_value [23:52:30]cmd_get_value [23:52:30]process_action get_value done [23:52:30]requested_data is exist [23:52:30]produce_requested_data [23:52:30]requested_item kkm.sn is exist - process it [23:52:30]requested_item kkm.ver is exist - process it [23:52:30]requested_item fm.sn is exist - process it [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 11 00 00 [23:52:30]Write to MH i2c: E2 08 00 DC 24 80 11 00 00 00 00 00 00 7A [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 17 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 17 00 DC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C1 [23:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:52:30]wFMCommunicate OK [23:52:30]requested_item fd.num is exist - process it [23:52:30]SAM_PROTO_GetFieldsCounters [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 13 00 00 [23:52:30]Write to MH i2c: E2 08 00 DD 24 80 13 00 00 00 00 00 00 7D [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 62 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 62 00 DD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [23:52:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EA C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_GetFieldsCounters done [23:52:30]requested_item shift.num is exist - process it [23:52:30]requested_item shift.opened is exist - process it [23:52:30]req_shift_opened [23:52:30]FM_GetShiftState [23:52:30]SAM_PROTO_GetShiftState [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 13 01 00 [23:52:30]Write to MH i2c: E2 08 00 DE 24 80 13 01 00 00 00 00 00 7F [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 0E 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 0E 00 DE 24 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 77 [23:52:30]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_GetShiftState done [23:52:30]FM_GetShiftState done [23:52:30]req_shift_opened done [23:52:30]requested_item shift.open_date is exist - process it [23:52:30]req_shift_open_date [23:52:30]req_shift_open_date done [23:52:30]produce_requested_data done [23:52:30]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177} [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":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50666,"shift.num":493,"shift.opened":1,"shift.open_date":1729815177}}} [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 7.Close socket [23:52:30]Sock 7.Thread stoped [23:52:30]accept exits with 9 [23:52:30]New connection [23:52:30]New thread 3066645860 created [23:52:30]Thread 3066789220 joined [23:52:30]Waiting for new connection... [23:52:30] Sock 9.Parse request [23:52:30]Sock 9.Check first char [23:52:30]Sock 9.First char is OK [23:52:30]request: POST /json_proto HTTP/1.0 [23:52:30]Method: POST [23:52:30]URL: /json_proto [23:52:30]Method is POST - this is cgi request [23:52:30]url: /json_proto [23:52:30]query_string will be loaded in cgi processing [23:52:30]execute_cgi json_proto POST (null) [23:52:30]execute_cgi path=json_proto method=POST [23:52:30]POST find Content-Length [23:52:30]Host: 172.17.49.196:8080 [23:52:30]Content-Length: 331 [23:52:30]Content-Type: application/json [23:52:30] [23:52:30]POST finish read [23:52:30]Found Content-Length = 331 [23:52:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:30]execute_script... [23:52:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:30]POST & json_proto [23:52:30]process_json_proto [23:52:30]json parsed OK: [23:52:30]protocol is kg_v1.0 [23:52:30]action value=get_value [23:52:30]process_action get_value [23:52:30]cmd_get_value [23:52:30]process_action get_value done [23:52:30]requested_data is exist [23:52:30]produce_requested_data [23:52:30]requested_item fm.sale.total is exist - process it [23:52:30]SAM_PROTO_GetFMData [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 13 03 00 [23:52:30]Write to MH i2c: E2 08 00 DF 24 80 13 03 00 00 00 00 00 82 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 DF 24 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 CE [23:52:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [23:52:31]wFMCommunicate OK [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 17 00 00 [23:52:31]Write to MH i2c: E2 08 00 E0 24 80 17 00 00 00 00 00 00 84 [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 E0 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [23:52:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:31]wFMCommunicate OK [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 17 00 00 [23:52:31]Write to MH i2c: E2 08 00 E1 24 80 17 00 00 00 00 00 00 85 [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 E1 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [23:52:31]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:31]wFMCommunicate OK [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 17 00 00 [23:52:31]Write to MH i2c: E2 08 00 E2 24 80 17 00 00 00 00 00 00 86 [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 E2 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [23:52:32]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 17 00 00 [23:52:32]Write to MH i2c: E2 08 00 E3 24 80 17 00 00 00 00 00 00 87 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 E2 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 E2 00 E3 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 65 [23:52:32]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:32]wFMCommunicate OK [23:52:32]SAM_PROTO_GetFMData done [23:52:32]requested_item fm.sale_refund.total is exist - process it [23:52:32]requested_item fm.buy.total is exist - process it [23:52:32]requested_item shift.sale.total is exist - process it [23:52:32]SAM_PROTO_GetShiftData [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 13 02 00 [23:52:32]Write to MH i2c: E2 08 00 E4 24 80 13 02 00 00 00 00 00 86 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 E4 24 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 [23:52:32]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 E5 24 80 17 00 00 00 00 00 00 89 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 E5 24 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 AB [23:52:33]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:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 E6 24 80 17 00 00 00 00 00 00 8A [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 E6 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 41 [23:52:33]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:52:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 E7 24 80 17 00 00 00 00 00 00 8B [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 E7 24 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 FD [23:52:34]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:34]wFMCommunicate OK [23:52:34]wFMCommunicate request_size=4 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 17 00 00 [23:52:34]Write to MH i2c: E2 08 00 E8 24 80 17 00 00 00 00 00 00 8C [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 CB 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 CB 00 E8 24 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 75 [23:52:34]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:34]wFMCommunicate OK [23:52:34]SAM_PROTO_GetShiftData done [23:52:34]requested_item shift.sale.total_cash is exist - process it [23:52:34]requested_item shift.sale_refund.total is exist - process it [23:52:34]requested_item shift.sale_refund.total_cash is exist - process it [23:52:34]requested_item shift.buy.total is exist - process it [23:52:34]requested_item shift.buy.total_cash is exist - process it [23:52:34]produce_requested_data done [23:52:34]produce_requested_data return {"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:34]process_action_free get_value [23:52:34]json_value_free [23:52:34]json_value_free done [23:52:34]process_json_proto returns [23:52:34]Send response to host [23:52:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:34]free response buf [23:52:34]execute_script done [23:52:34]execute_script returns [23:52:34]free content buf [23:52:34]Sock 9.Close socket [23:52:34]Sock 9.Thread stoped [23:52:34]accept exits with 7 [23:52:34]New connection [23:52:34]New thread 3066789220 created [23:52:34]Thread 3066645860 joined [23:52:34]Waiting for new connection... [23:52:34] Sock 7.Parse request [23:52:34]Sock 7.Check first char [23:52:34]Sock 7.First char is OK [23:52:34]request: POST /json_proto HTTP/1.0 [23:52:34]Method: POST [23:52:34]URL: /json_proto [23:52:34]Method is POST - this is cgi request [23:52:34]url: /json_proto [23:52:34]query_string will be loaded in cgi processing [23:52:34]execute_cgi json_proto POST (null) [23:52:34]execute_cgi path=json_proto method=POST [23:52:34]POST find Content-Length [23:52:34]Host: 172.17.49.196:8080 [23:52:34]Content-Length: 331 [23:52:34]Content-Type: application/json [23:52:34] [23:52:34]POST finish read [23:52:34]Found Content-Length = 331 [23:52:34]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:34]execute_script... [23:52:34]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:34]POST & json_proto [23:52:34]process_json_proto [23:52:34]json parsed OK: [23:52:34]protocol is kg_v1.0 [23:52:34]action value=get_value [23:52:34]process_action get_value [23:52:34]cmd_get_value [23:52:34]process_action get_value done [23:52:34]requested_data is exist [23:52:34]produce_requested_data [23:52:34]requested_item fm.sale.total is exist - process it [23:52:34]SAM_PROTO_GetFMData [23:52:34]wFMCommunicate request_size=4 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 13 03 00 [23:52:34]Write to MH i2c: E2 08 00 E9 24 80 13 03 00 00 00 00 00 8C [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]OFD Sender: No OFD packet to send [23:52:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 E9 24 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 D8 [23:52:35]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [23:52:35]wFMCommunicate OK [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 EA 24 80 17 00 00 00 00 00 00 8E [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 EA 24 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [23:52:35]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:35]wFMCommunicate OK [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 EB 24 80 17 00 00 00 00 00 00 8F [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 EB 24 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [23:52:35]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:35]wFMCommunicate OK [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 EC 24 80 17 00 00 00 00 00 00 90 [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:36]Read from MH i2c: E2 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 EC 24 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [23:52:36]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:36]wFMCommunicate OK [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 17 00 00 [23:52:36]Write to MH i2c: E2 08 00 ED 24 80 17 00 00 00 00 00 00 91 [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:52:36]Read from MH i2c: E2 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 E2 00 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 E2 00 ED 24 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F [23:52:36]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:36]wFMCommunicate OK [23:52:36]SAM_PROTO_GetFMData done [23:52:36]requested_item fm.sale_refund.total is exist - process it [23:52:36]requested_item fm.buy.total is exist - process it [23:52:36]requested_item shift.sale.total is exist - process it [23:52:36]SAM_PROTO_GetShiftData [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 13 02 00 [23:52:36]Write to MH i2c: E2 08 00 EE 24 80 13 02 00 00 00 00 00 90 [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 EE 24 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 [23:52:37]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:37]wFMCommunicate OK [23:52:37]wFMCommunicate request_size=4 [23:52:37]MH_SAM_APDU [23:52:37]CAPDU: 80 17 00 00 [23:52:37]Write to MH i2c: E2 08 00 EF 24 80 17 00 00 00 00 00 00 93 [23:52:37]Write i2c OK [23:52:37]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 EF 24 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:52:37]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:37]wFMCommunicate OK [23:52:37]wFMCommunicate request_size=4 [23:52:37]MH_SAM_APDU [23:52:37]CAPDU: 80 17 00 00 [23:52:37]Write to MH i2c: E2 08 00 F0 24 80 17 00 00 00 00 00 00 94 [23:52:37]Write i2c OK [23:52:37]MH_I2C_Read... [23:52:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:38]Read from MH i2c: E2 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 F0 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52:38]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:38]wFMCommunicate OK [23:52:38]wFMCommunicate request_size=4 [23:52:38]MH_SAM_APDU [23:52:38]CAPDU: 80 17 00 00 [23:52:38]Write to MH i2c: E2 08 00 F1 24 80 17 00 00 00 00 00 00 95 [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:38]Read from MH i2c: E2 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 F1 24 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:52:38]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:38]wFMCommunicate OK [23:52:38]wFMCommunicate request_size=4 [23:52:38]MH_SAM_APDU [23:52:38]CAPDU: 80 17 00 00 [23:52:38]Write to MH i2c: E2 08 00 F2 24 80 17 00 00 00 00 00 00 96 [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 CB 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 CB 00 F2 24 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:52:39]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:39]wFMCommunicate OK [23:52:39]SAM_PROTO_GetShiftData done [23:52:39]requested_item shift.sale.total_cash is exist - process it [23:52:39]requested_item shift.sale_refund.total is exist - process it [23:52:39]requested_item shift.sale_refund.total_cash is exist - process it [23:52:39]requested_item shift.buy.total is exist - process it [23:52:39]requested_item shift.buy.total_cash is exist - process it [23:52:39]produce_requested_data done [23:52:39]produce_requested_data return {"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:39]process_action_free get_value [23:52:39]json_value_free [23:52:39]json_value_free done [23:52:39]process_json_proto returns [23:52:39]Send response to host [23:52:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:39]free response buf [23:52:39]execute_script done [23:52:39]execute_script returns [23:52:39]free content buf [23:52:39]Sock 7.Close socket [23:52:39]Sock 7.Thread stoped [23:52:39]accept exits with 9 [23:52:39]New connection [23:52:39]New thread 3066645860 created [23:52:39]Thread 3066789220 joined [23:52:39]Waiting for new connection... [23:52:39] Sock 9.Parse request [23:52:39]Sock 9.Check first char [23:52:39]Sock 9.First char is OK [23:52:39]request: POST /json_proto HTTP/1.0 [23:52:39]Method: POST [23:52:39]URL: /json_proto [23:52:39]Method is POST - this is cgi request [23:52:39]url: /json_proto [23:52:39]query_string will be loaded in cgi processing [23:52:39]execute_cgi json_proto POST (null) [23:52:39]execute_cgi path=json_proto method=POST [23:52:39]POST find Content-Length [23:52:39]Host: 172.17.49.196:8080 [23:52:39]Content-Length: 265 [23:52:39]Content-Type: application/json [23:52:39] [23:52:39]POST finish read [23:52:39]Found Content-Length = 265 [23:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0431\u0434\u0443\u043B\u043B\u0430\u0435\u0432 \u0414." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:39]execute_script... [23:52:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0431\u0434\u0443\u043B\u043B\u0430\u0435\u0432 \u0414." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:39]POST & json_proto [23:52:39]process_json_proto [23:52:39]json parsed OK: [23:52:39]protocol is kg_v1.0 [23:52:39]action value=close_shift [23:52:39]process_action close_shift [23:52:39]cmd_close_shift [23:52:39]MH_GetDate [23:52:39]Write to MH i2c: F0 00 00 F3 24 06 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: F0 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: F0 09 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: F0 09 00 F3 24 00 4B 2F 1C 67 BD 3B 11 67 7C [23:52:39]GetLastDocTimeStamp 1729900308 [23:52:39]current date 1729900363 [23:52:39]FM_GetShiftState [23:52:39]SAM_PROTO_GetShiftState [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 13 01 00 [23:52:39]Write to MH i2c: E2 08 00 F4 24 80 13 01 00 00 00 00 00 95 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 0E 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 0E 00 F4 24 00 09 00 01 89 E2 1A 67 00 00 00 00 90 00 8D [23:52:39]RAPDU: 09 00 01 89 E2 1A 67 00 00 00 00 90 00 [23:52:39]wFMCommunicate OK [23:52:39]SAM_PROTO_GetShiftState done [23:52:39]FM_GetShiftState done [23:52:39]KKMCreateCloseShiftDocument [23:52:39]Load OK [23:52:39]Malloc new data [23:52:39]MH_GetDate [23:52:39]Write to MH i2c: F0 00 00 F5 24 08 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: F0 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: F0 09 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: F0 09 00 F5 24 00 4B 2F 1C 67 BD 3B 11 67 7E [23:52:39]Malloc new data [23:52:39]Malloc new data [23:52:39]Malloc new data [23:52:39]Malloc new data [23:52:39]KKMCreateCloseShiftDocument OK [23:52:39]KKMSetCloseShiftData OK [23:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=72 [23:52:39]tlvbuf is 01F69960 [23:52:39]KKMLoadAndSignCloseShiftData [23:52:39]SAM_PROTO_ProcessDocument [23:52:39]wFMCommunicate request_size=9 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 15 01 00 04 05 00 48 00 [23:52:39]Write to MH i2c: E2 0C 00 F6 24 80 15 01 00 04 00 05 00 48 00 00 00 EE [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 F6 24 00 90 00 8E [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=23 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:52:39]Write to MH i2c: E2 1A 00 F7 24 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 90 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 F7 24 00 90 00 8F [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=31 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 15 02 00 1A FD 03 16 00 D0 90 D0 B1 D0 B4 D1 83 D0 BB D0 BB D0 B0 D0 B5 D0 B2 20 D0 94 2E [23:52:39]Write to MH i2c: E2 22 00 F8 24 80 15 02 00 1A 00 FD 03 16 00 D0 90 D0 B1 D0 B4 D1 83 D0 BB D0 BB D0 B0 D0 B5 D0 B2 20 D0 94 2E 00 00 EE [23:52:39]OFD Sender: No OFD packet to send [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 F8 24 00 90 00 90 [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=13 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 15 02 00 08 F4 03 04 00 4B 2F 1C 67 [23:52:39]Write to MH i2c: E2 10 00 F9 24 80 15 02 00 08 00 F4 03 04 00 4B 2F 1C 67 00 00 A5 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 F9 24 00 90 00 91 [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=25 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [23:52:39]Write to MH i2c: E2 1C 00 FA 24 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 FB [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 FA 24 00 90 00 92 [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 15 03 00 [23:52:39]Write to MH i2c: E2 08 00 FB 24 80 15 03 00 00 00 00 00 A0 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 FD 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 FD 00 FB 24 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EB C5 00 00 0E 04 04 00 ED 01 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [23:52:40]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EB C5 00 00 0E 04 04 00 ED 01 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23:52:40]wFMCommunicate OK [23:52:40]SAM_PROTO_ProcessDocument answer len = 1265 [23:52:40]SAM_PROTO_ProcessDocument remain to read = 1017 [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 17 00 00 [23:52:40]Write to MH i2c: E2 08 00 FC 24 80 17 00 00 00 00 00 00 A0 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 FD 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 FD 00 FC 24 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E9 [23:52:41]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:52:41]wFMCommunicate OK [23:52:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:41]SAM_PROTO_ProcessDocument remain to read = 767 [23:52:41]wFMCommunicate request_size=4 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 17 00 00 [23:52:41]Write to MH i2c: E2 08 00 FD 24 80 17 00 00 00 00 00 00 A1 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 FD 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 FD 00 FD 24 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 03 [23:52:41]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:52:41]wFMCommunicate OK [23:52:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:41]SAM_PROTO_ProcessDocument remain to read = 517 [23:52:41]wFMCommunicate request_size=4 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 17 00 00 [23:52:41]Write to MH i2c: E2 08 00 FE 24 80 17 00 00 00 00 00 00 A2 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 FE 24 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 2C [23:52:42]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [23:52:42]wFMCommunicate OK [23:52:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:42]SAM_PROTO_ProcessDocument remain to read = 267 [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 17 00 00 [23:52:42]Write to MH i2c: E2 08 00 FF 24 80 17 00 00 00 00 00 00 A3 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 FF 24 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 6B [23:52:42]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:52:42]wFMCommunicate OK [23:52:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:42]SAM_PROTO_ProcessDocument remain to read = 17 [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 17 00 00 [23:52:42]Write to MH i2c: E2 08 00 00 25 80 17 00 00 00 00 00 00 A5 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 14 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 14 00 00 25 00 01 00 06 F7 03 00 00 35 04 06 00 A0 33 B6 D4 7E 06 90 00 CB [23:52:42]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 A0 33 B6 D4 7E 06 90 00 [23:52:42]wFMCommunicate OK [23:52:42]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:52:42]SAM_PROTO_ProcessDocument done [23:52:42]1209 (1) - 1.0 - номер версии ФФД [23:52:42]1041 (16) - 0000000000875000 - номер ФМ [23:52:42]1040 (4) - 50667 - номер ФД [23:52:42]1038 (4) - 493 - номер смены [23:52:42]1118 (4) - 166 - количество кассовых чеков за смену [23:52:42]1111 (4) - 168 - общее количество ФД за смену [23:52:42]1194 (1194) - счетчики итогов смены [23:52:42] 1134 (4) - 166 - количество чеков со всеми признаками расчетов [23:52:42] 1129 (155) - счетчики операций «приход» [23:52:42] 1135 (4) - 166 - количество чеков по признаку расчетов [23:52:42] 1201 (3) - 62702.14 - общая итоговая сумма в чеках [23:52:42] 1136 (3) - 47846.00 - итоговая сумма в чеках наличными [23:52:42] 1138 (3) - 14856.14 - итоговая сумма в чеках безналичными [23:52:42] 1024 (122) - суммы налогов [23:52:42] 1006 (9) - суммы НДС [23:52:42] 1010 (1) - 0% - код ставки НДС [23:52:42] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:42] 1006 (12) - суммы НДС [23:52:42] 1010 (1) - 12% - код ставки НДС [23:52:42] 1011 (3) - 6659.08 - сумма НДС по ставке [23:52:42] 1007 (9) - суммы НСП [23:52:42] 1014 (1) - 0% - код ставки НСП [23:52:42] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:42] 1007 (11) - суммы НСП [23:52:42] 1014 (1) - 1% - код ставки НСП [23:52:42] 1015 (2) - 554.89 - сумма НСП по ставке [23:52:42] 1007 (9) - суммы НСП [23:52:42] 1014 (1) - 2% - код ставки НСП [23:52:42] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:42] 1007 (9) - суммы НСП [23:52:42] 1014 (1) - 3% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 5% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 0,50% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 1,50% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1130 (141) - счетчики операций «возврат прихода» [23:52:43] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:43] 1024 (117) - суммы налогов [23:52:43] 1006 (9) - суммы НДС [23:52:43] 1010 (1) - 0% - код ставки НДС [23:52:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:43] 1006 (9) - суммы НДС [23:52:43] 1010 (1) - 12% - код ставки НДС [23:52:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 0% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 1% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 2% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 3% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 5% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 0,50% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 1,50% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1131 (141) - счетчики операций «расход» [23:52:43] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:43] 1024 (117) - суммы налогов [23:52:43] 1006 (9) - суммы НДС [23:52:43] 1010 (1) - 0% - код ставки НДС [23:52:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:43] 1006 (9) - суммы НДС [23:52:43] 1010 (1) - 12% - код ставки НДС [23:52:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 0% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 1% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 2% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 3% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 5% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 0,50% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 1,50% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1132 (141) - счетчики операций «возврат расхода» [23:52:43] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:43] 1024 (117) - суммы налогов [23:52:43] 1006 (9) - суммы НДС [23:52:43] 1010 (1) - 0% - код ставки НДС [23:52:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:43] 1006 (9) - суммы НДС [23:52:43] 1010 (1) - 12% - код ставки НДС [23:52:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 0% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 1% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 2% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 3% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 5% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 0,50% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1007 (9) - суммы НСП [23:52:43] 1014 (1) - 1,50% - код ставки НСП [23:52:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:43] 1133 (588) - - счетчики коррекции - не используются [23:52:43]1077 (6) - 176143971155462 - ФПД [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1209 (04B9) [23:52:43]Malloc new data [23:52:43]Processing tag 1041 (0411) [23:52:43]Processing tag 1040 (0410) [23:52:43]Malloc new data [23:52:43]Processing tag 1038 (040E) [23:52:43]Malloc new data [23:52:43]Processing tag 1118 (045E) [23:52:43]Malloc new data [23:52:43]Processing tag 1111 (0457) [23:52:43]Malloc new data [23:52:43]Processing tag 1194 (04AA) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1134 (046E) [23:52:43]Malloc new data [23:52:43]Processing tag 1129 (0469) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1135 (046F) [23:52:43]Malloc new data [23:52:43]Processing tag 1201 (04B1) [23:52:43]Malloc new data [23:52:43]Processing tag 1136 (0470) [23:52:43]Malloc new data [23:52:43]Processing tag 1138 (0472) [23:52:43]Malloc new data [23:52:43]Processing tag 1024 (0400) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1006 (03EE) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1010 (03F2) [23:52:43]Malloc new data [23:52:43]Processing tag 1011 (03F3) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1006 (03EE) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1010 (03F2) [23:52:43]Malloc new data [23:52:43]Processing tag 1011 (03F3) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]SetTLVBufToDocument err=0 [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1130 (046A) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1135 (046F) [23:52:43]Malloc new data [23:52:43]Processing tag 1201 (04B1) [23:52:43]Malloc new data [23:52:43]Processing tag 1136 (0470) [23:52:43]Malloc new data [23:52:43]Processing tag 1138 (0472) [23:52:43]Malloc new data [23:52:43]Processing tag 1024 (0400) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1006 (03EE) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1010 (03F2) [23:52:43]Malloc new data [23:52:43]Processing tag 1011 (03F3) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1006 (03EE) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1010 (03F2) [23:52:43]Malloc new data [23:52:43]Processing tag 1011 (03F3) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]SetTLVBufToDocument err=0 [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1131 (046B) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1135 (046F) [23:52:43]Malloc new data [23:52:43]Processing tag 1201 (04B1) [23:52:43]Malloc new data [23:52:43]Processing tag 1136 (0470) [23:52:43]Malloc new data [23:52:43]Processing tag 1138 (0472) [23:52:43]Malloc new data [23:52:43]Processing tag 1024 (0400) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1006 (03EE) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1010 (03F2) [23:52:43]Malloc new data [23:52:43]Processing tag 1011 (03F3) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1006 (03EE) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1010 (03F2) [23:52:43]Malloc new data [23:52:43]Processing tag 1011 (03F3) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]SetTLVBufToDocument err=0 [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1132 (046C) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1135 (046F) [23:52:43]Malloc new data [23:52:43]Processing tag 1201 (04B1) [23:52:43]Malloc new data [23:52:43]Processing tag 1136 (0470) [23:52:43]Malloc new data [23:52:43]Processing tag 1138 (0472) [23:52:43]Malloc new data [23:52:43]Processing tag 1024 (0400) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1006 (03EE) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1010 (03F2) [23:52:43]Malloc new data [23:52:43]Processing tag 1011 (03F3) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1006 (03EE) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1010 (03F2) [23:52:43]Malloc new data [23:52:43]Processing tag 1011 (03F3) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1007 (03EF) [23:52:43]Load OK [23:52:43]SetTLVBufToDocument [23:52:43]Processing tag 1014 (03F6) [23:52:43]Malloc new data [23:52:43]Processing tag 1015 (03F7) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]SetTLVBufToDocument err=0 [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1133 (046D) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Processing tag 1077 (0435) [23:52:43]Malloc new data [23:52:43]SetTLVBufToDocument err=0 [23:52:43]Malloc new data [23:52:43]SAM_PROTO_GetFMData [23:52:43]wFMCommunicate request_size=4 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 13 03 00 [23:52:44]Write to MH i2c: E2 08 00 01 25 80 13 03 00 00 00 00 00 A5 [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 FD 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 FD 00 01 25 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 OFD Sender: No OFD packet to send [23:52:44]9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 F1 [23:52:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [23:52:45]wFMCommunicate OK [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 17 00 00 [23:52:45]Write to MH i2c: E2 08 00 02 25 80 17 00 00 00 00 00 00 A7 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 FD 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 FD 00 02 25 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [23:52:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:45]wFMCommunicate OK [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 17 00 00 [23:52:45]Write to MH i2c: E2 08 00 03 25 80 17 00 00 00 00 00 00 A8 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 03 25 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BA [23:52:46]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 17 00 00 [23:52:46]Write to MH i2c: E2 08 00 04 25 80 17 00 00 00 00 00 00 A9 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 04 25 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [23:52:46]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:47]wFMCommunicate OK [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 17 00 00 [23:52:47]Write to MH i2c: E2 08 00 05 25 80 17 00 00 00 00 00 00 AA [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 E2 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 E2 00 05 25 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 88 [23:52:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:47]wFMCommunicate OK [23:52:47]SAM_PROTO_GetFMData done [23:52:47]Malloc new data [23:52:47]Malloc new data [23:52:47]Malloc new data [23:52:47]Malloc new data [23:52:47]KKMLoadAndSignCloseShiftData err=0 [23:52:47]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Абдуллаев Д. 25.10.2024 23:52 Смена: 493 РНМ: 0000000000097022 ЗНМ: 0300000090 СНО: Общий режим Чеков за смену: 166 ФД за смену: 168 Всего чеков: 166 ИТОГИ ПРИХОД Чеков: 166 Общий итог: 62702.14 Итого наличными: 47846.00 Итого безнал.: 14856.14 НДС 0% : 0.00 НДС 12% : 6659.08 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 554.89 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 47846.00 НС Приход: 21979366.67 НС Возвр.Прихода: 486762.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 50667 ФМ: 0000000000875000 ФПД: 176143971155462 [23:52:47]StoreToDocumentArchive [23:52:47]shift 493 fd 50667 [23:52:47]save to /storage/0493/doc_00050667 [23:52:47]save last doc name /storage/0493/doc_00050667 to /storage/kkm_last_doc_name [23:52:47]save OK [23:52:47]Clear old archive folders... [23:52:47]Remove dir /storage/0266 [23:52:47]opendir ok [23:52:47]file . [23:52:47]file .. [23:52:47]file doc_1729900316 [23:52:47]remove file /storage/0266/doc_1729900316 [23:52:47]remove dir /storage/0266 [23:52:47]NVStorageSaveData kkm_registers [23:52:47]File name is /storage/kkm_registers [23:52:47]Write 24 bytes [23:52:47]NVStorageSaveData done [23:52:47]NVStorageSaveData kkm_registers [23:52:47]File name is /storage/kkm_registers [23:52:47]Write 24 bytes [23:52:47]NVStorageSaveData done [23:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=1380 [23:52:47]tlvbuf is 01E5A040 [23:52:47]SAM_PROTO_ClearQueue [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 09 00 00 [23:52:47]Write to MH i2c: E2 08 00 06 25 80 09 00 00 00 00 00 00 9D [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 03 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 03 00 06 25 00 90 00 9F [23:52:47]RAPDU: 90 00 [23:52:47]wFMCommunicate OK [23:52:47]SAM_PROTO_ClearQueue done [23:52:47]KKMCreateOFDPacket [23:52:47]OFDProtocolAddRootSTLVToBuf [23:52:47]FM_MakeSignedData [23:52:47]FM_MakeSignedData [23:52:47]SAM_PROTO_SignData [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 0D 01 02 [23:52:47]Write to MH i2c: E2 08 00 07 25 80 0D 01 02 00 00 00 00 A5 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 03 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 03 00 07 25 00 90 00 A0 [23:52:47]RAPDU: 90 00 [23:52:47]wFMCommunicate OK [23:52:47]wFMCommunicate request_size=255 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 0D 02 02 FA 05 00 64 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 16 00 D0 90 D0 B1 D0 B4 D1 83 D0 BB D0 BB D0 B0 D0 B5 D0 B2 20 D0 94 2E F4 03 04 00 4B 2F 1C 67 0E 04 04 00 ED 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D5 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 [23:52:47]Write to MH i2c: E2 02 01 08 25 80 0D 02 02 FA 00 05 00 64 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 16 00 D0 90 D0 B1 D0 B4 D1 83 D0 BB D0 BB D0 B0 D0 B5 D0 B2 20 D0 94 2E F4 03 04 00 4B 2F 1C 67 0E 04 04 00 ED 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D5 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 00 00 1A [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 03 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 03 00 08 25 00 90 00 A1 [23:52:48]RAPDU: 90 00 [23:52:48]wFMCommunicate OK [23:52:48]wFMCommunicate request_size=255 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C1 D8 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 [23:52:48]Write to MH i2c: E2 02 01 09 25 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C1 D8 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 00 00 A3 [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 03 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 03 00 09 25 00 90 00 A2 [23:52:49]RAPDU: 90 00 [23:52:49]wFMCommunicate OK [23:52:49]wFMCommunicate request_size=255 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 0D 02 02 FA 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 [23:52:49]Write to MH i2c: E2 02 01 0A 25 80 0D 02 02 FA 00 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 00 00 78 [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 03 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 03 00 0A 25 00 90 00 A3 [23:52:49]RAPDU: 90 00 [23:52:49]wFMCommunicate OK [23:52:49]wFMCommunicate request_size=255 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 0D 02 02 FA 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 [23:52:49]Write to MH i2c: E2 02 01 0B 25 80 0D 02 02 FA 00 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 OFD Sender: No OFD packet to send [23:52:50]00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 00 00 79 [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 0B 25 00 90 00 A4 [23:52:50]RAPDU: 90 00 [23:52:50]wFMCommunicate OK [23:52:50]wFMCommunicate request_size=255 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:52:50]Write to MH i2c: E2 02 01 0C 25 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 34 [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:51]Read from MH i2c: E2 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 03 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 03 00 0C 25 00 90 00 A5 [23:52:51]RAPDU: 90 00 [23:52:51]wFMCommunicate OK [23:52:51]wFMCommunicate request_size=139 [23:52:51]MH_SAM_APDU [23:52:51]CAPDU: 80 0D 02 02 86 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 04 06 00 A0 33 B6 D4 7E 06 [23:52:51]Write to MH i2c: E2 8E 00 0D 25 80 0D 02 02 86 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 04 06 00 A0 33 B6 D4 7E 06 00 00 6E [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:51]Read from MH i2c: E2 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 03 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 03 00 0D 25 00 90 00 A6 [23:52:51]RAPDU: 90 00 [23:52:51]wFMCommunicate OK [23:52:51]wFMCommunicate request_size=4 [23:52:51]MH_SAM_APDU [23:52:51]CAPDU: 80 0D 03 02 [23:52:51]Write to MH i2c: E2 08 00 0E 25 80 0D 03 02 00 00 00 00 AE [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:51]Read from MH i2c: E2 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 0B 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 0B 00 0E 25 00 4C E8 97 2B 8D 29 A2 ED 90 00 EA [23:52:51]RAPDU: 4C E8 97 2B 8D 29 A2 ED 90 00 [23:52:51]wFMCommunicate OK [23:52:51]SAM_PROTO_SignData done [23:52:51]FM_MakeSignedData done [23:52:51]CreateOFDProtocolMessage [23:52:51]wFMCommunicate request_size=4 [23:52:51]MH_SAM_APDU [23:52:51]CAPDU: 80 11 00 00 [23:52:51]Write to MH i2c: E2 08 00 0F 25 80 11 00 00 00 00 00 00 AE [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 [23:52:51]MH_I2C_Read... [23:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:51]Read from MH i2c: E2 17 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 17 00 0F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 F5 [23:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [23:52:51]wFMCommunicate OK [23:52:51]CreateOFDProtocolMessage done [23:52:51]OFDSenderStorePacket 50667 [23:52:51]StoreOFDPacket docnum=50667 [23:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 78 05 00 00 E9 E8 70 05 3F 4A 5A 05 01 00 05 00 64 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 16 00 D0 90 D0 B1 D0 B4 D1 83 D0 BB D0 BB D0 B0 D0 B5 D0 B2 20 D0 94 2E F4 03 04 00 4B 2F 1C 67 0E 04 04 00 ED 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D5 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 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 EB C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 04 06 00 A0 33 B6 D4 7E 06 4C E8 97 2B 8D 29 A2 ED [23:52:52]CheckFolder [23:52:52]dirname=/storage/ofd_packets [23:52:52]CheckFolder done [23:52:52]ProducePacketName [23:52:52]name=ofd_packets/00050667 [23:52:52]NVStorageSaveData ofd_packets/00050667 [23:52:52]File name is /storage/ofd_packets/00050667 [23:52:52]Write 1430 bytes [23:52:52]NVStorageSaveData done [23:52:52]OFDSenderStorePacket done [23:52:52]KKMCreateOFDPacket done [23:52:52]NVStorageSaveData kkm_last_timestamp [23:52:52]File name is /storage/kkm_last_timestamp [23:52:52]Write 4 bytes [23:52:52]NVStorageSaveData done [23:52:52]ExternCall_PrintAddStr [23:52:52]wPrintStart [23:52:52]Write to MH i2c: 01 00 00 10 25 35 [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: 01 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: 01 07 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: 01 07 00 10 25 00 00 00 00 00 FF 0F 4A [23:52:52]RasterBufferAndPrint [23:52:52]line Отчет о закрытии смены [23:52:52]line ФФД: 1.0 [23:52:52]line ИНН: 02508201610067 [23:52:52]line Кассир: Абдуллаев Д. [23:52:52]line 25.10.2024 23:52 [23:52:52]line Смена: 493 [23:52:52]line РНМ: 0000000000097022 [23:52:52]line ЗНМ: 0300000090 [23:52:52]line СНО: Общий режим [23:52:52]line Чеков за смену: 166 [23:52:52]line ФД за смену: 168 [23:52:52]line Всего чеков: 166 [23:52:52]line ИТОГИ ПРИХОД [23:52:52]line Чеков: 166 [23:52:52]line Общий итог: 62702.14 [23:52:52]line Итого наличными: 47846.00 [23:52:52]line Итого безнал.: 14856.14 [23:52:52]line НДС 0% : 0.00 [23:52:52]line НДС 12% : 6659.08 [23:52:52]line НСП 0% : 0.00 [23:52:52]line НСП 1,50% : 0.00 [23:52:52]line НСП 0,50% : 0.00 [23:52:52]line НСП 5% : 0.00 [23:52:52]line НСП 3% : 0.00 [23:52:52]line НСП 2% : 0.00 [23:52:52]line НСП 1% : 554.89 [23:52:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:52:52]line Чеков: 0 [23:52:52]line Общий итог: 0.00 [23:52:52]line Итого наличными: 0.00 [23:52:52]line Итого безнал.: 0.00 [23:52:52]line НДС 0% : 0.00 [23:52:52]line НДС 12% : 0.00 [23:52:52]line НСП 0% : 0.00 [23:52:52]line НСП 1,50% : 0.00 [23:52:52]line НСП 0,50% : 0.00 [23:52:52]line НСП 5% : 0.00 [23:52:52]line НСП 3% : 0.00 [23:52:52]line НСП 2% : 0.00 [23:52:52]line НСП 1% : 0.00 [23:52:52]line ИТОГИ РАСХОД [23:52:52]line Чеков: 0 [23:52:52]line Общий итог: 0.00 [23:52:52]line Итого наличными: 0.00 [23:52:52]line Итого безнал.: 0.00 [23:52:52]line НДС 0% : 0.00 [23:52:52]line НДС 12% : 0.00 [23:52:52]line НСП 0% : 0.00 [23:52:52]line НСП 1,50% : 0.00 [23:52:52]line НСП 0,50% : 0.00 [23:52:52]line НСП 5% : 0.00 [23:52:52]line НСП 3% : 0.00 [23:52:52]line НСП 2% : 0.00 [23:52:52]line НСП 1% : 0.00 [23:52:52]line ИТОГИ ВОЗВРАТ РАСХОДА [23:52:52]line Чеков: 0 [23:52:52]line Общий итог: 0.00 [23:52:52]line Итого наличными: 0.00 [23:52:52]line Итого безнал.: 0.00 [23:52:52]line НДС 0% : 0.00 [23:52:52]line НДС 12% : 0.00 [23:52:52]line НСП 0% : 0.00 [23:52:52]line НСП 1,50% : 0.00 [23:52:52]line НСП 0,50% : 0.00 [23:52:52]line НСП 5% : 0.00 [23:52:52]line НСП 3% : 0.00 [23:52:52]line НСП 2% : 0.00 [23:52:52]line НСП 1% : 0.00 [23:52:52]line Сумма внесений: 0.00 [23:52:52]line Сумма выплат: 0.00 [23:52:52]line Нал. в кассе: 47846.00 [23:52:52]line НС Приход: 21979366.67 [23:52:52]line НС Возвр.Прихода: 486762.00 [23:52:52]line НС Расход: 0.00 [23:52:52]line НС Возвр.Расхода: 0.00 [23:52:52]line ФД: 50667 [23:52:52]line ФМ: 0000000000875000 [23:52:52]line ФПД: 176143971155462 [23:52:52]OFD Sender: Processing packet 50667 [packets to send 7, broken 6] [23:52:52]ProducePacketName [23:52:52]name=ofd_packets/00050667 [23:52:52]OFD Sender: To server: pG, [23:52:52]CommunicateWithHost lk.salyk.kg:30040 [23:52:52]ConnectInit lk.salyk.kg [23:52:52]written 0, free lines is 4095 [23:52:52]Connected sock=10 [23:52:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 78 05 00 00 E9 E8 70 05 3F 4A 5A 05 01 00 05 00 64 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 16 00 D0 90 D0 B1 D0 B4 D1 83 D0 BB D0 BB D0 B0 D0 B5 D0 B2 20 D0 94 2E F4 03 04 00 4B 2F 1C 67 0E 04 04 00 ED 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 AA 04 D5 04 6E 04 04 00 A6 00 00 00 69 04 A2 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 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 Write to MH i2c: 09 01 00 00 F6 00 03 60 01 25 00 85 00 [23:52:53]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 Write i2c OK [23:52:53]00 MH_I2C_Read... [23:52:53]EF Read from MH i2c: 03 01 09 [23:52:53]00 MH_I2C_Read... [23:52:53]F6 03 01 00 02 F7 03 00 00 Read from MH i2c: EF 01 03 07 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 00 [23:52:53]F6 MH_I2C_Read... [23:52:53]03 Read from MH i2c: 01 01 00 07 04 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 60 03 00 25 00 00 EF 00 03 00 09 00 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 00 04 07 00 0B 00 9E 00 [23:52:53]00 RasterBufferAndPrint [23:52:53]00 line [23:52:53]B1 line [23:52:53]04 line [23:52:53]00 line [23:52:53]00 line [23:52:53]70 04 00 00 written 0, free lines is 3001 [23:52:53]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 process_action close_shift done [23:52:53]00 requested_data is exist [23:52:53]F3 produce_requested_data [23:52:53]03 requested_item fd.num is exist - process it [23:52:53]00 SAM_PROTO_GetFieldsCounters [23:52:53]00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 wFMCommunicate request_size=4 [23:52:53]EF MH_SAM_APDU [23:52:53]03 CAPDU: 09 80 00 13 F6 00 03 00 01 [23:52:53]00 Write to MH i2c: 00 E2 F7 08 00 03 67 00 25 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 80 EF 13 03 00 09 00 00 00 F6 00 03 00 01 00 00 08 02 [23:52:53]F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 Write i2c OK [23:52:53]03 MH_I2C_Read... [23:52:53]01 00 04 F7 03 00 00 EF 03 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 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:53]F7 03 00 Read from MH i2c: 00 E2 EF [23:52:53]03 MH_I2C_Read... [23:52:53]09 00 F6 03 01 00 04 F7 Read from MH i2c: 03 E2 00 62 00 00 EF [23:52:53]03 MH_I2C_Read... [23:52:53]09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 E2 01 62 00 00 06 67 F7 25 03 00 5D 00 00 00 B9 10 04 04 01 04 00 00 01 EB C5 00 00 11 04 10 00 30 30 30 30 30 30 11 30 04 30 10 30 00 30 30 38 30 37 30 35 30 30 30 35 04 06 00 A0 33 B6 D4 7E 06 30 4C 30 E8 30 97 30 2B 30 8D 30 29 30 A2 38 ED 37 [23:52:53]35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [23:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:53]wFMCommunicate OK [23:52:53]SAM_PROTO_GetFieldsCounters done [23:52:53]requested_item shift.num is exist - process it [23:52:53]requested_item shift.opened is exist - process it [23:52:53]req_shift_opened [23:52:53]FM_GetShiftState [23:52:53]SAM_PROTO_GetShiftState [23:52:53]wFMCommunicate request_size=4 [23:52:53]MH_SAM_APDU [23:52:53]CAPDU: 80 13 01 00 [23:52:53]Write to MH i2c: E2 08 00 68 25 80 13 01 00 00 00 00 00 0A [23:52:53]Write i2c OK [23:52:53]MH_I2C_Read... [23:52:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 E1 8D 47 00 08 54 A5 07 01 00 07 00 3B 00 F9 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:53]03 0E 00 37 37 30 39 33 36 34 33 34 36 31 Read from MH i2c: 32 E2 33 [23:52:53]34 MH_I2C_Read... [23:52:53]11 04 10 00 30 30 30 30 30 30 30 Read from MH i2c: 30 E2 30 0E 30 00 38 [23:52:53]37 MH_I2C_Read... [23:52:53]35 30 30 30 10 04 04 00 EB C5 00 00 F4 03 04 Read from MH i2c: 00 E2 E6 0E DA 00 1B 68 67 25 B6 00 04 09 01 00 00 00 00 00 00 00 00 00 00 00 00 90 00 15 [23:52:53]RAPDU: 09 1F 00 BD 00 1B 00 E0 00 F3 00 7B 00 98 00 00 00 00 90 00 [23:52:53]wFMCommunicate OK [23:52:53]SAM_PROTO_GetShiftState done [23:52:53]FM_GetShiftState done [23:52:53]req_shift_opened done [23:52:53]requested_item shift.open_date is exist - process it [23:52:53]req_shift_open_date [23:52:53]FF FM_GetShiftState [23:52:53] [23:52:53]SAM_PROTO_GetShiftState [23:52:53]CommunicateWithHost err = 0 [23:52:53]wFMCommunicate request_size=4 [23:52:53]CheckOFDResponse [23:52:53]MH_SAM_APDU [23:52:53]1017 (14) - 77093643461234 [23:52:53]CAPDU: 1041 (16) - 0000000000875000 [23:52:53]80 1040 (4) - 50667 [23:52:53]13 1012 (4) - 25.10.2024 17:52 [23:52:53]1206 (1) - 0 [23:52:53]OFD Sender: Remove packet 50667 [23:52:53]ProducePacketName [23:52:53]name=ofd_packets/00050667 [23:52:53]NVStorageDeleteData [23:52:53]01 00 [23:52:53]Write to MH i2c: E2 08 00 69 25 80 13 01 00 00 00 00 00 0B [23:52:53]Write i2c OK [23:52:53]MH_I2C_Read... [23:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:53]Read from MH i2c: E2 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 0E 00 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 0E 00 69 25 00 09 00 00 00 00 00 00 00 00 00 00 90 00 16 [23:52:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:53]wFMCommunicate OK [23:52:53]SAM_PROTO_GetShiftState done [23:52:53]FM_GetShiftState done [23:52:53]req_shift_open_date done [23:52:53]produce_requested_data done [23:52:53]produce_requested_data return {"fd.num":50667,"shift.num":493,"shift.opened":0,"shift.open_date":0} [23:52:53]process_action_free close_shift [23:52:53]json_value_free [23:52:53]json_value_free done [23:52:53]process_json_proto returns [23:52:53]Send response to host [23:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":50667,"shift.num":493,"shift.opened":0,"shift.open_date":0}}} [23:52:53]free response buf [23:52:53]execute_script done [23:52:53]execute_script returns [23:52:53]free content buf [23:52:53]Sock 9.Close socket [23:52:53]Sock 9.Thread stoped [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:46]accept exits with 7 [00:12:46]New connection [00:12:46]New thread 3066789220 created [00:12:46]Thread 3066645860 joined [00:12:46]Waiting for new connection... [00:12:46] Sock 7.Parse request [00:12:46]Sock 7.Check first char [00:12:46]Sock 7.First char is OK [00:12:46]request: POST /json_proto HTTP/1.0 [00:12:46]Method: POST [00:12:46]URL: /json_proto [00:12:46]Method is POST - this is cgi request [00:12:46]url: /json_proto [00:12:46]query_string will be loaded in cgi processing [00:12:46]execute_cgi json_proto POST (null) [00:12:46]execute_cgi path=json_proto method=POST [00:12:46]POST find Content-Length [00:12:46]Host: 172.17.49.196:8080 [00:12:46]Content-Length: 215 [00:12:46]Content-Type: application/json [00:12:46] [00:12:46]POST finish read [00:12:46]Found Content-Length = 215 [00:12:46]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:12:46]execute_script... [00:12:46]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:12:46]POST & json_proto [00:12:46]process_json_proto [00:12:46]json parsed OK: [00:12:46]protocol is kg_v1.0 [00:12:46]action value=get_value [00:12:46]process_action get_value [00:12:46]cmd_get_value [00:12:46]process_action get_value done [00:12:46]requested_data is exist [00:12:46]produce_requested_data [00:12:46]requested_item kkm.sn is exist - process it [00:12:46]requested_item kkm.ver is exist - process it [00:12:46]requested_item fm.sn is exist - process it [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 11 00 00 [00:12:46]Write to MH i2c: E2 08 00 6A 25 80 11 00 00 00 00 00 00 09 [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 17 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 17 00 6A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 50 [00:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [00:12:46]wFMCommunicate OK [00:12:46]requested_item fd.num is exist - process it [00:12:46]SAM_PROTO_GetFieldsCounters [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 13 00 00 [00:12:46]Write to MH i2c: E2 08 00 6B 25 80 13 00 00 00 00 00 00 0C [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 62 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 62 00 6B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [00:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EB C5 00 00 0E 04 04 00 ED 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:46]wFMCommunicate OK [00:12:46]SAM_PROTO_GetFieldsCounters done [00:12:46]requested_item shift.num is exist - process it [00:12:46]requested_item shift.opened is exist - process it [00:12:46]req_shift_opened [00:12:46]FM_GetShiftState [00:12:46]SAM_PROTO_GetShiftState [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 13 01 00 [00:12:46]Write to MH i2c: E2 08 00 6C 25 80 13 01 00 00 00 00 00 0E [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 0E 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 0E 00 6C 25 00 09 00 00 00 00 00 00 00 00 00 00 90 00 19 [00:12:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:46]wFMCommunicate OK [00:12:46]SAM_PROTO_GetShiftState done [00:12:46]FM_GetShiftState done [00:12:46]req_shift_opened done [00:12:46]requested_item shift.open_date is exist - process it [00:12:46]req_shift_open_date [00:12:46]FM_GetShiftState [00:12:46]SAM_PROTO_GetShiftState [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 13 01 00 [00:12:46]Write to MH i2c: E2 08 00 6D 25 80 13 01 00 00 00 00 00 0F [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 0E 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 0E 00 6D 25 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1A [00:12:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:46]wFMCommunicate OK [00:12:46]SAM_PROTO_GetShiftState done [00:12:46]FM_GetShiftState done [00:12:46]req_shift_open_date done [00:12:46]produce_requested_data done [00:12:46]produce_requested_data return {"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50667,"shift.num":493,"shift.opened":0,"shift.open_date":0} [00:12:46]process_action_free get_value [00:12:46]json_value_free [00:12:46]json_value_free done [00:12:46]process_json_proto returns [00:12:46]Send response to host [00:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000090","kkm.ver":"001","fm.sn":"0000000000875000","fd.num":50667,"shift.num":493,"shift.opened":0,"shift.open_date":0}}} [00:12:46]free response buf [00:12:46]execute_script done [00:12:46]execute_script returns [00:12:46]free content buf [00:12:46]Sock 7.Close socket [00:12:46]Sock 7.Thread stoped [00:12:46]accept exits with 9 [00:12:46]New connection [00:12:46]New thread 3066645860 created [00:12:46]Thread 3066789220 joined [00:12:46]Waiting for new connection... [00:12:46] Sock 9.Parse request [00:12:46]Sock 9.Check first char [00:12:46]Sock 9.First char is OK [00:12:46]request: POST /json_proto HTTP/1.0 [00:12:46]Method: POST [00:12:46]URL: /json_proto [00:12:46]Method is POST - this is cgi request [00:12:46]url: /json_proto [00:12:46]query_string will be loaded in cgi processing [00:12:46]execute_cgi json_proto POST (null) [00:12:46]execute_cgi path=json_proto method=POST [00:12:46]POST find Content-Length [00:12:46]Host: 172.17.49.196:8080 [00:12:46]Content-Length: 331 [00:12:46]Content-Type: application/json [00:12:46] [00:12:46]POST finish read [00:12:46]Found Content-Length = 331 [00:12:46]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:12:46]execute_script... [00:12:47]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:12:47]POST & json_proto [00:12:47]process_json_proto [00:12:47]json parsed OK: [00:12:47]protocol is kg_v1.0 [00:12:47]action value=get_value [00:12:47]process_action get_value [00:12:47]cmd_get_value [00:12:47]process_action get_value done [00:12:47]requested_data is exist [00:12:47]produce_requested_data [00:12:47]requested_item fm.sale.total is exist - process it [00:12:47]SAM_PROTO_GetFMData [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 13 03 00 [00:12:47]Write to MH i2c: E2 08 00 6E 25 80 13 03 00 00 00 00 00 12 [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:47]Read from MH i2c: E2 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 6E 25 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 5E [00:12:47]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [00:12:47]wFMCommunicate OK [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 17 00 00 [00:12:47]Write to MH i2c: E2 08 00 6F 25 80 17 00 00 00 00 00 00 14 [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:47]Read from MH i2c: E2 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 6F 25 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [00:12:47]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:47]wFMCommunicate OK [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 17 00 00 [00:12:47]Write to MH i2c: E2 08 00 70 25 80 17 00 00 00 00 00 00 15 [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 70 25 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:12:48]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:48]wFMCommunicate OK [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 17 00 00 [00:12:48]Write to MH i2c: E2 08 00 71 25 80 17 00 00 00 00 00 00 16 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 71 25 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [00:12:48]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:48]wFMCommunicate OK [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 17 00 00 [00:12:48]Write to MH i2c: E2 08 00 72 25 80 17 00 00 00 00 00 00 17 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 E2 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 E2 00 72 25 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 [00:12:48]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:48]wFMCommunicate OK [00:12:48]SAM_PROTO_GetFMData done [00:12:48]requested_item fm.sale_refund.total is exist - process it [00:12:48]requested_item fm.buy.total is exist - process it [00:12:48]requested_item shift.sale.total is exist - process it [00:12:48]SAM_PROTO_GetShiftData [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 13 02 00 [00:12:48]Write to MH i2c: E2 08 00 73 25 80 13 02 00 00 00 00 00 16 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 73 25 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [00:12:49]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 06 AD 5F 70 04 03 00 D8 01 49 72 04 03 00 2E AB 16 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 34 29 0A 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 C1 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 17 00 00 [00:12:49]Write to MH i2c: E2 08 00 74 25 80 17 00 00 00 00 00 00 19 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 74 25 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 3B [00:12:49]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:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 17 00 00 [00:12:49]Write to MH i2c: E2 08 00 75 25 80 17 00 00 00 00 00 00 1A [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 75 25 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D1 [00:12:49]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:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 17 00 00 [00:12:49]Write to MH i2c: E2 08 00 76 25 80 17 00 00 00 00 00 00 1B [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 76 25 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 8D [00:12:50]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:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=4 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 17 00 00 [00:12:50]Write to MH i2c: E2 08 00 77 25 80 17 00 00 00 00 00 00 1C [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 CB 00 [00:12:50]MH_I2C_Read... [00:12:50]OFD Sender: No OFD packet to send [00:12:50]Read from MH i2c: E2 CB 00 77 25 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 05 [00:12:50]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:12:50]wFMCommunicate OK [00:12:50]SAM_PROTO_GetShiftData done [00:12:50]requested_item shift.sale.total_cash is exist - process it [00:12:50]requested_item shift.sale_refund.total is exist - process it [00:12:50]requested_item shift.sale_refund.total_cash is exist - process it [00:12:50]requested_item shift.buy.total is exist - process it [00:12:50]requested_item shift.buy.total_cash is exist - process it [00:12:50]produce_requested_data done [00:12:50]produce_requested_data return {"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:12:50]process_action_free get_value [00:12:50]json_value_free [00:12:50]json_value_free done [00:12:50]process_json_proto returns [00:12:50]Send response to host [00:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.00,"fm.buy.total":0.00,"shift.sale.total":62702.14,"shift.sale.total_cash":47846.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:12:50]free response buf [00:12:50]execute_script done [00:12:50]execute_script returns [00:12:50]free content buf [00:12:50]Sock 9.Close socket [00:12:50]Sock 9.Thread stoped [00:12:50]accept exits with 7 [00:12:50]New connection [00:12:50]New thread 3066789220 created [00:12:50]Thread 3066645860 joined [00:12:50]Waiting for new connection... [00:12:50] Sock 7.Parse request [00:12:50]Sock 7.Check first char [00:12:50]Sock 7.First char is OK [00:12:50]request: POST /json_proto HTTP/1.0 [00:12:50]Method: POST [00:12:50]URL: /json_proto [00:12:50]Method is POST - this is cgi request [00:12:50]url: /json_proto [00:12:50]query_string will be loaded in cgi processing [00:12:50]execute_cgi json_proto POST (null) [00:12:50]execute_cgi path=json_proto method=POST [00:12:50]POST find Content-Length [00:12:50]Host: 172.17.49.196:8080 [00:12:50]Content-Length: 277 [00:12:50]Content-Type: application/json [00:12:50] [00:12:50]POST finish read [00:12:50]Found Content-Length = 277 [00:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0416\u0443\u043C\u0430\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u042D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:50]execute_script... [00:12:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0416\u0443\u043C\u0430\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u042D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:50]POST & json_proto [00:12:50]process_json_proto [00:12:50]json parsed OK: [00:12:50]protocol is kg_v1.0 [00:12:50]action value=open_shift [00:12:50]process_action open_shift [00:12:50]cmd_open_shift [00:12:50]MH_GetDate [00:12:50]Write to MH i2c: F0 00 00 78 25 8C [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: F0 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: F0 09 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: F0 09 00 78 25 00 06 34 1C 67 BD 3B 11 67 C2 [00:12:50]GetLastDocTimeStamp 1729900363 [00:12:50]current date 1729901574 [00:12:50]FM_GetShiftState [00:12:50]SAM_PROTO_GetShiftState [00:12:50]wFMCommunicate request_size=4 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 13 01 00 [00:12:50]Write to MH i2c: E2 08 00 79 25 80 13 01 00 00 00 00 00 1B [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 0E 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 0E 00 79 25 00 09 00 00 00 00 00 00 00 00 00 00 90 00 26 [00:12:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:50]wFMCommunicate OK [00:12:50]SAM_PROTO_GetShiftState done [00:12:50]FM_GetShiftState done [00:12:50]KKMCreateOpenShiftDocument [00:12:50]Load OK [00:12:50]Malloc new data [00:12:50]MH_GetDate [00:12:50]Write to MH i2c: F0 00 00 7A 25 8E [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: F0 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: F0 09 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: F0 09 00 7A 25 00 06 34 1C 67 BD 3B 11 67 C4 [00:12:50]Malloc new data [00:12:50]KKMCreateOpenShiftDocument OK [00:12:50]KKMSetOpenShiftData OK [00:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=211 [00:12:50]tlvbuf is 01F71C00 [00:12:50]KKMLoadAndSignOpenShiftData [00:12:50]SAM_PROTO_ProcessDocument [00:12:50]wFMCommunicate request_size=9 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 15 01 00 04 02 00 D3 00 [00:12:50]Write to MH i2c: E2 0C 00 7B 25 80 15 01 00 04 00 02 00 D3 00 00 00 FC [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 7B 25 00 90 00 14 [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=23 [00:12:50]MH_SAM_APDU [00:12:50]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:12:50]Write to MH i2c: E2 1A 00 7C 25 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 16 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 7C 25 00 90 00 15 [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=36 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 96 D1 83 D0 BC D0 B0 D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E [00:12:50]Write to MH i2c: E2 27 00 7D 25 80 15 02 00 1F 00 FD 03 1B 00 D0 96 D1 83 D0 BC D0 B0 D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E 00 00 3D [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 7D 25 00 90 00 16 [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=94 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 15 02 00 59 F1 03 55 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 83 D0 BC D1 83 D1 88 20 D0 90 D0 B7 D0 B8 D0 B7 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 30 2E 39 31 33 34 32 33 2C 20 37 32 2E 39 33 35 39 33 39 [00:12:50]Write to MH i2c: E2 61 00 7E 25 80 15 02 00 59 00 F1 03 55 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 83 D0 BC D1 83 D1 88 20 D0 90 D0 B7 D0 B8 D0 B7 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 30 2E 39 31 33 34 32 33 2C 20 37 32 2E 39 33 35 39 33 39 00 00 01 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 7E 25 00 90 00 17 [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=50 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:12:50]Write to MH i2c: E2 35 00 7F 25 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 9B [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 7F 25 00 90 00 18 [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]wFMCommunicate request_size=13 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 15 02 00 08 F4 03 04 00 06 34 1C 67 [00:12:51]Write to MH i2c: E2 10 00 80 25 80 15 02 00 08 00 F4 03 04 00 06 34 1C 67 00 00 ED [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 80 25 00 90 00 19 [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]wFMCommunicate request_size=25 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [00:12:51]Write to MH i2c: E2 1C 00 81 25 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 83 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 81 25 00 90 00 1A [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 15 03 00 [00:12:51]Write to MH i2c: E2 08 00 82 25 80 15 03 00 00 00 00 00 28 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 38 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 38 00 82 25 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EC C5 00 00 0E 04 04 00 EE 01 00 00 35 04 06 00 1D 07 18 7E 31 BE 90 00 31 [00:12:51]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EC C5 00 00 0E 04 04 00 EE 01 00 00 35 04 06 00 1D 07 18 7E 31 BE 90 00 [00:12:51]wFMCommunicate OK [00:12:51]SAM_PROTO_ProcessDocument answer len = 51 [00:12:51]SAM_PROTO_ProcessDocument done [00:12:51]SetTLVBufToDocument [00:12:51]Processing tag 1209 (04B9) [00:12:51]Malloc new data [00:12:51]Processing tag 1041 (0411) [00:12:51]Processing tag 1040 (0410) [00:12:51]Malloc new data [00:12:51]Processing tag 1038 (040E) [00:12:51]Malloc new data [00:12:51]Processing tag 1077 (0435) [00:12:51]Malloc new data [00:12:51]SetTLVBufToDocument err=0 [00:12:51]KKMLoadAndSignOpenShiftData store KKM data [00:12:51]KKMLoadAndSignOpenShiftData err=0 [00:12:51]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Жумабай уулу Э. Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 Место: АЗС № 80 "Партнер Нефть" 26.10.2024 00:12 Смена: 494 РНМ: 0000000000097022 ЗНМ: 0300000090 ФД: 50668 ФМ: 0000000000875000 ФПД: 31916312900030 [00:12:51]StoreToDocumentArchive [00:12:51]shift 494 fd 50668 [00:12:51]Create dir for shift 0494 [00:12:51]save to /storage/0494/doc_00050668 [00:12:51]save last doc name /storage/0494/doc_00050668 to /storage/kkm_last_doc_name [00:12:51]save OK [00:12:51]Clear old archive folders... [00:12:51]Remove dir /storage/0493 [00:12:51]opendir ok [00:12:51]file . [00:12:51]file .. [00:12:51]file doc_00050500 [00:12:51]remove file /storage/0493/doc_00050500 [00:12:51]file doc_00050501 [00:12:51]remove file /storage/0493/doc_00050501 [00:12:51]file doc_00050502 [00:12:51]remove file /storage/0493/doc_00050502 [00:12:51]file doc_00050503 [00:12:51]remove file /storage/0493/doc_00050503 [00:12:51]file doc_00050504 [00:12:51]remove file /storage/0493/doc_00050504 [00:12:51]file doc_00050505 [00:12:51]remove file /storage/0493/doc_00050505 [00:12:51]file doc_00050506 [00:12:51]remove file /storage/0493/doc_00050506 [00:12:51]file doc_00050507 [00:12:51]remove file /storage/0493/doc_00050507 [00:12:51]file doc_00050508 [00:12:51]remove file /storage/0493/doc_00050508 [00:12:51]file doc_00050509 [00:12:51]remove file /storage/0493/doc_00050509 [00:12:51]file doc_00050510 [00:12:51]remove file /storage/0493/doc_00050510 [00:12:51]file doc_00050511 [00:12:51]remove file /storage/0493/doc_00050511 [00:12:51]file doc_00050512 [00:12:51]remove file /storage/0493/doc_00050512 [00:12:51]file doc_00050513 [00:12:51]remove file /storage/0493/doc_00050513 [00:12:51]file doc_00050514 [00:12:51]remove file /storage/0493/doc_00050514 [00:12:51]file doc_00050515 [00:12:51]remove file /storage/0493/doc_00050515 [00:12:51]file doc_00050516 [00:12:51]remove file /storage/0493/doc_00050516 [00:12:51]file doc_00050517 [00:12:51]remove file /storage/0493/doc_00050517 [00:12:51]file doc_00050518 [00:12:51]remove file /storage/0493/doc_00050518 [00:12:51]file doc_00050519 [00:12:51]remove file /storage/0493/doc_00050519 [00:12:51]file doc_00050520 [00:12:51]remove file /storage/0493/doc_00050520 [00:12:51]file doc_00050521 [00:12:51]remove file /storage/0493/doc_00050521 [00:12:51]file doc_00050522 [00:12:51]remove file /storage/0493/doc_00050522 [00:12:51]file doc_00050523 [00:12:51]remove file /storage/0493/doc_00050523 [00:12:51]file doc_00050524 [00:12:51]remove file /storage/0493/doc_00050524 [00:12:51]file doc_00050525 [00:12:51]remove file /storage/0493/doc_00050525 [00:12:51]file doc_00050526 [00:12:51]remove file /storage/0493/doc_00050526 [00:12:51]file doc_00050527 [00:12:51]remove file /storage/0493/doc_00050527 [00:12:51]file doc_00050528 [00:12:51]remove file /storage/0493/doc_00050528 [00:12:51]file doc_00050529 [00:12:51]remove file /storage/0493/doc_00050529 [00:12:51]file doc_00050530 [00:12:51]remove file /storage/0493/doc_00050530 [00:12:51]file doc_00050531 [00:12:51]remove file /storage/0493/doc_00050531 [00:12:51]file doc_00050532 [00:12:51]remove file /storage/0493/doc_00050532 [00:12:51]file doc_00050533 [00:12:51]remove file /storage/0493/doc_00050533 [00:12:51]file doc_00050534 [00:12:51]remove file /storage/0493/doc_00050534 [00:12:51]file doc_00050535 [00:12:51]remove file /storage/0493/doc_00050535 [00:12:51]file doc_00050536 [00:12:51]remove file /storage/0493/doc_00050536 [00:12:51]file doc_00050537 [00:12:51]remove file /storage/0493/doc_00050537 [00:12:51]file doc_00050538 [00:12:51]remove file /storage/0493/doc_00050538 [00:12:51]file doc_00050539 [00:12:51]remove file /storage/0493/doc_00050539 [00:12:51]file doc_00050540 [00:12:51]remove file /storage/0493/doc_00050540 [00:12:51]file doc_00050541 [00:12:51]remove file /storage/0493/doc_00050541 [00:12:51]file doc_00050542 [00:12:51]remove file /storage/0493/doc_00050542 [00:12:51]file doc_00050543 [00:12:51]remove file /storage/0493/doc_00050543 [00:12:51]file doc_00050544 [00:12:51]remove file /storage/0493/doc_00050544 [00:12:51]file doc_00050545 [00:12:51]remove file /storage/0493/doc_00050545 [00:12:51]file doc_00050546 [00:12:51]remove file /storage/0493/doc_00050546 [00:12:51]file doc_00050547 [00:12:51]remove file /storage/0493/doc_00050547 [00:12:51]file doc_00050548 [00:12:51]remove file /storage/0493/doc_00050548 [00:12:51]file doc_00050549 [00:12:51]remove file /storage/0493/doc_00050549 [00:12:51]file doc_00050550 [00:12:51]remove file /storage/0493/doc_00050550 [00:12:51]file doc_00050551 [00:12:51]remove file /storage/0493/doc_00050551 [00:12:51]file doc_00050552 [00:12:51]remove file /storage/0493/doc_00050552 [00:12:51]file doc_00050553 [00:12:51]remove file /storage/0493/doc_00050553 [00:12:51]file doc_00050554 [00:12:51]remove file /storage/0493/doc_00050554 [00:12:51]file doc_00050555 [00:12:51]remove file /storage/0493/doc_00050555 [00:12:51]file doc_00050556 [00:12:51]remove file /storage/0493/doc_00050556 [00:12:51]file doc_00050557 [00:12:51]remove file /storage/0493/doc_00050557 [00:12:51]file doc_00050558 [00:12:51]remove file /storage/0493/doc_00050558 [00:12:51]file doc_00050559 [00:12:51]remove file /storage/0493/doc_00050559 [00:12:51]file doc_00050560 [00:12:51]remove file /storage/0493/doc_00050560 [00:12:51]file doc_00050561 [00:12:51]remove file /storage/0493/doc_00050561 [00:12:51]file doc_00050562 [00:12:51]remove file /storage/0493/doc_00050562 [00:12:51]file doc_00050563 [00:12:51]remove file /storage/0493/doc_00050563 [00:12:51]file doc_00050564 [00:12:51]remove file /storage/0493/doc_00050564 [00:12:51]file doc_00050565 [00:12:51]remove file /storage/0493/doc_00050565 [00:12:51]file doc_00050566 [00:12:51]remove file /storage/0493/doc_00050566 [00:12:51]file doc_00050567 [00:12:51]remove file /storage/0493/doc_00050567 [00:12:51]file doc_00050568 [00:12:51]remove file /storage/0493/doc_00050568 [00:12:51]file doc_00050569 [00:12:51]remove file /storage/0493/doc_00050569 [00:12:51]file doc_00050570 [00:12:51]remove file /storage/0493/doc_00050570 [00:12:51]file doc_00050571 [00:12:51]remove file /storage/0493/doc_00050571 [00:12:51]file doc_00050572 [00:12:51]remove file /storage/0493/doc_00050572 [00:12:51]file doc_00050573 [00:12:51]remove file /storage/0493/doc_00050573 [00:12:51]file doc_00050574 [00:12:51]remove file /storage/0493/doc_00050574 [00:12:51]file doc_00050575 [00:12:51]remove file /storage/0493/doc_00050575 [00:12:51]file doc_00050576 [00:12:51]remove file /storage/0493/doc_00050576 [00:12:51]file doc_00050577 [00:12:51]remove file /storage/0493/doc_00050577 [00:12:51]file doc_00050578 [00:12:51]remove file /storage/0493/doc_00050578 [00:12:51]file doc_00050579 [00:12:51]remove file /storage/0493/doc_00050579 [00:12:51]file doc_00050580 [00:12:51]remove file /storage/0493/doc_00050580 [00:12:51]file doc_00050581 [00:12:51]remove file /storage/0493/doc_00050581 [00:12:51]file doc_00050582 [00:12:51]remove file /storage/0493/doc_00050582 [00:12:51]file doc_00050583 [00:12:51]remove file /storage/0493/doc_00050583 [00:12:51]file doc_00050584 [00:12:51]remove file /storage/0493/doc_00050584 [00:12:51]file doc_00050585 [00:12:51]remove file /storage/0493/doc_00050585 [00:12:51]file doc_00050586 [00:12:51]remove file /storage/0493/doc_00050586 [00:12:51]file doc_00050587 [00:12:51]remove file /storage/0493/doc_00050587 [00:12:51]file doc_00050588 [00:12:51]remove file /storage/0493/doc_00050588 [00:12:51]file doc_00050589 [00:12:51]remove file /storage/0493/doc_00050589 [00:12:51]file doc_00050590 [00:12:51]remove file /storage/0493/doc_00050590 [00:12:51]file doc_00050591 [00:12:51]remove file /storage/0493/doc_00050591 [00:12:51]file doc_00050592 [00:12:51]remove file /storage/0493/doc_00050592 [00:12:51]file doc_00050593 [00:12:51]remove file /storage/0493/doc_00050593 [00:12:51]file doc_00050594 [00:12:51]remove file /storage/0493/doc_00050594 [00:12:51]file doc_00050595 [00:12:51]remove file /storage/0493/doc_00050595 [00:12:51]file doc_00050596 [00:12:51]remove file /storage/0493/doc_00050596 [00:12:51]file doc_00050597 [00:12:51]remove file /storage/0493/doc_00050597 [00:12:51]file doc_00050598 [00:12:51]remove file /storage/0493/doc_00050598 [00:12:51]file doc_00050599 [00:12:51]remove file /storage/0493/doc_00050599 [00:12:51]file doc_00050600 [00:12:51]remove file /storage/0493/doc_00050600 [00:12:51]file doc_00050601 [00:12:51]remove file /storage/0493/doc_00050601 [00:12:51]file doc_00050602 [00:12:51]remove file /storage/0493/doc_00050602 [00:12:51]file doc_00050603 [00:12:51]remove file /storage/0493/doc_00050603 [00:12:51]file doc_00050604 [00:12:51]remove file /storage/0493/doc_00050604 [00:12:51]file doc_00050605 [00:12:51]remove file /storage/0493/doc_00050605 [00:12:51]file doc_00050606 [00:12:51]remove file /storage/0493/doc_00050606 [00:12:51]file doc_00050607 [00:12:51]remove file /storage/0493/doc_00050607 [00:12:51]file doc_00050608 [00:12:51]remove file /storage/0493/doc_00050608 [00:12:51]file doc_00050609 [00:12:51]remove file /storage/0493/doc_00050609 [00:12:51]file doc_00050610 [00:12:51]remove file /storage/0493/doc_00050610 [00:12:51]file doc_00050611 [00:12:51]remove file /storage/0493/doc_00050611 [00:12:51]file doc_00050612 [00:12:51]remove file /storage/0493/doc_00050612 [00:12:51]file doc_00050613 [00:12:51]remove file /storage/0493/doc_00050613 [00:12:51]file doc_00050614 [00:12:51]remove file /storage/0493/doc_00050614 [00:12:51]file doc_00050615 [00:12:51]remove file /storage/0493/doc_00050615 [00:12:51]file doc_00050616 [00:12:51]remove file /storage/0493/doc_00050616 [00:12:51]file doc_00050617 [00:12:51]remove file /storage/0493/doc_00050617 [00:12:51]file doc_00050618 [00:12:52]remove file /storage/0493/doc_00050618 [00:12:52]file doc_00050619 [00:12:52]remove file /storage/0493/doc_00050619 [00:12:52]file doc_00050620 [00:12:52]remove file /storage/0493/doc_00050620 [00:12:52]file doc_00050621 [00:12:52]remove file /storage/0493/doc_00050621 [00:12:52]file doc_00050622 [00:12:52]remove file /storage/0493/doc_00050622 [00:12:52]file doc_00050623 [00:12:52]remove file /storage/0493/doc_00050623 [00:12:52]file doc_00050624 [00:12:52]remove file /storage/0493/doc_00050624 [00:12:52]file doc_00050625 [00:12:52]remove file /storage/0493/doc_00050625 [00:12:52]file doc_00050626 [00:12:52]remove file /storage/0493/doc_00050626 [00:12:52]file doc_00050627 [00:12:52]remove file /storage/0493/doc_00050627 [00:12:52]file doc_00050628 [00:12:52]remove file /storage/0493/doc_00050628 [00:12:52]file doc_00050629 [00:12:52]remove file /storage/0493/doc_00050629 [00:12:52]file doc_00050630 [00:12:52]remove file /storage/0493/doc_00050630 [00:12:52]file doc_00050631 [00:12:52]remove file /storage/0493/doc_00050631 [00:12:52]file doc_00050632 [00:12:52]remove file /storage/0493/doc_00050632 [00:12:52]file doc_00050633 [00:12:52]remove file /storage/0493/doc_00050633 [00:12:52]file doc_00050634 [00:12:52]remove file /storage/0493/doc_00050634 [00:12:52]file doc_00050635 [00:12:52]remove file /storage/0493/doc_00050635 [00:12:52]file doc_00050636 [00:12:52]remove file /storage/0493/doc_00050636 [00:12:52]file doc_00050637 [00:12:52]remove file /storage/0493/doc_00050637 [00:12:52]file doc_00050638 [00:12:52]remove file /storage/0493/doc_00050638 [00:12:52]file doc_00050639 [00:12:52]remove file /storage/0493/doc_00050639 [00:12:52]file doc_00050640 [00:12:52]remove file /storage/0493/doc_00050640 [00:12:52]file doc_00050641 [00:12:52]remove file /storage/0493/doc_00050641 [00:12:52]file doc_00050642 [00:12:52]remove file /storage/0493/doc_00050642 [00:12:52]file doc_00050643 [00:12:52]remove file /storage/0493/doc_00050643 [00:12:52]file doc_00050644 [00:12:52]remove file /storage/0493/doc_00050644 [00:12:52]file doc_00050645 [00:12:52]remove file /storage/0493/doc_00050645 [00:12:52]file doc_00050646 [00:12:52]remove file /storage/0493/doc_00050646 [00:12:52]file doc_00050647 [00:12:52]remove file /storage/0493/doc_00050647 [00:12:52]file doc_00050648 [00:12:52]remove file /storage/0493/doc_00050648 [00:12:52]file doc_00050649 [00:12:52]remove file /storage/0493/doc_00050649 [00:12:52]file doc_00050650 [00:12:52]remove file /storage/0493/doc_00050650 [00:12:52]file doc_00050651 [00:12:52]remove file /storage/0493/doc_00050651 [00:12:52]file doc_00050652 [00:12:52]remove file /storage/0493/doc_00050652 [00:12:52]file doc_00050653 [00:12:52]remove file /storage/0493/doc_00050653 [00:12:52]file doc_00050654 [00:12:52]remove file /storage/0493/doc_00050654 [00:12:52]file doc_00050655 [00:12:52]remove file /storage/0493/doc_00050655 [00:12:52]file doc_00050656 [00:12:52]remove file /storage/0493/doc_00050656 [00:12:52]file doc_00050657 [00:12:52]remove file /storage/0493/doc_00050657 [00:12:52]file doc_00050658 [00:12:52]remove file /storage/0493/doc_00050658 [00:12:52]file doc_00050659 [00:12:52]remove file /storage/0493/doc_00050659 [00:12:52]file doc_00050660 [00:12:52]remove file /storage/0493/doc_00050660 [00:12:52]file doc_00050661 [00:12:52]remove file /storage/0493/doc_00050661 [00:12:52]file doc_00050662 [00:12:52]remove file /storage/0493/doc_00050662 [00:12:52]file doc_00050663 [00:12:52]remove file /storage/0493/doc_00050663 [00:12:52]file doc_00050664 [00:12:52]remove file /storage/0493/doc_00050664 [00:12:52]file doc_00050665 [00:12:52]remove file /storage/0493/doc_00050665 [00:12:52]file doc_00050666 [00:12:52]remove file /storage/0493/doc_00050666 [00:12:52]file doc_00050667 [00:12:52]remove file /storage/0493/doc_00050667 [00:12:52]remove dir /storage/0493 [00:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=262 [00:12:52]tlvbuf is 01E7F160 [00:12:52]SAM_PROTO_ClearQueue [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 09 00 00 [00:12:52]Write to MH i2c: E2 08 00 83 25 80 09 00 00 00 00 00 00 1A [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 03 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 03 00 83 25 00 90 00 1C [00:12:52]RAPDU: 90 00 [00:12:52]wFMCommunicate OK [00:12:52]SAM_PROTO_ClearQueue done [00:12:52]KKMCreateOFDPacket [00:12:52]OFDProtocolAddRootSTLVToBuf [00:12:52]FM_MakeSignedData [00:12:52]FM_MakeSignedData [00:12:52]SAM_PROTO_SignData [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 0D 01 02 [00:12:52]Write to MH i2c: E2 08 00 84 25 80 0D 01 02 00 00 00 00 22 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 03 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 03 00 84 25 00 90 00 1D [00:12:52]RAPDU: 90 00 [00:12:52]wFMCommunicate OK [00:12:52]wFMCommunicate request_size=255 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 0D 02 02 FA 02 00 06 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 1B 00 D0 96 D1 83 D0 BC D0 B0 D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E F1 03 55 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 83 D0 BC D1 83 D1 88 20 D0 90 D0 B7 D0 B8 D0 B7 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 30 2E 39 31 33 34 32 33 2C 20 37 32 2E 39 33 35 39 33 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 06 34 1C 67 0E 04 04 00 EE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EC C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:12:52]Write to MH i2c: E2 02 01 85 25 80 0D 02 02 FA 00 02 00 06 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 1B 00 D0 96 D1 83 D0 BC D0 B0 D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E F1 03 55 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 83 D0 BC D1 83 D1 88 20 D0 90 D0 B7 D0 B8 D0 B7 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 30 2E 39 31 33 34 32 33 2C 20 37 32 2E 39 33 35 39 33 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 06 34 1C 67 0E 04 04 00 EE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EC C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 98 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 03 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 03 00 85 25 00 90 00 1E [00:12:52]RAPDU: 90 00 [00:12:52]wFMCommunicate OK [00:12:52]wFMCommunicate request_size=21 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 0D 02 02 10 38 37 35 30 30 30 35 04 06 00 1D 07 18 7E 31 BE [00:12:52]Write to MH i2c: E2 18 00 86 25 80 0D 02 02 10 00 38 37 35 30 30 30 35 04 06 00 1D 07 18 7E 31 BE 00 00 61 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 03 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 03 00 86 25 00 90 00 1F [00:12:52]RAPDU: 90 00 [00:12:52]wFMCommunicate OK [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 0D 03 02 [00:12:52]Write to MH i2c: E2 08 00 87 25 80 0D 03 02 00 00 00 00 27 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 0B 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 0B 00 87 25 00 FE 82 2B ED 44 48 3F D8 90 00 63 [00:12:52]RAPDU: FE 82 2B ED 44 48 3F D8 90 00 [00:12:52]wFMCommunicate OK [00:12:52]SAM_PROTO_SignData done [00:12:52]FM_MakeSignedData done [00:12:52]CreateOFDProtocolMessage [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 11 00 00 [00:12:52]Write to MH i2c: E2 08 00 88 25 80 11 00 00 00 00 00 00 27 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 17 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 17 00 88 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 6E [00:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [00:12:52]wFMCommunicate OK [00:12:52]CreateOFDProtocolMessage done [00:12:52]OFDSenderStorePacket 50668 [00:12:52]StoreOFDPacket docnum=50668 [00:12:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1A 01 00 00 3B B1 12 01 50 4E 5A 02 01 00 02 00 06 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 1B 00 D0 96 D1 83 D0 BC D0 B0 D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E F1 03 55 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 83 D0 BC D1 83 D1 88 20 D0 90 D0 B7 D0 B8 D0 B7 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 30 2E 39 31 33 34 32 33 2C 20 37 32 2E 39 33 35 39 33 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 06 34 1C 67 0E 04 04 00 EE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EC C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 04 06 00 1D 07 18 7E 31 BE FE 82 2B ED 44 48 3F D8 [00:12:52]CheckFolder [00:12:52]dirname=/storage/ofd_packets [00:12:52]CheckFolder done [00:12:52]ProducePacketName [00:12:52]name=ofd_packets/00050668 [00:12:52]NVStorageSaveData ofd_packets/00050668 [00:12:52]File name is /storage/ofd_packets/00050668 [00:12:52]Write 312 bytes [00:12:52]NVStorageSaveData done [00:12:52]OFDSenderStorePacket done [00:12:52]KKMCreateOFDPacket done [00:12:52]NVStorageSaveData kkm_last_timestamp [00:12:52]File name is /storage/kkm_last_timestamp [00:12:52]Write 4 bytes [00:12:52]NVStorageSaveData done [00:12:52]ExternCall_PrintAddStr [00:12:52]wPrintStart [00:12:52]Write to MH i2c: 01 00 00 89 25 AE [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 89 25 00 00 00 00 00 FF 0F C3 [00:12:52]RasterBufferAndPrint [00:12:52]line Отчет об открытии смены [00:12:52]line ФФД: 1.0 [00:12:52]line ИНН: 02508201610067 [00:12:52]line Кассир: Жумабай уулу Э. [00:12:52]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [00:12:52]line Место: АЗС № 80 "Партнер Нефть" [00:12:52]line 26.10.2024 00:12 [00:12:52]line Смена: 494 [00:12:52]line РНМ: 0000000000097022 [00:12:52]line ЗНМ: 0300000090 [00:12:52]line ФД: 50668 [00:12:52]line ФМ: 0000000000875000 [00:12:53]line ФПД: 31916312900030 [00:12:53]OFD Sender: Processing packet 50668 [packets to send 7, broken 6] [00:12:53]ProducePacketName [00:12:53]name=ofd_packets/00050668 [00:12:53]OFD Sender: To server: pG, [00:12:53]CommunicateWithHost lk.salyk.kg:30040 [00:12:53]ConnectInit lk.salyk.kg [00:12:53]written 0, free lines is 4095 [00:12:53]Connected sock=10 [00:12:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 1A 01 00 00 3B B1 12 01 50 4E 5A 02 01 00 02 00 06 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 1B 00 D0 96 D1 83 D0 BC D0 B0 D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E F1 03 55 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 83 D0 BC D1 83 D1 88 20 D0 90 D0 B7 D0 B8 D0 B7 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 30 2E 39 31 33 34 32 33 2C 20 37 32 2E 39 33 35 39 33 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 06 34 1C 67 0E 04 04 00 EE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EC C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 35 04 06 00 1D 07 18 7E 31 BE FE 82 2B ED 44 48 3F D8 [00:12:53]Write to MH i2c: 01 00 00 9B 25 C0 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: 01 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: 01 07 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: 01 07 00 9B 25 00 00 00 00 00 5B 0E 30 [00:12:53]RasterBufferAndPrint [00:12:53]line [00:12:53]line [00:12:53]line [00:12:53]line [00:12:53]line [00:12:53]written 0, free lines is 3686 [00:12:53]process_action open_shift done [00:12:53]requested_data is exist [00:12:53]produce_requested_data [00:12:53]requested_item fd.num is exist - process it [00:12:53]SAM_PROTO_GetFieldsCounters [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 00 00 [00:12:53]Write to MH i2c: E2 08 00 A2 25 80 13 00 00 00 00 00 00 43 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 1B AC 47 00 8A 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EC C5 00 00 F4 03 04 00 96 DF 1B 67 B6 04 01 00 00 83 FB D1 63 A7 E5 3C 3E [00:12:53]CommunicateWithHost err = 0 [00:12:53]CheckOFDResponse [00:12:53]1017 (14) - 77093643461234 [00:12:53]1041 (16) - 0000000000875000 [00:12:53]1040 (4) - 50668 [00:12:53]1012 (4) - 25.10.2024 18:12 [00:12:53]1206 (1) - 0 [00:12:53]OFD Sender: Remove packet 50668 [00:12:53]ProducePacketName [00:12:53]name=ofd_packets/00050668 [00:12:53]NVStorageDeleteData [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:53]Read from MH i2c: E2 62 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 62 00 A2 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EC C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EC C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:53]wFMCommunicate OK [00:12:53]SAM_PROTO_GetFieldsCounters done [00:12:53]requested_item shift.num is exist - process it [00:12:53]requested_item shift.opened is exist - process it [00:12:53]req_shift_opened [00:12:53]FM_GetShiftState [00:12:53]SAM_PROTO_GetShiftState [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 01 00 [00:12:53]Write to MH i2c: E2 08 00 A3 25 80 13 01 00 00 00 00 00 45 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 0E 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 0E 00 A3 25 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 0E [00:12:53]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [00:12:53]wFMCommunicate OK [00:12:53]SAM_PROTO_GetShiftState done [00:12:53]FM_GetShiftState done [00:12:53]req_shift_opened done [00:12:53]requested_item shift.open_date is exist - process it [00:12:53]req_shift_open_date [00:12:53]req_shift_open_date done [00:12:53]produce_requested_data done [00:12:53]produce_requested_data return {"fd.num":50668,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574} [00:12:53]process_action_free open_shift [00:12:53]json_value_free [00:12:53]json_value_free done [00:12:53]process_json_proto returns [00:12:53]Send response to host [00:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":50668,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574}}} [00:12:53]free response buf [00:12:53]execute_script done [00:12:53]execute_script returns [00:12:53]free content buf [00:12:53]Sock 7.Close socket [00:12:53]Sock 7.Thread stoped [00:12:53]accept exits with 9 [00:12:53]New connection [00:12:53]New thread 3066645860 created [00:12:53]Thread 3066789220 joined [00:12:53]Waiting for new connection... [00:12:53] Sock 9.Parse request [00:12:53]Sock 9.Check first char [00:12:53]Sock 9.First char is OK [00:12:53]request: POST /json_proto HTTP/1.0 [00:12:53]Method: POST [00:12:53]URL: /json_proto [00:12:53]Method is POST - this is cgi request [00:12:53]url: /json_proto [00:12:53]query_string will be loaded in cgi processing [00:12:53]execute_cgi json_proto POST (null) [00:12:53]execute_cgi path=json_proto method=POST [00:12:53]POST find Content-Length [00:12:53]Host: 172.17.49.196:8080 [00:12:53]Content-Length: 331 [00:12:53]Content-Type: application/json [00:12:53] [00:12:53]POST finish read [00:12:53]Found Content-Length = 331 [00:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:53]execute_script... [00:12:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:53]POST & json_proto [00:12:53]process_json_proto [00:12:53]json parsed OK: [00:12:53]protocol is kg_v1.0 [00:12:53]action value=get_value [00:12:53]process_action get_value [00:12:53]cmd_get_value [00:12:53]process_action get_value done [00:12:53]requested_data is exist [00:12:53]produce_requested_data [00:12:53]requested_item fm.sale.total is exist - process it [00:12:53]SAM_PROTO_GetFMData [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 03 00 [00:12:53]Write to MH i2c: E2 08 00 A4 25 80 13 03 00 00 00 00 00 48 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:54]OFD Sender: No OFD packet to send [00:12:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:54]Read from MH i2c: E2 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 A4 25 00 C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 94 [00:12:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 10 C2 00 00 69 04 A1 00 6F 04 04 00 10 C1 00 00 B1 04 04 00 1B DA 01 83 70 04 04 00 B8 C1 DD 61 72 04 04 00 63 18 24 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FA F9 E9 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 20 C2 28 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 68 BD E6 02 70 04 04 00 78 47 E3 02 72 04 03 00 F0 75 03 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 59 E2 4E EF 03 09 90 00 [00:12:54]wFMCommunicate OK [00:12:54]wFMCommunicate request_size=4 [00:12:54]MH_SAM_APDU [00:12:54]CAPDU: 80 17 00 00 [00:12:54]Write to MH i2c: E2 08 00 A5 25 80 17 00 00 00 00 00 00 4A [00:12:54]Write i2c OK [00:12:54]MH_I2C_Read... [00:12:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:54]Read from MH i2c: E2 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 A5 25 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 67 [00:12:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 92 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:54]wFMCommunicate OK [00:12:54]wFMCommunicate request_size=4 [00:12:54]MH_SAM_APDU [00:12:54]CAPDU: 80 17 00 00 [00:12:54]Write to MH i2c: E2 08 00 A6 25 80 17 00 00 00 00 00 00 4B [00:12:54]Write i2c OK [00:12:54]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 FD 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 FD 00 A6 25 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [00:12:55]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:55]wFMCommunicate OK [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 17 00 00 [00:12:55]Write to MH i2c: E2 08 00 A7 25 80 17 00 00 00 00 00 00 4C [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 FD 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 FD 00 A7 25 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [00:12:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:55]wFMCommunicate OK [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 17 00 00 [00:12:55]Write to MH i2c: E2 08 00 A8 25 80 17 00 00 00 00 00 00 4D [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 E2 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 E2 00 A8 25 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2B [00:12:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:56]wFMCommunicate OK [00:12:56]SAM_PROTO_GetFMData done [00:12:56]requested_item fm.sale_refund.total is exist - process it [00:12:56]requested_item fm.buy.total is exist - process it [00:12:56]requested_item shift.sale.total is exist - process it [00:12:56]SAM_PROTO_GetShiftData [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 13 02 00 [00:12:56]Write to MH i2c: E2 08 00 A9 25 80 13 02 00 00 00 00 00 4C [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:56]Read from MH i2c: E2 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 A9 25 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 BF [00:12:56]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:12:56]wFMCommunicate OK [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 17 00 00 [00:12:56]Write to MH i2c: E2 08 00 AA 25 80 17 00 00 00 00 00 00 4F [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:56]Read from MH i2c: E2 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 [00:12:56]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 AA 25 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 57 [00:12:57]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:12:57]wFMCommunicate OK [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 17 00 00 [00:12:57]Write to MH i2c: E2 08 00 AB 25 80 17 00 00 00 00 00 00 50 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 AB 25 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 22 [00:12:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:12:57]wFMCommunicate OK [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 17 00 00 [00:12:57]Write to MH i2c: E2 08 00 AC 25 80 17 00 00 00 00 00 00 51 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 FD 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 FD 00 AC 25 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 C3 [00:12:58]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:12:58]wFMCommunicate OK [00:12:58]wFMCommunicate request_size=4 [00:12:58]MH_SAM_APDU [00:12:58]CAPDU: 80 17 00 00 [00:12:58]Write to MH i2c: E2 08 00 AD 25 80 17 00 00 00 00 00 00 52 [00:12:58]Write i2c OK [00:12:58]MH_I2C_Read... [00:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 BD 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 BD 00 AD 25 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 38 [00:12:58]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:12:58]wFMCommunicate OK [00:12:58]SAM_PROTO_GetShiftData done [00:12:58]requested_item shift.sale.total_cash is exist - process it [00:12:58]requested_item shift.sale_refund.total is exist - process it [00:12:58]requested_item shift.sale_refund.total_cash is exist - process it [00:12:58]requested_item shift.buy.total is exist - process it [00:12:58]requested_item shift.buy.total_cash is exist - process it [00:12:58]produce_requested_data done [00:12:58]produce_requested_data return {"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.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:12:58]process_action_free get_value [00:12:58]json_value_free [00:12:58]json_value_free done [00:12:58]process_json_proto returns [00:12:58]Send response to host [00:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":21979366.67,"fm.sale_refund.total":486762.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:12:58]free response buf [00:12:58]execute_script done [00:12:58]execute_script returns [00:12:58]free content buf [00:12:58]Sock 9.Close socket [00:12:58]Sock 9.Thread stoped [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:38]accept exits with 7 [00:42:38]New connection [00:42:38]New thread 3066789220 created [00:42:38]Thread 3066645860 joined [00:42:38]Waiting for new connection... [00:42:38] Sock 7.Parse request [00:42:38]Sock 7.Check first char [00:42:38]Sock 7.First char is OK [00:42:38]request: POST /json_proto HTTP/1.0 [00:42:38]Method: POST [00:42:38]URL: /json_proto [00:42:38]Method is POST - this is cgi request [00:42:38]url: /json_proto [00:42:38]query_string will be loaded in cgi processing [00:42:38]execute_cgi json_proto POST (null) [00:42:38]execute_cgi path=json_proto method=POST [00:42:38]POST find Content-Length [00:42:38]Host: 172.17.49.196:8080 [00:42:38]Content-Length: 697 [00:42:38]Content-Type: application/json [00:42:38] [00:42:38]POST finish read [00:42:38]Found Content-Length = 697 [00:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164551", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:38]execute_script... [00: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)164551", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:38]POST & json_proto [00:42:38]process_json_proto [00:42:38]json parsed OK: [00:42:38]protocol is kg_v1.0 [00:42:38]action value=close_receipt [00:42:38]process_action close_receipt [00:42:38]cmd_close_receipt [00:42:38]MH_GetDate [00:42:38]Write to MH i2c: F0 00 00 AE 25 C2 [00:42:38]Write i2c OK [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: F0 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: F0 09 00 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: F0 09 00 AE 25 00 02 3B 1C 67 BD 3B 11 67 FB [00:42:38]GetLastDocTimeStamp 1729901574 [00:42:38]current date 1729903362 [00:42:38]FM_GetShiftState [00:42:38]SAM_PROTO_GetShiftState [00:42:38]wFMCommunicate request_size=4 [00:42:38]MH_SAM_APDU [00:42:38]CAPDU: 80 13 01 00 [00:42:38]Write to MH i2c: E2 08 00 AF 25 80 13 01 00 00 00 00 00 51 [00:42:38]Write i2c OK [00:42:38]MH_I2C_Read... [00:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:38]Read from MH i2c: E2 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: E2 0E 00 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: E2 0E 00 AF 25 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 1A [00:42:38]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [00:42:38]wFMCommunicate OK [00:42:38]SAM_PROTO_GetShiftState done [00:42:38]FM_GetShiftState done [00:42:38]opened in 1729901574 [00:42:38]opened+sec_in_day 1729987974 [00:42:38]quantity*price = 19000 [00:42:38]sum+1 = 19001 [00:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 1 26.10.2024 00:42 Смена: 494 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50669 ФПД: 92155633406536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T004242&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50669&fm=92155633406536&tin=02508201610067®Number=0000000000097022&sum=19000 0 [00:42:39]StoreToDocumentArchive [00:42:39]shift 494 fd 50669 [00:42:39]save to /storage/0494/doc_00050669 [00:42:39]save last doc name /storage/0494/doc_00050669 to /storage/kkm_last_doc_name [00:42:39]save OK [00:42:39]Clear old archive folders... [00:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=302 [00:42:39]tlvbuf is 01EF38A0 [00:42:39]SAM_PROTO_ClearQueue [00:42:39]wFMCommunicate request_size=4 [00:42:39]MH_SAM_APDU [00:42:39]CAPDU: 80 09 00 00 [00:42:39]Write to MH i2c: E2 08 00 BC 25 80 09 00 00 00 00 00 00 53 [00:42:39]Write i2c OK [00:42:39]MH_I2C_Read... [00:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:39]Read from MH i2c: E2 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: E2 03 00 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: E2 03 00 BC 25 00 90 00 55 [00:42:39]RAPDU: 90 00 [00:42:39]wFMCommunicate OK [00:42:39]SAM_PROTO_ClearQueue done [00:42:39]KKMCreateOFDPacket [00:42:39]OFDProtocolAddRootSTLVToBuf [00:42:39]FM_MakeSignedData [00:42:39]FM_MakeSignedData [00:42:39]SAM_PROTO_SignData [00:42:39]wFMCommunicate request_size=4 [00:42:39]MH_SAM_APDU [00:42:39]CAPDU: 80 0D 01 02 [00:42:39]Write to MH i2c: E2 08 00 BD 25 80 0D 01 02 00 00 00 00 5B [00:42:39]Write i2c OK [00:42:39]MH_I2C_Read... [00:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:39]Read from MH i2c: E2 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: E2 03 00 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: E2 03 00 BD 25 00 90 00 56 [00:42:39]RAPDU: 90 00 [00:42:39]wFMCommunicate OK [00:42:39]wFMCommunicate request_size=255 [00:42:39]MH_SAM_APDU [00:42:39]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 02 3B 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 [00:42:39]Write to MH i2c: E2 02 01 BE 25 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 02 3B 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 00 00 E2 [00:42:39]Write i2c OK [00:42:39]MH_I2C_Read... [00:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:40]Read from MH i2c: E2 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 03 00 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 03 00 BE 25 00 90 00 57 [00:42:40]RAPDU: 90 00 [00:42:40]wFMCommunicate OK [00:42:40]wFMCommunicate request_size=61 [00:42:40]MH_SAM_APDU [00:42:40]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 ED C5 00 00 35 04 06 00 53 D0 A7 CB 12 48 [00:42:40]Write to MH i2c: E2 40 00 BF 25 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 ED C5 00 00 35 04 06 00 53 D0 A7 CB 12 48 00 00 23 [00:42:40]Write i2c OK [00:42:40]MH_I2C_Read... [00:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:40]Read from MH i2c: E2 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 03 00 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 03 00 BF 25 00 90 00 58 [00:42:40]RAPDU: 90 00 [00:42:40]wFMCommunicate OK [00:42:40]wFMCommunicate request_size=4 [00:42:40]MH_SAM_APDU [00:42:40]CAPDU: 80 0D 03 02 [00:42:40]Write to MH i2c: E2 08 00 C0 25 80 0D 03 02 00 00 00 00 60 [00:42:40]Write i2c OK [00:42:40]MH_I2C_Read... [00:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:40]Read from MH i2c: E2 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 0B 00 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 0B 00 C0 25 00 67 EE FB 48 C5 2B 64 24 90 00 71 [00:42:40]RAPDU: 67 EE FB 48 C5 2B 64 24 90 00 [00:42:40]wFMCommunicate OK [00:42:40]SAM_PROTO_SignData done [00:42:40]FM_MakeSignedData done [00:42:40]CreateOFDProtocolMessage [00:42:40]wFMCommunicate request_size=4 [00:42:40]MH_SAM_APDU [00:42:40]CAPDU: 80 11 00 00 [00:42:40]Write to MH i2c: E2 08 00 C1 25 80 11 00 00 00 00 00 00 60 [00:42:40]Write i2c OK [00:42:40]MH_I2C_Read... [00:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:40]Read from MH i2c: E2 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 17 00 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 17 00 C1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 A7 [00:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [00:42:40]wFMCommunicate OK [00:42:40]CreateOFDProtocolMessage done [00:42:40]OFDSenderStorePacket 50669 [00:42:40]StoreOFDPacket docnum=50669 [00:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 42 01 00 00 F8 DC 3A 01 22 E6 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 02 3B 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 ED C5 00 00 35 04 06 00 53 D0 A7 CB 12 48 67 EE FB 48 C5 2B 64 24 [00:42:40]CheckFolder [00:42:40]dirname=/storage/ofd_packets [00:42:40]CheckFolder done [00:42:40]ProducePacketName [00:42:40]name=ofd_packets/00050669 [00:42:40]NVStorageSaveData ofd_packets/00050669 [00:42:40]File name is /storage/ofd_packets/00050669 [00:42:40]Write 352 bytes [00:42:40]NVStorageSaveData done [00:42:40]OFDSenderStorePacket done [00:42:40]KKMCreateOFDPacket done [00:42:40]NVStorageSaveData kkm_last_timestamp [00:42:40]File name is /storage/kkm_last_timestamp [00:42:40]Write 4 bytes [00:42:40]NVStorageSaveData done [00:42:40]ExternCall_PrintAddStr [00:42:40]wPrintStart [00:42:40]Write to MH i2c: 01 00 00 C2 25 E7 [00:42:40]Write i2c OK [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: 01 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: 01 07 00 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: 01 07 00 C2 25 00 00 00 00 00 FF 0F FC [00:42:40]RasterBufferAndPrint [00:42:40]line Счет N : (3)164551 [00:42:40]line ИНН: 02508201610067 [00:42:40]line Контрольно-Кассовый Чек [00:42:40]line ПРОДАЖА [00:42:40]line Товар: 4631162227163 [00:42:40]line Напиток газированный Mojito LEMON LIME ж [00:42:40]line 2.000 * 95.00 [00:42:40]line = 190.00 [00:42:40]line НДС 12% НСП 1% [00:42:40]line > о реализуемом товаре [00:42:40]line ИТОГО: 190.00 [00:42:40]line НСП 1% : 1.68 [00:42:40]line НДС 12% : 20.18 [00:42:40]line Наличными: 190.00 [00:42:40]line Безнал.: 0.00 [00:42:40]line Место: АЗС № 80 "Партнер Нефть" [00:42:40]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [00:42:40]line СНО: Общий режим [00:42:40]line Чек 1 26.10.2024 00:42 [00:42:40]line Смена: 494 ФФД: 1.0 [00:42:40]line ЗНМ: 0300000090 [00:42:40]line РНМ: 0000000000097022 [00:42:40]line Версия ККМ: 001 [00:42:40]line ФМ: 0000000000875000 [00:42:40]line ФД: 50669 [00:42:40]line ФПД: 92155633406536 [00:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T004242&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50669&fm=92155633406536&tin=02508201610067®Number=0000000000097022&sum=19000 [00:42:40]line 0 [00:42:40]OFD Sender: Processing packet 50669 [packets to send 7, broken 6] [00:42:40]ProducePacketName [00:42:40]name=ofd_packets/00050669 [00:42:40]OFD Sender: To server: pG, [00:42:40]CommunicateWithHost lk.salyk.kg:30040 [00:42:40]ConnectInit lk.salyk.kg [00:42:40]written 0, free lines is 4095 [00:42:40]Connected sock=10 [00:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 42 01 00 00 F8 DC 3A 01 22 E6 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 02 3B 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 ED C5 00 00 35 04 06 00 53 D0 A7 CB 12 48 67 EE FB 48 C5 2B 64 24 [00:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 13 B6 47 00 43 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 ED C5 00 00 F4 03 04 00 92 E6 1B 67 B6 04 01 00 00 AE ED 0E FB 5A A3 3C 30 [00:42:40]CommunicateWithHost err = 0 [00:42:40]CheckOFDResponse [00:42:40]1017 (14) - 77093643461234 [00:42:40]1041 (16) - 0000000000875000 [00:42:40]1040 (4) - 50669 [00:42:40]1012 (4) - 25.10.2024 18:42 [00:42:40]1206 (1) - 0 [00:42:40]OFD Sender: Remove packet 50669 [00:42:40]ProducePacketName [00:42:40]name=ofd_packets/00050669 [00:42:40]NVStorageDeleteData [00:42:41]Write to MH i2c: 01 00 00 EB 25 10 [00:42:41]Write i2c OK [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: 01 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: 01 07 00 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: 01 07 00 EB 25 00 00 00 00 00 0C 0D 30 [00:42:41]RasterBufferAndPrint [00:42:41]line [00:42:41]line [00:42:41]line [00:42:41]line [00:42:41]line [00:42:41]written 0, free lines is 3349 [00:42:41]process_action close_receipt done [00:42:41]requested_data is exist [00:42:41]produce_requested_data [00:42:41]requested_item fm.sn is exist - process it [00:42:41]wFMCommunicate request_size=4 [00:42:41]MH_SAM_APDU [00:42:41]CAPDU: 80 11 00 00 [00:42:41]Write to MH i2c: E2 08 00 F2 25 80 11 00 00 00 00 00 00 91 [00:42:41]Write i2c OK [00:42:41]MH_I2C_Read... [00:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:41]Read from MH i2c: E2 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: E2 17 00 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: E2 17 00 F2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 D8 [00:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [00:42:41]wFMCommunicate OK [00:42:41]requested_item fd.num is exist - process it [00:42:41]SAM_PROTO_GetFieldsCounters [00:42:41]wFMCommunicate request_size=4 [00:42:41]MH_SAM_APDU [00:42:41]CAPDU: 80 13 00 00 [00:42:41]Write to MH i2c: E2 08 00 F3 25 80 13 00 00 00 00 00 00 94 [00:42:41]Write i2c OK [00:42:41]MH_I2C_Read... [00:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:41]Read from MH i2c: E2 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: E2 62 00 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: E2 62 00 F3 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 ED C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 ED C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:41]wFMCommunicate OK [00:42:41]SAM_PROTO_GetFieldsCounters done [00:42:41]requested_item shift.num is exist - process it [00:42:41]requested_item shift.opened is exist - process it [00:42:41]req_shift_opened [00:42:41]FM_GetShiftState [00:42:41]SAM_PROTO_GetShiftState [00:42:41]wFMCommunicate request_size=4 [00:42:41]MH_SAM_APDU [00:42:41]CAPDU: 80 13 01 00 [00:42:41]Write to MH i2c: E2 08 00 F4 25 80 13 01 00 00 00 00 00 96 [00:42:41]Write i2c OK [00:42:41]MH_I2C_Read... [00:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:41]Read from MH i2c: E2 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: E2 0E 00 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: E2 0E 00 F4 25 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 5F [00:42:41]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [00:42:41]wFMCommunicate OK [00:42:41]SAM_PROTO_GetShiftState done [00:42:41]FM_GetShiftState done [00:42:41]req_shift_opened done [00:42:41]requested_item shift.open_date is exist - process it [00:42:41]req_shift_open_date [00:42:41]req_shift_open_date done [00:42:41]produce_requested_data done [00:42:41]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50669,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574} [00:42:41]process_action_free close_receipt [00:42:41]json_value_free [00:42:41]json_value_free done [00:42:41]process_json_proto returns [00:42:41]Send response to host [00:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50669,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574}}} [00:42:41]free response buf [00:42:41]execute_script done [00:42:41]execute_script returns [00:42:41]free content buf [00:42:41]Sock 7.Close socket [00:42:41]Sock 7.Thread stoped [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]accept exits with 9 [00:49:31]New connection [00:49:31]New thread 3066645860 created [00:49:31]Thread 3066789220 joined [00:49:31]Waiting for new connection... [00:49:31] Sock 9.Parse request [00:49:31]Sock 9.Check first char [00:49:31]Sock 9.First char is OK [00:49:31]request: POST /json_proto HTTP/1.0 [00:49:31]Method: POST [00:49:31]URL: /json_proto [00:49:31]Method is POST - this is cgi request [00:49:31]url: /json_proto [00:49:31]query_string will be loaded in cgi processing [00:49:31]execute_cgi json_proto POST (null) [00:49:31]execute_cgi path=json_proto method=POST [00:49:31]POST find Content-Length [00:49:31]Host: 172.17.49.196:8080 [00:49:31]Content-Length: 777 [00:49:31]Content-Type: application/json [00:49:31] [00:49:31]POST finish read [00:49:31]Found Content-Length = 777 [00:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164552", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:31]execute_script... [00:49:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164552", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:31]POST & json_proto [00:49:31]process_json_proto [00:49:31]json parsed OK: [00:49:31]protocol is kg_v1.0 [00:49:31]action value=close_receipt [00:49:31]process_action close_receipt [00:49:31]cmd_close_receipt [00:49:31]MH_GetDate [00:49:31]Write to MH i2c: F0 00 00 F5 25 09 [00:49:31]Write i2c OK [00:49:31]MH_I2C_Read... [00:49:31]Read from MH i2c: F0 [00:49:31]MH_I2C_Read... [00:49:31]Read from MH i2c: F0 09 00 [00:49:31]MH_I2C_Read... [00:49:31]Read from MH i2c: F0 09 00 F5 25 00 9F 3C 1C 67 BD 3B 11 67 E0 [00:49:31]GetLastDocTimeStamp 1729903362 [00:49:31]current date 1729903775 [00:49:31]FM_GetShiftState [00:49:31]SAM_PROTO_GetShiftState [00:49:31]wFMCommunicate request_size=4 [00:49:31]MH_SAM_APDU [00:49:31]CAPDU: 80 13 01 00 [00:49:31]Write to MH i2c: E2 08 00 F6 25 80 13 01 00 00 00 00 00 98 [00:49:31]Write i2c OK [00:49:31]MH_I2C_Read... [00:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:31]Read from MH i2c: E2 [00:49:31]MH_I2C_Read... [00:49:31]Read from MH i2c: E2 0E 00 [00:49:31]MH_I2C_Read... [00:49:31]Read from MH i2c: E2 0E 00 F6 25 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 61 [00:49:31]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [00:49:31]wFMCommunicate OK [00:49:31]SAM_PROTO_GetShiftState done [00:49:31]FM_GetShiftState done [00:49:31]opened in 1729901574 [00:49:31]opened+sec_in_day 1729987974 [00:49:31]quantity*price = 10500 [00:49:31]sum+1 = 10501 [00:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 2 26.10.2024 00:49 Смена: 494 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000875000 ФД: 50670 ФПД: 221068782140888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T004935&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50670&fm=221068782140888&tin=02508201610067®Number=0000000000097022&sum=10500 0 [00:49:32]StoreToDocumentArchive [00:49:32]shift 494 fd 50670 [00:49:32]save to /storage/0494/doc_00050670 [00:49:32]save last doc name /storage/0494/doc_00050670 to /storage/kkm_last_doc_name [00:49:32]save OK [00:49:32]Clear old archive folders... [00:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=282 [00:49:32]tlvbuf is 01EF3420 [00:49:32]SAM_PROTO_ClearQueue [00:49:32]wFMCommunicate request_size=4 [00:49:32]MH_SAM_APDU [00:49:32]CAPDU: 80 09 00 00 [00:49:32]Write to MH i2c: E2 08 00 03 26 80 09 00 00 00 00 00 00 9B [00:49:32]Write i2c OK [00:49:32]MH_I2C_Read... [00:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:32]Read from MH i2c: E2 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 03 00 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 03 00 03 26 00 90 00 9D [00:49:32]RAPDU: 90 00 [00:49:32]wFMCommunicate OK [00:49:32]SAM_PROTO_ClearQueue done [00:49:32]KKMCreateOFDPacket [00:49:32]OFDProtocolAddRootSTLVToBuf [00:49:32]FM_MakeSignedData [00:49:32]FM_MakeSignedData [00:49:32]SAM_PROTO_SignData [00:49:32]wFMCommunicate request_size=4 [00:49:32]MH_SAM_APDU [00:49:32]CAPDU: 80 0D 01 02 [00:49:32]Write to MH i2c: E2 08 00 04 26 80 0D 01 02 00 00 00 00 A3 [00:49:32]Write i2c OK [00:49:32]MH_I2C_Read... [00:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:32]Read from MH i2c: E2 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 03 00 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 03 00 04 26 00 90 00 9E [00:49:32]RAPDU: 90 00 [00:49:32]wFMCommunicate OK [00:49:32]wFMCommunicate request_size=255 [00:49:32]MH_SAM_APDU [00:49:32]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 34 37 33 30 30 31 38 06 04 28 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 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 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 9F 3C 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 [00:49:32]Write to MH i2c: E2 02 01 05 26 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 34 37 33 30 30 31 38 06 04 28 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 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 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 9F 3C 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 00 00 B5 [00:49:32]Write i2c OK [00:49:32]MH_I2C_Read... [00:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:33]Read from MH i2c: E2 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: E2 03 00 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [00:49:33]RAPDU: 90 00 [00:49:33]wFMCommunicate OK [00:49:33]wFMCommunicate request_size=41 [00:49:33]MH_SAM_APDU [00:49:33]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EE C5 00 00 35 04 06 00 C9 0F 96 3A FD D8 [00:49:33]Write to MH i2c: E2 2C 00 06 26 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EE C5 00 00 35 04 06 00 C9 0F 96 3A FD D8 00 00 99 [00:49:33]Write i2c OK [00:49:33]MH_I2C_Read... [00:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:33]Read from MH i2c: E2 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: E2 03 00 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: E2 03 00 06 26 00 90 00 A0 [00:49:33]RAPDU: 90 00 [00:49:33]wFMCommunicate OK [00:49:33]wFMCommunicate request_size=4 [00:49:33]MH_SAM_APDU [00:49:33]CAPDU: 80 0D 03 02 [00:49:33]Write to MH i2c: E2 08 00 07 26 80 0D 03 02 00 00 00 00 A8 [00:49:33]Write i2c OK [00:49:33]MH_I2C_Read... [00:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:33]Read from MH i2c: E2 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: E2 0B 00 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: E2 0B 00 07 26 00 02 20 CE 9B 68 35 6D 1B 90 00 59 [00:49:33]RAPDU: 02 20 CE 9B 68 35 6D 1B 90 00 [00:49:33]wFMCommunicate OK [00:49:33]SAM_PROTO_SignData done [00:49:33]FM_MakeSignedData done [00:49:33]CreateOFDProtocolMessage [00:49:33]wFMCommunicate request_size=4 [00:49:33]MH_SAM_APDU [00:49:33]CAPDU: 80 11 00 00 [00:49:33]Write to MH i2c: E2 08 00 08 26 80 11 00 00 00 00 00 00 A8 [00:49:33]Write i2c OK [00:49:33]MH_I2C_Read... [00:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:33]Read from MH i2c: E2 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: E2 17 00 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: E2 17 00 08 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 EF [00:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [00:49:33]wFMCommunicate OK [00:49:33]CreateOFDProtocolMessage done [00:49:33]OFDSenderStorePacket 50670 [00:49:33]StoreOFDPacket docnum=50670 [00:49:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 F5 22 26 01 82 F4 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 34 37 33 30 30 31 38 06 04 28 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 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 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 9F 3C 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EE C5 00 00 35 04 06 00 C9 0F 96 3A FD D8 02 20 CE 9B 68 35 6D 1B [00:49:33]CheckFolder [00:49:33]dirname=/storage/ofd_packets [00:49:33]CheckFolder done [00:49:33]ProducePacketName [00:49:33]name=ofd_packets/00050670 [00:49:33]NVStorageSaveData ofd_packets/00050670 [00:49:33]File name is /storage/ofd_packets/00050670 [00:49:33]Write 332 bytes [00:49:33]NVStorageSaveData done [00:49:33]OFDSenderStorePacket done [00:49:33]KKMCreateOFDPacket done [00:49:33]NVStorageSaveData kkm_last_timestamp [00:49:33]File name is /storage/kkm_last_timestamp [00:49:33]Write 4 bytes [00:49:33]NVStorageSaveData done [00:49:33]OFD Sender: Processing packet 50670 [packets to send 7, broken 6] [00:49:33]ProducePacketName [00:49:33]name=ofd_packets/00050670 [00:49:33]OFD Sender: To server: pG, [00:49:33]CommunicateWithHost lk.salyk.kg:30040 [00:49:33]ConnectInit lk.salyk.kg [00:49:33]ExternCall_PrintAddStr [00:49:33]wPrintStart [00:49:33]Write to MH i2c: 01 00 00 09 26 2F [00:49:33]Write i2c OK [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: 01 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: 01 07 00 [00:49:33]MH_I2C_Read... [00:49:33]Read from MH i2c: 01 07 00 09 26 00 00 00 00 00 FF 0F 44 [00:49:33]RasterBufferAndPrint [00:49:33]line Счет N : (3)164552 [00:49:33]line ИНН: 02508201610067 [00:49:33]line Контрольно-Кассовый Чек [00:49:33]line ПРОДАЖА [00:49:33]line Товар: 2000034730018 [00:49:33]line Кофе Американо (GABB TRADE) [00:49:33]line 1.000 * 105.00 [00:49:33]line = 105.00 [00:49:33]line НДС 12% НСП 1% [00:49:33]line > о реализуемом товаре [00:49:33]line ИТОГО: 105.00 [00:49:33]line НСП 1% : 0.93 [00:49:33]line НДС 12% : 11.15 [00:49:33]line Наличными: 0.00 [00:49:33]line Безнал.: 105.00 [00:49:33]line Место: АЗС № 80 "Партнер Нефть" [00:49:33]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [00:49:33]line СНО: Общий режим [00:49:33]line Чек 2 26.10.2024 00:49 [00:49:33]line Смена: 494 ФФД: 1.0 [00:49:33]line ЗНМ: 0300000090 [00:49:33]line РНМ: 0000000000097022 [00:49:33]line Версия ККМ: 001 [00:49:33]line Платежная система: Mbank [00:49:33]line ФМ: 0000000000875000 [00:49:33]line ФД: 50670 [00:49:33]line ФПД: 221068782140888 [00:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T004935&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50670&fm=221068782140888&tin=02508201610067®Number=0000000000097022&sum=10500 [00:49:33]line 0 [00:49:33]Connected sock=11 [00:49:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 2E 01 00 00 F5 22 26 01 82 F4 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 34 37 33 30 30 31 38 06 04 28 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 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 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 9F 3C 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EE C5 00 00 35 04 06 00 C9 0F 96 3A FD D8 02 20 CE 9B 68 35 6D 1B [00:49:33]written 0, free lines is 4095 [00:49:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 39 2B 47 00 5C C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EE C5 00 00 F4 03 04 00 2F E8 1B 67 B6 04 01 00 00 77 E7 A1 73 AB 15 96 B3 [00:49:33]CommunicateWithHost err = 0 [00:49:33]CheckOFDResponse [00:49:33]1017 (14) - 77093643461234 [00:49:33]1041 (16) - 0000000000875000 [00:49:33]1040 (4) - 50670 [00:49:33]1012 (4) - 25.10.2024 18:49 [00:49:33]1206 (1) - 0 [00:49:33]OFD Sender: Remove packet 50670 [00:49:33]ProducePacketName [00:49:33]name=ofd_packets/00050670 [00:49:33]NVStorageDeleteData [00:49:34]Write to MH i2c: 01 00 00 33 26 59 [00:49:34]Write i2c OK [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: 01 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: 01 07 00 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: 01 07 00 33 26 00 00 00 00 00 0D 0D 7A [00:49:34]RasterBufferAndPrint [00:49:34]line [00:49:34]line [00:49:34]line [00:49:34]line [00:49:34]line [00:49:34]written 0, free lines is 3348 [00:49:34]process_action close_receipt done [00:49:34]requested_data is exist [00:49:34]produce_requested_data [00:49:34]requested_item fm.sn is exist - process it [00:49:34]wFMCommunicate request_size=4 [00:49:34]MH_SAM_APDU [00:49:34]CAPDU: 80 11 00 00 [00:49:34]Write to MH i2c: E2 08 00 3A 26 80 11 00 00 00 00 00 00 DA [00:49:34]Write i2c OK [00:49:34]MH_I2C_Read... [00:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:34]Read from MH i2c: E2 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 17 00 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 17 00 3A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 21 [00:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [00:49:34]wFMCommunicate OK [00:49:34]requested_item fd.num is exist - process it [00:49:34]SAM_PROTO_GetFieldsCounters [00:49:34]wFMCommunicate request_size=4 [00:49:34]MH_SAM_APDU [00:49:34]CAPDU: 80 13 00 00 [00:49:34]Write to MH i2c: E2 08 00 3B 26 80 13 00 00 00 00 00 00 DD [00:49:34]Write i2c OK [00:49:34]MH_I2C_Read... [00:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:34]Read from MH i2c: E2 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 62 00 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 62 00 3B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EE C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [00:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EE C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:34]wFMCommunicate OK [00:49:34]SAM_PROTO_GetFieldsCounters done [00:49:34]requested_item shift.num is exist - process it [00:49:34]requested_item shift.opened is exist - process it [00:49:34]req_shift_opened [00:49:34]FM_GetShiftState [00:49:34]SAM_PROTO_GetShiftState [00:49:34]wFMCommunicate request_size=4 [00:49:34]MH_SAM_APDU [00:49:34]CAPDU: 80 13 01 00 [00:49:34]Write to MH i2c: E2 08 00 3C 26 80 13 01 00 00 00 00 00 DF [00:49:34]Write i2c OK [00:49:34]MH_I2C_Read... [00:49:34]OFD Sender: No OFD packet to send [00:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:34]Read from MH i2c: E2 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 0E 00 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 0E 00 3C 26 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 A8 [00:49:34]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [00:49:34]wFMCommunicate OK [00:49:34]SAM_PROTO_GetShiftState done [00:49:34]FM_GetShiftState done [00:49:34]req_shift_opened done [00:49:34]requested_item shift.open_date is exist - process it [00:49:34]req_shift_open_date [00:49:34]req_shift_open_date done [00:49:34]produce_requested_data done [00:49:34]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50670,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574} [00:49:34]process_action_free close_receipt [00:49:34]json_value_free [00:49:34]json_value_free done [00:49:34]process_json_proto returns [00:49:34]Send response to host [00:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50670,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574}}} [00:49:34]free response buf [00:49:34]execute_script done [00:49:34]execute_script returns [00:49:34]free content buf [00:49:34]Sock 9.Close socket [00:49:34]Sock 9.Thread stoped [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]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:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]accept exits with 7 [02:19:48]New connection [02:19:48]New thread 3066789220 created [02:19:48]Thread 3066645860 joined [02:19:48]Waiting for new connection... [02:19:48] Sock 7.Parse request [02:19:48]Sock 7.Check first char [02:19:48]Sock 7.First char is OK [02:19:48]request: POST /json_proto HTTP/1.0 [02:19:48]Method: POST [02:19:48]URL: /json_proto [02:19:48]Method is POST - this is cgi request [02:19:48]url: /json_proto [02:19:48]query_string will be loaded in cgi processing [02:19:48]execute_cgi json_proto POST (null) [02:19:48]execute_cgi path=json_proto method=POST [02:19:48]POST find Content-Length [02:19:48]Host: 172.17.49.196:8080 [02:19:48]Content-Length: 633 [02:19:48]Content-Type: application/json [02:19:48] [02:19:48]POST finish read [02:19:48]Found Content-Length = 633 [02:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164553", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:48]execute_script... [02:19: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)164553", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:48]POST & json_proto [02:19:48]process_json_proto [02:19:48]json parsed OK: [02:19:48]protocol is kg_v1.0 [02:19:48]action value=close_receipt [02:19:48]process_action close_receipt [02:19:48]cmd_close_receipt [02:19:48]MH_GetDate [02:19:48]Write to MH i2c: F0 00 00 3D 26 52 [02:19:48]Write i2c OK [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: F0 [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: F0 09 00 [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: F0 09 00 3D 26 00 C8 51 1C 67 BD 3B 11 67 67 [02:19:48]GetLastDocTimeStamp 1729903775 [02:19:48]current date 1729909192 [02:19:48]FM_GetShiftState [02:19:48]SAM_PROTO_GetShiftState [02:19:48]wFMCommunicate request_size=4 [02:19:48]MH_SAM_APDU [02:19:48]CAPDU: 80 13 01 00 [02:19:48]Write to MH i2c: E2 08 00 3E 26 80 13 01 00 00 00 00 00 E1 [02:19:48]Write i2c OK [02:19:48]MH_I2C_Read... [02:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:48]Read from MH i2c: E2 [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: E2 0E 00 [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: E2 0E 00 3E 26 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 AA [02:19:48]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [02:19:48]wFMCommunicate OK [02:19:48]SAM_PROTO_GetShiftState done [02:19:48]FM_GetShiftState done [02:19:48]opened in 1729901574 [02:19:48]opened+sec_in_day 1729987974 [02:19:48]quantity*price = 7500 [02:19:48]sum+1 = 7501 [02:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 3 26.10.2024 02:19 Смена: 494 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50671 ФПД: 103647617641819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T021952&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50671&fm=103647617641819&tin=02508201610067®Number=0000000000097022&sum=7500 0 [02:19:49]StoreToDocumentArchive [02:19:49]shift 494 fd 50671 [02:19:49]save to /storage/0494/doc_00050671 [02:19:49]save last doc name /storage/0494/doc_00050671 to /storage/kkm_last_doc_name [02:19:49]save OK [02:19:49]Clear old archive folders... [02:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=268 [02:19:49]tlvbuf is 01EFAF00 [02:19:49]SAM_PROTO_ClearQueue [02:19:49]wFMCommunicate request_size=4 [02:19:49]MH_SAM_APDU [02:19:49]CAPDU: 80 09 00 00 [02:19:49]Write to MH i2c: E2 08 00 4B 26 80 09 00 00 00 00 00 00 E3 [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:49]Read from MH i2c: E2 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 4B 26 00 90 00 E5 [02:19:49]RAPDU: 90 00 [02:19:49]wFMCommunicate OK [02:19:49]SAM_PROTO_ClearQueue done [02:19:49]KKMCreateOFDPacket [02:19:49]OFDProtocolAddRootSTLVToBuf [02:19:49]FM_MakeSignedData [02:19:49]FM_MakeSignedData [02:19:49]SAM_PROTO_SignData [02:19:49]wFMCommunicate request_size=4 [02:19:49]MH_SAM_APDU [02:19:49]CAPDU: 80 0D 01 02 [02:19:49]Write to MH i2c: E2 08 00 4C 26 80 0D 01 02 00 00 00 00 EB [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:49]Read from MH i2c: E2 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 4C 26 00 90 00 E6 [02:19:49]RAPDU: 90 00 [02:19:49]wFMCommunicate OK [02:19:49]wFMCommunicate request_size=255 [02:19:49]MH_SAM_APDU [02:19:49]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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C8 51 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [02:19:49]Write to MH i2c: E2 02 01 4D 26 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C8 51 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 CF [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:49]Read from MH i2c: E2 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 4D 26 00 90 00 E7 [02:19:49]RAPDU: 90 00 [02:19:49]wFMCommunicate OK [02:19:49]wFMCommunicate request_size=27 [02:19:49]MH_SAM_APDU [02:19:49]CAPDU: 80 0D 02 02 16 35 30 30 30 10 04 04 00 EF C5 00 00 35 04 06 00 5E 44 57 6E 6D 5B [02:19:49]Write to MH i2c: E2 1E 00 4E 26 80 0D 02 02 16 00 35 30 30 30 10 04 04 00 EF C5 00 00 35 04 06 00 5E 44 57 6E 6D 5B 00 00 19 [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:49]Read from MH i2c: E2 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 4E 26 00 90 00 E8 [02:19:49]RAPDU: 90 00 [02:19:49]wFMCommunicate OK [02:19:49]wFMCommunicate request_size=4 [02:19:49]MH_SAM_APDU [02:19:49]CAPDU: 80 0D 03 02 [02:19:49]Write to MH i2c: E2 08 00 4F 26 80 0D 03 02 00 00 00 00 F0 [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:49]Read from MH i2c: E2 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 0B 00 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 0B 00 4F 26 00 9C 16 50 A8 31 60 6F 6C 90 00 07 [02:19:49]RAPDU: 9C 16 50 A8 31 60 6F 6C 90 00 [02:19:49]wFMCommunicate OK [02:19:49]SAM_PROTO_SignData done [02:19:49]FM_MakeSignedData done [02:19:49]CreateOFDProtocolMessage [02:19:49]wFMCommunicate request_size=4 [02:19:49]MH_SAM_APDU [02:19:49]CAPDU: 80 11 00 00 [02:19:49]Write to MH i2c: E2 08 00 50 26 80 11 00 00 00 00 00 00 F0 [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:50]Read from MH i2c: E2 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 17 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 17 00 50 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 37 [02:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [02:19:50]wFMCommunicate OK [02:19:50]CreateOFDProtocolMessage done [02:19:50]OFDSenderStorePacket 50671 [02:19:50]StoreOFDPacket docnum=50671 [02:19:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 EA 22 18 01 EA BD 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C8 51 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EF C5 00 00 35 04 06 00 5E 44 57 6E 6D 5B 9C 16 50 A8 31 60 6F 6C [02:19:50]CheckFolder [02:19:50]dirname=/storage/ofd_packets [02:19:50]CheckFolder done [02:19:50]ProducePacketName [02:19:50]name=ofd_packets/00050671 [02:19:50]NVStorageSaveData ofd_packets/00050671 [02:19:50]File name is /storage/ofd_packets/00050671 [02:19:50]Write 318 bytes [02:19:50]NVStorageSaveData done [02:19:50]OFDSenderStorePacket done [02:19:50]KKMCreateOFDPacket done [02:19:50]NVStorageSaveData kkm_last_timestamp [02:19:50]File name is /storage/kkm_last_timestamp [02:19:50]Write 4 bytes [02:19:50]NVStorageSaveData done [02:19:50]ExternCall_PrintAddStr [02:19:50]wPrintStart [02:19:50]Write to MH i2c: 01 00 00 51 26 77 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 07 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 07 00 51 26 00 00 00 00 00 FF 0F 8C [02:19:50]RasterBufferAndPrint [02:19:50]line Счет N : (3)164553 [02:19:50]line ИНН: 02508201610067 [02:19:50]line Контрольно-Кассовый Чек [02:19:50]line ПРОДАЖА [02:19:50]line Товар: 40822938 [02:19:50]line Напиток Фанта 0,5л [02:19:50]line 1.000 * 75.00 [02:19:50]line = 75.00 [02:19:50]line НДС 12% НСП 1% [02:19:50]line > о реализуемом товаре [02:19:50]line ИТОГО: 75.00 [02:19:50]line НСП 1% : 0.66 [02:19:50]line НДС 12% : 7.96 [02:19:50]line Наличными: 75.00 [02:19:50]line Безнал.: 0.00 [02:19:50]line Место: АЗС № 80 "Партнер Нефть" [02:19:50]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [02:19:50]line СНО: Общий режим [02:19:50]line Чек 3 26.10.2024 02:19 [02:19:50]line Смена: 494 ФФД: 1.0 [02:19:50]line ЗНМ: 0300000090 [02:19:50]line РНМ: 0000000000097022 [02:19:50]line Версия ККМ: 001 [02:19:50]line ФМ: 0000000000875000 [02:19:50]line ФД: 50671 [02:19:50]line ФПД: 103647617641819 [02:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T021952&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50671&fm=103647617641819&tin=02508201610067®Number=0000000000097022&sum=7500 [02:19:50]line 0 [02:19:50]OFD Sender: Processing packet 50671 [packets to send 7, broken 6] [02:19:50]ProducePacketName [02:19:50]name=ofd_packets/00050671 [02:19:50]OFD Sender: To server: pG, [02:19:50]CommunicateWithHost lk.salyk.kg:30040 [02:19:50]ConnectInit lk.salyk.kg [02:19:50]written 0, free lines is 4095 [02:19:50]Connected sock=10 [02:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 20 01 00 00 EA 22 18 01 EA BD 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C8 51 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EF C5 00 00 35 04 06 00 5E 44 57 6E 6D 5B 9C 16 50 A8 31 60 6F 6C [02:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 BB 3C 47 00 2D 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 EF C5 00 00 F4 03 04 00 58 FD 1B 67 B6 04 01 00 00 D9 9D E7 92 C6 DC 3C 51 [02:19:50]CommunicateWithHost err = 0 [02:19:50]CheckOFDResponse [02:19:50]1017 (14) - 77093643461234 [02:19:50]1041 (16) - 0000000000875000 [02:19:50]1040 (4) - 50671 [02:19:50]1012 (4) - 25.10.2024 20:19 [02:19:50]1206 (1) - 0 [02:19:50]OFD Sender: Remove packet 50671 [02:19:50]ProducePacketName [02:19:50]name=ofd_packets/00050671 [02:19:50]NVStorageDeleteData [02:19:50]Write to MH i2c: 01 00 00 79 26 9F [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 07 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 07 00 79 26 00 00 00 00 00 1F 0D D2 [02:19:50]RasterBufferAndPrint [02:19:50]line [02:19:50]line [02:19:50]line [02:19:50]line [02:19:50]line [02:19:50]written 0, free lines is 3365 [02:19:50]process_action close_receipt done [02:19:50]requested_data is exist [02:19:50]produce_requested_data [02:19:50]requested_item fm.sn is exist - process it [02:19:50]wFMCommunicate request_size=4 [02:19:50]MH_SAM_APDU [02:19:50]CAPDU: 80 11 00 00 [02:19:50]Write to MH i2c: E2 08 00 80 26 80 11 00 00 00 00 00 00 20 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:50]Read from MH i2c: E2 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 17 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 17 00 80 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 67 [02:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [02:19:50]wFMCommunicate OK [02:19:50]requested_item fd.num is exist - process it [02:19:50]SAM_PROTO_GetFieldsCounters [02:19:50]wFMCommunicate request_size=4 [02:19:50]MH_SAM_APDU [02:19:50]CAPDU: 80 13 00 00 [02:19:50]Write to MH i2c: E2 08 00 81 26 80 13 00 00 00 00 00 00 23 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:19:50]Read from MH i2c: E2 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 62 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 62 00 81 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EF C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [02:19:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 EF C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:19:50]wFMCommunicate OK [02:19:50]SAM_PROTO_GetFieldsCounters done [02:19:50]requested_item shift.num is exist - process it [02:19:50]requested_item shift.opened is exist - process it [02:19:50]req_shift_opened [02:19:50]FM_GetShiftState [02:19:50]SAM_PROTO_GetShiftState [02:19:50]wFMCommunicate request_size=4 [02:19:50]MH_SAM_APDU [02:19:50]CAPDU: 80 13 01 00 [02:19:50]Write to MH i2c: E2 08 00 82 26 80 13 01 00 00 00 00 00 25 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:51]Read from MH i2c: E2 [02:19:51]MH_I2C_Read... [02:19:51]Read from MH i2c: E2 0E 00 [02:19:51]MH_I2C_Read... [02:19:51]Read from MH i2c: E2 0E 00 82 26 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 EE [02:19:51]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [02:19:51]wFMCommunicate OK [02:19:51]SAM_PROTO_GetShiftState done [02:19:51]FM_GetShiftState done [02:19:51]req_shift_opened done [02:19:51]requested_item shift.open_date is exist - process it [02:19:51]req_shift_open_date [02:19:51]req_shift_open_date done [02:19:51]produce_requested_data done [02:19:51]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50671,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574} [02:19:51]process_action_free close_receipt [02:19:51]json_value_free [02:19:51]json_value_free done [02:19:51]process_json_proto returns [02:19:51]Send response to host [02:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50671,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574}}} [02:19:51]free response buf [02:19:51]execute_script done [02:19:51]execute_script returns [02:19:51]free content buf [02:19:51]Sock 7.Close socket [02:19:51]Sock 7.Thread stoped [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:11]accept exits with 9 [02:20:11]New connection [02:20:11]New thread 3066645860 created [02:20:11]Thread 3066789220 joined [02:20:11]Waiting for new connection... [02:20:11] Sock 9.Parse request [02:20:11]Sock 9.Check first char [02:20:11]Sock 9.First char is OK [02:20:11]request: POST /json_proto HTTP/1.0 [02:20:11]Method: POST [02:20:11]URL: /json_proto [02:20:11]Method is POST - this is cgi request [02:20:11]url: /json_proto [02:20:11]query_string will be loaded in cgi processing [02:20:11]execute_cgi json_proto POST (null) [02:20:11]execute_cgi path=json_proto method=POST [02:20:11]POST find Content-Length [02:20:11]Host: 172.17.49.196:8080 [02:20:11]Content-Length: 652 [02:20:11]Content-Type: application/json [02:20:11] [02:20:11]POST finish read [02:20:11]Found Content-Length = 652 [02:20:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164554", "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 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:20:11]execute_script... [02:20:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164554", "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 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:20:11]POST & json_proto [02:20:11]process_json_proto [02:20:11]json parsed OK: [02:20:11]protocol is kg_v1.0 [02:20:11]action value=close_receipt [02:20:11]process_action close_receipt [02:20:11]cmd_close_receipt [02:20:11]MH_GetDate [02:20:11]Write to MH i2c: F0 00 00 83 26 98 [02:20:11]Write i2c OK [02:20:11]MH_I2C_Read... [02:20:11]Read from MH i2c: F0 [02:20:11]MH_I2C_Read... [02:20:11]Read from MH i2c: F0 09 00 [02:20:11]MH_I2C_Read... [02:20:11]Read from MH i2c: F0 09 00 83 26 00 DF 51 1C 67 BD 3B 11 67 C4 [02:20:11]GetLastDocTimeStamp 1729909192 [02:20:11]current date 1729909215 [02:20:11]FM_GetShiftState [02:20:11]SAM_PROTO_GetShiftState [02:20:11]wFMCommunicate request_size=4 [02:20:11]MH_SAM_APDU [02:20:11]CAPDU: 80 13 01 00 [02:20:11]Write to MH i2c: E2 08 00 84 26 80 13 01 00 00 00 00 00 27 [02:20:11]Write i2c OK [02:20:11]MH_I2C_Read... [02:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:11]Read from MH i2c: E2 [02:20:11]MH_I2C_Read... [02:20:11]Read from MH i2c: E2 0E 00 [02:20:11]MH_I2C_Read... [02:20:11]Read from MH i2c: E2 0E 00 84 26 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 F0 [02:20:11]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [02:20:11]wFMCommunicate OK [02:20:11]SAM_PROTO_GetShiftState done [02:20:11]FM_GetShiftState done [02:20:11]opened in 1729901574 [02:20:11]opened+sec_in_day 1729987974 [02:20:11]quantity*price = 12500 [02:20:11]sum+1 = 12501 [02:20:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 4 26.10.2024 02:20 Смена: 494 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50672 ФПД: 219160847678283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T022016&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50672&fm=219160847678283&tin=02508201610067®Number=0000000000097022&sum=12500 0 [02:20:12]StoreToDocumentArchive [02:20:12]shift 494 fd 50672 [02:20:12]save to /storage/0494/doc_00050672 [02:20:12]save last doc name /storage/0494/doc_00050672 to /storage/kkm_last_doc_name [02:20:12]save OK [02:20:12]Clear old archive folders... [02:20:12]ProcessDocumentItem done err = 0, tmpTLVsize=284 [02:20:12]tlvbuf is 01E99FE0 [02:20:12]SAM_PROTO_ClearQueue [02:20:12]wFMCommunicate request_size=4 [02:20:12]MH_SAM_APDU [02:20:12]CAPDU: 80 09 00 00 [02:20:12]Write to MH i2c: E2 08 00 91 26 80 09 00 00 00 00 00 00 29 [02:20:12]Write i2c OK [02:20:12]MH_I2C_Read... [02:20:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:20:12]Read from MH i2c: E2 [02:20:12]MH_I2C_Read... [02:20:12]Read from MH i2c: E2 03 00 [02:20:12]MH_I2C_Read... [02:20:12]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [02:20:12]RAPDU: 90 00 [02:20:12]wFMCommunicate OK [02:20:12]SAM_PROTO_ClearQueue done [02:20:12]KKMCreateOFDPacket [02:20:12]OFDProtocolAddRootSTLVToBuf [02:20:12]FM_MakeSignedData [02:20:12]FM_MakeSignedData [02:20:12]SAM_PROTO_SignData [02:20:12]wFMCommunicate request_size=4 [02:20:12]MH_SAM_APDU [02:20:12]CAPDU: 80 0D 01 02 [02:20:12]Write to MH i2c: E2 08 00 92 26 80 0D 01 02 00 00 00 00 31 [02:20:12]Write i2c OK [02:20:12]MH_I2C_Read... [02:20:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:20:12]Read from MH i2c: E2 [02:20:12]MH_I2C_Read... [02:20:12]Read from MH i2c: E2 03 00 [02:20:12]MH_I2C_Read... [02:20:12]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [02:20:12]RAPDU: 90 00 [02:20:12]wFMCommunicate OK [02:20:12]wFMCommunicate request_size=255 [02:20:12]MH_SAM_APDU [02:20:12]CAPDU: 80 0D 02 02 FA 03 00 1C 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 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 04 00 00 00 F4 03 04 00 E0 51 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 [02:20:12]Write to MH i2c: E2 02 01 93 26 80 0D 02 02 FA 00 03 00 1C 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 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 04 00 00 00 F4 03 04 00 E0 51 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 00 00 75 [02:20:12]Write i2c OK [02:20:12]MH_I2C_Read... [02:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:12]Read from MH i2c: E2 [02:20:12]MH_I2C_Read... [02:20:12]Read from MH i2c: E2 03 00 [02:20:12]MH_I2C_Read... [02:20:12]Read from MH i2c: E2 03 00 93 26 00 90 00 2D [02:20:12]RAPDU: 90 00 [02:20:12]wFMCommunicate OK [02:20:12]wFMCommunicate request_size=43 [02:20:12]MH_SAM_APDU [02:20:12]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F0 C5 00 00 35 04 06 00 C7 53 5C 79 7B 4B [02:20:12]Write to MH i2c: E2 2E 00 94 26 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F0 C5 00 00 35 04 06 00 C7 53 5C 79 7B 4B 00 00 7A [02:20:12]Write i2c OK [02:20:12]MH_I2C_Read... [02:20:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:13]Read from MH i2c: E2 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: E2 03 00 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: E2 03 00 94 26 00 90 00 2E [02:20:13]RAPDU: 90 00 [02:20:13]wFMCommunicate OK [02:20:13]wFMCommunicate request_size=4 [02:20:13]MH_SAM_APDU [02:20:13]CAPDU: 80 0D 03 02 [02:20:13]Write to MH i2c: E2 08 00 95 26 80 0D 03 02 00 00 00 00 36 [02:20:13]Write i2c OK [02:20:13]MH_I2C_Read... [02:20:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:20:13]Read from MH i2c: E2 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: E2 0B 00 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: E2 0B 00 95 26 00 F0 DF 90 3B E9 08 7A FB 90 00 37 [02:20:13]RAPDU: F0 DF 90 3B E9 08 7A FB 90 00 [02:20:13]wFMCommunicate OK [02:20:13]SAM_PROTO_SignData done [02:20:13]FM_MakeSignedData done [02:20:13]CreateOFDProtocolMessage [02:20:13]wFMCommunicate request_size=4 [02:20:13]MH_SAM_APDU [02:20:13]CAPDU: 80 11 00 00 [02:20:13]Write to MH i2c: E2 08 00 96 26 80 11 00 00 00 00 00 00 36 [02:20:13]Write i2c OK [02:20:13]MH_I2C_Read... [02:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:13]Read from MH i2c: E2 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: E2 17 00 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: E2 17 00 96 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 7D [02:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [02:20:13]wFMCommunicate OK [02:20:13]CreateOFDProtocolMessage done [02:20:13]OFDSenderStorePacket 50672 [02:20:13]StoreOFDPacket docnum=50672 [02:20:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 BD 8D 28 01 46 D6 5A 03 01 00 03 00 1C 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 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 04 00 00 00 F4 03 04 00 E0 51 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F0 C5 00 00 35 04 06 00 C7 53 5C 79 7B 4B F0 DF 90 3B E9 08 7A FB [02:20:13]CheckFolder [02:20:13]dirname=/storage/ofd_packets [02:20:13]CheckFolder done [02:20:13]ProducePacketName [02:20:13]name=ofd_packets/00050672 [02:20:13]NVStorageSaveData ofd_packets/00050672 [02:20:13]File name is /storage/ofd_packets/00050672 [02:20:13]Write 334 bytes [02:20:13]NVStorageSaveData done [02:20:13]OFDSenderStorePacket done [02:20:13]KKMCreateOFDPacket done [02:20:13]NVStorageSaveData kkm_last_timestamp [02:20:13]File name is /storage/kkm_last_timestamp [02:20:13]Write 4 bytes [02:20:13]NVStorageSaveData done [02:20:13]ExternCall_PrintAddStr [02:20:13]wPrintStart [02:20:13]Write to MH i2c: 01 00 00 97 26 BD [02:20:13]Write i2c OK [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: 01 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: 01 07 00 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: 01 07 00 97 26 00 00 00 00 00 FF 0F D2 [02:20:13]RasterBufferAndPrint [02:20:13]line Счет N : (3)164554 [02:20:13]line ИНН: 02508201610067 [02:20:13]line Контрольно-Кассовый Чек [02:20:13]line ПРОДАЖА [02:20:13]line Товар: 2000036190018 [02:20:13]line Кофе Американо XL(GABB TRADE) [02:20:13]line 1.000 * 125.00 [02:20:13]line = 125.00 [02:20:13]line НДС 12% НСП 1% [02:20:13]line > о реализуемом товаре [02:20:13]line ИТОГО: 125.00 [02:20:13]line НСП 1% : 1.11 [02:20:13]line НДС 12% : 13.27 [02:20:13]line Наличными: 125.00 [02:20:13]line Безнал.: 0.00 [02:20:13]line Место: АЗС № 80 "Партнер Нефть" [02:20:13]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [02:20:13]line СНО: Общий режим [02:20:13]line Чек 4 26.10.2024 02:20 [02:20:13]line Смена: 494 ФФД: 1.0 [02:20:13]line ЗНМ: 0300000090 [02:20:13]line РНМ: 0000000000097022 [02:20:13]line Версия ККМ: 001 [02:20:13]line ФМ: 0000000000875000 [02:20:13]line ФД: 50672 [02:20:13]line ФПД: 219160847678283 [02:20:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T022016&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50672&fm=219160847678283&tin=02508201610067®Number=0000000000097022&sum=12500 [02:20:13]OFD Sender: Processing packet 50672 [packets to send 7, broken 6] [02:20:13]ProducePacketName [02:20:13]name=ofd_packets/00050672 [02:20:13]OFD Sender: To server: pG, [02:20:13]CommunicateWithHost lk.salyk.kg:30040 [02:20:13]ConnectInit lk.salyk.kg [02:20:13]line 0 [02:20:13]written 0, free lines is 4095 [02:20:13]Connected sock=10 [02:20:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 30 01 00 00 BD 8D 28 01 46 D6 5A 03 01 00 03 00 1C 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 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 04 00 00 00 F4 03 04 00 E0 51 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F0 C5 00 00 35 04 06 00 C7 53 5C 79 7B 4B F0 DF 90 3B E9 08 7A FB [02:20:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 87 5C 47 00 3A AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F0 C5 00 00 F4 03 04 00 6F FD 1B 67 B6 04 01 00 00 1F AE FD FE 11 3A 41 5E [02:20:13]CommunicateWithHost err = 0 [02:20:13]CheckOFDResponse [02:20:13]1017 (14) - 77093643461234 [02:20:13]1041 (16) - 0000000000875000 [02:20:13]1040 (4) - 50672 [02:20:13]1012 (4) - 25.10.2024 20:19 [02:20:13]1206 (1) - 0 [02:20:13]OFD Sender: Remove packet 50672 [02:20:13]ProducePacketName [02:20:13]name=ofd_packets/00050672 [02:20:13]NVStorageDeleteData [02:20:13]Write to MH i2c: 01 00 00 C0 26 E6 [02:20:13]Write i2c OK [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: 01 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: 01 07 00 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: 01 07 00 C0 26 00 00 00 00 00 11 0D 0B [02:20:13]RasterBufferAndPrint [02:20:13]line [02:20:13]line [02:20:13]line [02:20:13]line [02:20:13]line [02:20:13]written 0, free lines is 3354 [02:20:13]process_action close_receipt done [02:20:13]requested_data is exist [02:20:13]produce_requested_data [02:20:13]requested_item fm.sn is exist - process it [02:20:13]wFMCommunicate request_size=4 [02:20:13]MH_SAM_APDU [02:20:13]CAPDU: 80 11 00 00 [02:20:13]Write to MH i2c: E2 08 00 C7 26 80 11 00 00 00 00 00 00 67 [02:20:13]Write i2c OK [02:20:13]MH_I2C_Read... [02:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:13]Read from MH i2c: E2 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: E2 17 00 [02:20:13]MH_I2C_Read... [02:20:13]Read from MH i2c: E2 17 00 C7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 AE [02:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [02:20:13]wFMCommunicate OK [02:20:13]requested_item fd.num is exist - process it [02:20:13]SAM_PROTO_GetFieldsCounters [02:20:13]wFMCommunicate request_size=4 [02:20:13]MH_SAM_APDU [02:20:13]CAPDU: 80 13 00 00 [02:20:13]Write to MH i2c: E2 08 00 C8 26 80 13 00 00 00 00 00 00 6A [02:20:13]Write i2c OK [02:20:13]MH_I2C_Read... [02:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:20:14]Read from MH i2c: E2 [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: E2 62 00 [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: E2 62 00 C8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 F0 C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [02:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 F0 C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:20:14]wFMCommunicate OK [02:20:14]SAM_PROTO_GetFieldsCounters done [02:20:14]requested_item shift.num is exist - process it [02:20:14]requested_item shift.opened is exist - process it [02:20:14]req_shift_opened [02:20:14]FM_GetShiftState [02:20:14]SAM_PROTO_GetShiftState [02:20:14]wFMCommunicate request_size=4 [02:20:14]MH_SAM_APDU [02:20:14]CAPDU: 80 13 01 00 [02:20:14]Write to MH i2c: E2 08 00 C9 26 80 13 01 00 00 00 00 00 6C [02:20:14]Write i2c OK [02:20:14]MH_I2C_Read... [02:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:14]Read from MH i2c: E2 [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: E2 0E 00 [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: E2 0E 00 C9 26 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 35 [02:20:14]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [02:20:14]wFMCommunicate OK [02:20:14]SAM_PROTO_GetShiftState done [02:20:14]FM_GetShiftState done [02:20:14]req_shift_opened done [02:20:14]requested_item shift.open_date is exist - process it [02:20:14]req_shift_open_date [02:20:14]req_shift_open_date done [02:20:14]produce_requested_data done [02:20:14]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50672,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574} [02:20:14]process_action_free close_receipt [02:20:14]json_value_free [02:20:14]json_value_free done [02:20:14]process_json_proto returns [02:20:14]Send response to host [02:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50672,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574}}} [02:20:14]free response buf [02:20:14]execute_script done [02:20:14]execute_script returns [02:20:14]free content buf [02:20:14]Sock 9.Close socket [02:20:14]Sock 9.Thread stoped [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:13]accept exits with 7 [02:27:13]New connection [02:27:13]New thread 3066789220 created [02:27:13]Thread 3066645860 joined [02:27:13]Waiting for new connection... [02:27:13] Sock 7.Parse request [02:27:13]Sock 7.Check first char [02:27:13]Sock 7.First char is OK [02:27:13]request: POST /json_proto HTTP/1.0 [02:27:13]Method: POST [02:27:13]URL: /json_proto [02:27:13]Method is POST - this is cgi request [02:27:13]url: /json_proto [02:27:13]query_string will be loaded in cgi processing [02:27:13]execute_cgi json_proto POST (null) [02:27:13]execute_cgi path=json_proto method=POST [02:27:13]POST find Content-Length [02:27:13]Host: 172.17.49.196:8080 [02:27:13]Content-Length: 885 [02:27:13]Content-Type: application/json [02:27:13] [02:27:13]POST finish read [02:27:13]Found Content-Length = 885 [02:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)164555", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:27:13]execute_script... [02: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 : (3)164555", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:27:13]POST & json_proto [02:27:13]process_json_proto [02:27:13]json parsed OK: [02:27:13]protocol is kg_v1.0 [02:27:13]action value=close_receipt [02:27:13]process_action close_receipt [02:27:13]cmd_close_receipt [02:27:13]MH_GetDate [02:27:13]Write to MH i2c: F0 00 00 CA 26 DF [02:27:13]Write i2c OK [02:27:13]MH_I2C_Read... [02:27:13]Read from MH i2c: F0 [02:27:13]MH_I2C_Read... [02:27:13]Read from MH i2c: F0 09 00 [02:27:13]MH_I2C_Read... [02:27:13]Read from MH i2c: F0 09 00 CA 26 00 86 53 1C 67 BD 3B 11 67 B4 [02:27:13]GetLastDocTimeStamp 1729909216 [02:27:13]current date 1729909638 [02:27:13]FM_GetShiftState [02:27:13]SAM_PROTO_GetShiftState [02:27:13]wFMCommunicate request_size=4 [02:27:13]MH_SAM_APDU [02:27:13]CAPDU: 80 13 01 00 [02:27:13]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [02:27:13]Write i2c OK [02:27:13]MH_I2C_Read... [02:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:27:13]Read from MH i2c: E2 [02:27:13]MH_I2C_Read... [02:27:13]Read from MH i2c: E2 0E 00 [02:27:13]MH_I2C_Read... [02:27:13]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 37 [02:27:13]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [02:27:13]wFMCommunicate OK [02:27:13]SAM_PROTO_GetShiftState done [02:27:13]FM_GetShiftState done [02:27:13]opened in 1729901574 [02:27:13]opened+sec_in_day 1729987974 [02:27:13]quantity*price = 4900 [02:27:13]sum+1 = 4901 [02:27:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.85 НДС 12% : 22.19 Наличными: 209.00 Безнал.: 0.00 Место: АЗС № 80 "Партнер Нефть" Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 СНО: Общий режим Чек 5 26.10.2024 02:27 Смена: 494 ФФД: 1.0 ЗНМ: 0300000090 РНМ: 0000000000097022 Версия ККМ: 001 ФМ: 0000000000875000 ФД: 50673 ФПД: 203475444489183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T022718&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50673&fm=203475444489183&tin=02508201610067®Number=0000000000097022&sum=20900 0 [02:27:14]StoreToDocumentArchive [02:27:14]shift 494 fd 50673 [02:27:14]save to /storage/0494/doc_00050673 [02:27:14]save last doc name /storage/0494/doc_00050673 to /storage/kkm_last_doc_name [02:27:14]save OK [02:27:14]Clear old archive folders... [02:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=381 [02:27:14]tlvbuf is 01E9A050 [02:27:14]SAM_PROTO_ClearQueue [02:27:14]wFMCommunicate request_size=4 [02:27:14]MH_SAM_APDU [02:27:14]CAPDU: 80 09 00 00 [02:27:14]Write to MH i2c: E2 08 00 D8 26 80 09 00 00 00 00 00 00 70 [02:27:14]Write i2c OK [02:27:14]MH_I2C_Read... [02:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:27:14]Read from MH i2c: E2 [02:27:14]MH_I2C_Read... [02:27:14]Read from MH i2c: E2 03 00 [02:27:14]MH_I2C_Read... [02:27:14]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [02:27:14]RAPDU: 90 00 [02:27:14]wFMCommunicate OK [02:27:14]SAM_PROTO_ClearQueue done [02:27:14]KKMCreateOFDPacket [02:27:14]OFDProtocolAddRootSTLVToBuf [02:27:14]FM_MakeSignedData [02:27:14]FM_MakeSignedData [02:27:14]SAM_PROTO_SignData [02:27:14]wFMCommunicate request_size=4 [02:27:14]MH_SAM_APDU [02:27:14]CAPDU: 80 0D 01 02 [02:27:14]Write to MH i2c: E2 08 00 D9 26 80 0D 01 02 00 00 00 00 78 [02:27:14]Write i2c OK [02:27:14]MH_I2C_Read... [02:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:27:14]Read from MH i2c: E2 [02:27:14]MH_I2C_Read... [02:27:14]Read from MH i2c: E2 03 00 [02:27:14]MH_I2C_Read... [02:27:14]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [02:27:14]RAPDU: 90 00 [02:27:14]wFMCommunicate OK [02:27:14]wFMCommunicate request_size=255 [02:27:14]MH_SAM_APDU [02:27:14]CAPDU: 80 0D 02 02 FA 03 00 7D 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 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 [02:27:14]Write to MH i2c: E2 02 01 DA 26 80 0D 02 02 FA 00 03 00 7D 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 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 31 [02:27:14]Write i2c OK [02:27:14]MH_I2C_Read... [02:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:27:15]Read from MH i2c: E2 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 03 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [02:27:15]RAPDU: 90 00 [02:27:15]wFMCommunicate OK [02:27:15]wFMCommunicate request_size=140 [02:27:15]MH_SAM_APDU [02:27:15]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 86 53 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F1 C5 00 00 35 04 06 00 B9 0F 51 96 DB DF [02:27:15]Write to MH i2c: E2 8F 00 DB 26 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 86 53 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F1 C5 00 00 35 04 06 00 B9 0F 51 96 DB DF 00 00 BC [02:27:15]Write i2c OK [02:27:15]MH_I2C_Read... [02:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:27:15]Read from MH i2c: E2 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 03 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [02:27:15]RAPDU: 90 00 [02:27:15]wFMCommunicate OK [02:27:15]wFMCommunicate request_size=4 [02:27:15]MH_SAM_APDU [02:27:15]CAPDU: 80 0D 03 02 [02:27:15]Write to MH i2c: E2 08 00 DC 26 80 0D 03 02 00 00 00 00 7D [02:27:15]Write i2c OK [02:27:15]MH_I2C_Read... [02:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:27:15]Read from MH i2c: E2 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 0B 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 0B 00 DC 26 00 15 D4 20 FF B3 0F 5F 3D 90 00 E4 [02:27:15]RAPDU: 15 D4 20 FF B3 0F 5F 3D 90 00 [02:27:15]wFMCommunicate OK [02:27:15]SAM_PROTO_SignData done [02:27:15]FM_MakeSignedData done [02:27:15]CreateOFDProtocolMessage [02:27:15]wFMCommunicate request_size=4 [02:27:15]MH_SAM_APDU [02:27:15]CAPDU: 80 11 00 00 [02:27:15]Write to MH i2c: E2 08 00 DD 26 80 11 00 00 00 00 00 00 7D [02:27:15]Write i2c OK [02:27:15]MH_I2C_Read... [02:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:27:15]Read from MH i2c: E2 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 17 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 17 00 DD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 C4 [02:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [02:27:15]wFMCommunicate OK [02:27:15]CreateOFDProtocolMessage done [02:27:15]OFDSenderStorePacket 50673 [02:27:15]StoreOFDPacket docnum=50673 [02:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 91 01 00 00 D0 50 89 01 2F 0D 5A 03 01 00 03 00 7D 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 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 86 53 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F1 C5 00 00 35 04 06 00 B9 0F 51 96 DB DF 15 D4 20 FF B3 0F 5F 3D [02:27:15]CheckFolder [02:27:15]dirname=/storage/ofd_packets [02:27:15]CheckFolder done [02:27:15]ProducePacketName [02:27:15]name=ofd_packets/00050673 [02:27:15]NVStorageSaveData ofd_packets/00050673 [02:27:15]File name is /storage/ofd_packets/00050673 [02:27:15]Write 431 bytes [02:27:15]NVStorageSaveData done [02:27:15]OFDSenderStorePacket done [02:27:15]KKMCreateOFDPacket done [02:27:15]NVStorageSaveData kkm_last_timestamp [02:27:15]File name is /storage/kkm_last_timestamp [02:27:15]Write 4 bytes [02:27:15]NVStorageSaveData done [02:27:15]ExternCall_PrintAddStr [02:27:15]wPrintStart [02:27:15]Write to MH i2c: 01 00 00 DE 26 04 [02:27:15]Write i2c OK [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: 01 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: 01 07 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [02:27:15]RasterBufferAndPrint [02:27:15]line Счет N : (3)164555 [02:27:15]line ИНН: 02508201610067 [02:27:15]line Контрольно-Кассовый Чек [02:27:15]line ПРОДАЖА [02:27:15]line Товар: 4700000310326 [02:27:15]line Вода Адыгене 1л б/г [02:27:15]line 1.000 * 49.00 [02:27:15]line = 49.00 [02:27:15]line НДС 12% НСП 1% [02:27:15]line > о реализуемом товаре [02:27:15]line Товар: 48742245 [02:27:15]line Сигареты Parliament Silver Blue [02:27:15]line 1.000 * 160.00 [02:27:15]line = 160.00 [02:27:15]line НДС 12% НСП 1% [02:27:15]line > о реализуемом товаре [02:27:15]line ИТОГО: 209.00 [02:27:15]line НСП 1% : 1.85 [02:27:15]line НДС 12% : 22.19 [02:27:15]line Наличными: 209.00 [02:27:15]line Безнал.: 0.00 [02:27:15]line Место: АЗС № 80 "Партнер Нефть" [02:27:15]line Адрес: 720001, с. Кумуш Азиз, трасса Бишкек-Ош, 40.913423, 72.935939 [02:27:15]line СНО: Общий режим [02:27:15]line Чек 5 26.10.2024 02:27 [02:27:15]line Смена: 494 ФФД: 1.0 [02:27:15]line ЗНМ: 0300000090 [02:27:15]line РНМ: 0000000000097022 [02:27:15]line Версия ККМ: 001 [02:27:15]line ФМ: 0000000000875000 [02:27:15]line ФД: 50673 [02:27:15]line ФПД: 203475444489183 [02:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T022718&type=1&operation_type=1&fn_number=0000000000875000&fd_number=50673&fm=203475444489183&tin=02508201610067®Number=0000000000097022&sum=20900 [02:27:15]line 0 [02:27:15]OFD Sender: Processing packet 50673 [packets to send 7, broken 6] [02:27:15]ProducePacketName [02:27:15]name=ofd_packets/00050673 [02:27:15]OFD Sender: To server: pG, [02:27:15]CommunicateWithHost lk.salyk.kg:30040 [02:27:15]ConnectInit lk.salyk.kg [02:27:15]written 0, free lines is 4095 [02:27:15]Connected sock=10 [02:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 91 01 00 00 D0 50 89 01 2F 0D 5A 03 01 00 03 00 7D 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 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 86 53 1C 67 0E 04 04 00 EE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F1 C5 00 00 35 04 06 00 B9 0F 51 96 DB DF 15 D4 20 FF B3 0F 5F 3D [02:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 4F 00 00 00 05 96 47 00 B4 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 10 04 04 00 F1 C5 00 00 F4 03 04 00 15 FF 1B 67 B6 04 01 00 00 85 BF B0 80 3D 2B 9A 8F [02:27:16]CommunicateWithHost err = 0 [02:27:16]CheckOFDResponse [02:27:16]1017 (14) - 77093643461234 [02:27:16]1041 (16) - 0000000000875000 [02:27:16]1040 (4) - 50673 [02:27:16]1012 (4) - 25.10.2024 20:27 [02:27:16]1206 (1) - 0 [02:27:16]OFD Sender: Remove packet 50673 [02:27:16]ProducePacketName [02:27:16]name=ofd_packets/00050673 [02:27:16]NVStorageDeleteData [02:27:16]Write to MH i2c: 01 00 00 0D 27 34 [02:27:16]Write i2c OK [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: 01 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: 01 07 00 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: 01 07 00 0D 27 00 00 00 00 00 BC 0C 03 [02:27:16]RasterBufferAndPrint [02:27:16]line [02:27:16]line [02:27:16]line [02:27:16]line [02:27:16]line [02:27:16]written 0, free lines is 3267 [02:27:16]process_action close_receipt done [02:27:16]requested_data is exist [02:27:16]produce_requested_data [02:27:16]requested_item fm.sn is exist - process it [02:27:16]wFMCommunicate request_size=4 [02:27:16]MH_SAM_APDU [02:27:16]CAPDU: 80 11 00 00 [02:27:16]Write to MH i2c: E2 08 00 14 27 80 11 00 00 00 00 00 00 B5 [02:27:16]Write i2c OK [02:27:16]MH_I2C_Read... [02:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:27:16]Read from MH i2c: E2 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 17 00 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 17 00 14 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 FC [02:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 90 00 [02:27:16]wFMCommunicate OK [02:27:16]requested_item fd.num is exist - process it [02:27:16]SAM_PROTO_GetFieldsCounters [02:27:16]wFMCommunicate request_size=4 [02:27:16]MH_SAM_APDU [02:27:16]CAPDU: 80 13 00 00 [02:27:16]Write to MH i2c: E2 08 00 15 27 80 13 00 00 00 00 00 00 B8 [02:27:16]Write i2c OK [02:27:16]MH_I2C_Read... [02:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:27:16]Read from MH i2c: E2 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 62 00 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 62 00 15 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 F1 C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [02:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 37 30 32 32 10 04 04 00 F1 C5 00 00 0E 04 04 00 EE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:27:16]wFMCommunicate OK [02:27:16]SAM_PROTO_GetFieldsCounters done [02:27:16]requested_item shift.num is exist - process it [02:27:16]requested_item shift.opened is exist - process it [02:27:16]req_shift_opened [02:27:16]FM_GetShiftState [02:27:16]SAM_PROTO_GetShiftState [02:27:16]wFMCommunicate request_size=4 [02:27:16]MH_SAM_APDU [02:27:16]CAPDU: 80 13 01 00 [02:27:16]Write to MH i2c: E2 08 00 16 27 80 13 01 00 00 00 00 00 BA [02:27:16]Write i2c OK [02:27:16]MH_I2C_Read... [02:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:27:16]Read from MH i2c: E2 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 0E 00 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 0E 00 16 27 00 09 00 01 06 34 1C 67 00 00 00 00 90 00 83 [02:27:16]RAPDU: 09 00 01 06 34 1C 67 00 00 00 00 90 00 [02:27:16]wFMCommunicate OK [02:27:16]SAM_PROTO_GetShiftState done [02:27:16]FM_GetShiftState done [02:27:16]req_shift_opened done [02:27:16]requested_item shift.open_date is exist - process it [02:27:16]req_shift_open_date [02:27:16]req_shift_open_date done [02:27:16]produce_requested_data done [02:27:16]produce_requested_data return {"fm.sn":"0000000000875000","fd.num":50673,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574} [02:27:16]process_action_free close_receipt [02:27:16]json_value_free [02:27:16]json_value_free done [02:27:16]process_json_proto returns [02:27:16]Send response to host [02:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875000","fd.num":50673,"shift.num":494,"shift.opened":1,"shift.open_date":1729901574}}} [02:27:16]free response buf [02:27:16]execute_script done [02:27:16]execute_script returns [02:27:16]free content buf [02:27:16]Sock 7.Close socket [02:27:16]Sock 7.Thread stoped [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send