[02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]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:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]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:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:24]accept exits with 9 [03:56:24]New connection [03:56:24]New thread 3066813796 created [03:56:24]Thread 3066670436 joined [03:56:24]Waiting for new connection... [03:56:24] Sock 9.Parse request [03:56:24]Sock 9.Check first char [03:56:24]Sock 9.First char is OK [03:56:24]request: POST /json_proto HTTP/1.0 [03:56:24]Method: POST [03:56:24]URL: /json_proto [03:56:24]Method is POST - this is cgi request [03:56:24]url: /json_proto [03:56:24]query_string will be loaded in cgi processing [03:56:24]execute_cgi json_proto POST (null) [03:56:24]execute_cgi path=json_proto method=POST [03:56:24]POST find Content-Length [03:56:24]Host: 172.17.56.67:8080 [03:56:24]Content-Length: 677 [03:56:24]Content-Type: application/json [03:56:24] [03:56:24]POST finish read [03:56:24]Found Content-Length = 677 [03:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [03:56:24]execute_script... [03:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [03:56:24]POST & json_proto [03:56:24]process_json_proto [03:56:24]json parsed OK: [03:56:24]protocol is kg_v1.0 [03:56:24]action value=close_receipt [03:56:24]process_action close_receipt [03:56:24]cmd_close_receipt [03:56:24]MH_GetDate [03:56:24]Write to MH i2c: F0 00 00 78 5E C5 [03:56:24]Write i2c OK [03:56:24]MH_I2C_Read... [03:56:24]Read from MH i2c: F0 [03:56:24]MH_I2C_Read... [03:56:24]Read from MH i2c: F0 09 00 [03:56:24]MH_I2C_Read... [03:56:24]Read from MH i2c: F0 09 00 78 5E 00 78 73 B8 65 26 5D 9E 65 5C [03:56:24]GetLastDocTimeStamp 1706575333 [03:56:24]current date 1706587000 [03:56:24]FM_GetShiftState [03:56:24]SAM_PROTO_GetShiftState [03:56:24]wFMCommunicate request_size=4 [03:56:24]MH_SAM_APDU [03:56:24]CAPDU: 80 13 01 00 [03:56:24]Write to MH i2c: E2 08 00 79 5E 80 13 01 00 00 00 00 00 54 [03:56:24]Write i2c OK [03:56:24]MH_I2C_Read... [03:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:24]Read from MH i2c: E2 [03:56:24]MH_I2C_Read... [03:56:24]Read from MH i2c: E2 0E 00 [03:56:24]MH_I2C_Read... [03:56:24]Read from MH i2c: E2 0E 00 79 5E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 7C [03:56:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [03:56:24]wFMCommunicate OK [03:56:24]SAM_PROTO_GetShiftState done [03:56:24]FM_GetShiftState done [03:56:24]opened in 1706572995 [03:56:24]opened+sec_in_day 1706659395 [03:56:24]quantity*price = 30029 [03:56:24]sum+1 = 30030 [03:56:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 4 30.01.2024 03:56 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49128 ФПД: 1521938489112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T035640&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49128&fm=1521938489112&tin=02508201610067®Number=0000000000092723&sum=30000 [03:56:25]StoreToDocumentArchive [03:56:25]shift 246 fd 49128 [03:56:25]save to /storage/0246/doc_00049128 [03:56:25]save last doc name /storage/0246/doc_00049128 to /storage/kkm_last_doc_name [03:56:25]save OK [03:56:25]Clear old archive folders... [03:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:56:25]tlvbuf is 013B81A0 [03:56:25]SAM_PROTO_ClearQueue [03:56:25]wFMCommunicate request_size=4 [03:56:25]MH_SAM_APDU [03:56:25]CAPDU: 80 09 00 00 [03:56:25]Write to MH i2c: E2 08 00 86 5E 80 09 00 00 00 00 00 00 56 [03:56:25]Write i2c OK [03:56:25]MH_I2C_Read... [03:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:56:25]Read from MH i2c: E2 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 03 00 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 03 00 86 5E 00 90 00 58 [03:56:25]RAPDU: 90 00 [03:56:25]wFMCommunicate OK [03:56:25]SAM_PROTO_ClearQueue done [03:56:25]KKMCreateOFDPacket [03:56:25]OFDProtocolAddRootSTLVToBuf [03:56:25]FM_MakeSignedData [03:56:25]FM_MakeSignedData [03:56:25]SAM_PROTO_SignData [03:56:25]wFMCommunicate request_size=4 [03:56:25]MH_SAM_APDU [03:56:25]CAPDU: 80 0D 01 02 [03:56:25]Write to MH i2c: E2 08 00 87 5E 80 0D 01 02 00 00 00 00 5E [03:56:25]Write i2c OK [03:56:25]MH_I2C_Read... [03:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:56:25]Read from MH i2c: E2 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 03 00 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 03 00 87 5E 00 90 00 59 [03:56:25]RAPDU: 90 00 [03:56:25]wFMCommunicate OK [03:56:25]wFMCommunicate request_size=255 [03:56:25]MH_SAM_APDU [03:56:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 78 73 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E8 BF 00 00 35 04 06 00 01 [03:56:25]Write to MH i2c: E2 02 01 88 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 78 73 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E8 BF 00 00 35 04 06 00 01 00 00 CE [03:56:25]Write i2c OK [03:56:25]MH_I2C_Read... [03:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:25]Read from MH i2c: E2 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 03 00 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 03 00 88 5E 00 90 00 5A [03:56:25]RAPDU: 90 00 [03:56:25]wFMCommunicate OK [03:56:25]wFMCommunicate request_size=10 [03:56:25]MH_SAM_APDU [03:56:25]CAPDU: 80 0D 02 02 05 62 5A 9A 5F 18 [03:56:25]Write to MH i2c: E2 0D 00 89 5E 80 0D 02 02 05 00 62 5A 9A 5F 18 00 00 38 [03:56:25]Write i2c OK [03:56:25]MH_I2C_Read... [03:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:25]Read from MH i2c: E2 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 03 00 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 03 00 89 5E 00 90 00 5B [03:56:25]RAPDU: 90 00 [03:56:25]wFMCommunicate OK [03:56:25]wFMCommunicate request_size=4 [03:56:25]MH_SAM_APDU [03:56:25]CAPDU: 80 0D 03 02 [03:56:25]Write to MH i2c: E2 08 00 8A 5E 80 0D 03 02 00 00 00 00 63 [03:56:25]Write i2c OK [03:56:25]MH_I2C_Read... [03:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:56:25]Read from MH i2c: E2 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 0B 00 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 0B 00 8A 5E 00 8F 2F 3E E3 8D 61 A3 19 90 00 ED [03:56:25]RAPDU: 8F 2F 3E E3 8D 61 A3 19 90 00 [03:56:25]wFMCommunicate OK [03:56:25]SAM_PROTO_SignData done [03:56:25]FM_MakeSignedData done [03:56:25]CreateOFDProtocolMessage [03:56:25]wFMCommunicate request_size=4 [03:56:25]MH_SAM_APDU [03:56:25]CAPDU: 80 11 00 00 [03:56:25]Write to MH i2c: E2 08 00 8B 5E 80 11 00 00 00 00 00 00 63 [03:56:25]Write i2c OK [03:56:25]MH_I2C_Read... [03:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:25]Read from MH i2c: E2 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 17 00 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: E2 17 00 8B 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B0 [03:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [03:56:25]wFMCommunicate OK [03:56:25]CreateOFDProtocolMessage done [03:56:25]OFDSenderStorePacket 49128 [03:56:25]StoreOFDPacket docnum=49128 [03:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9A 90 07 01 52 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 78 73 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E8 BF 00 00 35 04 06 00 01 62 5A 9A 5F 18 8F 2F 3E E3 8D 61 A3 19 [03:56:25]CheckFolder [03:56:25]dirname=/storage/ofd_packets [03:56:25]CheckFolder done [03:56:25]ProducePacketName [03:56:25]name=ofd_packets/00049128 [03:56:25]NVStorageSaveData ofd_packets/00049128 [03:56:25]File name is /storage/ofd_packets/00049128 [03:56:25]Write 301 bytes [03:56:25]NVStorageSaveData done [03:56:25]OFDSenderStorePacket done [03:56:25]KKMCreateOFDPacket done [03:56:25]NVStorageSaveData kkm_last_timestamp [03:56:25]File name is /storage/kkm_last_timestamp [03:56:25]Write 4 bytes [03:56:25]NVStorageSaveData done [03:56:25]ExternCall_PrintAddStr [03:56:25]wPrintStart [03:56:25]Write to MH i2c: 01 00 00 8C 5E EA [03:56:25]Write i2c OK [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: 01 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: 01 07 00 [03:56:25]MH_I2C_Read... [03:56:25]Read from MH i2c: 01 07 00 8C 5E 00 00 00 00 00 FF 0F FF [03:56:25]RasterBufferAndPrint [03:56:25]line Счет N : (1)216228 [03:56:25]line ИНН: 02508201610067 [03:56:25]line Контрольно-Кассовый Чек [03:56:25]line ПРОДАЖА [03:56:25]line ТРК (МРК, ГНК) : 22 [03:56:25]line Товар: 2710124130 [03:56:25]line Аи-92-К-5 [03:56:25]line 4.980 * 60.30 [03:56:25]line = 300.29 [03:56:25]line НДС 12% НСП 1% [03:56:25]line > о реализуемом товаре [03:56:25]line ОКРУГЛЕНИЕ: -0.29 [03:56:25]line ИТОГО: 300.00 [03:56:25]line Внесено: 300.00 [03:56:25]line СДАЧА: 0.00 [03:56:25]line НСП 1% : 2.66 [03:56:25]line НДС 12% : 31.89 [03:56:25]line Наличными: 300.00 [03:56:25]line Безнал.: 0.00 [03:56:25]line Место: АЗС № 102 "Партнер Нефть" [03:56:25]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [03:56:25]line СНО: Общий режим [03:56:25]line Чек 4 30.01.2024 03:56 [03:56:25]line Смена: 246 ФФД: 1.0 [03:56:25]line ЗНМ: 0300000040 [03:56:25]line РНМ: 0000000000092723 [03:56:25]line Версия ККМ: 001 [03:56:25]line ФМ: 0000000000875060 [03:56:25]line ФД: 49128 [03:56:26]line ФПД: 1521938489112 [03:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T035640&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49128&fm=1521938489112&tin=02508201610067®Number=0000000000092723&sum=30000 [03:56:26]OFD Sender: Processing packet 49128 [packets to send 12, broken 11] [03:56:26]ProducePacketName [03:56:26]name=ofd_packets/00049128 [03:56:26]OFD Sender: To server: pG, [03:56:26]CommunicateWithHost lk.salyk.kg:30040 [03:56:26]ConnectInit lk.salyk.kg [03:56:26]written 0, free lines is 4095 [03:56:26]Connected sock=10 [03:56: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 36 30 0F 01 00 00 9A 90 07 01 52 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 78 73 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E8 BF 00 00 35 04 06 00 01 62 5A 9A 5F 18 8F 2F 3E E3 8D 61 A3 19 [03:56: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 36 30 4F 00 00 00 2C D9 47 00 C3 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 36 30 10 04 04 00 E8 BF 00 00 F4 03 04 00 6F 1F B8 65 B6 04 01 00 00 B5 14 F0 7B F9 1A A7 ED [03:56:26]CommunicateWithHost err = 0 [03:56:26]CheckOFDResponse [03:56:26]1017 (14) - 77093643461234 [03:56:26]1041 (16) - 0000000000875060 [03:56:26]1040 (4) - 49128 [03:56:26]1012 (4) - 29.01.2024 21:58 [03:56:26]1206 (1) - 0 [03:56:26]OFD Sender: Remove packet 49128 [03:56:26]ProducePacketName [03:56:26]name=ofd_packets/00049128 [03:56:26]NVStorageDeleteData [03:56:26]Write to MH i2c: 01 00 00 B7 5E 15 [03:56:26]Write i2c OK [03:56:26]MH_I2C_Read... [03:56:26]Read from MH i2c: 01 [03:56:26]MH_I2C_Read... [03:56:26]Read from MH i2c: 01 07 00 [03:56:26]MH_I2C_Read... [03:56:26]Read from MH i2c: 01 07 00 B7 5E 00 00 00 00 00 FE 0C 26 [03:56:26]RasterBufferAndPrint [03:56:26]line [03:56:26]line [03:56:26]line [03:56:26]line [03:56:26]line [03:56:26]written 0, free lines is 3331 [03:56:26]MH_Cut [03:56:26]Write to MH i2c: D1 01 00 BE 5E 01 EE [03:56:26]Write i2c OK [03:56:26]MH_I2C_Read... [03:56:26]Read from MH i2c: D1 [03:56:26]MH_I2C_Read... [03:56:26]Read from MH i2c: D1 01 00 [03:56:26]MH_I2C_Read... [03:56:26]Read from MH i2c: D1 01 00 BE 5E 00 ED [03:56:26]Write to MH i2c: 01 00 00 BF 5E 1D [03:56:26]Write i2c OK [03:56:26]MH_I2C_Read... [03:56:26]OFD Sender: No OFD packet to send [03:56:27]*** Cut start [03:56:27]*** Partial cut [03:56:27]*** CUTSNS_PIN = 1 [03:56:27]*** CUTSNS_PIN = 0 [03:56:27]*** Brake cut motor [03:56:27]Read from MH i2c: 01 [03:56:27]MH_I2C_Read... [03:56:27]*** Stop cut motor [03:56:27]*** Cut end [03:56:27]Read from MH i2c: 01 07 00 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: 01 07 00 BF 5E 00 00 00 00 00 FF 0F 32 [03:56:27]process_action close_receipt done [03:56:27]requested_data is exist [03:56:27]produce_requested_data [03:56:27]requested_item fm.sn is exist - process it [03:56:27]wFMCommunicate request_size=4 [03:56:27]MH_SAM_APDU [03:56:27]CAPDU: 80 11 00 00 [03:56:27]Write to MH i2c: E2 08 00 C0 5E 80 11 00 00 00 00 00 00 98 [03:56:27]Write i2c OK [03:56:27]MH_I2C_Read... [03:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:27]Read from MH i2c: E2 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: E2 17 00 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: E2 17 00 C0 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E5 [03:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [03:56:27]wFMCommunicate OK [03:56:27]requested_item fd.num is exist - process it [03:56:27]SAM_PROTO_GetFieldsCounters [03:56:27]wFMCommunicate request_size=4 [03:56:27]MH_SAM_APDU [03:56:27]CAPDU: 80 13 00 00 [03:56:27]Write to MH i2c: E2 08 00 C1 5E 80 13 00 00 00 00 00 00 9B [03:56:27]Write i2c OK [03:56:27]MH_I2C_Read... [03:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:56:27]Read from MH i2c: E2 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: E2 62 00 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: E2 62 00 C1 5E 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E8 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [03:56: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E8 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:56:27]wFMCommunicate OK [03:56:27]SAM_PROTO_GetFieldsCounters done [03:56:27]requested_item shift.num is exist - process it [03:56:27]requested_item shift.opened is exist - process it [03:56:27]req_shift_opened [03:56:27]FM_GetShiftState [03:56:27]SAM_PROTO_GetShiftState [03:56:27]wFMCommunicate request_size=4 [03:56:27]MH_SAM_APDU [03:56:27]CAPDU: 80 13 01 00 [03:56:27]Write to MH i2c: E2 08 00 C2 5E 80 13 01 00 00 00 00 00 9D [03:56:27]Write i2c OK [03:56:27]MH_I2C_Read... [03:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:27]Read from MH i2c: E2 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: E2 0E 00 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: E2 0E 00 C2 5E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C5 [03:56:27]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [03:56:28]wFMCommunicate OK [03:56:28]SAM_PROTO_GetShiftState done [03:56:28]FM_GetShiftState done [03:56:28]req_shift_opened done [03:56:28]requested_item shift.open_date is exist - process it [03:56:28]req_shift_open_date [03:56:28]req_shift_open_date done [03:56:28]produce_requested_data done [03:56:28]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49128,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [03:56:28]process_action_free close_receipt [03:56:28]json_value_free [03:56:28]json_value_free done [03:56:28]process_json_proto returns [03:56:28]Send response to host [03:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49128,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [03:56:28]free response buf [03:56:28]execute_script done [03:56:28]execute_script returns [03:56:28]free content buf [03:56:28]Sock 9.Close socket [03:56:28]Sock 9.Thread stoped [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:06]accept exits with 7 [04:28:06]New connection [04:28:06]New thread 3066670436 created [04:28:06]Thread 3066813796 joined [04:28:06]Waiting for new connection... [04:28:06] Sock 7.Parse request [04:28:06]Sock 7.Check first char [04:28:06]Sock 7.First char is OK [04:28:06]request: POST /json_proto HTTP/1.0 [04:28:06]Method: POST [04:28:06]URL: /json_proto [04:28:06]Method is POST - this is cgi request [04:28:06]url: /json_proto [04:28:06]query_string will be loaded in cgi processing [04:28:06]execute_cgi json_proto POST (null) [04:28:06]execute_cgi path=json_proto method=POST [04:28:06]POST find Content-Length [04:28:06]Host: 172.17.56.67:8080 [04:28:06]Content-Length: 668 [04:28:06]Content-Type: application/json [04:28:06] [04:28:06]POST finish read [04:28:06]Found Content-Length = 668 [04:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 0.010, "sum" : 0.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:06]execute_script... [04:28:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 0.010, "sum" : 0.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:06]POST & json_proto [04:28:06]process_json_proto [04:28:06]json parsed OK: [04:28:06]protocol is kg_v1.0 [04:28:06]action value=close_receipt [04:28:06]process_action close_receipt [04:28:06]cmd_close_receipt [04:28:06]MH_GetDate [04:28:06]Write to MH i2c: F0 00 00 C3 5E 10 [04:28:06]Write i2c OK [04:28:06]MH_I2C_Read... [04:28:06]Read from MH i2c: F0 [04:28:06]MH_I2C_Read... [04:28:06]Read from MH i2c: F0 09 00 [04:28:06]MH_I2C_Read... [04:28:06]Read from MH i2c: F0 09 00 C3 5E 00 E7 7A B8 65 26 5D 9E 65 1D [04:28:06]GetLastDocTimeStamp 1706587000 [04:28:06]current date 1706588903 [04:28:06]FM_GetShiftState [04:28:06]SAM_PROTO_GetShiftState [04:28:06]wFMCommunicate request_size=4 [04:28:06]MH_SAM_APDU [04:28:06]CAPDU: 80 13 01 00 [04:28:06]Write to MH i2c: E2 08 00 C4 5E 80 13 01 00 00 00 00 00 9F [04:28:06]Write i2c OK [04:28:06]MH_I2C_Read... [04:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:06]Read from MH i2c: E2 [04:28:06]MH_I2C_Read... [04:28:06]Read from MH i2c: E2 0E 00 [04:28:06]MH_I2C_Read... [04:28:06]Read from MH i2c: E2 0E 00 C4 5E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C7 [04:28:06]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [04:28:06]wFMCommunicate OK [04:28:06]SAM_PROTO_GetShiftState done [04:28:06]FM_GetShiftState done [04:28:06]opened in 1706572995 [04:28:06]opened+sec_in_day 1706659395 [04:28:06]quantity*price = 69 [04:28:06]sum+1 = 71 [04:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 0.00 Внесено: 100.00 СДАЧА: 100.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 5 30.01.2024 04:28 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49129 ФПД: 69037740880223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T042823&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49129&fm=69037740880223&tin=02508201610067®Number=0000000000092723&sum=0 [04:28:07]StoreToDocumentArchive [04:28:07]shift 246 fd 49129 [04:28:07]save to /storage/0246/doc_00049129 [04:28:07]save last doc name /storage/0246/doc_00049129 to /storage/kkm_last_doc_name [04:28:07]save OK [04:28:07]Clear old archive folders... [04:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:28:07]tlvbuf is 01214DF0 [04:28:07]SAM_PROTO_ClearQueue [04:28:07]wFMCommunicate request_size=4 [04:28:07]MH_SAM_APDU [04:28:07]CAPDU: 80 09 00 00 [04:28:07]Write to MH i2c: E2 08 00 D1 5E 80 09 00 00 00 00 00 00 A1 [04:28:07]Write i2c OK [04:28:07]MH_I2C_Read... [04:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:28:08]Read from MH i2c: E2 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 03 00 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 03 00 D1 5E 00 90 00 A3 [04:28:08]RAPDU: 90 00 [04:28:08]wFMCommunicate OK [04:28:08]SAM_PROTO_ClearQueue done [04:28:08]KKMCreateOFDPacket [04:28:08]OFDProtocolAddRootSTLVToBuf [04:28:08]FM_MakeSignedData [04:28:08]FM_MakeSignedData [04:28:08]SAM_PROTO_SignData [04:28:08]wFMCommunicate request_size=4 [04:28:08]MH_SAM_APDU [04:28:08]CAPDU: 80 0D 01 02 [04:28:08]Write to MH i2c: E2 08 00 D2 5E 80 0D 01 02 00 00 00 00 A9 [04:28:08]Write i2c OK [04:28:08]MH_I2C_Read... [04:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:28:08]Read from MH i2c: E2 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 03 00 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 03 00 D2 5E 00 90 00 A4 [04:28:08]RAPDU: 90 00 [04:28:08]wFMCommunicate OK [04:28:08]wFMCommunicate request_size=255 [04:28:08]MH_SAM_APDU [04:28:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 46 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 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 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 05 00 00 00 F4 03 04 00 E7 7A B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E9 BF 00 00 35 04 06 00 3E CA 1A 05 [04:28:08]Write to MH i2c: E2 02 01 D3 5E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 46 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 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 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 05 00 00 00 F4 03 04 00 E7 7A B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E9 BF 00 00 35 04 06 00 3E CA 1A 05 00 00 07 [04:28:08]Write i2c OK [04:28:08]MH_I2C_Read... [04:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:08]Read from MH i2c: E2 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 03 00 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 03 00 D3 5E 00 90 00 A5 [04:28:08]RAPDU: 90 00 [04:28:08]wFMCommunicate OK [04:28:08]wFMCommunicate request_size=7 [04:28:08]MH_SAM_APDU [04:28:08]CAPDU: 80 0D 02 02 02 71 5F [04:28:08]Write to MH i2c: E2 0A 00 D4 5E 80 0D 02 02 02 00 71 5F 00 00 80 [04:28:08]OFD Sender: No OFD packet to send [04:28:08]Write i2c OK [04:28:08]MH_I2C_Read... [04:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:08]Read from MH i2c: E2 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 03 00 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 03 00 D4 5E 00 90 00 A6 [04:28:08]RAPDU: 90 00 [04:28:08]wFMCommunicate OK [04:28:08]wFMCommunicate request_size=4 [04:28:08]MH_SAM_APDU [04:28:08]CAPDU: 80 0D 03 02 [04:28:08]Write to MH i2c: E2 08 00 D5 5E 80 0D 03 02 00 00 00 00 AE [04:28:08]Write i2c OK [04:28:08]MH_I2C_Read... [04:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:28:08]Read from MH i2c: E2 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 0B 00 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 0B 00 D5 5E 00 2E E6 C7 E3 F6 28 05 66 90 00 F6 [04:28:08]RAPDU: 2E E6 C7 E3 F6 28 05 66 90 00 [04:28:08]wFMCommunicate OK [04:28:08]SAM_PROTO_SignData done [04:28:08]FM_MakeSignedData done [04:28:08]CreateOFDProtocolMessage [04:28:08]wFMCommunicate request_size=4 [04:28:08]MH_SAM_APDU [04:28:08]CAPDU: 80 11 00 00 [04:28:08]Write to MH i2c: E2 08 00 D6 5E 80 11 00 00 00 00 00 00 AE [04:28:08]Write i2c OK [04:28:08]MH_I2C_Read... [04:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:08]Read from MH i2c: E2 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 17 00 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: E2 17 00 D6 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FB [04:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [04:28:08]wFMCommunicate OK [04:28:08]CreateOFDProtocolMessage done [04:28:08]OFDSenderStorePacket 49129 [04:28:08]StoreOFDPacket docnum=49129 [04:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 0F 35 04 01 23 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 46 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 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 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 05 00 00 00 F4 03 04 00 E7 7A B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E9 BF 00 00 35 04 06 00 3E CA 1A 05 71 5F 2E E6 C7 E3 F6 28 05 66 [04:28:08]CheckFolder [04:28:08]dirname=/storage/ofd_packets [04:28:08]CheckFolder done [04:28:08]ProducePacketName [04:28:08]name=ofd_packets/00049129 [04:28:08]NVStorageSaveData ofd_packets/00049129 [04:28:08]File name is /storage/ofd_packets/00049129 [04:28:08]Write 298 bytes [04:28:08]NVStorageSaveData done [04:28:08]OFDSenderStorePacket done [04:28:08]KKMCreateOFDPacket done [04:28:08]NVStorageSaveData kkm_last_timestamp [04:28:08]File name is /storage/kkm_last_timestamp [04:28:08]Write 4 bytes [04:28:08]NVStorageSaveData done [04:28:08]ExternCall_PrintAddStr [04:28:08]wPrintStart [04:28:08]Write to MH i2c: 01 00 00 D7 5E 35 [04:28:08]Write i2c OK [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: 01 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: 01 07 00 [04:28:08]MH_I2C_Read... [04:28:08]Read from MH i2c: 01 07 00 D7 5E 00 00 00 00 00 FF 0F 4A [04:28:08]RasterBufferAndPrint [04:28:08]line Счет N : (1)216229 [04:28:08]line ИНН: 02508201610067 [04:28:08]line Контрольно-Кассовый Чек [04:28:08]line ПРОДАЖА [04:28:08]line ТРК (МРК, ГНК) : 21 [04:28:08]line Товар: 2710194210 [04:28:08]line ДТ-К-5 [04:28:08]line 0.010 * 69.90 [04:28:08]line = 0.70 [04:28:08]line НДС 12% НСП 1% [04:28:08]line > о реализуемом товаре [04:28:08]line ОКРУГЛЕНИЕ: -0.70 [04:28:08]line ИТОГО: 0.00 [04:28:08]line Внесено: 100.00 [04:28:08]line СДАЧА: 100.00 [04:28:08]line НСП 1% : 0.01 [04:28:08]line НДС 12% : 0.07 [04:28:08]line Наличными: 0.00 [04:28:08]line Безнал.: 0.00 [04:28:08]line Место: АЗС № 102 "Партнер Нефть" [04:28:08]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [04:28:08]line СНО: Общий режим [04:28:08]line Чек 5 30.01.2024 04:28 [04:28:08]line Смена: 246 ФФД: 1.0 [04:28:08]line ЗНМ: 0300000040 [04:28:08]line РНМ: 0000000000092723 [04:28:08]line Версия ККМ: 001 [04:28:08]line ФМ: 0000000000875060 [04:28:08]line ФД: 49129 [04:28:08]line ФПД: 69037740880223 [04:28:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T042823&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49129&fm=69037740880223&tin=02508201610067®Number=0000000000092723&sum=0 [04:28:08]OFD Sender: Processing packet 49129 [packets to send 12, broken 11] [04:28:08]ProducePacketName [04:28:08]name=ofd_packets/00049129 [04:28:08]OFD Sender: To server: pG, [04:28:08]CommunicateWithHost lk.salyk.kg:30040 [04:28:08]ConnectInit lk.salyk.kg [04:28:08]written 0, free lines is 4095 [04:28:08]Connected sock=10 [04:28: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 36 30 0C 01 00 00 0F 35 04 01 23 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 46 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 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 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 05 00 00 00 F4 03 04 00 E7 7A B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E9 BF 00 00 35 04 06 00 3E CA 1A 05 71 5F 2E E6 C7 E3 F6 28 05 66 [04:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A1 01 47 00 D8 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 36 30 10 04 04 00 E9 BF 00 00 F4 03 04 00 DE 26 B8 65 B6 04 01 00 00 07 33 AC 8B 69 FA 85 3B [04:28:09]CommunicateWithHost err = 0 [04:28:09]CheckOFDResponse [04:28:09]1017 (14) - 77093643461234 [04:28:09]1041 (16) - 0000000000875060 [04:28:09]1040 (4) - 49129 [04:28:09]1012 (4) - 29.01.2024 22:29 [04:28:09]1206 (1) - 0 [04:28:09]OFD Sender: Remove packet 49129 [04:28:09]ProducePacketName [04:28:09]name=ofd_packets/00049129 [04:28:09]NVStorageDeleteData [04:28:09]Write to MH i2c: 01 00 00 02 5F 61 [04:28:09]Write i2c OK [04:28:09]MH_I2C_Read... [04:28:09]Read from MH i2c: 01 [04:28:09]MH_I2C_Read... [04:28:09]Read from MH i2c: 01 07 00 [04:28:09]MH_I2C_Read... [04:28:09]Read from MH i2c: 01 07 00 02 5F 00 00 00 00 00 F4 0C 68 [04:28:09]RasterBufferAndPrint [04:28:09]line [04:28:09]line [04:28:09]line [04:28:09]line [04:28:09]line [04:28:09]written 0, free lines is 3322 [04:28:09]MH_Cut [04:28:09]Write to MH i2c: D1 01 00 09 5F 01 3A [04:28:09]Write i2c OK [04:28:09]MH_I2C_Read... [04:28:09]Read from MH i2c: D1 [04:28:09]MH_I2C_Read... [04:28:09]Read from MH i2c: D1 01 00 [04:28:09]MH_I2C_Read... [04:28:09]Read from MH i2c: D1 01 00 09 5F 00 39 [04:28:09]Write to MH i2c: 01 00 00 0A 5F 69 [04:28:09]Write i2c OK [04:28:09]MH_I2C_Read... [04:28:09]OFD Sender: No OFD packet to send [04:28:09]*** Cut start [04:28:09]*** Partial cut [04:28:09]*** CUTSNS_PIN = 1 [04:28:09]*** CUTSNS_PIN = 0 [04:28:10]*** Brake cut motor [04:28:10]Read from MH i2c: 01 [04:28:10]MH_I2C_Read... [04:28:10]*** Stop cut motor [04:28:10]*** Cut end [04:28:10]Read from MH i2c: 01 07 00 [04:28:10]MH_I2C_Read... [04:28:10]Read from MH i2c: 01 07 00 0A 5F 00 00 00 00 00 FF 0F 7E [04:28:10]process_action close_receipt done [04:28:10]requested_data is exist [04:28:10]produce_requested_data [04:28:10]requested_item fm.sn is exist - process it [04:28:10]wFMCommunicate request_size=4 [04:28:10]MH_SAM_APDU [04:28:10]CAPDU: 80 11 00 00 [04:28:10]Write to MH i2c: E2 08 00 0B 5F 80 11 00 00 00 00 00 00 E4 [04:28:10]Write i2c OK [04:28:10]MH_I2C_Read... [04:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:10]Read from MH i2c: E2 [04:28:10]MH_I2C_Read... [04:28:10]Read from MH i2c: E2 17 00 [04:28:10]MH_I2C_Read... [04:28:10]Read from MH i2c: E2 17 00 0B 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 31 [04:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [04:28:10]wFMCommunicate OK [04:28:10]requested_item fd.num is exist - process it [04:28:10]SAM_PROTO_GetFieldsCounters [04:28:10]wFMCommunicate request_size=4 [04:28:10]MH_SAM_APDU [04:28:10]CAPDU: 80 13 00 00 [04:28:10]Write to MH i2c: E2 08 00 0C 5F 80 13 00 00 00 00 00 00 E7 [04:28:10]Write i2c OK [04:28:10]MH_I2C_Read... [04:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:28:10]Read from MH i2c: E2 [04:28:10]MH_I2C_Read... [04:28:10]Read from MH i2c: E2 62 00 [04:28:10]MH_I2C_Read... [04:28:10]Read from MH i2c: E2 62 00 0C 5F 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E9 BF 00 00 0E 04 04 00 F6 00 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 AD [04:28: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E9 BF 00 00 0E 04 04 00 F6 00 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 [04:28:10]wFMCommunicate OK [04:28:10]SAM_PROTO_GetFieldsCounters done [04:28:10]requested_item shift.num is exist - process it [04:28:10]requested_item shift.opened is exist - process it [04:28:10]req_shift_opened [04:28:10]FM_GetShiftState [04:28:10]SAM_PROTO_GetShiftState [04:28:10]wFMCommunicate request_size=4 [04:28:10]MH_SAM_APDU [04:28:10]CAPDU: 80 13 01 00 [04:28:10]Write to MH i2c: E2 08 00 0D 5F 80 13 01 00 00 00 00 00 E9 [04:28:10]Write i2c OK [04:28:10]MH_I2C_Read... [04:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:10]Read from MH i2c: E2 [04:28:10]MH_I2C_Read... [04:28:10]Read from MH i2c: E2 0E 00 [04:28:10]MH_I2C_Read... [04:28:10]Read from MH i2c: E2 0E 00 0D 5F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 11 [04:28:10]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [04:28:10]wFMCommunicate OK [04:28:10]SAM_PROTO_GetShiftState done [04:28:10]FM_GetShiftState done [04:28:10]req_shift_opened done [04:28:10]requested_item shift.open_date is exist - process it [04:28:10]req_shift_open_date [04:28:10]req_shift_open_date done [04:28:10]produce_requested_data done [04:28:10]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49129,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [04:28:10]process_action_free close_receipt [04:28:10]json_value_free [04:28:10]json_value_free done [04:28:10]process_json_proto returns [04:28:10]Send response to host [04:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49129,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [04:28:10]free response buf [04:28:10]execute_script done [04:28:10]execute_script returns [04:28:10]free content buf [04:28:10]Sock 7.Close socket [04:28:10]Sock 7.Thread stoped [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:24]accept exits with 9 [05:24:24]New connection [05:24:24]New thread 3066813796 created [05:24:24]Thread 3066670436 joined [05:24:24]Waiting for new connection... [05:24:24] Sock 9.Parse request [05:24:24]Sock 9.Check first char [05:24:24]Sock 9.First char is OK [05:24:24]request: POST /json_proto HTTP/1.0 [05:24:24]Method: POST [05:24:24]URL: /json_proto [05:24:24]Method is POST - this is cgi request [05:24:24]url: /json_proto [05:24:24]query_string will be loaded in cgi processing [05:24:24]execute_cgi json_proto POST (null) [05:24:24]execute_cgi path=json_proto method=POST [05:24:24]POST find Content-Length [05:24:24]Host: 172.17.56.67:8080 [05:24:24]Content-Length: 677 [05:24:24]Content-Type: application/json [05:24:24] [05:24:24]POST finish read [05:24:24]Found Content-Length = 677 [05:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.210, "sum" : 314.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 314.00, "total" : 314.00, "payments": [ { "type": 0, "sum" : 314.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:24]execute_script... [05:24: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)216230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.210, "sum" : 314.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 314.00, "total" : 314.00, "payments": [ { "type": 0, "sum" : 314.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:24]POST & json_proto [05:24:24]process_json_proto [05:24:24]json parsed OK: [05:24:24]protocol is kg_v1.0 [05:24:24]action value=close_receipt [05:24:24]process_action close_receipt [05:24:24]cmd_close_receipt [05:24:24]MH_GetDate [05:24:24]Write to MH i2c: F0 00 00 0E 5F 5C [05:24:24]Write i2c OK [05:24:24]MH_I2C_Read... [05:24:24]Read from MH i2c: F0 [05:24:24]MH_I2C_Read... [05:24:24]Read from MH i2c: F0 09 00 [05:24:24]MH_I2C_Read... [05:24:24]Read from MH i2c: F0 09 00 0E 5F 00 19 88 B8 65 26 5D 9E 65 A9 [05:24:24]GetLastDocTimeStamp 1706588903 [05:24:24]current date 1706592281 [05:24:24]FM_GetShiftState [05:24:24]SAM_PROTO_GetShiftState [05:24:24]wFMCommunicate request_size=4 [05:24:24]MH_SAM_APDU [05:24:24]CAPDU: 80 13 01 00 [05:24:24]Write to MH i2c: E2 08 00 0F 5F 80 13 01 00 00 00 00 00 EB [05:24:24]Write i2c OK [05:24:24]MH_I2C_Read... [05:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:24]Read from MH i2c: E2 [05:24:24]MH_I2C_Read... [05:24:24]Read from MH i2c: E2 0E 00 [05:24:24]MH_I2C_Read... [05:24:24]Read from MH i2c: E2 0E 00 0F 5F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 13 [05:24:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [05:24:24]wFMCommunicate OK [05:24:24]SAM_PROTO_GetShiftState done [05:24:24]FM_GetShiftState done [05:24:24]opened in 1706572995 [05:24:24]opened+sec_in_day 1706659395 [05:24:24]quantity*price = 31416 [05:24:24]sum+1 = 31417 [05:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 314.00 Внесено: 314.00 СДАЧА: 0.00 НСП 1% : 2.78 НДС 12% : 33.36 Наличными: 314.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 6 30.01.2024 05:24 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49130 ФПД: 226326681653235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T052441&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49130&fm=226326681653235&tin=02508201610067®Number=0000000000092723&sum=31400 [05:24:25]StoreToDocumentArchive [05:24:25]shift 246 fd 49130 [05:24:25]save to /storage/0246/doc_00049130 [05:24:25]save last doc name /storage/0246/doc_00049130 to /storage/kkm_last_doc_name [05:24:25]save OK [05:24:25]Clear old archive folders... [05:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:24:25]tlvbuf is 0121E000 [05:24:25]SAM_PROTO_ClearQueue [05:24:25]wFMCommunicate request_size=4 [05:24:25]MH_SAM_APDU [05:24:25]CAPDU: 80 09 00 00 [05:24:25]Write to MH i2c: E2 08 00 1C 5F 80 09 00 00 00 00 00 00 ED [05:24:25]Write i2c OK [05:24:25]MH_I2C_Read... [05:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:24:25]Read from MH i2c: E2 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 03 00 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 03 00 1C 5F 00 90 00 EF [05:24:25]RAPDU: 90 00 [05:24:25]wFMCommunicate OK [05:24:25]SAM_PROTO_ClearQueue done [05:24:25]KKMCreateOFDPacket [05:24:25]OFDProtocolAddRootSTLVToBuf [05:24:25]FM_MakeSignedData [05:24:25]FM_MakeSignedData [05:24:25]SAM_PROTO_SignData [05:24:25]wFMCommunicate request_size=4 [05:24:25]MH_SAM_APDU [05:24:25]CAPDU: 80 0D 01 02 [05:24:25]Write to MH i2c: E2 08 00 1D 5F 80 0D 01 02 00 00 00 00 F5 [05:24:25]Write i2c OK [05:24:25]MH_I2C_Read... [05:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:24:25]Read from MH i2c: E2 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 03 00 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 03 00 1D 5F 00 90 00 F0 [05:24:25]RAPDU: 90 00 [05:24:25]wFMCommunicate OK [05:24:25]wFMCommunicate request_size=255 [05:24:25]MH_SAM_APDU [05:24:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 B8 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 19 88 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BF 00 00 35 04 06 00 CD [05:24:25]Write to MH i2c: E2 02 01 1E 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 B8 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 19 88 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BF 00 00 35 04 06 00 CD 00 00 DC [05:24:25]Write i2c OK [05:24:25]MH_I2C_Read... [05:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:25]Read from MH i2c: E2 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 03 00 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 03 00 1E 5F 00 90 00 F1 [05:24:25]RAPDU: 90 00 [05:24:25]wFMCommunicate OK [05:24:25]wFMCommunicate request_size=10 [05:24:25]MH_SAM_APDU [05:24:25]CAPDU: 80 0D 02 02 05 D7 C9 76 8F F3 [05:24:25]Write to MH i2c: E2 0D 00 1F 5F 80 0D 02 02 05 00 D7 C9 76 8F F3 00 00 9A [05:24:25]Write i2c OK [05:24:25]MH_I2C_Read... [05:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:25]Read from MH i2c: E2 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 03 00 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 03 00 1F 5F 00 90 00 F2 [05:24:25]RAPDU: 90 00 [05:24:25]wFMCommunicate OK [05:24:25]wFMCommunicate request_size=4 [05:24:25]MH_SAM_APDU [05:24:25]CAPDU: 80 0D 03 02 [05:24:25]Write to MH i2c: E2 08 00 20 5F 80 0D 03 02 00 00 00 00 FA [05:24:25]Write i2c OK [05:24:25]MH_I2C_Read... [05:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:24:25]Read from MH i2c: E2 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 0B 00 [05:24:25]MH_I2C_Read... [05:24:25]Read from MH i2c: E2 0B 00 20 5F 00 A1 44 31 19 CB 0A 1B EF 90 00 09 [05:24:25]RAPDU: A1 44 31 19 CB 0A 1B EF 90 00 [05:24:25]wFMCommunicate OK [05:24:25]SAM_PROTO_SignData done [05:24:25]FM_MakeSignedData done [05:24:25]CreateOFDProtocolMessage [05:24:25]wFMCommunicate request_size=4 [05:24:25]MH_SAM_APDU [05:24:25]CAPDU: 80 11 00 00 [05:24:25]Write to MH i2c: E2 08 00 21 5F 80 11 00 00 00 00 00 00 FA [05:24:25]Write i2c OK [05:24:25]MH_I2C_Read... [05:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:26]Read from MH i2c: E2 [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: E2 17 00 [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: E2 17 00 21 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 47 [05:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [05:24:26]wFMCommunicate OK [05:24:26]CreateOFDProtocolMessage done [05:24:26]OFDSenderStorePacket 49130 [05:24:26]StoreOFDPacket docnum=49130 [05:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8F 04 07 01 C9 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 B8 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 19 88 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BF 00 00 35 04 06 00 CD D7 C9 76 8F F3 A1 44 31 19 CB 0A 1B EF [05:24:26]CheckFolder [05:24:26]dirname=/storage/ofd_packets [05:24:26]CheckFolder done [05:24:26]ProducePacketName [05:24:26]name=ofd_packets/00049130 [05:24:26]NVStorageSaveData ofd_packets/00049130 [05:24:26]File name is /storage/ofd_packets/00049130 [05:24:26]Write 301 bytes [05:24:26]NVStorageSaveData done [05:24:26]OFDSenderStorePacket done [05:24:26]KKMCreateOFDPacket done [05:24:26]NVStorageSaveData kkm_last_timestamp [05:24:26]File name is /storage/kkm_last_timestamp [05:24:26]Write 4 bytes [05:24:26]NVStorageSaveData done [05:24:26]ExternCall_PrintAddStr [05:24:26]wPrintStart [05:24:26]Write to MH i2c: 01 00 00 22 5F 81 [05:24:26]Write i2c OK [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: 01 [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: 01 07 00 [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: 01 07 00 22 5F 00 00 00 00 00 FF 0F 96 [05:24:26]RasterBufferAndPrint [05:24:26]line Счет N : (1)216230 [05:24:26]line ИНН: 02508201610067 [05:24:26]line Контрольно-Кассовый Чек [05:24:26]line ПРОДАЖА [05:24:26]line ТРК (МРК, ГНК) : 22 [05:24:26]line Товар: 2710124130 [05:24:26]line Аи-92-К-5 [05:24:26]line 5.210 * 60.30 [05:24:26]line = 314.16 [05:24:26]line НДС 12% НСП 1% [05:24:26]line > о реализуемом товаре [05:24:26]line ОКРУГЛЕНИЕ: -0.16 [05:24:26]line ИТОГО: 314.00 [05:24:26]line Внесено: 314.00 [05:24:26]line СДАЧА: 0.00 [05:24:26]line НСП 1% : 2.78 [05:24:26]line НДС 12% : 33.36 [05:24:26]line Наличными: 314.00 [05:24:26]line Безнал.: 0.00 [05:24:26]line Место: АЗС № 102 "Партнер Нефть" [05:24:26]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [05:24:26]line СНО: Общий режим [05:24:26]line Чек 6 30.01.2024 05:24 [05:24:26]line Смена: 246 ФФД: 1.0 [05:24:26]line ЗНМ: 0300000040 [05:24:26]line РНМ: 0000000000092723 [05:24:26]line Версия ККМ: 001 [05:24:26]line ФМ: 0000000000875060 [05:24:26]line ФД: 49130 [05:24:26]line ФПД: 226326681653235 [05:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T052441&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49130&fm=226326681653235&tin=02508201610067®Number=0000000000092723&sum=31400 [05:24:26]OFD Sender: Processing packet 49130 [packets to send 12, broken 11] [05:24:26]ProducePacketName [05:24:26]name=ofd_packets/00049130 [05:24:26]OFD Sender: To server: pG, [05:24:26]CommunicateWithHost lk.salyk.kg:30040 [05:24:26]ConnectInit lk.salyk.kg [05:24:26]written 0, free lines is 4095 [05:24:26]Connected sock=10 [05:24: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 36 30 0F 01 00 00 8F 04 07 01 C9 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 B8 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 19 88 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BF 00 00 35 04 06 00 CD D7 C9 76 8F F3 A1 44 31 19 CB 0A 1B EF [05:24: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 36 30 4F 00 00 00 CD 97 47 00 18 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BF 00 00 F4 03 04 00 10 34 B8 65 B6 04 01 00 00 06 5B AC 00 92 E2 9C CB [05:24:26]CommunicateWithHost err = 0 [05:24:26]CheckOFDResponse [05:24:26]1017 (14) - 77093643461234 [05:24:26]1041 (16) - 0000000000875060 [05:24:26]1040 (4) - 49130 [05:24:26]1012 (4) - 29.01.2024 23:26 [05:24:26]1206 (1) - 0 [05:24:26]OFD Sender: Remove packet 49130 [05:24:26]ProducePacketName [05:24:26]name=ofd_packets/00049130 [05:24:26]NVStorageDeleteData [05:24:26]Write to MH i2c: 01 00 00 4D 5F AC [05:24:26]Write i2c OK [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: 01 [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: 01 07 00 [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: 01 07 00 4D 5F 00 00 00 00 00 E7 0C A6 [05:24:26]RasterBufferAndPrint [05:24:26]line [05:24:26]line [05:24:26]line [05:24:26]line [05:24:26]line [05:24:26]written 0, free lines is 3310 [05:24:26]MH_Cut [05:24:26]Write to MH i2c: D1 01 00 54 5F 01 85 [05:24:26]Write i2c OK [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: D1 [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: D1 01 00 [05:24:26]MH_I2C_Read... [05:24:26]Read from MH i2c: D1 01 00 54 5F 00 84 [05:24:26]Write to MH i2c: 01 00 00 55 5F B4 [05:24:26]Write i2c OK [05:24:26]MH_I2C_Read... [05:24:27]OFD Sender: No OFD packet to send [05:24:27]*** Cut start [05:24:27]*** Partial cut [05:24:27]*** CUTSNS_PIN = 1 [05:24:27]*** CUTSNS_PIN = 0 [05:24:27]*** Brake cut motor [05:24:28]Read from MH i2c: 01 [05:24:28]MH_I2C_Read... [05:24:28]Read from MH i2c: 01 07 00 [05:24:28]MH_I2C_Read... [05:24:28]*** Stop cut motor [05:24:28]*** Cut end [05:24:28]Read from MH i2c: 01 07 00 55 5F 00 00 00 00 00 FF 0F C9 [05:24:28]process_action close_receipt done [05:24:28]requested_data is exist [05:24:28]produce_requested_data [05:24:28]requested_item fm.sn is exist - process it [05:24:28]wFMCommunicate request_size=4 [05:24:28]MH_SAM_APDU [05:24:28]CAPDU: 80 11 00 00 [05:24:28]Write to MH i2c: E2 08 00 56 5F 80 11 00 00 00 00 00 00 2F [05:24:28]Write i2c OK [05:24:28]MH_I2C_Read... [05:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:28]Read from MH i2c: E2 [05:24:28]MH_I2C_Read... [05:24:28]Read from MH i2c: E2 17 00 [05:24:28]MH_I2C_Read... [05:24:28]Read from MH i2c: E2 17 00 56 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7C [05:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [05:24:28]wFMCommunicate OK [05:24:28]requested_item fd.num is exist - process it [05:24:28]SAM_PROTO_GetFieldsCounters [05:24:28]wFMCommunicate request_size=4 [05:24:28]MH_SAM_APDU [05:24:28]CAPDU: 80 13 00 00 [05:24:28]Write to MH i2c: E2 08 00 57 5F 80 13 00 00 00 00 00 00 32 [05:24:28]Write i2c OK [05:24:28]MH_I2C_Read... [05:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:24:28]Read from MH i2c: E2 [05:24:28]MH_I2C_Read... [05:24:28]Read from MH i2c: E2 62 00 [05:24:28]MH_I2C_Read... [05:24:28]Read from MH i2c: E2 62 00 57 5F 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EA BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [05:24: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EA BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:24:28]wFMCommunicate OK [05:24:28]SAM_PROTO_GetFieldsCounters done [05:24:28]requested_item shift.num is exist - process it [05:24:28]requested_item shift.opened is exist - process it [05:24:28]req_shift_opened [05:24:28]FM_GetShiftState [05:24:28]SAM_PROTO_GetShiftState [05:24:28]wFMCommunicate request_size=4 [05:24:28]MH_SAM_APDU [05:24:28]CAPDU: 80 13 01 00 [05:24:28]Write to MH i2c: E2 08 00 58 5F 80 13 01 00 00 00 00 00 34 [05:24:28]Write i2c OK [05:24:28]MH_I2C_Read... [05:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:28]Read from MH i2c: E2 [05:24:28]MH_I2C_Read... [05:24:28]Read from MH i2c: E2 0E 00 [05:24:28]MH_I2C_Read... [05:24:28]Read from MH i2c: E2 0E 00 58 5F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5C [05:24:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [05:24:28]wFMCommunicate OK [05:24:28]SAM_PROTO_GetShiftState done [05:24:28]FM_GetShiftState done [05:24:28]req_shift_opened done [05:24:28]requested_item shift.open_date is exist - process it [05:24:28]req_shift_open_date [05:24:28]req_shift_open_date done [05:24:28]produce_requested_data done [05:24:28]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49130,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [05:24:28]process_action_free close_receipt [05:24:28]json_value_free [05:24:28]json_value_free done [05:24:28]process_json_proto returns [05:24:28]Send response to host [05:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49130,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [05:24:28]free response buf [05:24:28]execute_script done [05:24:28]execute_script returns [05:24:28]free content buf [05:24:28]Sock 9.Close socket [05:24:28]Sock 9.Thread stoped [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:26]accept exits with 7 [06:27:26]New connection [06:27:26]New thread 3066670436 created [06:27:26]Thread 3066813796 joined [06:27:26]Waiting for new connection... [06:27:26] Sock 7.Parse request [06:27:26]Sock 7.Check first char [06:27:26]Sock 7.First char is OK [06:27:26]request: POST /json_proto HTTP/1.0 [06:27:26]Method: POST [06:27:26]URL: /json_proto [06:27:26]Method is POST - this is cgi request [06:27:26]url: /json_proto [06:27:26]query_string will be loaded in cgi processing [06:27:26]execute_cgi json_proto POST (null) [06:27:26]execute_cgi path=json_proto method=POST [06:27:26]POST find Content-Length [06:27:26]Host: 172.17.56.67:8080 [06:27:26]Content-Length: 677 [06:27:26]Content-Type: application/json [06:27:26] [06:27:26]POST finish read [06:27:26]Found Content-Length = 677 [06:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:26]execute_script... [06:27:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:26]POST & json_proto [06:27:26]process_json_proto [06:27:26]json parsed OK: [06:27:26]protocol is kg_v1.0 [06:27:26]action value=close_receipt [06:27:26]process_action close_receipt [06:27:26]cmd_close_receipt [06:27:26]MH_GetDate [06:27:26]Write to MH i2c: F0 00 00 59 5F A7 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: F0 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: F0 09 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: F0 09 00 59 5F 00 E0 96 B8 65 26 5D 9E 65 C9 [06:27:26]GetLastDocTimeStamp 1706592281 [06:27:26]current date 1706596064 [06:27:26]FM_GetShiftState [06:27:26]SAM_PROTO_GetShiftState [06:27:26]wFMCommunicate request_size=4 [06:27:26]MH_SAM_APDU [06:27:26]CAPDU: 80 13 01 00 [06:27:26]Write to MH i2c: E2 08 00 5A 5F 80 13 01 00 00 00 00 00 36 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:26]Read from MH i2c: E2 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 0E 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 0E 00 5A 5F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5E [06:27:26]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [06:27:26]wFMCommunicate OK [06:27:26]SAM_PROTO_GetShiftState done [06:27:26]FM_GetShiftState done [06:27:26]opened in 1706572995 [06:27:26]opened+sec_in_day 1706659395 [06:27:26]quantity*price = 60058 [06:27:26]sum+1 = 60060 [06:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 7 30.01.2024 06:27 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49131 ФПД: 64029840923442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T062744&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49131&fm=64029840923442&tin=02508201610067®Number=0000000000092723&sum=60000 [06:27:27]StoreToDocumentArchive [06:27:27]shift 246 fd 49131 [06:27:27]save to /storage/0246/doc_00049131 [06:27:27]save last doc name /storage/0246/doc_00049131 to /storage/kkm_last_doc_name [06:27:27]save OK [06:27:27]Clear old archive folders... [06:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:27]tlvbuf is 0139F4C0 [06:27:27]SAM_PROTO_ClearQueue [06:27:27]wFMCommunicate request_size=4 [06:27:27]MH_SAM_APDU [06:27:27]CAPDU: 80 09 00 00 [06:27:27]Write to MH i2c: E2 08 00 67 5F 80 09 00 00 00 00 00 00 38 [06:27:27]Write i2c OK [06:27:27]MH_I2C_Read... [06:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 67 5F 00 90 00 3A [06:27:28]RAPDU: 90 00 [06:27:28]wFMCommunicate OK [06:27:28]SAM_PROTO_ClearQueue done [06:27:28]KKMCreateOFDPacket [06:27:28]OFDProtocolAddRootSTLVToBuf [06:27:28]FM_MakeSignedData [06:27:28]FM_MakeSignedData [06:27:28]SAM_PROTO_SignData [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 0D 01 02 [06:27:28]Write to MH i2c: E2 08 00 68 5F 80 0D 01 02 00 00 00 00 40 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 68 5F 00 90 00 3B [06:27:28]RAPDU: 90 00 [06:27:28]wFMCommunicate OK [06:27:28]wFMCommunicate request_size=255 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E0 96 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BF 00 00 35 04 06 00 3A [06:27:28]Write to MH i2c: E2 02 01 69 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E0 96 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BF 00 00 35 04 06 00 3A 00 00 99 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 69 5F 00 90 00 3C [06:27:28]RAPDU: 90 00 [06:27:28]wFMCommunicate OK [06:27:28]wFMCommunicate request_size=10 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 0D 02 02 05 3C 1B EC 5B 32 [06:27:28]Write to MH i2c: E2 0D 00 6A 5F 80 0D 02 02 05 00 3C 1B EC 5B 32 00 00 1D [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 6A 5F 00 90 00 3D [06:27:28]RAPDU: 90 00 [06:27:28]wFMCommunicate OK [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 0D 03 02 [06:27:28]Write to MH i2c: E2 08 00 6B 5F 80 0D 03 02 00 00 00 00 45 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 0B 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 0B 00 6B 5F 00 D3 D1 A0 B1 E0 00 12 54 90 00 81 [06:27:28]RAPDU: D3 D1 A0 B1 E0 00 12 54 90 00 [06:27:28]wFMCommunicate OK [06:27:28]SAM_PROTO_SignData done [06:27:28]FM_MakeSignedData done [06:27:28]CreateOFDProtocolMessage [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 11 00 00 [06:27:28]Write to MH i2c: E2 08 00 6C 5F 80 11 00 00 00 00 00 00 45 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 17 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 17 00 6C 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 92 [06:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [06:27:28]wFMCommunicate OK [06:27:28]CreateOFDProtocolMessage done [06:27:28]OFDSenderStorePacket 49131 [06:27:28]StoreOFDPacket docnum=49131 [06:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F6 5C 07 01 63 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E0 96 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BF 00 00 35 04 06 00 3A 3C 1B EC 5B 32 D3 D1 A0 B1 E0 00 12 54 [06:27:28]CheckFolder [06:27:28]dirname=/storage/ofd_packets [06:27:28]CheckFolder done [06:27:28]ProducePacketName [06:27:28]name=ofd_packets/00049131 [06:27:28]NVStorageSaveData ofd_packets/00049131 [06:27:28]File name is /storage/ofd_packets/00049131 [06:27:28]Write 301 bytes [06:27:28]NVStorageSaveData done [06:27:28]OFDSenderStorePacket done [06:27:28]KKMCreateOFDPacket done [06:27:28]NVStorageSaveData kkm_last_timestamp [06:27:28]File name is /storage/kkm_last_timestamp [06:27:28]Write 4 bytes [06:27:28]NVStorageSaveData done [06:27:28]ExternCall_PrintAddStr [06:27:28]wPrintStart [06:27:28]Write to MH i2c: 01 00 00 6D 5F CC [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: 01 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: 01 07 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: 01 07 00 6D 5F 00 00 00 00 00 FF 0F E1 [06:27:28]RasterBufferAndPrint [06:27:28]line Счет N : (1)216231 [06:27:28]line ИНН: 02508201610067 [06:27:28]line Контрольно-Кассовый Чек [06:27:28]line ПРОДАЖА [06:27:28]line ТРК (МРК, ГНК) : 22 [06:27:28]line Товар: 2710124130 [06:27:28]line Аи-92-К-5 [06:27:28]line 9.960 * 60.30 [06:27:28]line = 600.59 [06:27:28]line НДС 12% НСП 1% [06:27:28]line > о реализуемом товаре [06:27:28]line ОКРУГЛЕНИЕ: -0.59 [06:27:28]line ИТОГО: 600.00 [06:27:28]line Внесено: 600.00 [06:27:28]line СДАЧА: 0.00 [06:27:28]line НСП 1% : 5.31 [06:27:28]line НДС 12% : 63.78 [06:27:28]line Наличными: 600.00 [06:27:28]line Безнал.: 0.00 [06:27:28]line Место: АЗС № 102 "Партнер Нефть" [06:27:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [06:27:28]line СНО: Общий режим [06:27:28]line Чек 7 30.01.2024 06:27 [06:27:28]line Смена: 246 ФФД: 1.0 [06:27:28]line ЗНМ: 0300000040 [06:27:28]line РНМ: 0000000000092723 [06:27:28]line Версия ККМ: 001 [06:27:28]line ФМ: 0000000000875060 [06:27:28]line ФД: 49131 [06:27:28]line ФПД: 64029840923442 [06:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T062744&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49131&fm=64029840923442&tin=02508201610067®Number=0000000000092723&sum=60000 [06:27:28]OFD Sender: Processing packet 49131 [packets to send 12, broken 11] [06:27:28]ProducePacketName [06:27:28]name=ofd_packets/00049131 [06:27:28]OFD Sender: To server: pG, [06:27:28]CommunicateWithHost lk.salyk.kg:30040 [06:27:28]ConnectInit lk.salyk.kg [06:27:28]written 0, free lines is 4095 [06:27:28]Connected sock=10 [06:27: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 36 30 0F 01 00 00 F6 5C 07 01 63 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E0 96 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BF 00 00 35 04 06 00 3A 3C 1B EC 5B 32 D3 D1 A0 B1 E0 00 12 54 [06:27:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 19 34 47 00 87 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 36 30 10 04 04 00 EB BF 00 00 F4 03 04 00 D6 42 B8 65 B6 04 01 00 00 9C F3 D7 35 4D 23 99 31 [06:27:29]CommunicateWithHost err = 0 [06:27:29]CheckOFDResponse [06:27:29]1017 (14) - 77093643461234 [06:27:29]1041 (16) - 0000000000875060 [06:27:29]1040 (4) - 49131 [06:27:29]1012 (4) - 30.01.2024 00:29 [06:27:29]1206 (1) - 0 [06:27:29]OFD Sender: Remove packet 49131 [06:27:29]ProducePacketName [06:27:29]name=ofd_packets/00049131 [06:27:29]NVStorageDeleteData [06:27:29]Write to MH i2c: 01 00 00 98 5F F7 [06:27:29]Write i2c OK [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: 01 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: 01 07 00 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: 01 07 00 98 5F 00 00 00 00 00 E4 0C EE [06:27:29]RasterBufferAndPrint [06:27:29]line [06:27:29]line [06:27:29]line [06:27:29]line [06:27:29]line [06:27:29]written 0, free lines is 3306 [06:27:29]MH_Cut [06:27:29]Write to MH i2c: D1 01 00 9F 5F 01 D0 [06:27:29]Write i2c OK [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: D1 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: D1 01 00 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: D1 01 00 9F 5F 00 CF [06:27:29]Write to MH i2c: 01 00 00 A0 5F FF [06:27:29]Write i2c OK [06:27:29]MH_I2C_Read... [06:27:29]OFD Sender: No OFD packet to send [06:27:29]*** Cut start [06:27:29]*** Partial cut [06:27:29]*** CUTSNS_PIN = 1 [06:27:30]*** CUTSNS_PIN = 0 [06:27:30]*** Brake cut motor [06:27:30]Read from MH i2c: 01 [06:27:30]MH_I2C_Read... [06:27:30]*** Stop cut motor [06:27:30]*** Cut end [06:27:30]Read from MH i2c: 01 07 00 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: 01 07 00 A0 5F 00 00 00 00 00 FF 0F 14 [06:27:30]process_action close_receipt done [06:27:30]requested_data is exist [06:27:30]produce_requested_data [06:27:30]requested_item fm.sn is exist - process it [06:27:30]wFMCommunicate request_size=4 [06:27:30]MH_SAM_APDU [06:27:30]CAPDU: 80 11 00 00 [06:27:30]Write to MH i2c: E2 08 00 A1 5F 80 11 00 00 00 00 00 00 7A [06:27:30]Write i2c OK [06:27:30]MH_I2C_Read... [06:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:30]Read from MH i2c: E2 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: E2 17 00 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: E2 17 00 A1 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C7 [06:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [06:27:30]wFMCommunicate OK [06:27:30]requested_item fd.num is exist - process it [06:27:30]SAM_PROTO_GetFieldsCounters [06:27:30]wFMCommunicate request_size=4 [06:27:30]MH_SAM_APDU [06:27:30]CAPDU: 80 13 00 00 [06:27:30]Write to MH i2c: E2 08 00 A2 5F 80 13 00 00 00 00 00 00 7D [06:27:30]Write i2c OK [06:27:30]MH_I2C_Read... [06:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:30]Read from MH i2c: E2 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: E2 62 00 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: E2 62 00 A2 5F 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EB BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [06:27: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EB BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:27:30]wFMCommunicate OK [06:27:30]SAM_PROTO_GetFieldsCounters done [06:27:30]requested_item shift.num is exist - process it [06:27:30]requested_item shift.opened is exist - process it [06:27:30]req_shift_opened [06:27:30]FM_GetShiftState [06:27:30]SAM_PROTO_GetShiftState [06:27:30]wFMCommunicate request_size=4 [06:27:30]MH_SAM_APDU [06:27:30]CAPDU: 80 13 01 00 [06:27:30]Write to MH i2c: E2 08 00 A3 5F 80 13 01 00 00 00 00 00 7F [06:27:30]Write i2c OK [06:27:30]MH_I2C_Read... [06:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:30]Read from MH i2c: E2 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: E2 0E 00 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: E2 0E 00 A3 5F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A7 [06:27:30]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [06:27:30]wFMCommunicate OK [06:27:30]SAM_PROTO_GetShiftState done [06:27:30]FM_GetShiftState done [06:27:30]req_shift_opened done [06:27:30]requested_item shift.open_date is exist - process it [06:27:30]req_shift_open_date [06:27:30]req_shift_open_date done [06:27:30]produce_requested_data done [06:27:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49131,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [06:27:30]process_action_free close_receipt [06:27:30]json_value_free [06:27:30]json_value_free done [06:27:30]process_json_proto returns [06:27:30]Send response to host [06:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49131,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [06:27:30]free response buf [06:27:30]execute_script done [06:27:30]execute_script returns [06:27:30]free content buf [06:27:30]Sock 7.Close socket [06:27:30]Sock 7.Thread stoped [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:31]accept exits with 9 [07:38:31]New connection [07:38:31]New thread 3066813796 created [07:38:31]Thread 3066670436 joined [07:38:31]Waiting for new connection... [07:38:31] Sock 9.Parse request [07:38:31]Sock 9.Check first char [07:38:31]Sock 9.First char is OK [07:38:31]request: POST /json_proto HTTP/1.0 [07:38:31]Method: POST [07:38:31]URL: /json_proto [07:38:31]Method is POST - this is cgi request [07:38:31]url: /json_proto [07:38:31]query_string will be loaded in cgi processing [07:38:31]execute_cgi json_proto POST (null) [07:38:31]execute_cgi path=json_proto method=POST [07:38:31]POST find Content-Length [07:38:31]Host: 172.17.56.67:8080 [07:38:31]Content-Length: 682 [07:38:31]Content-Type: application/json [07:38:31] [07:38:31]POST finish read [07:38:31]Found Content-Length = 682 [07:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 23.220, "sum" : 1400.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:31]execute_script... [07:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 23.220, "sum" : 1400.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:31]POST & json_proto [07:38:31]process_json_proto [07:38:31]json parsed OK: [07:38:31]protocol is kg_v1.0 [07:38:31]action value=close_receipt [07:38:31]process_action close_receipt [07:38:31]cmd_close_receipt [07:38:31]MH_GetDate [07:38:31]Write to MH i2c: F0 00 00 A4 5F F2 [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: F0 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: F0 09 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: F0 09 00 A4 5F 00 88 A7 B8 65 26 5D 9E 65 CD [07:38:31]GetLastDocTimeStamp 1706596064 [07:38:31]current date 1706600328 [07:38:31]FM_GetShiftState [07:38:31]SAM_PROTO_GetShiftState [07:38:31]wFMCommunicate request_size=4 [07:38:31]MH_SAM_APDU [07:38:31]CAPDU: 80 13 01 00 [07:38:31]Write to MH i2c: E2 08 00 A5 5F 80 13 01 00 00 00 00 00 81 [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:31]Read from MH i2c: E2 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 0E 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 0E 00 A5 5F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A9 [07:38:31]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [07:38:31]wFMCommunicate OK [07:38:31]SAM_PROTO_GetShiftState done [07:38:31]FM_GetShiftState done [07:38:31]opened in 1706572995 [07:38:31]opened+sec_in_day 1706659395 [07:38:31]quantity*price = 140016 [07:38:31]sum+1 = 140018 [07:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 8 30.01.2024 07:38 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49132 ФПД: 233230546246120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T073848&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49132&fm=233230546246120&tin=02508201610067®Number=0000000000092723&sum=140000 [07:38:32]StoreToDocumentArchive [07:38:32]shift 246 fd 49132 [07:38:32]save to /storage/0246/doc_00049132 [07:38:32]save last doc name /storage/0246/doc_00049132 to /storage/kkm_last_doc_name [07:38:32]save OK [07:38:32]Clear old archive folders... [07:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:32]tlvbuf is 01243E80 [07:38:32]SAM_PROTO_ClearQueue [07:38:32]wFMCommunicate request_size=4 [07:38:32]MH_SAM_APDU [07:38:32]CAPDU: 80 09 00 00 [07:38:32]Write to MH i2c: E2 08 00 B2 5F 80 09 00 00 00 00 00 00 83 [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:32]Read from MH i2c: E2 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 03 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 03 00 B2 5F 00 90 00 85 [07:38:32]RAPDU: 90 00 [07:38:32]wFMCommunicate OK [07:38:32]SAM_PROTO_ClearQueue done [07:38:32]KKMCreateOFDPacket [07:38:32]OFDProtocolAddRootSTLVToBuf [07:38:32]FM_MakeSignedData [07:38:32]FM_MakeSignedData [07:38:32]SAM_PROTO_SignData [07:38:32]wFMCommunicate request_size=4 [07:38:32]MH_SAM_APDU [07:38:32]CAPDU: 80 0D 01 02 [07:38:32]Write to MH i2c: E2 08 00 B3 5F 80 0D 01 02 00 00 00 00 8B [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:32]Read from MH i2c: E2 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 03 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 03 00 B3 5F 00 90 00 86 [07:38:32]RAPDU: 90 00 [07:38:32]wFMCommunicate OK [07:38:32]wFMCommunicate request_size=255 [07:38:32]MH_SAM_APDU [07:38:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 5A 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F1 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 88 A7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BF 00 00 35 04 06 00 D4 [07:38:32]Write to MH i2c: E2 02 01 B4 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 5A 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F1 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 88 A7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BF 00 00 35 04 06 00 D4 00 00 50 [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:32]Read from MH i2c: E2 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 03 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 03 00 B4 5F 00 90 00 87 [07:38:32]RAPDU: 90 00 [07:38:32]wFMCommunicate OK [07:38:32]wFMCommunicate request_size=10 [07:38:32]MH_SAM_APDU [07:38:32]CAPDU: 80 0D 02 02 05 1F 37 DC 19 E8 [07:38:32]Write to MH i2c: E2 0D 00 B5 5F 80 0D 02 02 05 00 1F 37 DC 19 E8 00 00 CB [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:32]Read from MH i2c: E2 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 03 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 03 00 B5 5F 00 90 00 88 [07:38:32]RAPDU: 90 00 [07:38:32]wFMCommunicate OK [07:38:32]wFMCommunicate request_size=4 [07:38:32]MH_SAM_APDU [07:38:32]CAPDU: 80 0D 03 02 [07:38:32]Write to MH i2c: E2 08 00 B6 5F 80 0D 03 02 00 00 00 00 90 [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:32]Read from MH i2c: E2 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 0B 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 0B 00 B6 5F 00 42 40 42 75 A3 DD 70 21 90 00 DB [07:38:32]RAPDU: 42 40 42 75 A3 DD 70 21 90 00 [07:38:32]wFMCommunicate OK [07:38:32]SAM_PROTO_SignData done [07:38:32]FM_MakeSignedData done [07:38:32]CreateOFDProtocolMessage [07:38:32]wFMCommunicate request_size=4 [07:38:32]MH_SAM_APDU [07:38:32]CAPDU: 80 11 00 00 [07:38:32]Write to MH i2c: E2 08 00 B7 5F 80 11 00 00 00 00 00 00 90 [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:32]Read from MH i2c: E2 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 17 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: E2 17 00 B7 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DD [07:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:38:32]wFMCommunicate OK [07:38:32]CreateOFDProtocolMessage done [07:38:32]OFDSenderStorePacket 49132 [07:38:32]StoreOFDPacket docnum=49132 [07:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C6 18 07 01 E3 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 5A 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F1 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 88 A7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BF 00 00 35 04 06 00 D4 1F 37 DC 19 E8 42 40 42 75 A3 DD 70 21 [07:38:32]CheckFolder [07:38:32]dirname=/storage/ofd_packets [07:38:32]CheckFolder done [07:38:32]ProducePacketName [07:38:32]name=ofd_packets/00049132 [07:38:32]NVStorageSaveData ofd_packets/00049132 [07:38:32]File name is /storage/ofd_packets/00049132 [07:38:32]Write 301 bytes [07:38:32]NVStorageSaveData done [07:38:32]OFDSenderStorePacket done [07:38:32]KKMCreateOFDPacket done [07:38:32]NVStorageSaveData kkm_last_timestamp [07:38:32]File name is /storage/kkm_last_timestamp [07:38:32]Write 4 bytes [07:38:32]NVStorageSaveData done [07:38:32]ExternCall_PrintAddStr [07:38:32]wPrintStart [07:38:32]Write to MH i2c: 01 00 00 B8 5F 17 [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: 01 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: 01 07 00 [07:38:32]MH_I2C_Read... [07:38:32]Read from MH i2c: 01 07 00 B8 5F 00 00 00 00 00 FF 0F 2C [07:38:32]RasterBufferAndPrint [07:38:32]line Счет N : (1)216232 [07:38:32]line ИНН: 02508201610067 [07:38:32]line Контрольно-Кассовый Чек [07:38:32]line ПРОДАЖА [07:38:32]line ТРК (МРК, ГНК) : 22 [07:38:32]line Товар: 2710124130 [07:38:32]line Аи-92-К-5 [07:38:32]line 23.220 * 60.30 [07:38:32]line = 1400.17 [07:38:32]line НДС 12% НСП 1% [07:38:32]line > о реализуемом товаре [07:38:32]line ОКРУГЛЕНИЕ: -0.17 [07:38:32]line ИТОГО: 1400.00 [07:38:32]line Внесено: 1400.00 [07:38:32]line СДАЧА: 0.00 [07:38:32]line НСП 1% : 12.39 [07:38:32]line НДС 12% : 148.69 [07:38:32]line Наличными: 1400.00 [07:38:32]line Безнал.: 0.00 [07:38:32]line Место: АЗС № 102 "Партнер Нефть" [07:38:32]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [07:38:32]line СНО: Общий режим [07:38:32]line Чек 8 30.01.2024 07:38 [07:38:32]line Смена: 246 ФФД: 1.0 [07:38:32]line ЗНМ: 0300000040 [07:38:32]line РНМ: 0000000000092723 [07:38:32]line Версия ККМ: 001 [07:38:32]line ФМ: 0000000000875060 [07:38:32]line ФД: 49132 [07:38:32]line ФПД: 233230546246120 [07:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T073848&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49132&fm=233230546246120&tin=02508201610067®Number=0000000000092723&sum=140000 [07:38:33]OFD Sender: Processing packet 49132 [packets to send 12, broken 11] [07:38:33]ProducePacketName [07:38:33]name=ofd_packets/00049132 [07:38:33]OFD Sender: To server: pG, [07:38:33]CommunicateWithHost lk.salyk.kg:30040 [07:38:33]ConnectInit lk.salyk.kg [07:38:33]written 0, free lines is 4095 [07:38:33]Connected sock=10 [07:38: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 36 30 0F 01 00 00 C6 18 07 01 E3 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 5A 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F1 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 88 A7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BF 00 00 35 04 06 00 D4 1F 37 DC 19 E8 42 40 42 75 A3 DD 70 21 [07:38: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 36 30 4F 00 00 00 40 B6 47 00 9E 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 36 30 10 04 04 00 EC BF 00 00 F4 03 04 00 7F 53 B8 65 B6 04 01 00 00 9A EF 5B 4D B7 F2 5C CC [07:38:33]CommunicateWithHost err = 0 [07:38:33]CheckOFDResponse [07:38:33]1017 (14) - 77093643461234 [07:38:33]1041 (16) - 0000000000875060 [07:38:33]1040 (4) - 49132 [07:38:33]1012 (4) - 30.01.2024 01:40 [07:38:33]1206 (1) - 0 [07:38:33]OFD Sender: Remove packet 49132 [07:38:33]ProducePacketName [07:38:33]name=ofd_packets/00049132 [07:38:33]NVStorageDeleteData [07:38:33]Write to MH i2c: 01 00 00 E3 5F 42 [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: 01 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: 01 07 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: 01 07 00 E3 5F 00 00 00 00 00 F6 0C 4B [07:38:33]RasterBufferAndPrint [07:38:33]line [07:38:33]line [07:38:33]line [07:38:33]line [07:38:33]line [07:38:33]written 0, free lines is 3325 [07:38:33]MH_Cut [07:38:33]Write to MH i2c: D1 01 00 EA 5F 01 1B [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: D1 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: D1 01 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: D1 01 00 EA 5F 00 1A [07:38:33]Write to MH i2c: 01 00 00 EB 5F 4A [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]OFD Sender: No OFD packet to send [07:38:34]*** Cut start [07:38:34]*** Partial cut [07:38:34]*** CUTSNS_PIN = 1 [07:38:34]*** CUTSNS_PIN = 0 [07:38:34]*** Brake cut motor [07:38:34]Read from MH i2c: 01 [07:38:34]MH_I2C_Read... [07:38:34]*** Stop cut motor [07:38:34]*** Cut end [07:38:34]Read from MH i2c: 01 07 00 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: 01 07 00 EB 5F 00 00 00 00 00 FF 0F 5F [07:38:34]process_action close_receipt done [07:38:34]requested_data is exist [07:38:34]produce_requested_data [07:38:34]requested_item fm.sn is exist - process it [07:38:34]wFMCommunicate request_size=4 [07:38:34]MH_SAM_APDU [07:38:34]CAPDU: 80 11 00 00 [07:38:34]Write to MH i2c: E2 08 00 EC 5F 80 11 00 00 00 00 00 00 C5 [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:34]Read from MH i2c: E2 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: E2 17 00 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: E2 17 00 EC 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 12 [07:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:38:34]wFMCommunicate OK [07:38:34]requested_item fd.num is exist - process it [07:38:34]SAM_PROTO_GetFieldsCounters [07:38:34]wFMCommunicate request_size=4 [07:38:34]MH_SAM_APDU [07:38:34]CAPDU: 80 13 00 00 [07:38:34]Write to MH i2c: E2 08 00 ED 5F 80 13 00 00 00 00 00 00 C8 [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 62 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 62 00 ED 5F 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EC BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [07:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EC BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:38:35]wFMCommunicate OK [07:38:35]SAM_PROTO_GetFieldsCounters done [07:38:35]requested_item shift.num is exist - process it [07:38:35]requested_item shift.opened is exist - process it [07:38:35]req_shift_opened [07:38:35]FM_GetShiftState [07:38:35]SAM_PROTO_GetShiftState [07:38:35]wFMCommunicate request_size=4 [07:38:35]MH_SAM_APDU [07:38:35]CAPDU: 80 13 01 00 [07:38:35]Write to MH i2c: E2 08 00 EE 5F 80 13 01 00 00 00 00 00 CA [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 0E 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 0E 00 EE 5F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F2 [07:38:35]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [07:38:35]wFMCommunicate OK [07:38:35]SAM_PROTO_GetShiftState done [07:38:35]FM_GetShiftState done [07:38:35]req_shift_opened done [07:38:35]requested_item shift.open_date is exist - process it [07:38:35]req_shift_open_date [07:38:35]req_shift_open_date done [07:38:35]produce_requested_data done [07:38:35]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49132,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [07:38:35]process_action_free close_receipt [07:38:35]json_value_free [07:38:35]json_value_free done [07:38:35]process_json_proto returns [07:38:35]Send response to host [07:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49132,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [07:38:35]free response buf [07:38:35]execute_script done [07:38:35]execute_script returns [07:38:35]free content buf [07:38:35]Sock 9.Close socket [07:38:35]Sock 9.Thread stoped [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:47]accept exits with 7 [08:02:47]New connection [08:02:47]New thread 3066670436 created [08:02:47]Thread 3066813796 joined [08:02:47]Waiting for new connection... [08:02:47] Sock 7.Parse request [08:02:47]Sock 7.Check first char [08:02:47]Sock 7.First char is OK [08:02:47]request: POST /json_proto HTTP/1.0 [08:02:47]Method: POST [08:02:47]URL: /json_proto [08:02:47]Method is POST - this is cgi request [08:02:47]url: /json_proto [08:02:47]query_string will be loaded in cgi processing [08:02:47]execute_cgi json_proto POST (null) [08:02:47]execute_cgi path=json_proto method=POST [08:02:47]POST find Content-Length [08:02:47]Host: 172.17.56.67:8080 [08:02:47]Content-Length: 677 [08:02:47]Content-Type: application/json [08:02:47] [08:02:47]POST finish read [08:02:47]Found Content-Length = 677 [08:02:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:47]execute_script... [08:02:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:47]POST & json_proto [08:02:47]process_json_proto [08:02:47]json parsed OK: [08:02:47]protocol is kg_v1.0 [08:02:47]action value=close_receipt [08:02:47]process_action close_receipt [08:02:47]cmd_close_receipt [08:02:47]MH_GetDate [08:02:47]Write to MH i2c: F0 00 00 EF 5F 3D [08:02:47]Write i2c OK [08:02:47]MH_I2C_Read... [08:02:47]Read from MH i2c: F0 [08:02:47]MH_I2C_Read... [08:02:47]Read from MH i2c: F0 09 00 [08:02:47]MH_I2C_Read... [08:02:47]Read from MH i2c: F0 09 00 EF 5F 00 39 AD B8 65 26 5D 9E 65 CF [08:02:47]GetLastDocTimeStamp 1706600328 [08:02:47]current date 1706601785 [08:02:47]FM_GetShiftState [08:02:47]SAM_PROTO_GetShiftState [08:02:47]wFMCommunicate request_size=4 [08:02:47]MH_SAM_APDU [08:02:47]CAPDU: 80 13 01 00 [08:02:47]Write to MH i2c: E2 08 00 F0 5F 80 13 01 00 00 00 00 00 CC [08:02:47]Write i2c OK [08:02:47]MH_I2C_Read... [08:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:47]Read from MH i2c: E2 [08:02:47]MH_I2C_Read... [08:02:47]Read from MH i2c: E2 0E 00 [08:02:47]MH_I2C_Read... [08:02:47]Read from MH i2c: E2 0E 00 F0 5F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F4 [08:02:47]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:02:47]wFMCommunicate OK [08:02:47]SAM_PROTO_GetShiftState done [08:02:47]FM_GetShiftState done [08:02:47]opened in 1706572995 [08:02:47]opened+sec_in_day 1706659395 [08:02:47]quantity*price = 60058 [08:02:47]sum+1 = 60060 [08:02:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 9 30.01.2024 08:03 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49133 ФПД: 23809215734807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T080305&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49133&fm=23809215734807&tin=02508201610067®Number=0000000000092723&sum=60000 [08:02:48]StoreToDocumentArchive [08:02:48]shift 246 fd 49133 [08:02:48]save to /storage/0246/doc_00049133 [08:02:48]save last doc name /storage/0246/doc_00049133 to /storage/kkm_last_doc_name [08:02:48]save OK [08:02:48]Clear old archive folders... [08:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:48]tlvbuf is 011D8600 [08:02:48]SAM_PROTO_ClearQueue [08:02:48]wFMCommunicate request_size=4 [08:02:48]MH_SAM_APDU [08:02:48]CAPDU: 80 09 00 00 [08:02:48]Write to MH i2c: E2 08 00 FD 5F 80 09 00 00 00 00 00 00 CE [08:02:48]Write i2c OK [08:02:48]MH_I2C_Read... [08:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:48]Read from MH i2c: E2 [08:02:48]MH_I2C_Read... [08:02:48]Read from MH i2c: E2 03 00 [08:02:48]MH_I2C_Read... [08:02:48]Read from MH i2c: E2 03 00 FD 5F 00 90 00 D0 [08:02:48]RAPDU: 90 00 [08:02:48]wFMCommunicate OK [08:02:48]SAM_PROTO_ClearQueue done [08:02:48]KKMCreateOFDPacket [08:02:48]OFDProtocolAddRootSTLVToBuf [08:02:48]FM_MakeSignedData [08:02:48]FM_MakeSignedData [08:02:48]SAM_PROTO_SignData [08:02:48]wFMCommunicate request_size=4 [08:02:48]MH_SAM_APDU [08:02:48]CAPDU: 80 0D 01 02 [08:02:48]Write to MH i2c: E2 08 00 FE 5F 80 0D 01 02 00 00 00 00 D6 [08:02:48]Write i2c OK [08:02:48]MH_I2C_Read... [08:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:48]Read from MH i2c: E2 [08:02:48]MH_I2C_Read... [08:02:48]Read from MH i2c: E2 03 00 [08:02:48]MH_I2C_Read... [08:02:48]Read from MH i2c: E2 03 00 FE 5F 00 90 00 D1 [08:02:48]RAPDU: 90 00 [08:02:48]wFMCommunicate OK [08:02:48]wFMCommunicate request_size=255 [08:02:48]MH_SAM_APDU [08:02:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 39 AD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BF 00 00 35 04 06 00 15 [08:02:48]Write to MH i2c: E2 02 01 FF 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 39 AD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BF 00 00 35 04 06 00 15 00 00 7E [08:02:48]Write i2c OK [08:02:48]MH_I2C_Read... [08:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:49]Read from MH i2c: E2 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 03 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 03 00 FF 5F 00 90 00 D2 [08:02:49]RAPDU: 90 00 [08:02:49]wFMCommunicate OK [08:02:49]wFMCommunicate request_size=10 [08:02:49]MH_SAM_APDU [08:02:49]CAPDU: 80 0D 02 02 05 A7 83 D8 A4 17 [08:02:49]Write to MH i2c: E2 0D 00 00 60 80 0D 02 02 05 00 A7 83 D8 A4 17 00 00 A1 [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:49]Read from MH i2c: E2 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 03 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 03 00 00 60 00 90 00 D4 [08:02:49]RAPDU: 90 00 [08:02:49]wFMCommunicate OK [08:02:49]wFMCommunicate request_size=4 [08:02:49]MH_SAM_APDU [08:02:49]CAPDU: 80 0D 03 02 [08:02:49]Write to MH i2c: E2 08 00 01 60 80 0D 03 02 00 00 00 00 DC [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:49]Read from MH i2c: E2 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 0B 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 0B 00 01 60 00 6C BA 06 01 32 67 3A 31 90 00 0E [08:02:49]RAPDU: 6C BA 06 01 32 67 3A 31 90 00 [08:02:49]wFMCommunicate OK [08:02:49]SAM_PROTO_SignData done [08:02:49]FM_MakeSignedData done [08:02:49]CreateOFDProtocolMessage [08:02:49]wFMCommunicate request_size=4 [08:02:49]MH_SAM_APDU [08:02:49]CAPDU: 80 11 00 00 [08:02:49]Write to MH i2c: E2 08 00 02 60 80 11 00 00 00 00 00 00 DC [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:49]Read from MH i2c: E2 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 17 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 17 00 02 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 29 [08:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:02:49]wFMCommunicate OK [08:02:49]CreateOFDProtocolMessage done [08:02:49]OFDSenderStorePacket 49133 [08:02:49]StoreOFDPacket docnum=49133 [08:02:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 19 6D 07 01 B5 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 39 AD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BF 00 00 35 04 06 00 15 A7 83 D8 A4 17 6C BA 06 01 32 67 3A 31 [08:02:49]CheckFolder [08:02:49]dirname=/storage/ofd_packets [08:02:49]CheckFolder done [08:02:49]ProducePacketName [08:02:49]name=ofd_packets/00049133 [08:02:49]NVStorageSaveData ofd_packets/00049133 [08:02:49]File name is /storage/ofd_packets/00049133 [08:02:49]Write 301 bytes [08:02:49]NVStorageSaveData done [08:02:49]OFDSenderStorePacket done [08:02:49]KKMCreateOFDPacket done [08:02:49]NVStorageSaveData kkm_last_timestamp [08:02:49]File name is /storage/kkm_last_timestamp [08:02:49]Write 4 bytes [08:02:49]NVStorageSaveData done [08:02:49]ExternCall_PrintAddStr [08:02:49]wPrintStart [08:02:49]Write to MH i2c: 01 00 00 03 60 63 [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: 01 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: 01 07 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: 01 07 00 03 60 00 00 00 00 00 FF 0F 78 [08:02:49]RasterBufferAndPrint [08:02:49]line Счет N : (1)216233 [08:02:49]line ИНН: 02508201610067 [08:02:49]line Контрольно-Кассовый Чек [08:02:49]line ПРОДАЖА [08:02:49]line ТРК (МРК, ГНК) : 22 [08:02:49]line Товар: 2710124130 [08:02:49]line Аи-92-К-5 [08:02:49]line 9.960 * 60.30 [08:02:49]line = 600.59 [08:02:49]line НДС 12% НСП 1% [08:02:49]line > о реализуемом товаре [08:02:49]line ОКРУГЛЕНИЕ: -0.59 [08:02:49]line ИТОГО: 600.00 [08:02:49]line Внесено: 600.00 [08:02:49]line СДАЧА: 0.00 [08:02:49]line НСП 1% : 5.31 [08:02:49]line НДС 12% : 63.78 [08:02:49]line Наличными: 600.00 [08:02:49]line Безнал.: 0.00 [08:02:49]line Место: АЗС № 102 "Партнер Нефть" [08:02:49]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:02:49]line СНО: Общий режим [08:02:49]line Чек 9 30.01.2024 08:03 [08:02:49]line Смена: 246 ФФД: 1.0 [08:02:49]line ЗНМ: 0300000040 [08:02:49]line РНМ: 0000000000092723 [08:02:49]line Версия ККМ: 001 [08:02:49]line ФМ: 0000000000875060 [08:02:49]line ФД: 49133 [08:02:49]line ФПД: 23809215734807 [08:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T080305&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49133&fm=23809215734807&tin=02508201610067®Number=0000000000092723&sum=60000 [08:02:49]OFD Sender: Processing packet 49133 [packets to send 12, broken 11] [08:02:49]ProducePacketName [08:02:49]name=ofd_packets/00049133 [08:02:49]OFD Sender: To server: pG, [08:02:49]CommunicateWithHost lk.salyk.kg:30040 [08:02:49]ConnectInit lk.salyk.kg [08:02:49]written 0, free lines is 4095 [08:02:49]Connected sock=10 [08:02: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 36 30 0F 01 00 00 19 6D 07 01 B5 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 39 AD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BF 00 00 35 04 06 00 15 A7 83 D8 A4 17 6C BA 06 01 32 67 3A 31 [08:02: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 36 30 4F 00 00 00 9F A6 47 00 20 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BF 00 00 F4 03 04 00 2F 59 B8 65 B6 04 01 00 00 CF 63 6D 74 BA 72 28 72 [08:02:49]CommunicateWithHost err = 0 [08:02:49]CheckOFDResponse [08:02:49]1017 (14) - 77093643461234 [08:02:49]1041 (16) - 0000000000875060 [08:02:49]1040 (4) - 49133 [08:02:49]1012 (4) - 30.01.2024 02:04 [08:02:49]1206 (1) - 0 [08:02:49]OFD Sender: Remove packet 49133 [08:02:49]ProducePacketName [08:02:49]name=ofd_packets/00049133 [08:02:49]NVStorageDeleteData [08:02:50]Write to MH i2c: 01 00 00 2E 60 8E [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: 01 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: 01 07 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: 01 07 00 2E 60 00 00 00 00 00 EC 0C 8D [08:02:50]RasterBufferAndPrint [08:02:50]line [08:02:50]line [08:02:50]line [08:02:50]line [08:02:50]line [08:02:50]written 0, free lines is 3314 [08:02:50]MH_Cut [08:02:50]Write to MH i2c: D1 01 00 35 60 01 67 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: D1 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: D1 01 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: D1 01 00 35 60 00 66 [08:02:50]Write to MH i2c: 01 00 00 36 60 96 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]OFD Sender: No OFD packet to send [08:02:50]*** Cut start [08:02:50]*** Partial cut [08:02:50]*** CUTSNS_PIN = 1 [08:02:50]*** CUTSNS_PIN = 0 [08:02:50]*** Brake cut motor [08:02:51]Read from MH i2c: 01 [08:02:51]MH_I2C_Read... [08:02:51]*** Stop cut motor [08:02:51]*** Cut end [08:02:51]Read from MH i2c: 01 07 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 36 60 00 00 00 00 00 FF 0F AB [08:02:51]process_action close_receipt done [08:02:51]requested_data is exist [08:02:51]produce_requested_data [08:02:51]requested_item fm.sn is exist - process it [08:02:51]wFMCommunicate request_size=4 [08:02:51]MH_SAM_APDU [08:02:51]CAPDU: 80 11 00 00 [08:02:51]Write to MH i2c: E2 08 00 37 60 80 11 00 00 00 00 00 00 11 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 17 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 17 00 37 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5E [08:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:02:51]wFMCommunicate OK [08:02:51]requested_item fd.num is exist - process it [08:02:51]SAM_PROTO_GetFieldsCounters [08:02:51]wFMCommunicate request_size=4 [08:02:51]MH_SAM_APDU [08:02:51]CAPDU: 80 13 00 00 [08:02:51]Write to MH i2c: E2 08 00 38 60 80 13 00 00 00 00 00 00 14 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 62 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 62 00 38 60 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 ED BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [08:02: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 ED BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:51]wFMCommunicate OK [08:02:51]SAM_PROTO_GetFieldsCounters done [08:02:51]requested_item shift.num is exist - process it [08:02:51]requested_item shift.opened is exist - process it [08:02:51]req_shift_opened [08:02:51]FM_GetShiftState [08:02:51]SAM_PROTO_GetShiftState [08:02:51]wFMCommunicate request_size=4 [08:02:51]MH_SAM_APDU [08:02:51]CAPDU: 80 13 01 00 [08:02:51]Write to MH i2c: E2 08 00 39 60 80 13 01 00 00 00 00 00 16 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 0E 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 0E 00 39 60 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3E [08:02:51]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:02:51]wFMCommunicate OK [08:02:51]SAM_PROTO_GetShiftState done [08:02:51]FM_GetShiftState done [08:02:51]req_shift_opened done [08:02:51]requested_item shift.open_date is exist - process it [08:02:51]req_shift_open_date [08:02:51]req_shift_open_date done [08:02:51]produce_requested_data done [08:02:51]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49133,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [08:02:51]process_action_free close_receipt [08:02:51]json_value_free [08:02:51]json_value_free done [08:02:51]process_json_proto returns [08:02:51]Send response to host [08:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49133,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [08:02:51]free response buf [08:02:51]execute_script done [08:02:51]execute_script returns [08:02:51]free content buf [08:02:51]Sock 7.Close socket [08:02:51]Sock 7.Thread stoped [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:03]accept exits with 9 [08:45:03]New connection [08:45:03]New thread 3066813796 created [08:45:03]Thread 3066670436 joined [08:45:03]Waiting for new connection... [08:45:03] Sock 9.Parse request [08:45:03]Sock 9.Check first char [08:45:03]Sock 9.First char is OK [08:45:03]request: POST /json_proto HTTP/1.0 [08:45:03]Method: POST [08:45:03]URL: /json_proto [08:45:03]Method is POST - this is cgi request [08:45:03]url: /json_proto [08:45:03]query_string will be loaded in cgi processing [08:45:03]execute_cgi json_proto POST (null) [08:45:03]execute_cgi path=json_proto method=POST [08:45:03]POST find Content-Length [08:45:03]Host: 172.17.56.67:8080 [08:45:03]Content-Length: 677 [08:45:03]Content-Type: application/json [08:45:03] [08:45:03]POST finish read [08:45:03]Found Content-Length = 677 [08:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [08:45:03]execute_script... [08:45:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [08:45:03]POST & json_proto [08:45:03]process_json_proto [08:45:03]json parsed OK: [08:45:03]protocol is kg_v1.0 [08:45:03]action value=close_receipt [08:45:03]process_action close_receipt [08:45:03]cmd_close_receipt [08:45:03]MH_GetDate [08:45:03]Write to MH i2c: F0 00 00 3A 60 89 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: F0 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: F0 09 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: F0 09 00 3A 60 00 21 B7 B8 65 26 5D 9E 65 0D [08:45:03]GetLastDocTimeStamp 1706601785 [08:45:03]current date 1706604321 [08:45:03]FM_GetShiftState [08:45:03]SAM_PROTO_GetShiftState [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 13 01 00 [08:45:03]Write to MH i2c: E2 08 00 3B 60 80 13 01 00 00 00 00 00 18 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 0E 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 0E 00 3B 60 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 40 [08:45:03]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:45:03]wFMCommunicate OK [08:45:03]SAM_PROTO_GetShiftState done [08:45:03]FM_GetShiftState done [08:45:03]opened in 1706572995 [08:45:03]opened+sec_in_day 1706659395 [08:45:03]quantity*price = 30029 [08:45:03]sum+1 = 30030 [08:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 10 30.01.2024 08:45 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49134 ФПД: 219284074639262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T084521&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49134&fm=219284074639262&tin=02508201610067®Number=0000000000092723&sum=30000 [08:45:04]StoreToDocumentArchive [08:45:04]shift 246 fd 49134 [08:45:04]save to /storage/0246/doc_00049134 [08:45:04]save last doc name /storage/0246/doc_00049134 to /storage/kkm_last_doc_name [08:45:04]save OK [08:45:04]Clear old archive folders... [08:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:04]tlvbuf is 011DAAC0 [08:45:04]SAM_PROTO_ClearQueue [08:45:04]wFMCommunicate request_size=4 [08:45:04]MH_SAM_APDU [08:45:04]CAPDU: 80 09 00 00 [08:45:04]Write to MH i2c: E2 08 00 48 60 80 09 00 00 00 00 00 00 1A [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:04]Read from MH i2c: E2 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 03 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 03 00 48 60 00 90 00 1C [08:45:04]RAPDU: 90 00 [08:45:04]wFMCommunicate OK [08:45:04]SAM_PROTO_ClearQueue done [08:45:04]KKMCreateOFDPacket [08:45:04]OFDProtocolAddRootSTLVToBuf [08:45:04]FM_MakeSignedData [08:45:04]FM_MakeSignedData [08:45:04]SAM_PROTO_SignData [08:45:04]wFMCommunicate request_size=4 [08:45:04]MH_SAM_APDU [08:45:04]CAPDU: 80 0D 01 02 [08:45:04]Write to MH i2c: E2 08 00 49 60 80 0D 01 02 00 00 00 00 22 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:04]Read from MH i2c: E2 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 03 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 03 00 49 60 00 90 00 1D [08:45:04]RAPDU: 90 00 [08:45:04]wFMCommunicate OK [08:45:04]wFMCommunicate request_size=255 [08:45:04]MH_SAM_APDU [08:45:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 21 B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BF 00 00 35 04 06 00 C7 [08:45:04]Write to MH i2c: E2 02 01 4A 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 21 B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BF 00 00 35 04 06 00 C7 00 00 51 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:05]Read from MH i2c: E2 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 03 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 03 00 4A 60 00 90 00 1E [08:45:05]RAPDU: 90 00 [08:45:05]wFMCommunicate OK [08:45:05]wFMCommunicate request_size=10 [08:45:05]MH_SAM_APDU [08:45:05]CAPDU: 80 0D 02 02 05 70 0D 5F AF 9E [08:45:05]Write to MH i2c: E2 0D 00 4B 60 80 0D 02 02 05 00 70 0D 5F AF 9E 00 00 58 [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:05]Read from MH i2c: E2 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 03 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 03 00 4B 60 00 90 00 1F [08:45:05]RAPDU: 90 00 [08:45:05]wFMCommunicate OK [08:45:05]wFMCommunicate request_size=4 [08:45:05]MH_SAM_APDU [08:45:05]CAPDU: 80 0D 03 02 [08:45:05]Write to MH i2c: E2 08 00 4C 60 80 0D 03 02 00 00 00 00 27 [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:05]Read from MH i2c: E2 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 0B 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 0B 00 4C 60 00 AA 6D 52 46 55 D0 E2 BD 90 00 9B [08:45:05]RAPDU: AA 6D 52 46 55 D0 E2 BD 90 00 [08:45:05]wFMCommunicate OK [08:45:05]SAM_PROTO_SignData done [08:45:05]FM_MakeSignedData done [08:45:05]CreateOFDProtocolMessage [08:45:05]wFMCommunicate request_size=4 [08:45:05]MH_SAM_APDU [08:45:05]CAPDU: 80 11 00 00 [08:45:05]Write to MH i2c: E2 08 00 4D 60 80 11 00 00 00 00 00 00 27 [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:05]Read from MH i2c: E2 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 17 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 17 00 4D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 74 [08:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:45:05]wFMCommunicate OK [08:45:05]CreateOFDProtocolMessage done [08:45:05]OFDSenderStorePacket 49134 [08:45:05]StoreOFDPacket docnum=49134 [08:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0A 65 07 01 8A 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 21 B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BF 00 00 35 04 06 00 C7 70 0D 5F AF 9E AA 6D 52 46 55 D0 E2 BD [08:45:05]CheckFolder [08:45:05]dirname=/storage/ofd_packets [08:45:05]CheckFolder done [08:45:05]ProducePacketName [08:45:05]name=ofd_packets/00049134 [08:45:05]NVStorageSaveData ofd_packets/00049134 [08:45:05]File name is /storage/ofd_packets/00049134 [08:45:05]Write 301 bytes [08:45:05]NVStorageSaveData done [08:45:05]OFDSenderStorePacket done [08:45:05]KKMCreateOFDPacket done [08:45:05]NVStorageSaveData kkm_last_timestamp [08:45:05]File name is /storage/kkm_last_timestamp [08:45:05]Write 4 bytes [08:45:05]NVStorageSaveData done [08:45:05]ExternCall_PrintAddStr [08:45:05]wPrintStart [08:45:05]Write to MH i2c: 01 00 00 4E 60 AE [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: 01 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: 01 07 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: 01 07 00 4E 60 00 00 00 00 00 FF 0F C3 [08:45:05]RasterBufferAndPrint [08:45:05]line Счет N : (1)216235 [08:45:05]line ИНН: 02508201610067 [08:45:05]line Контрольно-Кассовый Чек [08:45:05]line ПРОДАЖА [08:45:05]line ТРК (МРК, ГНК) : 22 [08:45:05]line Товар: 2710124130 [08:45:05]line Аи-92-К-5 [08:45:05]line 4.980 * 60.30 [08:45:05]line = 300.29 [08:45:05]line НДС 12% НСП 1% [08:45:05]line > о реализуемом товаре [08:45:05]line ОКРУГЛЕНИЕ: -0.29 [08:45:05]line ИТОГО: 300.00 [08:45:05]line Внесено: 300.00 [08:45:05]line СДАЧА: 0.00 [08:45:05]line НСП 1% : 2.66 [08:45:05]line НДС 12% : 31.89 [08:45:05]line Наличными: 300.00 [08:45:05]line Безнал.: 0.00 [08:45:05]line Место: АЗС № 102 "Партнер Нефть" [08:45:05]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:45:05]line СНО: Общий режим [08:45:05]line Чек 10 30.01.2024 08:45 [08:45:05]line Смена: 246 ФФД: 1.0 [08:45:05]line ЗНМ: 0300000040 [08:45:05]line РНМ: 0000000000092723 [08:45:05]line Версия ККМ: 001 [08:45:05]line ФМ: 0000000000875060 [08:45:05]line ФД: 49134 [08:45:05]line ФПД: 219284074639262 [08:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T084521&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49134&fm=219284074639262&tin=02508201610067®Number=0000000000092723&sum=30000 [08:45:05]OFD Sender: Processing packet 49134 [packets to send 12, broken 11] [08:45:05]ProducePacketName [08:45:05]name=ofd_packets/00049134 [08:45:05]OFD Sender: To server: pG, [08:45:05]CommunicateWithHost lk.salyk.kg:30040 [08:45:05]ConnectInit lk.salyk.kg [08:45:05]written 0, free lines is 4095 [08:45:05]Connected sock=7 [08:45: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 36 30 0F 01 00 00 0A 65 07 01 8A 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 21 B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BF 00 00 35 04 06 00 C7 70 0D 5F AF 9E AA 6D 52 46 55 D0 E2 BD [08:45: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 36 30 4F 00 00 00 6E 40 47 00 30 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BF 00 00 F4 03 04 00 17 63 B8 65 B6 04 01 00 00 EE 7D 5F 2D B1 B0 14 02 [08:45:05]CommunicateWithHost err = 0 [08:45:05]CheckOFDResponse [08:45:05]1017 (14) - 77093643461234 [08:45:05]1041 (16) - 0000000000875060 [08:45:05]1040 (4) - 49134 [08:45:05]1012 (4) - 30.01.2024 02:46 [08:45:05]1206 (1) - 0 [08:45:05]OFD Sender: Remove packet 49134 [08:45:05]ProducePacketName [08:45:05]name=ofd_packets/00049134 [08:45:05]NVStorageDeleteData [08:45:06]Write to MH i2c: 01 00 00 79 60 D9 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: 01 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: 01 07 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: 01 07 00 79 60 00 00 00 00 00 F0 0C DC [08:45:06]RasterBufferAndPrint [08:45:06]line [08:45:06]line [08:45:06]line [08:45:06]line [08:45:06]line [08:45:06]written 0, free lines is 3319 [08:45:06]MH_Cut [08:45:06]Write to MH i2c: D1 01 00 80 60 01 B2 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: D1 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: D1 01 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: D1 01 00 80 60 00 B1 [08:45:06]Write to MH i2c: 01 00 00 81 60 E1 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]OFD Sender: No OFD packet to send [08:45:06]*** Cut start [08:45:06]*** Partial cut [08:45:06]*** CUTSNS_PIN = 1 [08:45:06]*** CUTSNS_PIN = 0 [08:45:06]*** Brake cut motor [08:45:07]Read from MH i2c: 01 [08:45:07]MH_I2C_Read... [08:45:07]*** Stop cut motor [08:45:07]*** Cut end [08:45:07]Read from MH i2c: 01 07 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: 01 07 00 81 60 00 00 00 00 00 FF 0F F6 [08:45:07]process_action close_receipt done [08:45:07]requested_data is exist [08:45:07]produce_requested_data [08:45:07]requested_item fm.sn is exist - process it [08:45:07]wFMCommunicate request_size=4 [08:45:07]MH_SAM_APDU [08:45:07]CAPDU: 80 11 00 00 [08:45:07]Write to MH i2c: E2 08 00 82 60 80 11 00 00 00 00 00 00 5C [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 17 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 17 00 82 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A9 [08:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:45:07]wFMCommunicate OK [08:45:07]requested_item fd.num is exist - process it [08:45:07]SAM_PROTO_GetFieldsCounters [08:45:07]wFMCommunicate request_size=4 [08:45:07]MH_SAM_APDU [08:45:07]CAPDU: 80 13 00 00 [08:45:07]Write to MH i2c: E2 08 00 83 60 80 13 00 00 00 00 00 00 5F [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 62 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 62 00 83 60 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EE BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [08:45: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EE BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:07]wFMCommunicate OK [08:45:07]SAM_PROTO_GetFieldsCounters done [08:45:07]requested_item shift.num is exist - process it [08:45:07]requested_item shift.opened is exist - process it [08:45:07]req_shift_opened [08:45:07]FM_GetShiftState [08:45:07]SAM_PROTO_GetShiftState [08:45:07]wFMCommunicate request_size=4 [08:45:07]MH_SAM_APDU [08:45:07]CAPDU: 80 13 01 00 [08:45:07]Write to MH i2c: E2 08 00 84 60 80 13 01 00 00 00 00 00 61 [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:07]Read from MH i2c: E2 0E 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 0E 00 84 60 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 89 [08:45:07]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:45:07]wFMCommunicate OK [08:45:07]SAM_PROTO_GetShiftState done [08:45:07]FM_GetShiftState done [08:45:07]req_shift_opened done [08:45:07]requested_item shift.open_date is exist - process it [08:45:07]req_shift_open_date [08:45:07]req_shift_open_date done [08:45:07]produce_requested_data done [08:45:07]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49134,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [08:45:07]process_action_free close_receipt [08:45:07]json_value_free [08:45:07]json_value_free done [08:45:07]process_json_proto returns [08:45:07]Send response to host [08:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49134,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [08:45:07]free response buf [08:45:07]execute_script done [08:45:07]execute_script returns [08:45:07]free content buf [08:45:07]Sock 9.Close socket [08:45:07]Sock 9.Thread stoped [08:45:07]accept exits with 10 [08:45:07]New connection [08:45:07]New thread 3066670436 created [08:45:07]Thread 3066813796 joined [08:45:07]Waiting for new connection... [08:45:07] Sock 10.Parse request [08:45:07]Sock 10.Check first char [08:45:07]Sock 10.First char is OK [08:45:07]request: POST /json_proto HTTP/1.0 [08:45:07]Method: POST [08:45:07]URL: /json_proto [08:45:07]Method is POST - this is cgi request [08:45:07]url: /json_proto [08:45:07]query_string will be loaded in cgi processing [08:45:07]execute_cgi json_proto POST (null) [08:45:07]execute_cgi path=json_proto method=POST [08:45:07]POST find Content-Length [08:45:07]Host: 172.17.56.67:8080 [08:45:07]Content-Length: 677 [08:45:07]Content-Type: application/json [08:45:07] [08:45:07]POST finish read [08:45:07]Found Content-Length = 677 [08:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:07]execute_script... [08:45:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:07]POST & json_proto [08:45:07]process_json_proto [08:45:07]json parsed OK: [08:45:07]protocol is kg_v1.0 [08:45:07]action value=close_receipt [08:45:07]process_action close_receipt [08:45:07]cmd_close_receipt [08:45:07]MH_GetDate [08:45:07]Write to MH i2c: F0 00 00 85 60 D4 [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: F0 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: F0 09 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: F0 09 00 85 60 00 25 B7 B8 65 26 5D 9E 65 5C [08:45:07]GetLastDocTimeStamp 1706604321 [08:45:07]current date 1706604325 [08:45:07]FM_GetShiftState [08:45:07]SAM_PROTO_GetShiftState [08:45:07]wFMCommunicate request_size=4 [08:45:07]MH_SAM_APDU [08:45:07]CAPDU: 80 13 01 00 [08:45:07]Write to MH i2c: E2 08 00 86 60 80 13 01 00 00 00 00 00 63 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 0E 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 0E 00 86 60 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8B [08:45:08]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:45:08]wFMCommunicate OK [08:45:08]SAM_PROTO_GetShiftState done [08:45:08]FM_GetShiftState done [08:45:08]opened in 1706572995 [08:45:08]opened+sec_in_day 1706659395 [08:45:08]quantity*price = 60058 [08:45:08]sum+1 = 60060 [08:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 11 30.01.2024 08:45 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49135 ФПД: 215021051109055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T084525&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49135&fm=215021051109055&tin=02508201610067®Number=0000000000092723&sum=60000 [08:45:08]StoreToDocumentArchive [08:45:08]shift 246 fd 49135 [08:45:08]save to /storage/0246/doc_00049135 [08:45:08]save last doc name /storage/0246/doc_00049135 to /storage/kkm_last_doc_name [08:45:08]save OK [08:45:08]Clear old archive folders... [08:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:08]tlvbuf is 011AD420 [08:45:08]SAM_PROTO_ClearQueue [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 09 00 00 [08:45:08]Write to MH i2c: E2 08 00 93 60 80 09 00 00 00 00 00 00 65 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 93 60 00 90 00 67 [08:45:08]RAPDU: 90 00 [08:45:08]wFMCommunicate OK [08:45:08]SAM_PROTO_ClearQueue done [08:45:08]KKMCreateOFDPacket [08:45:08]OFDProtocolAddRootSTLVToBuf [08:45:08]FM_MakeSignedData [08:45:08]FM_MakeSignedData [08:45:08]SAM_PROTO_SignData [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 0D 01 02 [08:45:08]Write to MH i2c: E2 08 00 94 60 80 0D 01 02 00 00 00 00 6D [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:09]Read from MH i2c: E2 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 03 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 03 00 94 60 00 90 00 68 [08:45:09]RAPDU: 90 00 [08:45:09]wFMCommunicate OK [08:45:09]wFMCommunicate request_size=255 [08:45:09]MH_SAM_APDU [08:45:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 25 B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BF 00 00 35 04 06 00 C3 [08:45:09]Write to MH i2c: E2 02 01 95 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 25 B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BF 00 00 35 04 06 00 C3 00 00 BD [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:09]Read from MH i2c: E2 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 03 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 03 00 95 60 00 90 00 69 [08:45:09]RAPDU: 90 00 [08:45:09]wFMCommunicate OK [08:45:09]wFMCommunicate request_size=10 [08:45:09]MH_SAM_APDU [08:45:09]CAPDU: 80 0D 02 02 05 8F 7D 5E DE BF [08:45:09]Write to MH i2c: E2 0D 00 96 60 80 0D 02 02 05 00 8F 7D 5E DE BF 00 00 81 [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:09]Read from MH i2c: E2 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 03 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 03 00 96 60 00 90 00 6A [08:45:09]RAPDU: 90 00 [08:45:09]wFMCommunicate OK [08:45:09]wFMCommunicate request_size=4 [08:45:09]MH_SAM_APDU [08:45:09]CAPDU: 80 0D 03 02 [08:45:09]Write to MH i2c: E2 08 00 97 60 80 0D 03 02 00 00 00 00 72 [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:09]Read from MH i2c: E2 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 0B 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 0B 00 97 60 00 2F 98 50 0E 34 DC AF 14 90 00 6B [08:45:09]RAPDU: 2F 98 50 0E 34 DC AF 14 90 00 [08:45:09]wFMCommunicate OK [08:45:09]SAM_PROTO_SignData done [08:45:09]FM_MakeSignedData done [08:45:09]CreateOFDProtocolMessage [08:45:09]wFMCommunicate request_size=4 [08:45:09]MH_SAM_APDU [08:45:09]CAPDU: 80 11 00 00 [08:45:09]Write to MH i2c: E2 08 00 98 60 80 11 00 00 00 00 00 00 72 [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:10]Read from MH i2c: E2 [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: E2 17 00 [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: E2 17 00 98 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BF [08:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:45:10]wFMCommunicate OK [08:45:10]CreateOFDProtocolMessage done [08:45:10]OFDSenderStorePacket 49135 [08:45:10]StoreOFDPacket docnum=49135 [08:45:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 2B AA 07 01 BB FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 25 B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BF 00 00 35 04 06 00 C3 8F 7D 5E DE BF 2F 98 50 0E 34 DC AF 14 [08:45:10]CheckFolder [08:45:10]dirname=/storage/ofd_packets [08:45:10]CheckFolder done [08:45:10]ProducePacketName [08:45:10]name=ofd_packets/00049135 [08:45:10]NVStorageSaveData ofd_packets/00049135 [08:45:10]File name is /storage/ofd_packets/00049135 [08:45:10]Write 301 bytes [08:45:10]NVStorageSaveData done [08:45:10]OFDSenderStorePacket done [08:45:10]KKMCreateOFDPacket done [08:45:10]NVStorageSaveData kkm_last_timestamp [08:45:10]File name is /storage/kkm_last_timestamp [08:45:10]Write 4 bytes [08:45:10]NVStorageSaveData done [08:45:10]ExternCall_PrintAddStr [08:45:10]wPrintStart [08:45:10]Write to MH i2c: 01 00 00 99 60 F9 [08:45:10]Write i2c OK [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: 01 [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: 01 07 00 [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: 01 07 00 99 60 00 00 00 00 00 FF 0F 0E [08:45:10]RasterBufferAndPrint [08:45:10]line Счет N : (1)216234 [08:45:10]line ИНН: 02508201610067 [08:45:10]line Контрольно-Кассовый Чек [08:45:10]line ПРОДАЖА [08:45:10]line ТРК (МРК, ГНК) : 12 [08:45:10]line Товар: 2710124130 [08:45:10]line Аи-92-К-5 [08:45:10]line 9.960 * 60.30 [08:45:10]line = 600.59 [08:45:10]line НДС 12% НСП 1% [08:45:10]line > о реализуемом товаре [08:45:10]line ОКРУГЛЕНИЕ: -0.59 [08:45:10]line ИТОГО: 600.00 [08:45:10]line Внесено: 600.00 [08:45:10]line СДАЧА: 0.00 [08:45:10]line НСП 1% : 5.31 [08:45:10]line НДС 12% : 63.78 [08:45:10]line Наличными: 600.00 [08:45:10]line Безнал.: 0.00 [08:45:10]line Место: АЗС № 102 "Партнер Нефть" [08:45:10]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:45:10]line СНО: Общий режим [08:45:10]line Чек 11 30.01.2024 08:45 [08:45:10]line Смена: 246 ФФД: 1.0 [08:45:10]line ЗНМ: 0300000040 [08:45:10]line РНМ: 0000000000092723 [08:45:10]line Версия ККМ: 001 [08:45:10]line ФМ: 0000000000875060 [08:45:10]line ФД: 49135 [08:45:10]line ФПД: 215021051109055 [08:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T084525&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49135&fm=215021051109055&tin=02508201610067®Number=0000000000092723&sum=60000 [08:45:10]OFD Sender: Processing packet 49135 [packets to send 12, broken 11] [08:45:10]ProducePacketName [08:45:10]name=ofd_packets/00049135 [08:45:10]OFD Sender: To server: pG, [08:45:10]CommunicateWithHost lk.salyk.kg:30040 [08:45:10]ConnectInit lk.salyk.kg [08:45:10]written 0, free lines is 4095 [08:45:10]Connected sock=9 [08:45: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 36 30 0F 01 00 00 2B AA 07 01 BB FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 25 B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BF 00 00 35 04 06 00 C3 8F 7D 5E DE BF 2F 98 50 0E 34 DC AF 14 [08:45: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 36 30 4F 00 00 00 AD 58 47 00 9F 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 36 30 10 04 04 00 EF BF 00 00 F4 03 04 00 1C 63 B8 65 B6 04 01 00 00 0E B7 FF 77 34 E2 AC 0E [08:45:10]CommunicateWithHost err = 0 [08:45:10]CheckOFDResponse [08:45:10]1017 (14) - 77093643461234 [08:45:10]1041 (16) - 0000000000875060 [08:45:10]1040 (4) - 49135 [08:45:10]1012 (4) - 30.01.2024 02:46 [08:45:10]1206 (1) - 0 [08:45:10]OFD Sender: Remove packet 49135 [08:45:10]ProducePacketName [08:45:10]name=ofd_packets/00049135 [08:45:10]NVStorageDeleteData [08:45:10]Write to MH i2c: 01 00 00 C4 60 24 [08:45:10]Write i2c OK [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: 01 [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: 01 07 00 [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: 01 07 00 C4 60 00 00 00 00 00 F5 0C 2C [08:45:10]RasterBufferAndPrint [08:45:10]line [08:45:10]line [08:45:10]line [08:45:10]line [08:45:10]line [08:45:10]written 0, free lines is 3332 [08:45:10]MH_Cut [08:45:10]Write to MH i2c: D1 01 00 CB 60 01 FD [08:45:10]Write i2c OK [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: D1 [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: D1 01 00 [08:45:10]MH_I2C_Read... [08:45:10]Read from MH i2c: D1 01 00 CB 60 00 FC [08:45:10]Write to MH i2c: 01 00 00 CC 60 2C [08:45:10]Write i2c OK [08:45:10]MH_I2C_Read... [08:45:11]OFD Sender: No OFD packet to send [08:45:11]*** Cut start [08:45:11]*** Partial cut [08:45:11]*** CUTSNS_PIN = 1 [08:45:11]*** CUTSNS_PIN = 0 [08:45:11]*** Brake cut motor [08:45:12]Read from MH i2c: 01 [08:45:12]MH_I2C_Read... [08:45:12]*** Stop cut motor [08:45:12]*** Cut end [08:45:12]Read from MH i2c: 01 07 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: 01 07 00 CC 60 00 00 00 00 00 FF 0F 41 [08:45:12]process_action close_receipt done [08:45:12]requested_data is exist [08:45:12]produce_requested_data [08:45:12]requested_item fm.sn is exist - process it [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 11 00 00 [08:45:12]Write to MH i2c: E2 08 00 CD 60 80 11 00 00 00 00 00 00 A7 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 17 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 17 00 CD 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F4 [08:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:45:12]wFMCommunicate OK [08:45:12]requested_item fd.num is exist - process it [08:45:12]SAM_PROTO_GetFieldsCounters [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 13 00 00 [08:45:12]Write to MH i2c: E2 08 00 CE 60 80 13 00 00 00 00 00 00 AA [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 62 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 62 00 CE 60 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EF BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [08:45: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EF BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:12]wFMCommunicate OK [08:45:12]SAM_PROTO_GetFieldsCounters done [08:45:12]requested_item shift.num is exist - process it [08:45:12]requested_item shift.opened is exist - process it [08:45:12]req_shift_opened [08:45:12]FM_GetShiftState [08:45:12]SAM_PROTO_GetShiftState [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 13 01 00 [08:45:12]Write to MH i2c: E2 08 00 CF 60 80 13 01 00 00 00 00 00 AC [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 0E 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 0E 00 CF 60 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D4 [08:45:12]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:45:12]wFMCommunicate OK [08:45:12]SAM_PROTO_GetShiftState done [08:45:12]FM_GetShiftState done [08:45:12]req_shift_opened done [08:45:12]requested_item shift.open_date is exist - process it [08:45:12]req_shift_open_date [08:45:12]req_shift_open_date done [08:45:12]produce_requested_data done [08:45:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49135,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [08:45:12]process_action_free close_receipt [08:45:12]json_value_free [08:45:12]json_value_free done [08:45:12]process_json_proto returns [08:45:12]Send response to host [08:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49135,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [08:45:12]free response buf [08:45:12]execute_script done [08:45:12]execute_script returns [08:45:12]free content buf [08:45:12]Sock 10.Close socket [08:45:12]Sock 10.Thread stoped [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:32]accept exits with 7 [08:46:32]New connection [08:46:32]New thread 3066813796 created [08:46:32]Thread 3066670436 joined [08:46:32]Waiting for new connection... [08:46:32] Sock 7.Parse request [08:46:32]Sock 7.Check first char [08:46:32]Sock 7.First char is OK [08:46:32]request: POST /json_proto HTTP/1.0 [08:46:32]Method: POST [08:46:32]URL: /json_proto [08:46:32]Method is POST - this is cgi request [08:46:32]url: /json_proto [08:46:32]query_string will be loaded in cgi processing [08:46:32]execute_cgi json_proto POST (null) [08:46:32]execute_cgi path=json_proto method=POST [08:46:32]POST find Content-Length [08:46:32]Host: 172.17.56.67:8080 [08:46:32]Content-Length: 677 [08:46:32]Content-Type: application/json [08:46:32] [08:46:32]POST finish read [08:46:32]Found Content-Length = 677 [08:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:32]execute_script... [08:46:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:32]POST & json_proto [08:46:32]process_json_proto [08:46:32]json parsed OK: [08:46:32]protocol is kg_v1.0 [08:46:32]action value=close_receipt [08:46:32]process_action close_receipt [08:46:32]cmd_close_receipt [08:46:32]MH_GetDate [08:46:32]Write to MH i2c: F0 00 00 D0 60 1F [08:46:32]Write i2c OK [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: F0 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: F0 09 00 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: F0 09 00 D0 60 00 7A B7 B8 65 26 5D 9E 65 FC [08:46:32]GetLastDocTimeStamp 1706604325 [08:46:32]current date 1706604410 [08:46:32]FM_GetShiftState [08:46:32]SAM_PROTO_GetShiftState [08:46:32]wFMCommunicate request_size=4 [08:46:32]MH_SAM_APDU [08:46:32]CAPDU: 80 13 01 00 [08:46:32]Write to MH i2c: E2 08 00 D1 60 80 13 01 00 00 00 00 00 AE [08:46:32]Write i2c OK [08:46:32]MH_I2C_Read... [08:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:32]Read from MH i2c: E2 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: E2 0E 00 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: E2 0E 00 D1 60 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D6 [08:46:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:46:32]wFMCommunicate OK [08:46:32]SAM_PROTO_GetShiftState done [08:46:32]FM_GetShiftState done [08:46:32]opened in 1706572995 [08:46:32]opened+sec_in_day 1706659395 [08:46:32]quantity*price = 40039 [08:46:32]sum+1 = 40040 [08:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 12 30.01.2024 08:46 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49136 ФПД: 157565067674461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T084650&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49136&fm=157565067674461&tin=02508201610067®Number=0000000000092723&sum=40000 [08:46:33]StoreToDocumentArchive [08:46:33]shift 246 fd 49136 [08:46:33]save to /storage/0246/doc_00049136 [08:46:33]save last doc name /storage/0246/doc_00049136 to /storage/kkm_last_doc_name [08:46:33]save OK [08:46:33]Clear old archive folders... [08:46:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:33]tlvbuf is 011DD560 [08:46:33]SAM_PROTO_ClearQueue [08:46:33]wFMCommunicate request_size=4 [08:46:33]MH_SAM_APDU [08:46:33]CAPDU: 80 09 00 00 [08:46:33]Write to MH i2c: E2 08 00 DE 60 80 09 00 00 00 00 00 00 B0 [08:46:33]Write i2c OK [08:46:33]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 03 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 03 00 DE 60 00 90 00 B2 [08:46:34]RAPDU: 90 00 [08:46:34]wFMCommunicate OK [08:46:34]SAM_PROTO_ClearQueue done [08:46:34]KKMCreateOFDPacket [08:46:34]OFDProtocolAddRootSTLVToBuf [08:46:34]FM_MakeSignedData [08:46:34]FM_MakeSignedData [08:46:34]SAM_PROTO_SignData [08:46:34]wFMCommunicate request_size=4 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 0D 01 02 [08:46:34]Write to MH i2c: E2 08 00 DF 60 80 0D 01 02 00 00 00 00 B8 [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 03 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 03 00 DF 60 00 90 00 B3 [08:46:34]RAPDU: 90 00 [08:46:34]wFMCommunicate OK [08:46:34]wFMCommunicate request_size=255 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 7A B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BF 00 00 35 04 06 00 8F [08:46:34]Write to MH i2c: E2 02 01 E0 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 7A B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BF 00 00 35 04 06 00 8F 00 00 C0 [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 03 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 03 00 E0 60 00 90 00 B4 [08:46:34]RAPDU: 90 00 [08:46:34]wFMCommunicate OK [08:46:34]wFMCommunicate request_size=10 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 0D 02 02 05 4D F9 E3 43 5D [08:46:34]Write to MH i2c: E2 0D 00 E1 60 80 0D 02 02 05 00 4D F9 E3 43 5D 00 00 8E [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 03 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 03 00 E1 60 00 90 00 B5 [08:46:34]RAPDU: 90 00 [08:46:34]wFMCommunicate OK [08:46:34]wFMCommunicate request_size=4 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 0D 03 02 [08:46:34]Write to MH i2c: E2 08 00 E2 60 80 0D 03 02 00 00 00 00 BD [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 0B 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 0B 00 E2 60 00 AB 3A C7 22 6A F1 51 91 90 00 C9 [08:46:34]RAPDU: AB 3A C7 22 6A F1 51 91 90 00 [08:46:34]wFMCommunicate OK [08:46:34]SAM_PROTO_SignData done [08:46:34]FM_MakeSignedData done [08:46:34]CreateOFDProtocolMessage [08:46:34]wFMCommunicate request_size=4 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 11 00 00 [08:46:34]Write to MH i2c: E2 08 00 E3 60 80 11 00 00 00 00 00 00 BD [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 17 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 17 00 E3 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0A [08:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:46:34]wFMCommunicate OK [08:46:34]CreateOFDProtocolMessage done [08:46:34]OFDSenderStorePacket 49136 [08:46:34]StoreOFDPacket docnum=49136 [08:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 47 A6 07 01 BF 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 7A B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BF 00 00 35 04 06 00 8F 4D F9 E3 43 5D AB 3A C7 22 6A F1 51 91 [08:46:34]CheckFolder [08:46:34]dirname=/storage/ofd_packets [08:46:34]CheckFolder done [08:46:34]ProducePacketName [08:46:34]name=ofd_packets/00049136 [08:46:34]NVStorageSaveData ofd_packets/00049136 [08:46:34]File name is /storage/ofd_packets/00049136 [08:46:34]Write 301 bytes [08:46:34]NVStorageSaveData done [08:46:34]OFDSenderStorePacket done [08:46:34]KKMCreateOFDPacket done [08:46:34]NVStorageSaveData kkm_last_timestamp [08:46:34]File name is /storage/kkm_last_timestamp [08:46:34]Write 4 bytes [08:46:34]NVStorageSaveData done [08:46:34]ExternCall_PrintAddStr [08:46:34]wPrintStart [08:46:34]Write to MH i2c: 01 00 00 E4 60 44 [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: 01 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: 01 07 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: 01 07 00 E4 60 00 00 00 00 00 FF 0F 59 [08:46:34]RasterBufferAndPrint [08:46:34]line Счет N : (1)216236 [08:46:34]line ИНН: 02508201610067 [08:46:34]line Контрольно-Кассовый Чек [08:46:34]line ПРОДАЖА [08:46:34]line ТРК (МРК, ГНК) : 22 [08:46:34]line Товар: 2710124130 [08:46:34]line Аи-92-К-5 [08:46:34]line 6.640 * 60.30 [08:46:34]line = 400.39 [08:46:34]line НДС 12% НСП 1% [08:46:34]line > о реализуемом товаре [08:46:34]line ОКРУГЛЕНИЕ: -0.39 [08:46:34]line ИТОГО: 400.00 [08:46:34]line Внесено: 400.00 [08:46:34]line СДАЧА: 0.00 [08:46:34]line НСП 1% : 3.54 [08:46:34]line НДС 12% : 42.52 [08:46:34]line Наличными: 400.00 [08:46:34]line Безнал.: 0.00 [08:46:34]line Место: АЗС № 102 "Партнер Нефть" [08:46:34]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:46:34]line СНО: Общий режим [08:46:34]line Чек 12 30.01.2024 08:46 [08:46:34]line Смена: 246 ФФД: 1.0 [08:46:34]line ЗНМ: 0300000040 [08:46:34]line РНМ: 0000000000092723 [08:46:34]line Версия ККМ: 001 [08:46:34]line ФМ: 0000000000875060 [08:46:34]line ФД: 49136 [08:46:34]line ФПД: 157565067674461 [08:46:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T084650&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49136&fm=157565067674461&tin=02508201610067®Number=0000000000092723&sum=40000 [08:46:34]OFD Sender: Processing packet 49136 [packets to send 12, broken 11] [08:46:34]ProducePacketName [08:46:34]name=ofd_packets/00049136 [08:46:34]OFD Sender: To server: pG, [08:46:34]CommunicateWithHost lk.salyk.kg:30040 [08:46:34]ConnectInit lk.salyk.kg [08:46:34]written 0, free lines is 4095 [08:46:34]Connected sock=10 [08:46:34]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 36 30 0F 01 00 00 47 A6 07 01 BF 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 7A B7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BF 00 00 35 04 06 00 8F 4D F9 E3 43 5D AB 3A C7 22 6A F1 51 91 [08:46: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 36 30 4F 00 00 00 FF 2E 47 00 AF C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BF 00 00 F4 03 04 00 70 63 B8 65 B6 04 01 00 00 01 77 31 D5 BF 81 69 D8 [08:46:35]CommunicateWithHost err = 0 [08:46:35]CheckOFDResponse [08:46:35]1017 (14) - 77093643461234 [08:46:35]1041 (16) - 0000000000875060 [08:46:35]1040 (4) - 49136 [08:46:35]1012 (4) - 30.01.2024 02:48 [08:46:35]1206 (1) - 0 [08:46:35]OFD Sender: Remove packet 49136 [08:46:35]ProducePacketName [08:46:35]name=ofd_packets/00049136 [08:46:35]NVStorageDeleteData [08:46:35]Write to MH i2c: 01 00 00 0F 61 70 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: 01 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: 01 07 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: 01 07 00 0F 61 00 00 00 00 00 EB 0C 6E [08:46:35]RasterBufferAndPrint [08:46:35]line [08:46:35]line [08:46:35]line [08:46:35]line [08:46:35]line [08:46:35]written 0, free lines is 3313 [08:46:35]MH_Cut [08:46:35]Write to MH i2c: D1 01 00 16 61 01 49 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: D1 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: D1 01 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: D1 01 00 16 61 00 48 [08:46:35]Write to MH i2c: 01 00 00 17 61 78 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]OFD Sender: No OFD packet to send [08:46:35]*** Cut start [08:46:35]*** Partial cut [08:46:35]*** CUTSNS_PIN = 1 [08:46:36]*** CUTSNS_PIN = 0 [08:46:36]*** Brake cut motor [08:46:36]Read from MH i2c: 01 [08:46:36]MH_I2C_Read... [08:46:36]*** Stop cut motor [08:46:36]*** Cut end [08:46:36]Read from MH i2c: 01 07 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: 01 07 00 17 61 00 00 00 00 00 FF 0F 8D [08:46:36]process_action close_receipt done [08:46:36]requested_data is exist [08:46:36]produce_requested_data [08:46:36]requested_item fm.sn is exist - process it [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 11 00 00 [08:46:36]Write to MH i2c: E2 08 00 18 61 80 11 00 00 00 00 00 00 F3 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 17 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 17 00 18 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 40 [08:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:46:36]wFMCommunicate OK [08:46:36]requested_item fd.num is exist - process it [08:46:36]SAM_PROTO_GetFieldsCounters [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 13 00 00 [08:46:36]Write to MH i2c: E2 08 00 19 61 80 13 00 00 00 00 00 00 F6 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 62 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 62 00 19 61 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F0 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [08:46: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F0 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:36]wFMCommunicate OK [08:46:36]SAM_PROTO_GetFieldsCounters done [08:46:36]requested_item shift.num is exist - process it [08:46:36]requested_item shift.opened is exist - process it [08:46:36]req_shift_opened [08:46:36]FM_GetShiftState [08:46:36]SAM_PROTO_GetShiftState [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 13 01 00 [08:46:36]Write to MH i2c: E2 08 00 1A 61 80 13 01 00 00 00 00 00 F8 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 0E 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 0E 00 1A 61 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 20 [08:46:36]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:46:36]wFMCommunicate OK [08:46:36]SAM_PROTO_GetShiftState done [08:46:36]FM_GetShiftState done [08:46:36]req_shift_opened done [08:46:36]requested_item shift.open_date is exist - process it [08:46:36]req_shift_open_date [08:46:36]req_shift_open_date done [08:46:36]produce_requested_data done [08:46:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49136,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [08:46:36]process_action_free close_receipt [08:46:36]json_value_free [08:46:36]json_value_free done [08:46:36]process_json_proto returns [08:46:36]Send response to host [08:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49136,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [08:46:36]free response buf [08:46:36]execute_script done [08:46:36]execute_script returns [08:46:36]free content buf [08:46:36]Sock 7.Close socket [08:46:36]Sock 7.Thread stoped [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]accept exits with 9 [08:50:35]New connection [08:50:35]New thread 3066670436 created [08:50:35]Thread 3066813796 joined [08:50:35]Waiting for new connection... [08:50:35] Sock 9.Parse request [08:50:35]Sock 9.Check first char [08:50:35]Sock 9.First char is OK [08:50:35]request: POST /json_proto HTTP/1.0 [08:50:35]Method: POST [08:50:35]URL: /json_proto [08:50:35]Method is POST - this is cgi request [08:50:35]url: /json_proto [08:50:35]query_string will be loaded in cgi processing [08:50:35]execute_cgi json_proto POST (null) [08:50:35]execute_cgi path=json_proto method=POST [08:50:35]POST find Content-Length [08:50:35]Host: 172.17.56.67:8080 [08:50:35]Content-Length: 677 [08:50:35]Content-Type: application/json [08:50:35] [08:50:35]POST finish read [08:50:35]Found Content-Length = 677 [08:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [08:50:35]execute_script... [08:50: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)216237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [08:50:35]POST & json_proto [08:50:35]process_json_proto [08:50:35]json parsed OK: [08:50:35]protocol is kg_v1.0 [08:50:35]action value=close_receipt [08:50:35]process_action close_receipt [08:50:35]cmd_close_receipt [08:50:35]MH_GetDate [08:50:35]Write to MH i2c: F0 00 00 1B 61 6B [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: F0 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: F0 09 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: F0 09 00 1B 61 00 6D B8 B8 65 26 5D 9E 65 3C [08:50:35]GetLastDocTimeStamp 1706604410 [08:50:35]current date 1706604653 [08:50:35]FM_GetShiftState [08:50:35]SAM_PROTO_GetShiftState [08:50:35]wFMCommunicate request_size=4 [08:50:35]MH_SAM_APDU [08:50:35]CAPDU: 80 13 01 00 [08:50:35]Write to MH i2c: E2 08 00 1C 61 80 13 01 00 00 00 00 00 FA [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 0E 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 0E 00 1C 61 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 22 [08:50:35]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:50:35]wFMCommunicate OK [08:50:35]SAM_PROTO_GetShiftState done [08:50:35]FM_GetShiftState done [08:50:35]opened in 1706572995 [08:50:35]opened+sec_in_day 1706659395 [08:50:35]quantity*price = 30029 [08:50:35]sum+1 = 30030 [08:50:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 13 30.01.2024 08:50 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49137 ФПД: 204715939215787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T085053&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49137&fm=204715939215787&tin=02508201610067®Number=0000000000092723&sum=30000 [08:50:36]StoreToDocumentArchive [08:50:36]shift 246 fd 49137 [08:50:36]save to /storage/0246/doc_00049137 [08:50:36]save last doc name /storage/0246/doc_00049137 to /storage/kkm_last_doc_name [08:50:36]save OK [08:50:36]Clear old archive folders... [08:50:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:36]tlvbuf is 01284290 [08:50:36]SAM_PROTO_ClearQueue [08:50:36]wFMCommunicate request_size=4 [08:50:36]MH_SAM_APDU [08:50:36]CAPDU: 80 09 00 00 [08:50:36]Write to MH i2c: E2 08 00 29 61 80 09 00 00 00 00 00 00 FC [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:36]Read from MH i2c: E2 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 03 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 03 00 29 61 00 90 00 FE [08:50:36]RAPDU: 90 00 [08:50:36]wFMCommunicate OK [08:50:36]SAM_PROTO_ClearQueue done [08:50:36]KKMCreateOFDPacket [08:50:36]OFDProtocolAddRootSTLVToBuf [08:50:36]FM_MakeSignedData [08:50:36]FM_MakeSignedData [08:50:36]SAM_PROTO_SignData [08:50:36]wFMCommunicate request_size=4 [08:50:36]MH_SAM_APDU [08:50:36]CAPDU: 80 0D 01 02 [08:50:36]Write to MH i2c: E2 08 00 2A 61 80 0D 01 02 00 00 00 00 04 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:36]Read from MH i2c: E2 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 03 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 03 00 2A 61 00 90 00 FF [08:50:36]RAPDU: 90 00 [08:50:36]wFMCommunicate OK [08:50:36]wFMCommunicate request_size=255 [08:50:36]MH_SAM_APDU [08:50:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6D B8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BF 00 00 35 04 06 00 BA [08:50:36]Write to MH i2c: E2 02 01 2B 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6D B8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BF 00 00 35 04 06 00 BA 00 00 79 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:36]Read from MH i2c: E2 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 03 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 03 00 2B 61 00 90 00 00 [08:50:36]RAPDU: 90 00 [08:50:36]wFMCommunicate OK [08:50:36]wFMCommunicate request_size=10 [08:50:36]MH_SAM_APDU [08:50:36]CAPDU: 80 0D 02 02 05 30 24 D6 39 AB [08:50:36]Write to MH i2c: E2 0D 00 2C 61 80 0D 02 02 05 00 30 24 D6 39 AB 00 00 1F [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:36]Read from MH i2c: E2 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 03 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 03 00 2C 61 00 90 00 01 [08:50:36]RAPDU: 90 00 [08:50:36]wFMCommunicate OK [08:50:36]wFMCommunicate request_size=4 [08:50:36]MH_SAM_APDU [08:50:36]CAPDU: 80 0D 03 02 [08:50:36]Write to MH i2c: E2 08 00 2D 61 80 0D 03 02 00 00 00 00 09 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:36]Read from MH i2c: E2 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 0B 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 0B 00 2D 61 00 F2 1A 8D 85 B7 09 14 6D 90 00 69 [08:50:36]RAPDU: F2 1A 8D 85 B7 09 14 6D 90 00 [08:50:36]wFMCommunicate OK [08:50:36]SAM_PROTO_SignData done [08:50:36]FM_MakeSignedData done [08:50:36]CreateOFDProtocolMessage [08:50:36]wFMCommunicate request_size=4 [08:50:36]MH_SAM_APDU [08:50:36]CAPDU: 80 11 00 00 [08:50:36]Write to MH i2c: E2 08 00 2E 61 80 11 00 00 00 00 00 00 09 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:36]Read from MH i2c: E2 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 17 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: E2 17 00 2E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 56 [08:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:50:36]wFMCommunicate OK [08:50:36]CreateOFDProtocolMessage done [08:50:36]OFDSenderStorePacket 49137 [08:50:36]StoreOFDPacket docnum=49137 [08:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9C 6F 07 01 20 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6D B8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BF 00 00 35 04 06 00 BA 30 24 D6 39 AB F2 1A 8D 85 B7 09 14 6D [08:50:36]CheckFolder [08:50:36]dirname=/storage/ofd_packets [08:50:36]CheckFolder done [08:50:36]ProducePacketName [08:50:36]name=ofd_packets/00049137 [08:50:36]NVStorageSaveData ofd_packets/00049137 [08:50:36]File name is /storage/ofd_packets/00049137 [08:50:36]Write 301 bytes [08:50:36]NVStorageSaveData done [08:50:36]OFDSenderStorePacket done [08:50:36]KKMCreateOFDPacket done [08:50:36]NVStorageSaveData kkm_last_timestamp [08:50:36]File name is /storage/kkm_last_timestamp [08:50:36]Write 4 bytes [08:50:36]NVStorageSaveData done [08:50:36]ExternCall_PrintAddStr [08:50:36]wPrintStart [08:50:36]Write to MH i2c: 01 00 00 2F 61 90 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: 01 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: 01 07 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: 01 07 00 2F 61 00 00 00 00 00 FF 0F A5 [08:50:36]RasterBufferAndPrint [08:50:36]line Счет N : (1)216237 [08:50:36]line ИНН: 02508201610067 [08:50:36]line Контрольно-Кассовый Чек [08:50:36]line ПРОДАЖА [08:50:36]line ТРК (МРК, ГНК) : 22 [08:50:36]line Товар: 2710124130 [08:50:36]line Аи-92-К-5 [08:50:36]line 4.980 * 60.30 [08:50:36]line = 300.29 [08:50:36]line НДС 12% НСП 1% [08:50:36]line > о реализуемом товаре [08:50:36]line ОКРУГЛЕНИЕ: -0.29 [08:50:36]line ИТОГО: 300.00 [08:50:36]line Внесено: 300.00 [08:50:36]line СДАЧА: 0.00 [08:50:36]line НСП 1% : 2.66 [08:50:36]line НДС 12% : 31.89 [08:50:36]line Наличными: 300.00 [08:50:36]line Безнал.: 0.00 [08:50:36]line Место: АЗС № 102 "Партнер Нефть" [08:50:36]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:50:36]line СНО: Общий режим [08:50:36]line Чек 13 30.01.2024 08:50 [08:50:36]line Смена: 246 ФФД: 1.0 [08:50:36]line ЗНМ: 0300000040 [08:50:36]line РНМ: 0000000000092723 [08:50:36]line Версия ККМ: 001 [08:50:36]line ФМ: 0000000000875060 [08:50:36]line ФД: 49137 [08:50:36]line ФПД: 204715939215787 [08:50:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T085053&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49137&fm=204715939215787&tin=02508201610067®Number=0000000000092723&sum=30000 [08:50:37]OFD Sender: Processing packet 49137 [packets to send 12, broken 11] [08:50:37]ProducePacketName [08:50:37]name=ofd_packets/00049137 [08:50:37]OFD Sender: To server: pG, [08:50:37]CommunicateWithHost lk.salyk.kg:30040 [08:50:37]ConnectInit lk.salyk.kg [08:50:37]written 0, free lines is 4095 [08:50:37]Connected sock=7 [08:50: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 36 30 0F 01 00 00 9C 6F 07 01 20 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6D B8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BF 00 00 35 04 06 00 BA 30 24 D6 39 AB F2 1A 8D 85 B7 09 14 6D [08:50: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 36 30 4F 00 00 00 61 97 47 00 4F B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BF 00 00 F4 03 04 00 63 64 B8 65 B6 04 01 00 00 FA 64 DB A1 BC F3 C7 94 [08:50:37]CommunicateWithHost err = 0 [08:50:37]CheckOFDResponse [08:50:37]1017 (14) - 77093643461234 [08:50:37]1041 (16) - 0000000000875060 [08:50:37]1040 (4) - 49137 [08:50:37]1012 (4) - 30.01.2024 02:52 [08:50:37]1206 (1) - 0 [08:50:37]OFD Sender: Remove packet 49137 [08:50:37]ProducePacketName [08:50:37]name=ofd_packets/00049137 [08:50:37]NVStorageDeleteData [08:50:37]Write to MH i2c: 01 00 00 5A 61 BB [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: 01 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: 01 07 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: 01 07 00 5A 61 00 00 00 00 00 F2 0C C0 [08:50:37]RasterBufferAndPrint [08:50:37]line [08:50:37]line [08:50:37]line [08:50:37]line [08:50:37]line [08:50:37]written 0, free lines is 3320 [08:50:37]MH_Cut [08:50:37]Write to MH i2c: D1 01 00 61 61 01 94 [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: D1 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: D1 01 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: D1 01 00 61 61 00 93 [08:50:37]Write to MH i2c: 01 00 00 62 61 C3 [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]OFD Sender: No OFD packet to send [08:50:38]*** Cut start [08:50:38]*** Partial cut [08:50:38]*** CUTSNS_PIN = 1 [08:50:38]*** CUTSNS_PIN = 0 [08:50:38]*** Brake cut motor [08:50:38]Read from MH i2c: 01 [08:50:38]MH_I2C_Read... [08:50:38]*** Stop cut motor [08:50:38]*** Cut end [08:50:38]Read from MH i2c: 01 07 00 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: 01 07 00 62 61 00 00 00 00 00 FF 0F D8 [08:50:38]process_action close_receipt done [08:50:38]requested_data is exist [08:50:38]produce_requested_data [08:50:38]requested_item fm.sn is exist - process it [08:50:38]wFMCommunicate request_size=4 [08:50:38]MH_SAM_APDU [08:50:38]CAPDU: 80 11 00 00 [08:50:38]Write to MH i2c: E2 08 00 63 61 80 11 00 00 00 00 00 00 3E [08:50:38]Write i2c OK [08:50:38]MH_I2C_Read... [08:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:38]Read from MH i2c: E2 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 17 00 [08:50:38]MH_I2C_Read... [08:50:38]Read from MH i2c: E2 17 00 63 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8B [08:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:50:38]wFMCommunicate OK [08:50:38]requested_item fd.num is exist - process it [08:50:38]SAM_PROTO_GetFieldsCounters [08:50:38]wFMCommunicate request_size=4 [08:50:38]MH_SAM_APDU [08:50:38]CAPDU: 80 13 00 00 [08:50:38]Write to MH i2c: E2 08 00 64 61 80 13 00 00 00 00 00 00 41 [08:50:38]Write i2c OK [08:50:38]MH_I2C_Read... [08:50:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:39]Read from MH i2c: E2 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: E2 62 00 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: E2 62 00 64 61 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F1 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [08:50: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F1 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:39]wFMCommunicate OK [08:50:39]SAM_PROTO_GetFieldsCounters done [08:50:39]requested_item shift.num is exist - process it [08:50:39]requested_item shift.opened is exist - process it [08:50:39]req_shift_opened [08:50:39]FM_GetShiftState [08:50:39]SAM_PROTO_GetShiftState [08:50:39]wFMCommunicate request_size=4 [08:50:39]MH_SAM_APDU [08:50:39]CAPDU: 80 13 01 00 [08:50:39]Write to MH i2c: E2 08 00 65 61 80 13 01 00 00 00 00 00 43 [08:50:39]Write i2c OK [08:50:39]MH_I2C_Read... [08:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:39]Read from MH i2c: E2 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: E2 0E 00 [08:50:39]MH_I2C_Read... [08:50:39]Read from MH i2c: E2 0E 00 65 61 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6B [08:50:39]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:50:39]wFMCommunicate OK [08:50:39]SAM_PROTO_GetShiftState done [08:50:39]FM_GetShiftState done [08:50:39]req_shift_opened done [08:50:39]requested_item shift.open_date is exist - process it [08:50:39]req_shift_open_date [08:50:39]req_shift_open_date done [08:50:39]produce_requested_data done [08:50:39]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49137,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [08:50:39]process_action_free close_receipt [08:50:39]json_value_free [08:50:39]json_value_free done [08:50:39]process_json_proto returns [08:50:39]Send response to host [08:50:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49137,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [08:50:39]free response buf [08:50:39]execute_script done [08:50:39]execute_script returns [08:50:39]free content buf [08:50:39]Sock 9.Close socket [08:50:39]Sock 9.Thread stoped [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:19]accept exits with 10 [08:53:19]New connection [08:53:19]New thread 3066813796 created [08:53:19]Thread 3066670436 joined [08:53:19]Waiting for new connection... [08:53:19] Sock 10.Parse request [08:53:19]Sock 10.Check first char [08:53:19]Sock 10.First char is OK [08:53:19]request: POST /json_proto HTTP/1.0 [08:53:19]Method: POST [08:53:19]URL: /json_proto [08:53:19]Method is POST - this is cgi request [08:53:19]url: /json_proto [08:53:19]query_string will be loaded in cgi processing [08:53:19]execute_cgi json_proto POST (null) [08:53:19]execute_cgi path=json_proto method=POST [08:53:19]POST find Content-Length [08:53:19]Host: 172.17.56.67:8080 [08:53:19]Content-Length: 682 [08:53:19]Content-Type: application/json [08:53:19] [08:53:19]POST finish read [08:53:19]Found Content-Length = 682 [08:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:19]execute_script... [08:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:19]POST & json_proto [08:53:19]process_json_proto [08:53:19]json parsed OK: [08:53:19]protocol is kg_v1.0 [08:53:19]action value=close_receipt [08:53:19]process_action close_receipt [08:53:19]cmd_close_receipt [08:53:19]MH_GetDate [08:53:19]Write to MH i2c: F0 00 00 66 61 B6 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 09 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 09 00 66 61 00 11 B9 B8 65 26 5D 9E 65 2C [08:53:19]GetLastDocTimeStamp 1706604653 [08:53:19]current date 1706604817 [08:53:19]FM_GetShiftState [08:53:19]SAM_PROTO_GetShiftState [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 13 01 00 [08:53:19]Write to MH i2c: E2 08 00 67 61 80 13 01 00 00 00 00 00 45 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 67 61 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6D [08:53:19]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_GetShiftState done [08:53:19]FM_GetShiftState done [08:53:19]opened in 1706572995 [08:53:19]opened+sec_in_day 1706659395 [08:53:19]quantity*price = 100037 [08:53:19]sum+1 = 100039 [08:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 14 30.01.2024 08:53 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49138 ФПД: 240144962550522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T085337&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49138&fm=240144962550522&tin=02508201610067®Number=0000000000092723&sum=100000 [08:53:20]StoreToDocumentArchive [08:53:20]shift 246 fd 49138 [08:53:20]save to /storage/0246/doc_00049138 [08:53:20]save last doc name /storage/0246/doc_00049138 to /storage/kkm_last_doc_name [08:53:20]save OK [08:53:20]Clear old archive folders... [08:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:20]tlvbuf is 011EA030 [08:53:20]SAM_PROTO_ClearQueue [08:53:20]wFMCommunicate request_size=4 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 09 00 00 [08:53:20]Write to MH i2c: E2 08 00 74 61 80 09 00 00 00 00 00 00 47 [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 74 61 00 90 00 49 [08:53:20]RAPDU: 90 00 [08:53:20]wFMCommunicate OK [08:53:20]SAM_PROTO_ClearQueue done [08:53:20]KKMCreateOFDPacket [08:53:20]OFDProtocolAddRootSTLVToBuf [08:53:20]FM_MakeSignedData [08:53:20]FM_MakeSignedData [08:53:20]SAM_PROTO_SignData [08:53:20]wFMCommunicate request_size=4 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 0D 01 02 [08:53:20]Write to MH i2c: E2 08 00 75 61 80 0D 01 02 00 00 00 00 4F [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 75 61 00 90 00 4A [08:53:20]RAPDU: 90 00 [08:53:20]wFMCommunicate OK [08:53:20]wFMCommunicate request_size=255 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 11 B9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F2 BF 00 00 35 04 06 00 DA [08:53:20]Write to MH i2c: E2 02 01 76 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 11 B9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F2 BF 00 00 35 04 06 00 DA 00 00 35 [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 03 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 03 00 76 61 00 90 00 4B [08:53:21]RAPDU: 90 00 [08:53:21]wFMCommunicate OK [08:53:21]wFMCommunicate request_size=10 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 0D 02 02 05 69 1B 2F FA FA [08:53:21]Write to MH i2c: E2 0D 00 77 61 80 0D 02 02 05 00 69 1B 2F FA FA 00 00 03 [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 03 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 03 00 77 61 00 90 00 4C [08:53:21]RAPDU: 90 00 [08:53:21]wFMCommunicate OK [08:53:21]wFMCommunicate request_size=4 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 0D 03 02 [08:53:21]Write to MH i2c: E2 08 00 78 61 80 0D 03 02 00 00 00 00 54 [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 0B 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 0B 00 78 61 00 2F AC 19 C5 C4 D1 ED DE 90 00 6E [08:53:21]RAPDU: 2F AC 19 C5 C4 D1 ED DE 90 00 [08:53:21]wFMCommunicate OK [08:53:21]SAM_PROTO_SignData done [08:53:21]FM_MakeSignedData done [08:53:21]CreateOFDProtocolMessage [08:53:21]wFMCommunicate request_size=4 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 11 00 00 [08:53:21]Write to MH i2c: E2 08 00 79 61 80 11 00 00 00 00 00 00 54 [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 17 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 17 00 79 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A1 [08:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:53:21]wFMCommunicate OK [08:53:21]CreateOFDProtocolMessage done [08:53:21]OFDSenderStorePacket 49138 [08:53:21]StoreOFDPacket docnum=49138 [08:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EA 4C 07 01 F1 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 11 B9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F2 BF 00 00 35 04 06 00 DA 69 1B 2F FA FA 2F AC 19 C5 C4 D1 ED DE [08:53:21]CheckFolder [08:53:21]dirname=/storage/ofd_packets [08:53:21]CheckFolder done [08:53:21]ProducePacketName [08:53:21]name=ofd_packets/00049138 [08:53:21]NVStorageSaveData ofd_packets/00049138 [08:53:21]File name is /storage/ofd_packets/00049138 [08:53:21]Write 301 bytes [08:53:21]NVStorageSaveData done [08:53:21]OFDSenderStorePacket done [08:53:21]KKMCreateOFDPacket done [08:53:21]NVStorageSaveData kkm_last_timestamp [08:53:21]File name is /storage/kkm_last_timestamp [08:53:21]Write 4 bytes [08:53:21]NVStorageSaveData done [08:53:21]ExternCall_PrintAddStr [08:53:21]wPrintStart [08:53:21]Write to MH i2c: 01 00 00 7A 61 DB [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 07 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 07 00 7A 61 00 00 00 00 00 FF 0F F0 [08:53:21]RasterBufferAndPrint [08:53:21]line Счет N : (1)216238 [08:53:21]line ИНН: 02508201610067 [08:53:21]line Контрольно-Кассовый Чек [08:53:21]line ПРОДАЖА [08:53:21]line ТРК (МРК, ГНК) : 12 [08:53:21]line Товар: 2710124130 [08:53:21]line Аи-92-К-5 [08:53:21]line 16.590 * 60.30 [08:53:21]line = 1000.38 [08:53:21]line НДС 12% НСП 1% [08:53:21]line > о реализуемом товаре [08:53:21]line ОКРУГЛЕНИЕ: -0.38 [08:53:21]line ИТОГО: 1000.00 [08:53:21]line Внесено: 1000.00 [08:53:21]line СДАЧА: 0.00 [08:53:21]line НСП 1% : 8.85 [08:53:21]line НДС 12% : 106.23 [08:53:21]line Наличными: 1000.00 [08:53:21]line Безнал.: 0.00 [08:53:21]line Место: АЗС № 102 "Партнер Нефть" [08:53:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:53:21]line СНО: Общий режим [08:53:21]line Чек 14 30.01.2024 08:53 [08:53:21]line Смена: 246 ФФД: 1.0 [08:53:21]line ЗНМ: 0300000040 [08:53:21]line РНМ: 0000000000092723 [08:53:21]line Версия ККМ: 001 [08:53:21]line ФМ: 0000000000875060 [08:53:21]line ФД: 49138 [08:53:21]line ФПД: 240144962550522 [08:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T085337&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49138&fm=240144962550522&tin=02508201610067®Number=0000000000092723&sum=100000 [08:53:21]OFD Sender: Processing packet 49138 [packets to send 12, broken 11] [08:53:21]ProducePacketName [08:53:21]name=ofd_packets/00049138 [08:53:21]OFD Sender: To server: pG, [08:53:21]CommunicateWithHost lk.salyk.kg:30040 [08:53:21]ConnectInit lk.salyk.kg [08:53:21]written 0, free lines is 4095 [08:53:21]Connected sock=9 [08:53: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 36 30 0F 01 00 00 EA 4C 07 01 F1 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 11 B9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F2 BF 00 00 35 04 06 00 DA 69 1B 2F FA FA 2F AC 19 C5 C4 D1 ED DE [08:53: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 36 30 4F 00 00 00 B0 A4 47 00 5D 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 36 30 10 04 04 00 F2 BF 00 00 F4 03 04 00 07 65 B8 65 B6 04 01 00 00 50 C0 F2 3A 30 F5 50 C0 [08:53:21]CommunicateWithHost err = 0 [08:53:21]CheckOFDResponse [08:53:21]1017 (14) - 77093643461234 [08:53:21]1041 (16) - 0000000000875060 [08:53:21]1040 (4) - 49138 [08:53:21]1012 (4) - 30.01.2024 02:55 [08:53:21]1206 (1) - 0 [08:53:21]OFD Sender: Remove packet 49138 [08:53:21]ProducePacketName [08:53:21]name=ofd_packets/00049138 [08:53:21]NVStorageDeleteData [08:53:22]Write to MH i2c: 01 00 00 A5 61 06 [08:53:22]Write i2c OK [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: 01 [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: 01 07 00 [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: 01 07 00 A5 61 00 00 00 00 00 02 0D 1C [08:53:22]RasterBufferAndPrint [08:53:22]line [08:53:22]line [08:53:22]line [08:53:22]line [08:53:22]line [08:53:22]written 0, free lines is 3336 [08:53:22]MH_Cut [08:53:22]Write to MH i2c: D1 01 00 AC 61 01 DF [08:53:22]Write i2c OK [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: D1 [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: D1 01 00 [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: D1 01 00 AC 61 00 DE [08:53:22]Write to MH i2c: 01 00 00 AD 61 0E [08:53:22]Write i2c OK [08:53:22]MH_I2C_Read... [08:53:22]OFD Sender: No OFD packet to send [08:53:22]*** Cut start [08:53:22]*** Partial cut [08:53:22]*** CUTSNS_PIN = 1 [08:53:22]*** CUTSNS_PIN = 0 [08:53:22]*** Brake cut motor [08:53:23]Read from MH i2c: 01 [08:53:23]MH_I2C_Read... [08:53:23]*** Stop cut motor [08:53:23]*** Cut end [08:53:23]Read from MH i2c: 01 07 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 07 00 AD 61 00 00 00 00 00 FF 0F 23 [08:53:23]process_action close_receipt done [08:53:23]requested_data is exist [08:53:23]produce_requested_data [08:53:23]requested_item fm.sn is exist - process it [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 11 00 00 [08:53:23]Write to MH i2c: E2 08 00 AE 61 80 11 00 00 00 00 00 00 89 [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 17 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 17 00 AE 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D6 [08:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:53:23]wFMCommunicate OK [08:53:23]requested_item fd.num is exist - process it [08:53:23]SAM_PROTO_GetFieldsCounters [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 13 00 00 [08:53:23]Write to MH i2c: E2 08 00 AF 61 80 13 00 00 00 00 00 00 8C [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 62 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 62 00 AF 61 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F2 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [08:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F2 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:23]wFMCommunicate OK [08:53:23]SAM_PROTO_GetFieldsCounters done [08:53:23]requested_item shift.num is exist - process it [08:53:23]requested_item shift.opened is exist - process it [08:53:23]req_shift_opened [08:53:23]FM_GetShiftState [08:53:23]SAM_PROTO_GetShiftState [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 13 01 00 [08:53:23]Write to MH i2c: E2 08 00 B0 61 80 13 01 00 00 00 00 00 8E [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 0E 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 0E 00 B0 61 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B6 [08:53:23]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:53:23]wFMCommunicate OK [08:53:23]SAM_PROTO_GetShiftState done [08:53:23]FM_GetShiftState done [08:53:23]req_shift_opened done [08:53:23]requested_item shift.open_date is exist - process it [08:53:23]req_shift_open_date [08:53:23]req_shift_open_date done [08:53:23]produce_requested_data done [08:53:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49138,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [08:53:23]process_action_free close_receipt [08:53:23]json_value_free [08:53:23]json_value_free done [08:53:23]process_json_proto returns [08:53:23]Send response to host [08:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49138,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [08:53:23]free response buf [08:53:23]execute_script done [08:53:23]execute_script returns [08:53:23]free content buf [08:53:23]Sock 10.Close socket [08:53:23]Sock 10.Thread stoped [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:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:12]accept exits with 7 [08:56:12]New connection [08:56:12]New thread 3066670436 created [08:56:12]Thread 3066813796 joined [08:56:12]Waiting for new connection... [08:56:12] Sock 7.Parse request [08:56:12]Sock 7.Check first char [08:56:12]Sock 7.First char is OK [08:56:12]request: POST /json_proto HTTP/1.0 [08:56:12]Method: POST [08:56:12]URL: /json_proto [08:56:12]Method is POST - this is cgi request [08:56:12]url: /json_proto [08:56:12]query_string will be loaded in cgi processing [08:56:12]execute_cgi json_proto POST (null) [08:56:12]execute_cgi path=json_proto method=POST [08:56:12]POST find Content-Length [08:56:12]Host: 172.17.56.67:8080 [08:56:12]Content-Length: 677 [08:56:12]Content-Type: application/json [08:56:12] [08:56:12]POST finish read [08:56:12]Found Content-Length = 677 [08:56:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:12]execute_script... [08:56:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:12]POST & json_proto [08:56:12]process_json_proto [08:56:12]json parsed OK: [08:56:12]protocol is kg_v1.0 [08:56:12]action value=close_receipt [08:56:12]process_action close_receipt [08:56:12]cmd_close_receipt [08:56:12]MH_GetDate [08:56:12]Write to MH i2c: F0 00 00 B1 61 01 [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: F0 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: F0 09 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: F0 09 00 B1 61 00 BE B9 B8 65 26 5D 9E 65 24 [08:56:12]GetLastDocTimeStamp 1706604817 [08:56:12]current date 1706604990 [08:56:12]FM_GetShiftState [08:56:12]SAM_PROTO_GetShiftState [08:56:12]wFMCommunicate request_size=4 [08:56:12]MH_SAM_APDU [08:56:12]CAPDU: 80 13 01 00 [08:56:12]Write to MH i2c: E2 08 00 B2 61 80 13 01 00 00 00 00 00 90 [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:12]Read from MH i2c: E2 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 0E 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 0E 00 B2 61 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B8 [08:56:12]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:56:12]wFMCommunicate OK [08:56:12]SAM_PROTO_GetShiftState done [08:56:12]FM_GetShiftState done [08:56:12]opened in 1706572995 [08:56:12]opened+sec_in_day 1706659395 [08:56:12]quantity*price = 40039 [08:56:12]sum+1 = 40040 [08:56:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 15 30.01.2024 08:56 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49139 ФПД: 202467668653433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T085630&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49139&fm=202467668653433&tin=02508201610067®Number=0000000000092723&sum=40000 [08:56:13]StoreToDocumentArchive [08:56:13]shift 246 fd 49139 [08:56:13]save to /storage/0246/doc_00049139 [08:56:13]save last doc name /storage/0246/doc_00049139 to /storage/kkm_last_doc_name [08:56:13]save OK [08:56:13]Clear old archive folders... [08:56:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:13]tlvbuf is 013CCF10 [08:56:13]SAM_PROTO_ClearQueue [08:56:13]wFMCommunicate request_size=4 [08:56:13]MH_SAM_APDU [08:56:13]CAPDU: 80 09 00 00 [08:56:13]Write to MH i2c: E2 08 00 BF 61 80 09 00 00 00 00 00 00 92 [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:13]Read from MH i2c: E2 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 BF 61 00 90 00 94 [08:56:13]RAPDU: 90 00 [08:56:13]wFMCommunicate OK [08:56:13]SAM_PROTO_ClearQueue done [08:56:13]KKMCreateOFDPacket [08:56:13]OFDProtocolAddRootSTLVToBuf [08:56:13]FM_MakeSignedData [08:56:13]FM_MakeSignedData [08:56:13]SAM_PROTO_SignData [08:56:13]wFMCommunicate request_size=4 [08:56:13]MH_SAM_APDU [08:56:13]CAPDU: 80 0D 01 02 [08:56:13]Write to MH i2c: E2 08 00 C0 61 80 0D 01 02 00 00 00 00 9A [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 03 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 03 00 C0 61 00 90 00 95 [08:56:14]RAPDU: 90 00 [08:56:14]wFMCommunicate OK [08:56:14]wFMCommunicate request_size=255 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BE B9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BF 00 00 35 04 06 00 B8 [08:56:14]Write to MH i2c: E2 02 01 C1 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BE B9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BF 00 00 35 04 06 00 B8 00 00 17 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 03 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 03 00 C1 61 00 90 00 96 [08:56:14]RAPDU: 90 00 [08:56:14]wFMCommunicate OK [08:56:14]wFMCommunicate request_size=10 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 0D 02 02 05 24 AD 77 F5 79 [08:56:14]Write to MH i2c: E2 0D 00 C2 61 80 0D 02 02 05 00 24 AD 77 F5 79 00 00 5D [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 03 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 03 00 C2 61 00 90 00 97 [08:56:14]RAPDU: 90 00 [08:56:14]wFMCommunicate OK [08:56:14]wFMCommunicate request_size=4 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 0D 03 02 [08:56:14]Write to MH i2c: E2 08 00 C3 61 80 0D 03 02 00 00 00 00 9F [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 0B 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 0B 00 C3 61 00 F0 EE 39 15 F5 11 A1 3B 90 00 AE [08:56:14]RAPDU: F0 EE 39 15 F5 11 A1 3B 90 00 [08:56:14]wFMCommunicate OK [08:56:14]SAM_PROTO_SignData done [08:56:14]FM_MakeSignedData done [08:56:14]CreateOFDProtocolMessage [08:56:14]wFMCommunicate request_size=4 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 11 00 00 [08:56:14]Write to MH i2c: E2 08 00 C4 61 80 11 00 00 00 00 00 00 9F [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 17 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 17 00 C4 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EC [08:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:56:14]wFMCommunicate OK [08:56:14]CreateOFDProtocolMessage done [08:56:14]OFDSenderStorePacket 49139 [08:56:14]StoreOFDPacket docnum=49139 [08:56:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6A 30 07 01 BC 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BE B9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BF 00 00 35 04 06 00 B8 24 AD 77 F5 79 F0 EE 39 15 F5 11 A1 3B [08:56:14]CheckFolder [08:56:14]dirname=/storage/ofd_packets [08:56:14]CheckFolder done [08:56:14]ProducePacketName [08:56:14]name=ofd_packets/00049139 [08:56:14]NVStorageSaveData ofd_packets/00049139 [08:56:14]File name is /storage/ofd_packets/00049139 [08:56:14]Write 301 bytes [08:56:14]NVStorageSaveData done [08:56:14]OFDSenderStorePacket done [08:56:14]KKMCreateOFDPacket done [08:56:14]NVStorageSaveData kkm_last_timestamp [08:56:14]File name is /storage/kkm_last_timestamp [08:56:14]Write 4 bytes [08:56:14]NVStorageSaveData done [08:56:14]ExternCall_PrintAddStr [08:56:14]wPrintStart [08:56:14]Write to MH i2c: 01 00 00 C5 61 26 [08:56:14]OFD Sender: Processing packet 49139 [packets to send 12, broken 11] [08:56:14]ProducePacketName [08:56:14]name=ofd_packets/00049139 [08:56:14]OFD Sender: To server: pG, [08:56:14]CommunicateWithHost lk.salyk.kg:30040 [08:56:14]ConnectInit lk.salyk.kg [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 07 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 07 00 C5 61 00 00 00 00 00 FF 0F 3B [08:56:14]RasterBufferAndPrint [08:56:14]line Счет N : (1)216239 [08:56:14]line ИНН: 02508201610067 [08:56:14]line Контрольно-Кассовый Чек [08:56:14]line ПРОДАЖА [08:56:14]line ТРК (МРК, ГНК) : 22 [08:56:14]line Товар: 2710124130 [08:56:14]line Аи-92-К-5 [08:56:14]line 6.640 * 60.30 [08:56:14]line = 400.39 [08:56:14]line НДС 12% НСП 1% [08:56:14]line > о реализуемом товаре [08:56:14]line ОКРУГЛЕНИЕ: -0.39 [08:56:14]line ИТОГО: 400.00 [08:56:14]line Внесено: 400.00 [08:56:14]line СДАЧА: 0.00 [08:56:14]line НСП 1% : 3.54 [08:56:14]line НДС 12% : 42.52 [08:56:14]line Наличными: 400.00 [08:56:14]line Безнал.: 0.00 [08:56:14]line Место: АЗС № 102 "Партнер Нефть" [08:56:14]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:56:14]line СНО: Общий режим [08:56:14]line Чек 15 30.01.2024 08:56 [08:56:14]line Смена: 246 ФФД: 1.0 [08:56:14]line ЗНМ: 0300000040 [08:56:14]line РНМ: 0000000000092723 [08:56:14]line Версия ККМ: 001 [08:56:14]line ФМ: 0000000000875060 [08:56:14]line ФД: 49139 [08:56:14]line ФПД: 202467668653433 [08:56:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T085630&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49139&fm=202467668653433&tin=02508201610067®Number=0000000000092723&sum=40000 [08:56:14]Connected sock=10 [08:56: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 36 30 0F 01 00 00 6A 30 07 01 BC 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BE B9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BF 00 00 35 04 06 00 B8 24 AD 77 F5 79 F0 EE 39 15 F5 11 A1 3B [08:56:14]written 0, free lines is 4095 [08:56:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 5B F2 47 00 69 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BF 00 00 F4 03 04 00 B4 65 B8 65 B6 04 01 00 00 5E 1A E5 F1 3F B8 81 9F [08:56:15]CommunicateWithHost err = 0 [08:56:15]CheckOFDResponse [08:56:15]1017 (14) - 77093643461234 [08:56:15]1041 (16) - 0000000000875060 [08:56:15]1040 (4) - 49139 [08:56:15]1012 (4) - 30.01.2024 02:57 [08:56:15]1206 (1) - 0 [08:56:15]OFD Sender: Remove packet 49139 [08:56:15]ProducePacketName [08:56:15]name=ofd_packets/00049139 [08:56:15]NVStorageDeleteData [08:56:15]Write to MH i2c: 01 00 00 F0 61 51 [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: 01 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: 01 07 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: 01 07 00 F0 61 00 00 00 00 00 F6 0C 5A [08:56:15]RasterBufferAndPrint [08:56:15]line [08:56:15]line [08:56:15]line [08:56:15]line [08:56:15]line [08:56:15]written 0, free lines is 3324 [08:56:15]MH_Cut [08:56:15]Write to MH i2c: D1 01 00 F7 61 01 2A [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: D1 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: D1 01 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: D1 01 00 F7 61 00 29 [08:56:15]Write to MH i2c: 01 00 00 F8 61 59 [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]OFD Sender: No OFD packet to send [08:56:15]*** Cut start [08:56:15]*** Partial cut [08:56:15]*** CUTSNS_PIN = 1 [08:56:16]*** CUTSNS_PIN = 0 [08:56:16]*** Brake cut motor [08:56:16]Read from MH i2c: 01 [08:56:16]MH_I2C_Read... [08:56:16]*** Stop cut motor [08:56:16]*** Cut end [08:56:16]Read from MH i2c: 01 07 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: 01 07 00 F8 61 00 00 00 00 00 FF 0F 6E [08:56:16]process_action close_receipt done [08:56:16]requested_data is exist [08:56:16]produce_requested_data [08:56:16]requested_item fm.sn is exist - process it [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 11 00 00 [08:56:16]Write to MH i2c: E2 08 00 F9 61 80 11 00 00 00 00 00 00 D4 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 17 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 17 00 F9 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 21 [08:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:56:16]wFMCommunicate OK [08:56:16]requested_item fd.num is exist - process it [08:56:16]SAM_PROTO_GetFieldsCounters [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 13 00 00 [08:56:16]Write to MH i2c: E2 08 00 FA 61 80 13 00 00 00 00 00 00 D7 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 62 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 62 00 FA 61 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F3 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [08:56:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F3 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:16]wFMCommunicate OK [08:56:16]SAM_PROTO_GetFieldsCounters done [08:56:16]requested_item shift.num is exist - process it [08:56:16]requested_item shift.opened is exist - process it [08:56:16]req_shift_opened [08:56:16]FM_GetShiftState [08:56:16]SAM_PROTO_GetShiftState [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 13 01 00 [08:56:16]Write to MH i2c: E2 08 00 FB 61 80 13 01 00 00 00 00 00 D9 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 0E 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 0E 00 FB 61 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 01 [08:56:16]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [08:56:16]wFMCommunicate OK [08:56:16]SAM_PROTO_GetShiftState done [08:56:16]FM_GetShiftState done [08:56:16]req_shift_opened done [08:56:16]requested_item shift.open_date is exist - process it [08:56:16]req_shift_open_date [08:56:16]req_shift_open_date done [08:56:16]produce_requested_data done [08:56:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49139,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [08:56:16]process_action_free close_receipt [08:56:16]json_value_free [08:56:16]json_value_free done [08:56:16]process_json_proto returns [08:56:16]Send response to host [08:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49139,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [08:56:16]free response buf [08:56:16]execute_script done [08:56:16]execute_script returns [08:56:16]free content buf [08:56:16]Sock 7.Close socket [08:56:16]Sock 7.Thread stoped [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:48]accept exits with 9 [09:02:48]New connection [09:02:48]New thread 3066813796 created [09:02:48]Thread 3066670436 joined [09:02:48]Waiting for new connection... [09:02:48] Sock 9.Parse request [09:02:48]Sock 9.Check first char [09:02:48]Sock 9.First char is OK [09:02:48]request: POST /json_proto HTTP/1.0 [09:02:48]Method: POST [09:02:48]URL: /json_proto [09:02:48]Method is POST - this is cgi request [09:02:48]url: /json_proto [09:02:48]query_string will be loaded in cgi processing [09:02:48]execute_cgi json_proto POST (null) [09:02:48]execute_cgi path=json_proto method=POST [09:02:48]POST find Content-Length [09:02:48]Host: 172.17.56.67:8080 [09:02:48]Content-Length: 682 [09:02:48]Content-Type: application/json [09:02:48] [09:02:48]POST finish read [09:02:48]Found Content-Length = 682 [09:02:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:02:48]execute_script... [09:02: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)216240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:02:48]POST & json_proto [09:02:48]process_json_proto [09:02:48]json parsed OK: [09:02:48]protocol is kg_v1.0 [09:02:48]action value=close_receipt [09:02:48]process_action close_receipt [09:02:48]cmd_close_receipt [09:02:48]MH_GetDate [09:02:48]Write to MH i2c: F0 00 00 FC 61 4C [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: F0 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: F0 09 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: F0 09 00 FC 61 00 4A BB B8 65 26 5D 9E 65 FD [09:02:48]GetLastDocTimeStamp 1706604990 [09:02:48]current date 1706605386 [09:02:48]FM_GetShiftState [09:02:48]SAM_PROTO_GetShiftState [09:02:48]wFMCommunicate request_size=4 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 13 01 00 [09:02:48]Write to MH i2c: E2 08 00 FD 61 80 13 01 00 00 00 00 00 DB [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 0E 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 0E 00 FD 61 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 03 [09:02:48]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:02:48]wFMCommunicate OK [09:02:48]SAM_PROTO_GetShiftState done [09:02:48]FM_GetShiftState done [09:02:48]opened in 1706572995 [09:02:48]opened+sec_in_day 1706659395 [09:02:48]quantity*price = 100037 [09:02:48]sum+1 = 100039 [09:02:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 16 30.01.2024 09:03 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49140 ФПД: 189871617350567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T090306&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49140&fm=189871617350567&tin=02508201610067®Number=0000000000092723&sum=100000 [09:02:49]StoreToDocumentArchive [09:02:49]shift 246 fd 49140 [09:02:49]save to /storage/0246/doc_00049140 [09:02:49]save last doc name /storage/0246/doc_00049140 to /storage/kkm_last_doc_name [09:02:49]save OK [09:02:49]Clear old archive folders... [09:02:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:49]tlvbuf is 011DD5C0 [09:02:49]SAM_PROTO_ClearQueue [09:02:49]wFMCommunicate request_size=4 [09:02:49]MH_SAM_APDU [09:02:49]CAPDU: 80 09 00 00 [09:02:49]Write to MH i2c: E2 08 00 0A 62 80 09 00 00 00 00 00 00 DE [09:02:49]Write i2c OK [09:02:49]MH_I2C_Read... [09:02:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:49]Read from MH i2c: E2 [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: E2 03 00 [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: E2 03 00 0A 62 00 90 00 E0 [09:02:49]RAPDU: 90 00 [09:02:49]wFMCommunicate OK [09:02:49]SAM_PROTO_ClearQueue done [09:02:49]KKMCreateOFDPacket [09:02:49]OFDProtocolAddRootSTLVToBuf [09:02:49]FM_MakeSignedData [09:02:49]FM_MakeSignedData [09:02:49]SAM_PROTO_SignData [09:02:49]wFMCommunicate request_size=4 [09:02:49]MH_SAM_APDU [09:02:49]CAPDU: 80 0D 01 02 [09:02:49]Write to MH i2c: E2 08 00 0B 62 80 0D 01 02 00 00 00 00 E6 [09:02:49]Write i2c OK [09:02:49]MH_I2C_Read... [09:02:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:49]Read from MH i2c: E2 [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: E2 03 00 [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: E2 03 00 0B 62 00 90 00 E1 [09:02:49]RAPDU: 90 00 [09:02:49]wFMCommunicate OK [09:02:49]wFMCommunicate request_size=255 [09:02:49]MH_SAM_APDU [09:02:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 4A BB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BF 00 00 35 04 06 00 AC [09:02:49]Write to MH i2c: E2 02 01 0C 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 4A BB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BF 00 00 35 04 06 00 AC 00 00 DD [09:02:49]Write i2c OK [09:02:49]MH_I2C_Read... [09:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:50]Read from MH i2c: E2 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 03 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 03 00 0C 62 00 90 00 E2 [09:02:50]RAPDU: 90 00 [09:02:50]wFMCommunicate OK [09:02:50]wFMCommunicate request_size=10 [09:02:50]MH_SAM_APDU [09:02:50]CAPDU: 80 0D 02 02 05 AF EE 4E 1B A7 [09:02:50]Write to MH i2c: E2 0D 00 0D 62 80 0D 02 02 05 00 AF EE 4E 1B A7 00 00 A0 [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:50]Read from MH i2c: E2 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 03 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 03 00 0D 62 00 90 00 E3 [09:02:50]RAPDU: 90 00 [09:02:50]wFMCommunicate OK [09:02:50]wFMCommunicate request_size=4 [09:02:50]MH_SAM_APDU [09:02:50]CAPDU: 80 0D 03 02 [09:02:50]Write to MH i2c: E2 08 00 0E 62 80 0D 03 02 00 00 00 00 EB [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:50]Read from MH i2c: E2 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 0B 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 0B 00 0E 62 00 0D C1 0F 7F 58 DF 70 7E 90 00 6D [09:02:50]RAPDU: 0D C1 0F 7F 58 DF 70 7E 90 00 [09:02:50]wFMCommunicate OK [09:02:50]SAM_PROTO_SignData done [09:02:50]FM_MakeSignedData done [09:02:50]CreateOFDProtocolMessage [09:02:50]wFMCommunicate request_size=4 [09:02:50]MH_SAM_APDU [09:02:50]CAPDU: 80 11 00 00 [09:02:50]Write to MH i2c: E2 08 00 0F 62 80 11 00 00 00 00 00 00 EB [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:50]Read from MH i2c: E2 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 17 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 17 00 0F 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 38 [09:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:02:50]wFMCommunicate OK [09:02:50]CreateOFDProtocolMessage done [09:02:50]OFDSenderStorePacket 49140 [09:02:50]StoreOFDPacket docnum=49140 [09:02:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 95 BD 07 01 AF 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 4A BB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BF 00 00 35 04 06 00 AC AF EE 4E 1B A7 0D C1 0F 7F 58 DF 70 7E [09:02:50]CheckFolder [09:02:50]dirname=/storage/ofd_packets [09:02:50]CheckFolder done [09:02:50]ProducePacketName [09:02:50]name=ofd_packets/00049140 [09:02:50]NVStorageSaveData ofd_packets/00049140 [09:02:50]File name is /storage/ofd_packets/00049140 [09:02:50]Write 301 bytes [09:02:50]NVStorageSaveData done [09:02:50]OFDSenderStorePacket done [09:02:50]KKMCreateOFDPacket done [09:02:50]NVStorageSaveData kkm_last_timestamp [09:02:50]File name is /storage/kkm_last_timestamp [09:02:50]Write 4 bytes [09:02:50]NVStorageSaveData done [09:02:50]ExternCall_PrintAddStr [09:02:50]wPrintStart [09:02:50]Write to MH i2c: 01 00 00 10 62 72 [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: 01 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: 01 07 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: 01 07 00 10 62 00 00 00 00 00 FF 0F 87 [09:02:50]RasterBufferAndPrint [09:02:50]line Счет N : (1)216240 [09:02:50]line ИНН: 02508201610067 [09:02:50]line Контрольно-Кассовый Чек [09:02:50]line ПРОДАЖА [09:02:50]line ТРК (МРК, ГНК) : 22 [09:02:50]line Товар: 2710124130 [09:02:50]line Аи-92-К-5 [09:02:50]line 16.590 * 60.30 [09:02:50]line = 1000.38 [09:02:50]line НДС 12% НСП 1% [09:02:50]line > о реализуемом товаре [09:02:50]line ОКРУГЛЕНИЕ: -0.38 [09:02:50]line ИТОГО: 1000.00 [09:02:50]line Внесено: 1000.00 [09:02:50]line СДАЧА: 0.00 [09:02:50]line НСП 1% : 8.85 [09:02:50]line НДС 12% : 106.23 [09:02:50]line Наличными: 1000.00 [09:02:50]line Безнал.: 0.00 [09:02:50]line Место: АЗС № 102 "Партнер Нефть" [09:02:50]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:02:50]line СНО: Общий режим [09:02:50]line Чек 16 30.01.2024 09:03 [09:02:50]line Смена: 246 ФФД: 1.0 [09:02:50]line ЗНМ: 0300000040 [09:02:50]line РНМ: 0000000000092723 [09:02:50]line Версия ККМ: 001 [09:02:50]line ФМ: 0000000000875060 [09:02:50]line ФД: 49140 [09:02:50]line ФПД: 189871617350567 [09:02:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T090306&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49140&fm=189871617350567&tin=02508201610067®Number=0000000000092723&sum=100000 [09:02:50]OFD Sender: Processing packet 49140 [packets to send 12, broken 11] [09:02:50]ProducePacketName [09:02:50]name=ofd_packets/00049140 [09:02:50]OFD Sender: To server: pG, [09:02:50]CommunicateWithHost lk.salyk.kg:30040 [09:02:50]ConnectInit lk.salyk.kg [09:02:50]written 0, free lines is 4095 [09:02:50]Connected sock=10 [09:02: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 36 30 0F 01 00 00 95 BD 07 01 AF 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 4A BB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BF 00 00 35 04 06 00 AC AF EE 4E 1B A7 0D C1 0F 7F 58 DF 70 7E [09:02: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 36 30 4F 00 00 00 A9 24 47 00 F7 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 36 30 10 04 04 00 F4 BF 00 00 F4 03 04 00 40 67 B8 65 B6 04 01 00 00 A6 D5 A7 68 8A C8 02 76 [09:02:50]CommunicateWithHost err = 0 [09:02:50]CheckOFDResponse [09:02:50]1017 (14) - 77093643461234 [09:02:50]1041 (16) - 0000000000875060 [09:02:50]1040 (4) - 49140 [09:02:50]1012 (4) - 30.01.2024 03:04 [09:02:50]1206 (1) - 0 [09:02:50]OFD Sender: Remove packet 49140 [09:02:50]ProducePacketName [09:02:50]name=ofd_packets/00049140 [09:02:50]NVStorageDeleteData [09:02:51]Write to MH i2c: 01 00 00 3B 62 9D [09:02:51]Write i2c OK [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: 01 [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: 01 07 00 [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: 01 07 00 3B 62 00 00 00 00 00 08 0D B9 [09:02:51]RasterBufferAndPrint [09:02:51]line [09:02:51]line [09:02:51]line [09:02:51]line [09:02:51]line [09:02:51]written 0, free lines is 3342 [09:02:51]MH_Cut [09:02:51]Write to MH i2c: D1 01 00 42 62 01 76 [09:02:51]Write i2c OK [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: D1 [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: D1 01 00 [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: D1 01 00 42 62 00 75 [09:02:51]Write to MH i2c: 01 00 00 43 62 A5 [09:02:51]Write i2c OK [09:02:51]MH_I2C_Read... [09:02:51]OFD Sender: No OFD packet to send [09:02:51]*** Cut start [09:02:51]*** Partial cut [09:02:51]*** CUTSNS_PIN = 1 [09:02:51]*** CUTSNS_PIN = 0 [09:02:51]*** Brake cut motor [09:02:52]Read from MH i2c: 01 [09:02:52]MH_I2C_Read... [09:02:52]*** Stop cut motor [09:02:52]*** Cut end [09:02:52]Read from MH i2c: 01 07 00 [09:02:52]MH_I2C_Read... [09:02:52]Read from MH i2c: 01 07 00 43 62 00 00 00 00 00 FF 0F BA [09:02:52]process_action close_receipt done [09:02:52]requested_data is exist [09:02:52]produce_requested_data [09:02:52]requested_item fm.sn is exist - process it [09:02:52]wFMCommunicate request_size=4 [09:02:52]MH_SAM_APDU [09:02:52]CAPDU: 80 11 00 00 [09:02:52]Write to MH i2c: E2 08 00 44 62 80 11 00 00 00 00 00 00 20 [09:02:52]Write i2c OK [09:02:52]MH_I2C_Read... [09:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:52]Read from MH i2c: E2 [09:02:52]MH_I2C_Read... [09:02:52]Read from MH i2c: E2 17 00 [09:02:52]MH_I2C_Read... [09:02:52]Read from MH i2c: E2 17 00 44 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6D [09:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:02:52]wFMCommunicate OK [09:02:52]requested_item fd.num is exist - process it [09:02:52]SAM_PROTO_GetFieldsCounters [09:02:52]wFMCommunicate request_size=4 [09:02:52]MH_SAM_APDU [09:02:52]CAPDU: 80 13 00 00 [09:02:52]Write to MH i2c: E2 08 00 45 62 80 13 00 00 00 00 00 00 23 [09:02:52]Write i2c OK [09:02:52]MH_I2C_Read... [09:02:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:52]Read from MH i2c: E2 [09:02:52]MH_I2C_Read... [09:02:52]Read from MH i2c: E2 62 00 [09:02:52]MH_I2C_Read... [09:02:52]Read from MH i2c: E2 62 00 45 62 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F4 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [09: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F4 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:52]wFMCommunicate OK [09:02:52]SAM_PROTO_GetFieldsCounters done [09:02:52]requested_item shift.num is exist - process it [09:02:52]requested_item shift.opened is exist - process it [09:02:52]req_shift_opened [09:02:52]FM_GetShiftState [09:02:52]SAM_PROTO_GetShiftState [09:02:52]wFMCommunicate request_size=4 [09:02:52]MH_SAM_APDU [09:02:52]CAPDU: 80 13 01 00 [09:02:52]Write to MH i2c: E2 08 00 46 62 80 13 01 00 00 00 00 00 25 [09:02:52]Write i2c OK [09:02:52]MH_I2C_Read... [09:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:52]Read from MH i2c: E2 [09:02:52]MH_I2C_Read... [09:02:52]Read from MH i2c: E2 0E 00 [09:02:52]MH_I2C_Read... [09:02:52]Read from MH i2c: E2 0E 00 46 62 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4D [09:02:52]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:02:52]wFMCommunicate OK [09:02:52]SAM_PROTO_GetShiftState done [09:02:52]FM_GetShiftState done [09:02:52]req_shift_opened done [09:02:52]requested_item shift.open_date is exist - process it [09:02:52]req_shift_open_date [09:02:52]req_shift_open_date done [09:02:52]produce_requested_data done [09:02:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49140,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:02:52]process_action_free close_receipt [09:02:52]json_value_free [09:02:52]json_value_free done [09:02:52]process_json_proto returns [09:02:52]Send response to host [09:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49140,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:02:52]free response buf [09:02:52]execute_script done [09:02:52]execute_script returns [09:02:52]free content buf [09:02:52]Sock 9.Close socket [09:02:52]Sock 9.Thread stoped [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:04:59]accept exits with 7 [09:04:59]New connection [09:04:59]New thread 3066670436 created [09:04:59]Thread 3066813796 joined [09:04:59]Waiting for new connection... [09:04:59] Sock 7.Parse request [09:04:59]Sock 7.Check first char [09:04:59]Sock 7.First char is OK [09:04:59]request: POST /json_proto HTTP/1.0 [09:04:59]Method: POST [09:04:59]URL: /json_proto [09:04:59]Method is POST - this is cgi request [09:04:59]url: /json_proto [09:04:59]query_string will be loaded in cgi processing [09:04:59]execute_cgi json_proto POST (null) [09:04:59]execute_cgi path=json_proto method=POST [09:04:59]POST find Content-Length [09:04:59]Host: 172.17.56.67:8080 [09:04:59]Content-Length: 677 [09:04:59]Content-Type: application/json [09:04:59] [09:04:59]POST finish read [09:04:59]Found Content-Length = 677 [09:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:59]execute_script... [09:04: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)216241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:59]POST & json_proto [09:04:59]process_json_proto [09:04:59]json parsed OK: [09:04:59]protocol is kg_v1.0 [09:04:59]action value=close_receipt [09:04:59]process_action close_receipt [09:04:59]cmd_close_receipt [09:04:59]MH_GetDate [09:04:59]Write to MH i2c: F0 00 00 47 62 98 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 09 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 09 00 47 62 00 CD BB B8 65 26 5D 9E 65 CC [09:04:59]GetLastDocTimeStamp 1706605386 [09:04:59]current date 1706605517 [09:04:59]FM_GetShiftState [09:04:59]SAM_PROTO_GetShiftState [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 13 01 00 [09:04:59]Write to MH i2c: E2 08 00 48 62 80 13 01 00 00 00 00 00 27 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 48 62 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4F [09:04:59]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_GetShiftState done [09:04:59]FM_GetShiftState done [09:04:59]opened in 1706572995 [09:04:59]opened+sec_in_day 1706659395 [09:04:59]quantity*price = 30029 [09:04:59]sum+1 = 30030 [09:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 17 30.01.2024 09:05 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49141 ФПД: 253501695057381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T090517&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49141&fm=253501695057381&tin=02508201610067®Number=0000000000092723&sum=30000 [09:05:00]StoreToDocumentArchive [09:05:00]shift 246 fd 49141 [09:05:00]save to /storage/0246/doc_00049141 [09:05:00]save last doc name /storage/0246/doc_00049141 to /storage/kkm_last_doc_name [09:05:00]save OK [09:05:00]Clear old archive folders... [09:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:00]tlvbuf is 01283F40 [09:05:00]SAM_PROTO_ClearQueue [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 09 00 00 [09:05:00]Write to MH i2c: E2 08 00 55 62 80 09 00 00 00 00 00 00 29 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 55 62 00 90 00 2B [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]SAM_PROTO_ClearQueue done [09:05:00]KKMCreateOFDPacket [09:05:00]OFDProtocolAddRootSTLVToBuf [09:05:00]FM_MakeSignedData [09:05:00]FM_MakeSignedData [09:05:00]SAM_PROTO_SignData [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 01 02 [09:05:00]Write to MH i2c: E2 08 00 56 62 80 0D 01 02 00 00 00 00 31 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 56 62 00 90 00 2C [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=255 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD BB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BF 00 00 35 04 06 00 E6 [09:05:00]Write to MH i2c: E2 02 01 57 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD BB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BF 00 00 35 04 06 00 E6 00 00 3D [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 57 62 00 90 00 2D [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=10 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 02 02 05 8E F6 7B DD E5 [09:05:00]Write to MH i2c: E2 0D 00 58 62 80 0D 02 02 05 00 8E F6 7B DD E5 00 00 FF [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 58 62 00 90 00 2E [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 03 02 [09:05:00]Write to MH i2c: E2 08 00 59 62 80 0D 03 02 00 00 00 00 36 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 0B 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 0B 00 59 62 00 23 1B 28 9A 3B F7 23 28 90 00 B4 [09:05:00]RAPDU: 23 1B 28 9A 3B F7 23 28 90 00 [09:05:00]wFMCommunicate OK [09:05:00]SAM_PROTO_SignData done [09:05:00]FM_MakeSignedData done [09:05:00]CreateOFDProtocolMessage [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 11 00 00 [09:05:00]Write to MH i2c: E2 08 00 5A 62 80 11 00 00 00 00 00 00 36 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 17 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 17 00 5A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 83 [09:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:05:00]wFMCommunicate OK [09:05:00]CreateOFDProtocolMessage done [09:05:00]OFDSenderStorePacket 49141 [09:05:00]StoreOFDPacket docnum=49141 [09:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B9 2A 07 01 96 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD BB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BF 00 00 35 04 06 00 E6 8E F6 7B DD E5 23 1B 28 9A 3B F7 23 28 [09:05:00]CheckFolder [09:05:00]dirname=/storage/ofd_packets [09:05:00]CheckFolder done [09:05:00]ProducePacketName [09:05:00]name=ofd_packets/00049141 [09:05:00]NVStorageSaveData ofd_packets/00049141 [09:05:00]File name is /storage/ofd_packets/00049141 [09:05:00]Write 301 bytes [09:05:00]NVStorageSaveData done [09:05:00]OFDSenderStorePacket done [09:05:00]KKMCreateOFDPacket done [09:05:00]NVStorageSaveData kkm_last_timestamp [09:05:00]File name is /storage/kkm_last_timestamp [09:05:00]Write 4 bytes [09:05:00]NVStorageSaveData done [09:05:00]ExternCall_PrintAddStr [09:05:00]wPrintStart [09:05:00]Write to MH i2c: 01 00 00 5B 62 BD [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 5B 62 00 00 00 00 00 FF 0F D2 [09:05:00]RasterBufferAndPrint [09:05:00]line Счет N : (1)216241 [09:05:00]line ИНН: 02508201610067 [09:05:00]line Контрольно-Кассовый Чек [09:05:00]line ПРОДАЖА [09:05:00]line ТРК (МРК, ГНК) : 22 [09:05:00]line Товар: 2710124130 [09:05:00]line Аи-92-К-5 [09:05:00]line 4.980 * 60.30 [09:05:00]line = 300.29 [09:05:00]line НДС 12% НСП 1% [09:05:00]line > о реализуемом товаре [09:05:00]line ОКРУГЛЕНИЕ: -0.29 [09:05:00]line ИТОГО: 300.00 [09:05:00]line Внесено: 300.00 [09:05:00]line СДАЧА: 0.00 [09:05:00]line НСП 1% : 2.66 [09:05:00]line НДС 12% : 31.89 [09:05:00]line Наличными: 300.00 [09:05:00]line Безнал.: 0.00 [09:05:00]line Место: АЗС № 102 "Партнер Нефть" [09:05:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:05:00]line СНО: Общий режим [09:05:00]line Чек 17 30.01.2024 09:05 [09:05:00]line Смена: 246 ФФД: 1.0 [09:05:00]line ЗНМ: 0300000040 [09:05:00]line РНМ: 0000000000092723 [09:05:00]line Версия ККМ: 001 [09:05:00]line ФМ: 0000000000875060 [09:05:00]line ФД: 49141 [09:05:00]line ФПД: 253501695057381 [09:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T090517&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49141&fm=253501695057381&tin=02508201610067®Number=0000000000092723&sum=30000 [09:05:01]OFD Sender: Processing packet 49141 [packets to send 12, broken 11] [09:05:01]ProducePacketName [09:05:01]name=ofd_packets/00049141 [09:05:01]OFD Sender: To server: pG, [09:05:01]CommunicateWithHost lk.salyk.kg:30040 [09:05:01]ConnectInit lk.salyk.kg [09:05:01]written 0, free lines is 4095 [09:05:01]Connected sock=10 [09:05: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 36 30 0F 01 00 00 B9 2A 07 01 96 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD BB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BF 00 00 35 04 06 00 E6 8E F6 7B DD E5 23 1B 28 9A 3B F7 23 28 [09:05: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 36 30 4F 00 00 00 10 D6 47 00 A5 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BF 00 00 F4 03 04 00 C3 67 B8 65 B6 04 01 00 00 E8 9D 39 48 F4 13 5A 35 [09:05:01]CommunicateWithHost err = 0 [09:05:01]CheckOFDResponse [09:05:01]1017 (14) - 77093643461234 [09:05:01]1041 (16) - 0000000000875060 [09:05:01]1040 (4) - 49141 [09:05:01]1012 (4) - 30.01.2024 03:06 [09:05:01]1206 (1) - 0 [09:05:01]OFD Sender: Remove packet 49141 [09:05:01]ProducePacketName [09:05:01]name=ofd_packets/00049141 [09:05:01]NVStorageDeleteData [09:05:01]Write to MH i2c: 01 00 00 86 62 E8 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 86 62 00 00 00 00 00 F1 0C EC [09:05:01]RasterBufferAndPrint [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]written 0, free lines is 3320 [09:05:01]MH_Cut [09:05:01]Write to MH i2c: D1 01 00 8D 62 01 C1 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 01 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 01 00 8D 62 00 C0 [09:05:01]Write to MH i2c: 01 00 00 8E 62 F0 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:02]OFD Sender: No OFD packet to send [09:05:02]*** Cut start [09:05:02]*** Partial cut [09:05:02]*** CUTSNS_PIN = 1 [09:05:02]*** CUTSNS_PIN = 0 [09:05:02]*** Brake cut motor [09:05:02]Read from MH i2c: 01 [09:05:02]MH_I2C_Read... [09:05:02]*** Stop cut motor [09:05:02]*** Cut end [09:05:02]Read from MH i2c: 01 07 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: 01 07 00 8E 62 00 00 00 00 00 FF 0F 05 [09:05:02]process_action close_receipt done [09:05:02]requested_data is exist [09:05:02]produce_requested_data [09:05:02]requested_item fm.sn is exist - process it [09:05:02]wFMCommunicate request_size=4 [09:05:02]MH_SAM_APDU [09:05:02]CAPDU: 80 11 00 00 [09:05:02]Write to MH i2c: E2 08 00 8F 62 80 11 00 00 00 00 00 00 6B [09:05:02]Write i2c OK [09:05:02]MH_I2C_Read... [09:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:02]Read from MH i2c: E2 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 17 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 17 00 8F 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B8 [09:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:05:02]wFMCommunicate OK [09:05:02]requested_item fd.num is exist - process it [09:05:02]SAM_PROTO_GetFieldsCounters [09:05:02]wFMCommunicate request_size=4 [09:05:02]MH_SAM_APDU [09:05:02]CAPDU: 80 13 00 00 [09:05:02]Write to MH i2c: E2 08 00 90 62 80 13 00 00 00 00 00 00 6E [09:05:02]Write i2c OK [09:05:02]MH_I2C_Read... [09:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:03]Read from MH i2c: E2 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 62 00 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 62 00 90 62 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F5 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [09:05:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F5 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:03]wFMCommunicate OK [09:05:03]SAM_PROTO_GetFieldsCounters done [09:05:03]requested_item shift.num is exist - process it [09:05:03]requested_item shift.opened is exist - process it [09:05:03]req_shift_opened [09:05:03]FM_GetShiftState [09:05:03]SAM_PROTO_GetShiftState [09:05:03]wFMCommunicate request_size=4 [09:05:03]MH_SAM_APDU [09:05:03]CAPDU: 80 13 01 00 [09:05:03]Write to MH i2c: E2 08 00 91 62 80 13 01 00 00 00 00 00 70 [09:05:03]Write i2c OK [09:05:03]MH_I2C_Read... [09:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:03]Read from MH i2c: E2 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 0E 00 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 0E 00 91 62 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 98 [09:05:03]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:05:03]wFMCommunicate OK [09:05:03]SAM_PROTO_GetShiftState done [09:05:03]FM_GetShiftState done [09:05:03]req_shift_opened done [09:05:03]requested_item shift.open_date is exist - process it [09:05:03]req_shift_open_date [09:05:03]req_shift_open_date done [09:05:03]produce_requested_data done [09:05:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49141,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:05:03]process_action_free close_receipt [09:05:03]json_value_free [09:05:03]json_value_free done [09:05:03]process_json_proto returns [09:05:03]Send response to host [09:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49141,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:05:03]free response buf [09:05:03]execute_script done [09:05:03]execute_script returns [09:05:03]free content buf [09:05:03]Sock 7.Close socket [09:05:03]Sock 7.Thread stoped [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:37]accept exits with 9 [09:06:37]New connection [09:06:37]New thread 3066813796 created [09:06:37]Thread 3066670436 joined [09:06:37]Waiting for new connection... [09:06:37] Sock 9.Parse request [09:06:37]Sock 9.Check first char [09:06:37]Sock 9.First char is OK [09:06:37]request: POST /json_proto HTTP/1.0 [09:06:37]Method: POST [09:06:37]URL: /json_proto [09:06:37]Method is POST - this is cgi request [09:06:37]url: /json_proto [09:06:37]query_string will be loaded in cgi processing [09:06:37]execute_cgi json_proto POST (null) [09:06:37]execute_cgi path=json_proto method=POST [09:06:37]POST find Content-Length [09:06:37]Host: 172.17.56.67:8080 [09:06:37]Content-Length: 677 [09:06:37]Content-Type: application/json [09:06:37] [09:06:37]POST finish read [09:06:37]Found Content-Length = 677 [09:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [09:06:37]execute_script... [09:06: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)216242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [09:06:37]POST & json_proto [09:06:37]process_json_proto [09:06:37]json parsed OK: [09:06:37]protocol is kg_v1.0 [09:06:37]action value=close_receipt [09:06:37]process_action close_receipt [09:06:37]cmd_close_receipt [09:06:37]MH_GetDate [09:06:37]Write to MH i2c: F0 00 00 92 62 E3 [09:06:37]Write i2c OK [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 09 00 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 09 00 92 62 00 2F BC B8 65 26 5D 9E 65 7A [09:06:37]GetLastDocTimeStamp 1706605517 [09:06:37]current date 1706605615 [09:06:37]FM_GetShiftState [09:06:37]SAM_PROTO_GetShiftState [09:06:37]wFMCommunicate request_size=4 [09:06:37]MH_SAM_APDU [09:06:37]CAPDU: 80 13 01 00 [09:06:37]Write to MH i2c: E2 08 00 93 62 80 13 01 00 00 00 00 00 72 [09:06:37]Write i2c OK [09:06:37]MH_I2C_Read... [09:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:37]Read from MH i2c: E2 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: E2 0E 00 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: E2 0E 00 93 62 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 9A [09:06:37]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:06:37]wFMCommunicate OK [09:06:37]SAM_PROTO_GetShiftState done [09:06:37]FM_GetShiftState done [09:06:37]opened in 1706572995 [09:06:37]opened+sec_in_day 1706659395 [09:06:37]quantity*price = 20019 [09:06:37]sum+1 = 20021 [09:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 18 30.01.2024 09:06 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49142 ФПД: 126086498428091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T090655&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49142&fm=126086498428091&tin=02508201610067®Number=0000000000092723&sum=20000 [09:06:38]StoreToDocumentArchive [09:06:38]shift 246 fd 49142 [09:06:38]save to /storage/0246/doc_00049142 [09:06:38]save last doc name /storage/0246/doc_00049142 to /storage/kkm_last_doc_name [09:06:38]save OK [09:06:38]Clear old archive folders... [09:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:38]tlvbuf is 011F85D0 [09:06:38]SAM_PROTO_ClearQueue [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 09 00 00 [09:06:38]Write to MH i2c: E2 08 00 A0 62 80 09 00 00 00 00 00 00 74 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 A0 62 00 90 00 76 [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]SAM_PROTO_ClearQueue done [09:06:38]KKMCreateOFDPacket [09:06:38]OFDProtocolAddRootSTLVToBuf [09:06:38]FM_MakeSignedData [09:06:38]FM_MakeSignedData [09:06:38]SAM_PROTO_SignData [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 01 02 [09:06:38]Write to MH i2c: E2 08 00 A1 62 80 0D 01 02 00 00 00 00 7C [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 A1 62 00 90 00 77 [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]wFMCommunicate request_size=255 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2F BC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BF 00 00 35 04 06 00 72 [09:06:38]Write to MH i2c: E2 02 01 A2 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2F BC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BF 00 00 35 04 06 00 72 00 00 C3 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 A2 62 00 90 00 78 [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]wFMCommunicate request_size=10 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 02 02 05 AC CC F3 24 BB [09:06:38]Write to MH i2c: E2 0D 00 A3 62 80 0D 02 02 05 00 AC CC F3 24 BB 00 00 D3 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 A3 62 00 90 00 79 [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 03 02 [09:06:38]Write to MH i2c: E2 08 00 A4 62 80 0D 03 02 00 00 00 00 81 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 0B 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 0B 00 A4 62 00 1C 29 C5 5D EA E4 CD 38 90 00 BC [09:06:38]RAPDU: 1C 29 C5 5D EA E4 CD 38 90 00 [09:06:38]wFMCommunicate OK [09:06:38]SAM_PROTO_SignData done [09:06:38]FM_MakeSignedData done [09:06:38]CreateOFDProtocolMessage [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 11 00 00 [09:06:38]Write to MH i2c: E2 08 00 A5 62 80 11 00 00 00 00 00 00 81 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 17 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 17 00 A5 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CE [09:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:06:38]wFMCommunicate OK [09:06:38]CreateOFDProtocolMessage done [09:06:38]OFDSenderStorePacket 49142 [09:06:38]StoreOFDPacket docnum=49142 [09:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BC 2A 07 01 12 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2F BC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BF 00 00 35 04 06 00 72 AC CC F3 24 BB 1C 29 C5 5D EA E4 CD 38 [09:06:38]CheckFolder [09:06:38]dirname=/storage/ofd_packets [09:06:38]CheckFolder done [09:06:38]ProducePacketName [09:06:38]name=ofd_packets/00049142 [09:06:38]NVStorageSaveData ofd_packets/00049142 [09:06:38]File name is /storage/ofd_packets/00049142 [09:06:38]Write 301 bytes [09:06:38]NVStorageSaveData done [09:06:38]OFDSenderStorePacket done [09:06:38]KKMCreateOFDPacket done [09:06:38]NVStorageSaveData kkm_last_timestamp [09:06:38]File name is /storage/kkm_last_timestamp [09:06:38]Write 4 bytes [09:06:38]NVStorageSaveData done [09:06:38]ExternCall_PrintAddStr [09:06:38]wPrintStart [09:06:38]Write to MH i2c: 01 00 00 A6 62 08 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: 01 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: 01 07 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: 01 07 00 A6 62 00 00 00 00 00 FF 0F 1D [09:06:38]RasterBufferAndPrint [09:06:38]line Счет N : (1)216242 [09:06:38]line ИНН: 02508201610067 [09:06:38]line Контрольно-Кассовый Чек [09:06:38]line ПРОДАЖА [09:06:38]line ТРК (МРК, ГНК) : 12 [09:06:38]line Товар: 2710124130 [09:06:38]line Аи-92-К-5 [09:06:38]line 3.320 * 60.30 [09:06:38]line = 200.20 [09:06:38]line НДС 12% НСП 1% [09:06:38]line > о реализуемом товаре [09:06:38]line ОКРУГЛЕНИЕ: -0.20 [09:06:38]line ИТОГО: 200.00 [09:06:38]line Внесено: 200.00 [09:06:38]line СДАЧА: 0.00 [09:06:38]line НСП 1% : 1.77 [09:06:38]line НДС 12% : 21.26 [09:06:38]line Наличными: 200.00 [09:06:38]line Безнал.: 0.00 [09:06:38]line Место: АЗС № 102 "Партнер Нефть" [09:06:38]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:06:38]line СНО: Общий режим [09:06:38]line Чек 18 30.01.2024 09:06 [09:06:38]line Смена: 246 ФФД: 1.0 [09:06:38]line ЗНМ: 0300000040 [09:06:38]line РНМ: 0000000000092723 [09:06:38]line Версия ККМ: 001 [09:06:38]line ФМ: 0000000000875060 [09:06:38]line ФД: 49142 [09:06:38]line ФПД: 126086498428091 [09:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T090655&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49142&fm=126086498428091&tin=02508201610067®Number=0000000000092723&sum=20000 [09:06:39]OFD Sender: Processing packet 49142 [packets to send 12, broken 11] [09:06:39]ProducePacketName [09:06:39]name=ofd_packets/00049142 [09:06:39]OFD Sender: To server: pG, [09:06:39]CommunicateWithHost lk.salyk.kg:30040 [09:06:39]ConnectInit lk.salyk.kg [09:06:39]written 0, free lines is 4095 [09:06:39]Connected sock=10 [09:06: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 36 30 0F 01 00 00 BC 2A 07 01 12 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 2F BC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BF 00 00 35 04 06 00 72 AC CC F3 24 BB 1C 29 C5 5D EA E4 CD 38 [09:06: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 36 30 4F 00 00 00 FB 97 47 00 2D A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BF 00 00 F4 03 04 00 25 68 B8 65 B6 04 01 00 00 9E 0B A2 26 2E 22 15 CB [09:06:39]CommunicateWithHost err = 0 [09:06:39]CheckOFDResponse [09:06:39]1017 (14) - 77093643461234 [09:06:39]1041 (16) - 0000000000875060 [09:06:39]1040 (4) - 49142 [09:06:39]1012 (4) - 30.01.2024 03:08 [09:06:39]1206 (1) - 0 [09:06:39]OFD Sender: Remove packet 49142 [09:06:39]ProducePacketName [09:06:39]name=ofd_packets/00049142 [09:06:39]NVStorageDeleteData [09:06:39]Write to MH i2c: 01 00 00 D1 62 33 [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 07 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 07 00 D1 62 00 00 00 00 00 F2 0C 38 [09:06:39]RasterBufferAndPrint [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]written 0, free lines is 3320 [09:06:39]MH_Cut [09:06:39]Write to MH i2c: D1 01 00 D8 62 01 0C [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 01 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 01 00 D8 62 00 0B [09:06:39]Write to MH i2c: 01 00 00 D9 62 3B [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:40]OFD Sender: No OFD packet to send [09:06:40]*** Cut start [09:06:40]*** Partial cut [09:06:40]*** CUTSNS_PIN = 1 [09:06:40]*** CUTSNS_PIN = 0 [09:06:40]*** Brake cut motor [09:06:40]Read from MH i2c: 01 [09:06:40]MH_I2C_Read... [09:06:40]*** Stop cut motor [09:06:40]*** Cut end [09:06:40]Read from MH i2c: 01 07 00 [09:06:40]MH_I2C_Read... [09:06:40]Read from MH i2c: 01 07 00 D9 62 00 00 00 00 00 FF 0F 50 [09:06:40]process_action close_receipt done [09:06:40]requested_data is exist [09:06:40]produce_requested_data [09:06:40]requested_item fm.sn is exist - process it [09:06:40]wFMCommunicate request_size=4 [09:06:40]MH_SAM_APDU [09:06:40]CAPDU: 80 11 00 00 [09:06:40]Write to MH i2c: E2 08 00 DA 62 80 11 00 00 00 00 00 00 B6 [09:06:40]Write i2c OK [09:06:40]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 17 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 17 00 DA 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 03 [09:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:06:41]wFMCommunicate OK [09:06:41]requested_item fd.num is exist - process it [09:06:41]SAM_PROTO_GetFieldsCounters [09:06:41]wFMCommunicate request_size=4 [09:06:41]MH_SAM_APDU [09:06:41]CAPDU: 80 13 00 00 [09:06:41]Write to MH i2c: E2 08 00 DB 62 80 13 00 00 00 00 00 00 B9 [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 62 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 62 00 DB 62 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F6 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [09:06: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F6 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:41]wFMCommunicate OK [09:06:41]SAM_PROTO_GetFieldsCounters done [09:06:41]requested_item shift.num is exist - process it [09:06:41]requested_item shift.opened is exist - process it [09:06:41]req_shift_opened [09:06:41]FM_GetShiftState [09:06:41]SAM_PROTO_GetShiftState [09:06:41]wFMCommunicate request_size=4 [09:06:41]MH_SAM_APDU [09:06:41]CAPDU: 80 13 01 00 [09:06:41]Write to MH i2c: E2 08 00 DC 62 80 13 01 00 00 00 00 00 BB [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 0E 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 0E 00 DC 62 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E3 [09:06:41]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:06:41]wFMCommunicate OK [09:06:41]SAM_PROTO_GetShiftState done [09:06:41]FM_GetShiftState done [09:06:41]req_shift_opened done [09:06:41]requested_item shift.open_date is exist - process it [09:06:41]req_shift_open_date [09:06:41]req_shift_open_date done [09:06:41]produce_requested_data done [09:06:41]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49142,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:06:41]process_action_free close_receipt [09:06:41]json_value_free [09:06:41]json_value_free done [09:06:41]process_json_proto returns [09:06:41]Send response to host [09:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49142,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:06:41]free response buf [09:06:41]execute_script done [09:06:41]execute_script returns [09:06:41]free content buf [09:06:41]Sock 9.Close socket [09:06:41]Sock 9.Thread stoped [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:48]int [09:11:48]Write to MH i2c: 01 00 00 DD 62 3F [09:11:48]*** FLAG_PRN_PAP1 set [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 07 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 07 00 DD 62 00 01 00 00 00 FF 0F 55 [09:11:48]state=0 [09:11:48]No paper [09:11:48]int [09:11:48]Write to MH i2c: 01 00 00 DE 62 40 [09:11:48]*** FLAG_PRN_PAP2 set [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 07 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 07 00 DE 62 00 03 00 00 00 FF 0F 58 [09:11:48]state=0 [09:11:48]No paper [09:11:48]Cover opened [09:11:50]OFD Sender: No OFD packet to send [09:11:51]int [09:11:51]Write to MH i2c: 01 00 00 DF 62 41 [09:11:51]*** FLAG_PRN_PAP2 reset [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 DF 62 00 01 00 00 00 FF 0F 57 [09:11:51]state=3 [09:11:51]No paper [09:11:51]Cover closed [09:11:51]int [09:11:51]Write to MH i2c: 01 00 00 E0 62 42 [09:11:51]*** FLAG_PRN_PAP2 set [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 E0 62 00 03 00 00 00 FF 0F 5A [09:11:51]state=0 [09:11:51]No paper [09:11:51]Cover opened [09:11:51]int [09:11:51]Write to MH i2c: 01 00 00 E1 62 43 [09:11:51]*** FLAG_PRN_PAP2 reset [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 E1 62 00 01 00 00 00 FF 0F 59 [09:11:51]state=3 [09:11:51]No paper [09:11:51]Cover closed [09:11:51]int [09:11:51]Write to MH i2c: 01 00 00 E2 62 44 [09:11:51]*** FLAG_PRN_PAP1 reset [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 E2 62 00 00 00 00 00 FF 0F 59 [09:11:51]state=0 [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:17]accept exits with 7 [09:17:17]New connection [09:17:17]New thread 3066670436 created [09:17:17]Thread 3066813796 joined [09:17:17]Waiting for new connection... [09:17:17] Sock 7.Parse request [09:17:17]Sock 7.Check first char [09:17:17]Sock 7.First char is OK [09:17:17]request: POST /json_proto HTTP/1.0 [09:17:17]Method: POST [09:17:17]URL: /json_proto [09:17:17]Method is POST - this is cgi request [09:17:17]url: /json_proto [09:17:17]query_string will be loaded in cgi processing [09:17:17]execute_cgi json_proto POST (null) [09:17:17]execute_cgi path=json_proto method=POST [09:17:17]POST find Content-Length [09:17:17]Host: 172.17.56.67:8080 [09:17:17]Content-Length: 682 [09:17:17]Content-Type: application/json [09:17:17] [09:17:17]POST finish read [09:17:17]Found Content-Length = 682 [09:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:17]execute_script... [09:17:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:17]POST & json_proto [09:17:17]process_json_proto [09:17:17]json parsed OK: [09:17:17]protocol is kg_v1.0 [09:17:17]action value=close_receipt [09:17:17]process_action close_receipt [09:17:17]cmd_close_receipt [09:17:17]MH_GetDate [09:17:17]Write to MH i2c: F0 00 00 E3 62 34 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: F0 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: F0 09 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: F0 09 00 E3 62 00 AF BE B8 65 26 5D 9E 65 4D [09:17:17]GetLastDocTimeStamp 1706605615 [09:17:17]current date 1706606255 [09:17:17]FM_GetShiftState [09:17:17]SAM_PROTO_GetShiftState [09:17:17]wFMCommunicate request_size=4 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 13 01 00 [09:17:17]Write to MH i2c: E2 08 00 E4 62 80 13 01 00 00 00 00 00 C3 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 0E 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 0E 00 E4 62 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 EB [09:17:17]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:17:17]wFMCommunicate OK [09:17:17]SAM_PROTO_GetShiftState done [09:17:17]FM_GetShiftState done [09:17:17]opened in 1706572995 [09:17:17]opened+sec_in_day 1706659395 [09:17:17]quantity*price = 100037 [09:17:17]sum+1 = 100039 [09:17:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 19 30.01.2024 09:17 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49143 ФПД: 208011266233071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T091735&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49143&fm=208011266233071&tin=02508201610067®Number=0000000000092723&sum=100000 [09:17:18]StoreToDocumentArchive [09:17:18]shift 246 fd 49143 [09:17:18]save to /storage/0246/doc_00049143 [09:17:18]save last doc name /storage/0246/doc_00049143 to /storage/kkm_last_doc_name [09:17:18]save OK [09:17:18]Clear old archive folders... [09:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:18]tlvbuf is B6F337E0 [09:17:18]SAM_PROTO_ClearQueue [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 09 00 00 [09:17:18]Write to MH i2c: E2 08 00 F1 62 80 09 00 00 00 00 00 00 C5 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 F1 62 00 90 00 C7 [09:17:18]RAPDU: 90 00 [09:17:18]wFMCommunicate OK [09:17:18]SAM_PROTO_ClearQueue done [09:17:18]KKMCreateOFDPacket [09:17:18]OFDProtocolAddRootSTLVToBuf [09:17:18]FM_MakeSignedData [09:17:18]FM_MakeSignedData [09:17:18]SAM_PROTO_SignData [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 0D 01 02 [09:17:18]Write to MH i2c: E2 08 00 F2 62 80 0D 01 02 00 00 00 00 CD [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 F2 62 00 90 00 C8 [09:17:18]RAPDU: 90 00 [09:17:18]wFMCommunicate OK [09:17:18]wFMCommunicate request_size=255 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 AF BE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BF 00 00 35 04 06 00 BD [09:17:18]Write to MH i2c: E2 02 01 F3 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 AF BE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BF 00 00 35 04 06 00 BD 00 00 43 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 F3 62 00 90 00 C9 [09:17:18]RAPDU: 90 00 [09:17:18]wFMCommunicate OK [09:17:18]wFMCommunicate request_size=10 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 0D 02 02 05 2F 65 A2 12 EF [09:17:18]Write to MH i2c: E2 0D 00 F4 62 80 0D 02 02 05 00 2F 65 A2 12 EF 00 00 11 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 F4 62 00 90 00 CA [09:17:18]RAPDU: 90 00 [09:17:18]wFMCommunicate OK [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 0D 03 02 [09:17:18]Write to MH i2c: E2 08 00 F5 62 80 0D 03 02 00 00 00 00 D2 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 0B 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 0B 00 F5 62 00 E0 54 4C E1 16 BC B5 C7 90 00 82 [09:17:18]RAPDU: E0 54 4C E1 16 BC B5 C7 90 00 [09:17:18]wFMCommunicate OK [09:17:18]SAM_PROTO_SignData done [09:17:18]FM_MakeSignedData done [09:17:18]CreateOFDProtocolMessage [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 11 00 00 [09:17:18]Write to MH i2c: E2 08 00 F6 62 80 11 00 00 00 00 00 00 D2 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 17 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 17 00 F6 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1F [09:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:17:18]wFMCommunicate OK [09:17:18]CreateOFDProtocolMessage done [09:17:18]OFDSenderStorePacket 49143 [09:17:18]StoreOFDPacket docnum=49143 [09:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8A DC 07 01 57 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 AF BE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BF 00 00 35 04 06 00 BD 2F 65 A2 12 EF E0 54 4C E1 16 BC B5 C7 [09:17:18]CheckFolder [09:17:18]dirname=/storage/ofd_packets [09:17:18]CheckFolder done [09:17:18]ProducePacketName [09:17:18]name=ofd_packets/00049143 [09:17:18]NVStorageSaveData ofd_packets/00049143 [09:17:18]File name is /storage/ofd_packets/00049143 [09:17:18]Write 301 bytes [09:17:18]NVStorageSaveData done [09:17:18]OFDSenderStorePacket done [09:17:18]KKMCreateOFDPacket done [09:17:18]NVStorageSaveData kkm_last_timestamp [09:17:18]File name is /storage/kkm_last_timestamp [09:17:18]Write 4 bytes [09:17:18]NVStorageSaveData done [09:17:18]ExternCall_PrintAddStr [09:17:18]wPrintStart [09:17:18]Write to MH i2c: 01 00 00 F7 62 59 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 F7 62 00 00 00 00 00 FF 0F 6E [09:17:18]RasterBufferAndPrint [09:17:18]line Счет N : (1)216243 [09:17:18]line ИНН: 02508201610067 [09:17:18]line Контрольно-Кассовый Чек [09:17:18]line ПРОДАЖА [09:17:18]line ТРК (МРК, ГНК) : 22 [09:17:18]line Товар: 2710124130 [09:17:18]line Аи-92-К-5 [09:17:18]line 16.590 * 60.30 [09:17:18]line = 1000.38 [09:17:18]line НДС 12% НСП 1% [09:17:18]line > о реализуемом товаре [09:17:18]line ОКРУГЛЕНИЕ: -0.38 [09:17:18]line ИТОГО: 1000.00 [09:17:18]line Внесено: 1000.00 [09:17:18]line СДАЧА: 0.00 [09:17:18]line НСП 1% : 8.85 [09:17:18]line НДС 12% : 106.23 [09:17:18]line Наличными: 1000.00 [09:17:18]line Безнал.: 0.00 [09:17:18]line Место: АЗС № 102 "Партнер Нефть" [09:17:18]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:17:18]line СНО: Общий режим [09:17:18]line Чек 19 30.01.2024 09:17 [09:17:18]line Смена: 246 ФФД: 1.0 [09:17:18]line ЗНМ: 0300000040 [09:17:18]line РНМ: 0000000000092723 [09:17:18]line Версия ККМ: 001 [09:17:18]line ФМ: 0000000000875060 [09:17:18]line ФД: 49143 [09:17:18]line ФПД: 208011266233071 [09:17:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T091735&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49143&fm=208011266233071&tin=02508201610067®Number=0000000000092723&sum=100000 [09:17:19]OFD Sender: Processing packet 49143 [packets to send 12, broken 11] [09:17:19]ProducePacketName [09:17:19]name=ofd_packets/00049143 [09:17:19]OFD Sender: To server: pG, [09:17:19]CommunicateWithHost lk.salyk.kg:30040 [09:17:19]ConnectInit lk.salyk.kg [09:17:19]written 0, free lines is 4095 [09:17:19]Connected sock=11 [09:17: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 36 30 0F 01 00 00 8A DC 07 01 57 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 AF BE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BF 00 00 35 04 06 00 BD 2F 65 A2 12 EF E0 54 4C E1 16 BC B5 C7 [09:17:19]Write to MH i2c: 01 00 00 22 63 85 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: 01 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: 01 07 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: 01 07 00 22 63 00 00 00 00 00 EF 0C 87 [09:17:19]RasterBufferAndPrint [09:17:19]line [09:17:19]line [09:17:19]line [09:17:19]line [09:17:19]line [09:17: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 36 30 4F 00 00 00 67 7C 47 00 19 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BF 00 00 F4 03 04 00 A5 6A B8 65 B6 04 01 00 00 4B DA 1C 1C 40 64 25 6B [09:17:19]CommunicateWithHost err = 0 [09:17:19]CheckOFDResponse [09:17:19]1017 (14) - 77093643461234 [09:17:19]1041 (16) - 0000000000875060 [09:17:19]1040 (4) - 49143 [09:17:19]1012 (4) - 30.01.2024 03:19 [09:17:19]1206 (1) - 0 [09:17:19]OFD Sender: Remove packet 49143 [09:17:19]ProducePacketName [09:17:19]name=ofd_packets/00049143 [09:17:19]NVStorageDeleteData [09:17:19]written 0, free lines is 3332 [09:17:19]MH_Cut [09:17:19]Write to MH i2c: D1 01 00 29 63 01 5E [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: D1 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: D1 01 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: D1 01 00 29 63 00 5D [09:17:19]Write to MH i2c: 01 00 00 2A 63 8D [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:20]OFD Sender: No OFD packet to send [09:17:20]*** Cut start [09:17:20]*** Partial cut [09:17:20]*** CUTSNS_PIN = 1 [09:17:20]*** CUTSNS_PIN = 0 [09:17:20]*** Brake cut motor [09:17:20]Read from MH i2c: 01 [09:17:20]MH_I2C_Read... [09:17:20]*** Stop cut motor [09:17:20]*** Cut end [09:17:20]Read from MH i2c: 01 07 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: 01 07 00 2A 63 00 00 00 00 00 FF 0F A2 [09:17:20]process_action close_receipt done [09:17:20]requested_data is exist [09:17:20]produce_requested_data [09:17:20]requested_item fm.sn is exist - process it [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 11 00 00 [09:17:20]Write to MH i2c: E2 08 00 2B 63 80 11 00 00 00 00 00 00 08 [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 17 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 17 00 2B 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 55 [09:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:17:20]wFMCommunicate OK [09:17:20]requested_item fd.num is exist - process it [09:17:20]SAM_PROTO_GetFieldsCounters [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 13 00 00 [09:17:20]Write to MH i2c: E2 08 00 2C 63 80 13 00 00 00 00 00 00 0B [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 62 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 62 00 2C 63 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F7 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [09:17: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F7 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:20]wFMCommunicate OK [09:17:20]SAM_PROTO_GetFieldsCounters done [09:17:20]requested_item shift.num is exist - process it [09:17:20]requested_item shift.opened is exist - process it [09:17:20]req_shift_opened [09:17:20]FM_GetShiftState [09:17:20]SAM_PROTO_GetShiftState [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 13 01 00 [09:17:20]Write to MH i2c: E2 08 00 2D 63 80 13 01 00 00 00 00 00 0D [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:21]Read from MH i2c: E2 [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: E2 0E 00 [09:17:21]MH_I2C_Read... [09:17:21]Read from MH i2c: E2 0E 00 2D 63 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 35 [09:17:21]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:17:21]wFMCommunicate OK [09:17:21]SAM_PROTO_GetShiftState done [09:17:21]FM_GetShiftState done [09:17:21]req_shift_opened done [09:17:21]requested_item shift.open_date is exist - process it [09:17:21]req_shift_open_date [09:17:21]req_shift_open_date done [09:17:21]produce_requested_data done [09:17:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49143,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:17:21]process_action_free close_receipt [09:17:21]json_value_free [09:17:21]json_value_free done [09:17:21]process_json_proto returns [09:17:21]Send response to host [09:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49143,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:17:21]free response buf [09:17:21]execute_script done [09:17:21]execute_script returns [09:17:21]free content buf [09:17:21]Sock 7.Close socket [09:17:21]Sock 7.Thread stoped [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:42]accept exits with 9 [09:18:42]New connection [09:18:42]New thread 3066813796 created [09:18:42]Thread 3066670436 joined [09:18:42]Waiting for new connection... [09:18:42] Sock 9.Parse request [09:18:42]Sock 9.Check first char [09:18:42]Sock 9.First char is OK [09:18:42]request: POST /json_proto HTTP/1.0 [09:18:42]Method: POST [09:18:42]URL: /json_proto [09:18:42]Method is POST - this is cgi request [09:18:42]url: /json_proto [09:18:42]query_string will be loaded in cgi processing [09:18:42]execute_cgi json_proto POST (null) [09:18:42]execute_cgi path=json_proto method=POST [09:18:42]POST find Content-Length [09:18:42]Host: 172.17.56.67:8080 [09:18:42]Content-Length: 677 [09:18:42]Content-Type: application/json [09:18:42] [09:18:42]POST finish read [09:18:42]Found Content-Length = 677 [09:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:42]execute_script... [09:18: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)216244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:42]POST & json_proto [09:18:42]process_json_proto [09:18:42]json parsed OK: [09:18:42]protocol is kg_v1.0 [09:18:42]action value=close_receipt [09:18:42]process_action close_receipt [09:18:42]cmd_close_receipt [09:18:42]MH_GetDate [09:18:42]Write to MH i2c: F0 00 00 2E 63 80 [09:18:42]Write i2c OK [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: F0 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: F0 09 00 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: F0 09 00 2E 63 00 04 BF B8 65 26 5D 9E 65 EF [09:18:42]GetLastDocTimeStamp 1706606255 [09:18:42]current date 1706606340 [09:18:42]FM_GetShiftState [09:18:42]SAM_PROTO_GetShiftState [09:18:42]wFMCommunicate request_size=4 [09:18:42]MH_SAM_APDU [09:18:42]CAPDU: 80 13 01 00 [09:18:42]Write to MH i2c: E2 08 00 2F 63 80 13 01 00 00 00 00 00 0F [09:18:42]Write i2c OK [09:18:42]MH_I2C_Read... [09:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:42]Read from MH i2c: E2 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: E2 0E 00 [09:18:42]MH_I2C_Read... [09:18:42]Read from MH i2c: E2 0E 00 2F 63 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 37 [09:18:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:18:42]wFMCommunicate OK [09:18:42]SAM_PROTO_GetShiftState done [09:18:42]FM_GetShiftState done [09:18:42]opened in 1706572995 [09:18:42]opened+sec_in_day 1706659395 [09:18:42]quantity*price = 60058 [09:18:42]sum+1 = 60060 [09:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 20 30.01.2024 09:19 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49144 ФПД: 245204513408919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T091900&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49144&fm=245204513408919&tin=02508201610067®Number=0000000000092723&sum=60000 [09:18:43]StoreToDocumentArchive [09:18:43]shift 246 fd 49144 [09:18:43]save to /storage/0246/doc_00049144 [09:18:43]save last doc name /storage/0246/doc_00049144 to /storage/kkm_last_doc_name [09:18:43]save OK [09:18:43]Clear old archive folders... [09:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:43]tlvbuf is 01284230 [09:18:43]SAM_PROTO_ClearQueue [09:18:43]wFMCommunicate request_size=4 [09:18:43]MH_SAM_APDU [09:18:43]CAPDU: 80 09 00 00 [09:18:43]Write to MH i2c: E2 08 00 3C 63 80 09 00 00 00 00 00 00 11 [09:18:43]Write i2c OK [09:18:43]MH_I2C_Read... [09:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:43]Read from MH i2c: E2 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: E2 03 00 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: E2 03 00 3C 63 00 90 00 13 [09:18:43]RAPDU: 90 00 [09:18:43]wFMCommunicate OK [09:18:43]SAM_PROTO_ClearQueue done [09:18:43]KKMCreateOFDPacket [09:18:43]OFDProtocolAddRootSTLVToBuf [09:18:43]FM_MakeSignedData [09:18:43]FM_MakeSignedData [09:18:43]SAM_PROTO_SignData [09:18:43]wFMCommunicate request_size=4 [09:18:43]MH_SAM_APDU [09:18:43]CAPDU: 80 0D 01 02 [09:18:43]Write to MH i2c: E2 08 00 3D 63 80 0D 01 02 00 00 00 00 19 [09:18:43]Write i2c OK [09:18:43]MH_I2C_Read... [09:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:43]Read from MH i2c: E2 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: E2 03 00 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: E2 03 00 3D 63 00 90 00 14 [09:18:43]RAPDU: 90 00 [09:18:43]wFMCommunicate OK [09:18:43]wFMCommunicate request_size=255 [09:18:43]MH_SAM_APDU [09:18:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 04 BF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BF 00 00 35 04 06 00 DF [09:18:43]Write to MH i2c: E2 02 01 3E 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 04 BF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BF 00 00 35 04 06 00 DF 00 00 7E [09:18:43]Write i2c OK [09:18:43]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 3E 63 00 90 00 15 [09:18:44]RAPDU: 90 00 [09:18:44]wFMCommunicate OK [09:18:44]wFMCommunicate request_size=10 [09:18:44]MH_SAM_APDU [09:18:44]CAPDU: 80 0D 02 02 05 03 1F EB 47 97 [09:18:44]Write to MH i2c: E2 0D 00 3F 63 80 0D 02 02 05 00 03 1F EB 47 97 00 00 11 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 3F 63 00 90 00 16 [09:18:44]RAPDU: 90 00 [09:18:44]wFMCommunicate OK [09:18:44]wFMCommunicate request_size=4 [09:18:44]MH_SAM_APDU [09:18:44]CAPDU: 80 0D 03 02 [09:18:44]Write to MH i2c: E2 08 00 40 63 80 0D 03 02 00 00 00 00 1E [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 0B 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 0B 00 40 63 00 C9 38 AB 9A 39 F6 2B C2 90 00 81 [09:18:44]RAPDU: C9 38 AB 9A 39 F6 2B C2 90 00 [09:18:44]wFMCommunicate OK [09:18:44]SAM_PROTO_SignData done [09:18:44]FM_MakeSignedData done [09:18:44]CreateOFDProtocolMessage [09:18:44]wFMCommunicate request_size=4 [09:18:44]MH_SAM_APDU [09:18:44]CAPDU: 80 11 00 00 [09:18:44]Write to MH i2c: E2 08 00 41 63 80 11 00 00 00 00 00 00 1E [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 17 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 17 00 41 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6B [09:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:18:44]wFMCommunicate OK [09:18:44]CreateOFDProtocolMessage done [09:18:44]OFDSenderStorePacket 49144 [09:18:44]StoreOFDPacket docnum=49144 [09:18:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 69 F3 07 01 EB 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 04 BF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BF 00 00 35 04 06 00 DF 03 1F EB 47 97 C9 38 AB 9A 39 F6 2B C2 [09:18:44]CheckFolder [09:18:44]dirname=/storage/ofd_packets [09:18:44]CheckFolder done [09:18:44]ProducePacketName [09:18:44]name=ofd_packets/00049144 [09:18:44]NVStorageSaveData ofd_packets/00049144 [09:18:44]File name is /storage/ofd_packets/00049144 [09:18:44]Write 301 bytes [09:18:44]NVStorageSaveData done [09:18:44]OFDSenderStorePacket done [09:18:44]KKMCreateOFDPacket done [09:18:44]NVStorageSaveData kkm_last_timestamp [09:18:44]File name is /storage/kkm_last_timestamp [09:18:44]Write 4 bytes [09:18:44]NVStorageSaveData done [09:18:44]ExternCall_PrintAddStr [09:18:44]wPrintStart [09:18:44]Write to MH i2c: 01 00 00 42 63 A5 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 07 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 07 00 42 63 00 00 00 00 00 FF 0F BA [09:18:44]RasterBufferAndPrint [09:18:44]line Счет N : (1)216244 [09:18:44]line ИНН: 02508201610067 [09:18:44]line Контрольно-Кассовый Чек [09:18:44]line ПРОДАЖА [09:18:44]line ТРК (МРК, ГНК) : 12 [09:18:44]line Товар: 2710124130 [09:18:44]line Аи-92-К-5 [09:18:44]line 9.960 * 60.30 [09:18:44]line = 600.59 [09:18:44]line НДС 12% НСП 1% [09:18:44]line > о реализуемом товаре [09:18:44]line ОКРУГЛЕНИЕ: -0.59 [09:18:44]line ИТОГО: 600.00 [09:18:44]line Внесено: 600.00 [09:18:44]line СДАЧА: 0.00 [09:18:44]line НСП 1% : 5.31 [09:18:44]line НДС 12% : 63.78 [09:18:44]line Наличными: 600.00 [09:18:44]line Безнал.: 0.00 [09:18:44]line Место: АЗС № 102 "Партнер Нефть" [09:18:44]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:18:44]line СНО: Общий режим [09:18:44]line Чек 20 30.01.2024 09:19 [09:18:44]line Смена: 246 ФФД: 1.0 [09:18:44]line ЗНМ: 0300000040 [09:18:44]line РНМ: 0000000000092723 [09:18:44]line Версия ККМ: 001 [09:18:44]line ФМ: 0000000000875060 [09:18:44]line ФД: 49144 [09:18:44]line ФПД: 245204513408919 [09:18:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T091900&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49144&fm=245204513408919&tin=02508201610067®Number=0000000000092723&sum=60000 [09:18:44]OFD Sender: Processing packet 49144 [packets to send 12, broken 11] [09:18:44]ProducePacketName [09:18:44]name=ofd_packets/00049144 [09:18:44]OFD Sender: To server: pG, [09:18:44]CommunicateWithHost lk.salyk.kg:30040 [09:18:44]ConnectInit lk.salyk.kg [09:18:44]written 0, free lines is 4095 [09:18:44]Connected sock=10 [09:18: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 36 30 0F 01 00 00 69 F3 07 01 EB 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 04 BF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BF 00 00 35 04 06 00 DF 03 1F EB 47 97 C9 38 AB 9A 39 F6 2B C2 [09:18: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 36 30 4F 00 00 00 CA B8 47 00 F1 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BF 00 00 F4 03 04 00 FA 6A B8 65 B6 04 01 00 00 AE 63 BB F1 19 F6 CC 86 [09:18:44]CommunicateWithHost err = 0 [09:18:44]CheckOFDResponse [09:18:44]1017 (14) - 77093643461234 [09:18:44]1041 (16) - 0000000000875060 [09:18:44]1040 (4) - 49144 [09:18:44]1012 (4) - 30.01.2024 03:20 [09:18:44]1206 (1) - 0 [09:18:44]OFD Sender: Remove packet 49144 [09:18:44]ProducePacketName [09:18:44]name=ofd_packets/00049144 [09:18:44]NVStorageDeleteData [09:18:44]Write to MH i2c: 01 00 00 6D 63 D0 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 07 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 07 00 6D 63 00 00 00 00 00 F3 0C D6 [09:18:44]RasterBufferAndPrint [09:18:44]line [09:18:44]line [09:18:44]line [09:18:44]line [09:18:44]line [09:18:44]written 0, free lines is 3321 [09:18:44]MH_Cut [09:18:44]Write to MH i2c: D1 01 00 74 63 01 A9 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: D1 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: D1 01 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: D1 01 00 74 63 00 A8 [09:18:44]Write to MH i2c: 01 00 00 75 63 D8 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:45]OFD Sender: No OFD packet to send [09:18:45]*** Cut start [09:18:45]*** Partial cut [09:18:45]*** CUTSNS_PIN = 1 [09:18:45]*** CUTSNS_PIN = 0 [09:18:45]*** Brake cut motor [09:18:46]Read from MH i2c: 01 [09:18:46]MH_I2C_Read... [09:18:46]*** Stop cut motor [09:18:46]*** Cut end [09:18:46]Read from MH i2c: 01 07 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: 01 07 00 75 63 00 00 00 00 00 FF 0F ED [09:18:46]process_action close_receipt done [09:18:46]requested_data is exist [09:18:46]produce_requested_data [09:18:46]requested_item fm.sn is exist - process it [09:18:46]wFMCommunicate request_size=4 [09:18:46]MH_SAM_APDU [09:18:46]CAPDU: 80 11 00 00 [09:18:46]Write to MH i2c: E2 08 00 76 63 80 11 00 00 00 00 00 00 53 [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:46]Read from MH i2c: E2 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 17 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 17 00 76 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A0 [09:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:18:46]wFMCommunicate OK [09:18:46]requested_item fd.num is exist - process it [09:18:46]SAM_PROTO_GetFieldsCounters [09:18:46]wFMCommunicate request_size=4 [09:18:46]MH_SAM_APDU [09:18:46]CAPDU: 80 13 00 00 [09:18:46]Write to MH i2c: E2 08 00 77 63 80 13 00 00 00 00 00 00 56 [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:46]Read from MH i2c: E2 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 62 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 62 00 77 63 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F8 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [09:18: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F8 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:46]wFMCommunicate OK [09:18:46]SAM_PROTO_GetFieldsCounters done [09:18:46]requested_item shift.num is exist - process it [09:18:46]requested_item shift.opened is exist - process it [09:18:46]req_shift_opened [09:18:46]FM_GetShiftState [09:18:46]SAM_PROTO_GetShiftState [09:18:46]wFMCommunicate request_size=4 [09:18:46]MH_SAM_APDU [09:18:46]CAPDU: 80 13 01 00 [09:18:46]Write to MH i2c: E2 08 00 78 63 80 13 01 00 00 00 00 00 58 [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:46]Read from MH i2c: E2 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 0E 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 0E 00 78 63 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 80 [09:18:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:18:46]wFMCommunicate OK [09:18:46]SAM_PROTO_GetShiftState done [09:18:46]FM_GetShiftState done [09:18:46]req_shift_opened done [09:18:46]requested_item shift.open_date is exist - process it [09:18:46]req_shift_open_date [09:18:46]req_shift_open_date done [09:18:46]produce_requested_data done [09:18:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49144,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:18:46]process_action_free close_receipt [09:18:46]json_value_free [09:18:46]json_value_free done [09:18:46]process_json_proto returns [09:18:46]Send response to host [09:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49144,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:18:46]free response buf [09:18:46]execute_script done [09:18:46]execute_script returns [09:18:46]free content buf [09:18:46]Sock 9.Close socket [09:18:46]Sock 9.Thread stoped [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:18:57]int [09:18:57]Write to MH i2c: 01 00 00 79 63 DC [09:18:57]*** FLAG_PRN_KEY set [09:18:57]Write i2c OK [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 07 00 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 07 00 79 63 00 08 00 00 00 FF 0F F9 [09:18:57]state=0 [09:18:57]Key pressed [09:18:57]Feed [09:18:57]Write to MH i2c: D8 00 00 7A 63 B4 [09:18:57]Write i2c OK [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: D8 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: D8 01 00 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: D8 01 00 7A 63 00 B5 [09:18:57]int [09:18:57]Write to MH i2c: 01 00 00 7B 63 DE [09:18:57]Write i2c OK [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 07 00 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 07 00 7B 63 00 48 00 00 00 3C 00 69 [09:18:57]state=2 [09:18:57]Key pressed [09:18:58]int [09:18:58]Write to MH i2c: 01 00 00 7C 63 DF [09:18:58]*** FLAG_PRN_KEY reset [09:18:58]Write i2c OK [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 07 00 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 07 00 7C 63 00 00 00 00 00 FB 0F F0 [09:18:58]state=2 [09:18:58]Stop feed [09:18:58]int [09:18:58]Write to MH i2c: 01 00 00 7D 63 E0 [09:18:58]*** FLAG_PRN_KEY set [09:18:58]Write i2c OK [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 07 00 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 07 00 7D 63 00 08 00 00 00 FF 0F FD [09:18:58]state=0 [09:18:58]Key pressed [09:18:58]Feed [09:18:58]Write to MH i2c: D8 00 00 7E 63 B8 [09:18:58]Write i2c OK [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: D8 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: D8 01 00 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: D8 01 00 7E 63 00 B9 [09:18:58]int [09:18:58]Write to MH i2c: 01 00 00 7F 63 E2 [09:18:58]Write i2c OK [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 07 00 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 07 00 7F 63 00 48 00 00 00 3C 00 6D [09:18:58]state=2 [09:18:58]Key pressed [09:18:58]int [09:18:58]Write to MH i2c: 01 00 00 80 63 E3 [09:18:58]*** FLAG_PRN_KEY reset [09:18:58]Write i2c OK [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 07 00 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: 01 07 00 80 63 00 00 00 00 00 F5 0F EE [09:18:58]state=2 [09:18:58]Stop feed [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:21]accept exits with 7 [09:20:21]New connection [09:20:21]New thread 3066670436 created [09:20:21]Thread 3066813796 joined [09:20:21]Waiting for new connection... [09:20:21] Sock 7.Parse request [09:20:21]Sock 7.Check first char [09:20:21]Sock 7.First char is OK [09:20:21]request: POST /json_proto HTTP/1.0 [09:20:21]Method: POST [09:20:21]URL: /json_proto [09:20:21]Method is POST - this is cgi request [09:20:21]url: /json_proto [09:20:21]query_string will be loaded in cgi processing [09:20:21]execute_cgi json_proto POST (null) [09:20:21]execute_cgi path=json_proto method=POST [09:20:21]POST find Content-Length [09:20:21]Host: 172.17.56.67:8080 [09:20:21]Content-Length: 677 [09:20:21]Content-Type: application/json [09:20:21] [09:20:21]POST finish read [09:20:21]Found Content-Length = 677 [09:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:21]execute_script... [09:20:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:21]POST & json_proto [09:20:21]process_json_proto [09:20:21]json parsed OK: [09:20:21]protocol is kg_v1.0 [09:20:21]action value=close_receipt [09:20:21]process_action close_receipt [09:20:21]cmd_close_receipt [09:20:21]MH_GetDate [09:20:21]Write to MH i2c: F0 00 00 81 63 D3 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: F0 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: F0 09 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: F0 09 00 81 63 00 67 BF B8 65 26 5D 9E 65 A5 [09:20:21]GetLastDocTimeStamp 1706606340 [09:20:21]current date 1706606439 [09:20:21]FM_GetShiftState [09:20:21]SAM_PROTO_GetShiftState [09:20:21]wFMCommunicate request_size=4 [09:20:21]MH_SAM_APDU [09:20:21]CAPDU: 80 13 01 00 [09:20:21]Write to MH i2c: E2 08 00 82 63 80 13 01 00 00 00 00 00 62 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:21]Read from MH i2c: E2 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: E2 0E 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: E2 0E 00 82 63 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8A [09:20:21]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:20:21]wFMCommunicate OK [09:20:21]SAM_PROTO_GetShiftState done [09:20:21]FM_GetShiftState done [09:20:21]opened in 1706572995 [09:20:21]opened+sec_in_day 1706659395 [09:20:21]quantity*price = 40039 [09:20:21]sum+1 = 40040 [09:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 21 30.01.2024 09:20 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49145 ФПД: 255702296474487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T092039&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49145&fm=255702296474487&tin=02508201610067®Number=0000000000092723&sum=40000 [09:20:22]StoreToDocumentArchive [09:20:22]shift 246 fd 49145 [09:20:22]save to /storage/0246/doc_00049145 [09:20:22]save last doc name /storage/0246/doc_00049145 to /storage/kkm_last_doc_name [09:20:22]save OK [09:20:22]Clear old archive folders... [09:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:22]tlvbuf is 013434F0 [09:20:22]SAM_PROTO_ClearQueue [09:20:22]wFMCommunicate request_size=4 [09:20:22]MH_SAM_APDU [09:20:22]CAPDU: 80 09 00 00 [09:20:22]Write to MH i2c: E2 08 00 8F 63 80 09 00 00 00 00 00 00 64 [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:22]Read from MH i2c: E2 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 8F 63 00 90 00 66 [09:20:22]RAPDU: 90 00 [09:20:22]wFMCommunicate OK [09:20:22]SAM_PROTO_ClearQueue done [09:20:22]KKMCreateOFDPacket [09:20:22]OFDProtocolAddRootSTLVToBuf [09:20:22]FM_MakeSignedData [09:20:22]FM_MakeSignedData [09:20:22]SAM_PROTO_SignData [09:20:22]wFMCommunicate request_size=4 [09:20:22]MH_SAM_APDU [09:20:22]CAPDU: 80 0D 01 02 [09:20:22]Write to MH i2c: E2 08 00 90 63 80 0D 01 02 00 00 00 00 6C [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:22]Read from MH i2c: E2 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: E2 03 00 90 63 00 90 00 67 [09:20:22]RAPDU: 90 00 [09:20:22]wFMCommunicate OK [09:20:22]wFMCommunicate request_size=255 [09:20:22]MH_SAM_APDU [09:20:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 67 BF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F9 BF 00 00 35 04 06 00 E8 [09:20:22]Write to MH i2c: E2 02 01 91 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 67 BF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F9 BF 00 00 35 04 06 00 E8 00 00 D4 [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 03 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 03 00 91 63 00 90 00 68 [09:20:23]RAPDU: 90 00 [09:20:23]wFMCommunicate OK [09:20:23]wFMCommunicate request_size=10 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 0D 02 02 05 8F 54 8C B3 77 [09:20:23]Write to MH i2c: E2 0D 00 92 63 80 0D 02 02 05 00 8F 54 8C B3 77 00 00 12 [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 03 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 03 00 92 63 00 90 00 69 [09:20:23]RAPDU: 90 00 [09:20:23]wFMCommunicate OK [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 0D 03 02 [09:20:23]Write to MH i2c: E2 08 00 93 63 80 0D 03 02 00 00 00 00 71 [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 0B 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 0B 00 93 63 00 6C 70 98 14 10 9E 92 F9 90 00 33 [09:20:23]RAPDU: 6C 70 98 14 10 9E 92 F9 90 00 [09:20:23]wFMCommunicate OK [09:20:23]SAM_PROTO_SignData done [09:20:23]FM_MakeSignedData done [09:20:23]CreateOFDProtocolMessage [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 11 00 00 [09:20:23]Write to MH i2c: E2 08 00 94 63 80 11 00 00 00 00 00 00 71 [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 17 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 17 00 94 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BE [09:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:20:23]wFMCommunicate OK [09:20:23]CreateOFDProtocolMessage done [09:20:23]OFDSenderStorePacket 49145 [09:20:23]StoreOFDPacket docnum=49145 [09:20:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 08 F4 07 01 43 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 67 BF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F9 BF 00 00 35 04 06 00 E8 8F 54 8C B3 77 6C 70 98 14 10 9E 92 F9 [09:20:23]CheckFolder [09:20:23]dirname=/storage/ofd_packets [09:20:23]CheckFolder done [09:20:23]ProducePacketName [09:20:23]name=ofd_packets/00049145 [09:20:23]NVStorageSaveData ofd_packets/00049145 [09:20:23]File name is /storage/ofd_packets/00049145 [09:20:23]Write 301 bytes [09:20:23]NVStorageSaveData done [09:20:23]OFDSenderStorePacket done [09:20:23]KKMCreateOFDPacket done [09:20:23]NVStorageSaveData kkm_last_timestamp [09:20:23]File name is /storage/kkm_last_timestamp [09:20:23]Write 4 bytes [09:20:23]NVStorageSaveData done [09:20:23]ExternCall_PrintAddStr [09:20:23]wPrintStart [09:20:23]Write to MH i2c: 01 00 00 95 63 F8 [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 07 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 07 00 95 63 00 00 00 00 00 FF 0F 0D [09:20:23]RasterBufferAndPrint [09:20:23]line Счет N : (1)216245 [09:20:23]line ИНН: 02508201610067 [09:20:23]line Контрольно-Кассовый Чек [09:20:23]line ПРОДАЖА [09:20:23]line ТРК (МРК, ГНК) : 22 [09:20:23]line Товар: 2710124130 [09:20:23]line Аи-92-К-5 [09:20:23]line 6.640 * 60.30 [09:20:23]line = 400.39 [09:20:23]line НДС 12% НСП 1% [09:20:23]line > о реализуемом товаре [09:20:23]line ОКРУГЛЕНИЕ: -0.39 [09:20:23]line ИТОГО: 400.00 [09:20:23]line Внесено: 400.00 [09:20:23]line СДАЧА: 0.00 [09:20:23]line НСП 1% : 3.54 [09:20:23]line НДС 12% : 42.52 [09:20:23]line Наличными: 400.00 [09:20:23]line Безнал.: 0.00 [09:20:23]line Место: АЗС № 102 "Партнер Нефть" [09:20:23]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:20:23]line СНО: Общий режим [09:20:23]line Чек 21 30.01.2024 09:20 [09:20:23]line Смена: 246 ФФД: 1.0 [09:20:23]line ЗНМ: 0300000040 [09:20:23]line РНМ: 0000000000092723 [09:20:23]line Версия ККМ: 001 [09:20:23]line ФМ: 0000000000875060 [09:20:23]line ФД: 49145 [09:20:23]line ФПД: 255702296474487 [09:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T092039&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49145&fm=255702296474487&tin=02508201610067®Number=0000000000092723&sum=40000 [09:20:23]OFD Sender: Processing packet 49145 [packets to send 12, broken 11] [09:20:23]ProducePacketName [09:20:23]name=ofd_packets/00049145 [09:20:23]OFD Sender: To server: pG, [09:20:23]CommunicateWithHost lk.salyk.kg:30040 [09:20:23]ConnectInit lk.salyk.kg [09:20:23]written 0, free lines is 4095 [09:20:23]Connected sock=10 [09:20: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 36 30 0F 01 00 00 08 F4 07 01 43 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 67 BF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F9 BF 00 00 35 04 06 00 E8 8F 54 8C B3 77 6C 70 98 14 10 9E 92 F9 [09:20: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 36 30 4F 00 00 00 82 D7 47 00 8A 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 36 30 10 04 04 00 F9 BF 00 00 F4 03 04 00 5D 6B B8 65 B6 04 01 00 00 CD 54 7C F3 61 D8 03 6A [09:20:23]CommunicateWithHost err = 0 [09:20:23]CheckOFDResponse [09:20:23]1017 (14) - 77093643461234 [09:20:23]1041 (16) - 0000000000875060 [09:20:23]1040 (4) - 49145 [09:20:23]1012 (4) - 30.01.2024 03:22 [09:20:23]1206 (1) - 0 [09:20:23]OFD Sender: Remove packet 49145 [09:20:23]ProducePacketName [09:20:23]name=ofd_packets/00049145 [09:20:23]NVStorageDeleteData [09:20:24]Write to MH i2c: 01 00 00 C0 63 23 [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: 01 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: 01 07 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: 01 07 00 C0 63 00 00 00 00 00 FA 0C 30 [09:20:24]RasterBufferAndPrint [09:20:24]line [09:20:24]line [09:20:24]line [09:20:24]line [09:20:24]line [09:20:24]written 0, free lines is 3328 [09:20:24]MH_Cut [09:20:24]Write to MH i2c: D1 01 00 C7 63 01 FC [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: D1 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: D1 01 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: D1 01 00 C7 63 00 FB [09:20:24]Write to MH i2c: 01 00 00 C8 63 2B [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]OFD Sender: No OFD packet to send [09:20:24]*** Cut start [09:20:24]*** Partial cut [09:20:24]*** CUTSNS_PIN = 1 [09:20:24]*** CUTSNS_PIN = 0 [09:20:24]*** Brake cut motor [09:20:25]Read from MH i2c: 01 [09:20:25]MH_I2C_Read... [09:20:25]*** Stop cut motor [09:20:25]*** Cut end [09:20:25]Read from MH i2c: 01 07 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: 01 07 00 C8 63 00 00 00 00 00 FF 0F 40 [09:20:25]process_action close_receipt done [09:20:25]requested_data is exist [09:20:25]produce_requested_data [09:20:25]requested_item fm.sn is exist - process it [09:20:25]wFMCommunicate request_size=4 [09:20:25]MH_SAM_APDU [09:20:25]CAPDU: 80 11 00 00 [09:20:25]Write to MH i2c: E2 08 00 C9 63 80 11 00 00 00 00 00 00 A6 [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:25]Read from MH i2c: E2 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 17 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 17 00 C9 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F3 [09:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:20:25]wFMCommunicate OK [09:20:25]requested_item fd.num is exist - process it [09:20:25]SAM_PROTO_GetFieldsCounters [09:20:25]wFMCommunicate request_size=4 [09:20:25]MH_SAM_APDU [09:20:25]CAPDU: 80 13 00 00 [09:20:25]Write to MH i2c: E2 08 00 CA 63 80 13 00 00 00 00 00 00 A9 [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:25]Read from MH i2c: E2 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 62 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 62 00 CA 63 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F9 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [09:20: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F9 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:25]wFMCommunicate OK [09:20:25]SAM_PROTO_GetFieldsCounters done [09:20:25]requested_item shift.num is exist - process it [09:20:25]requested_item shift.opened is exist - process it [09:20:25]req_shift_opened [09:20:25]FM_GetShiftState [09:20:25]SAM_PROTO_GetShiftState [09:20:25]wFMCommunicate request_size=4 [09:20:25]MH_SAM_APDU [09:20:25]CAPDU: 80 13 01 00 [09:20:25]Write to MH i2c: E2 08 00 CB 63 80 13 01 00 00 00 00 00 AB [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:25]Read from MH i2c: E2 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 0E 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: E2 0E 00 CB 63 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D3 [09:20:25]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:20:25]wFMCommunicate OK [09:20:25]SAM_PROTO_GetShiftState done [09:20:25]FM_GetShiftState done [09:20:25]req_shift_opened done [09:20:25]requested_item shift.open_date is exist - process it [09:20:25]req_shift_open_date [09:20:25]req_shift_open_date done [09:20:25]produce_requested_data done [09:20:25]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49145,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:20:25]process_action_free close_receipt [09:20:25]json_value_free [09:20:25]json_value_free done [09:20:25]process_json_proto returns [09:20:25]Send response to host [09:20:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49145,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:20:25]free response buf [09:20:25]execute_script done [09:20:25]execute_script returns [09:20:25]free content buf [09:20:25]Sock 7.Close socket [09:20:25]Sock 7.Thread stoped [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:22]accept exits with 9 [09:23:22]New connection [09:23:22]New thread 3066813796 created [09:23:22]Thread 3066670436 joined [09:23:22]Waiting for new connection... [09:23:22] Sock 9.Parse request [09:23:22]Sock 9.Check first char [09:23:22]Sock 9.First char is OK [09:23:22]request: POST /json_proto HTTP/1.0 [09:23:22]Method: POST [09:23:22]URL: /json_proto [09:23:22]Method is POST - this is cgi request [09:23:22]url: /json_proto [09:23:22]query_string will be loaded in cgi processing [09:23:22]execute_cgi json_proto POST (null) [09:23:22]execute_cgi path=json_proto method=POST [09:23:22]POST find Content-Length [09:23:22]Host: 172.17.56.67:8080 [09:23:22]Content-Length: 677 [09:23:22]Content-Type: application/json [09:23:22] [09:23:22]POST finish read [09:23:22]Found Content-Length = 677 [09:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.030, "sum" : 303.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 303.00, "total" : 303.00, "payments": [ { "type": 0, "sum" : 303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:22]execute_script... [09:23: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)216246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.030, "sum" : 303.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 303.00, "total" : 303.00, "payments": [ { "type": 0, "sum" : 303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:22]POST & json_proto [09:23:22]process_json_proto [09:23:22]json parsed OK: [09:23:22]protocol is kg_v1.0 [09:23:22]action value=close_receipt [09:23:22]process_action close_receipt [09:23:22]cmd_close_receipt [09:23:22]MH_GetDate [09:23:22]Write to MH i2c: F0 00 00 CC 63 1E [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: F0 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: F0 09 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: F0 09 00 CC 63 00 1C C0 B8 65 26 5D 9E 65 A6 [09:23:22]GetLastDocTimeStamp 1706606439 [09:23:22]current date 1706606620 [09:23:22]FM_GetShiftState [09:23:22]SAM_PROTO_GetShiftState [09:23:22]wFMCommunicate request_size=4 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 13 01 00 [09:23:22]Write to MH i2c: E2 08 00 CD 63 80 13 01 00 00 00 00 00 AD [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 0E 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 0E 00 CD 63 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D5 [09:23:22]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:23:22]wFMCommunicate OK [09:23:22]SAM_PROTO_GetShiftState done [09:23:22]FM_GetShiftState done [09:23:22]opened in 1706572995 [09:23:22]opened+sec_in_day 1706659395 [09:23:22]quantity*price = 30330 [09:23:22]sum+1 = 30332 [09:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 303.00 Внесено: 303.00 СДАЧА: 0.00 НСП 1% : 2.68 НДС 12% : 32.21 Наличными: 303.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 22 30.01.2024 09:23 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49146 ФПД: 133685327602791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T092340&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49146&fm=133685327602791&tin=02508201610067®Number=0000000000092723&sum=30300 [09:23:23]StoreToDocumentArchive [09:23:23]shift 246 fd 49146 [09:23:23]save to /storage/0246/doc_00049146 [09:23:23]save last doc name /storage/0246/doc_00049146 to /storage/kkm_last_doc_name [09:23:23]save OK [09:23:23]Clear old archive folders... [09:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:23]tlvbuf is 01214A40 [09:23:23]SAM_PROTO_ClearQueue [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 09 00 00 [09:23:23]Write to MH i2c: E2 08 00 DA 63 80 09 00 00 00 00 00 00 AF [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 03 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 03 00 DA 63 00 90 00 B1 [09:23:23]RAPDU: 90 00 [09:23:23]wFMCommunicate OK [09:23:23]SAM_PROTO_ClearQueue done [09:23:23]KKMCreateOFDPacket [09:23:23]OFDProtocolAddRootSTLVToBuf [09:23:23]FM_MakeSignedData [09:23:23]FM_MakeSignedData [09:23:23]SAM_PROTO_SignData [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 0D 01 02 [09:23:23]Write to MH i2c: E2 08 00 DB 63 80 0D 01 02 00 00 00 00 B7 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 03 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 03 00 DB 63 00 90 00 B2 [09:23:23]RAPDU: 90 00 [09:23:23]wFMCommunicate OK [09:23:23]wFMCommunicate request_size=255 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 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 1C C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FA BF 00 00 35 04 06 00 79 [09:23:23]Write to MH i2c: E2 02 01 DC 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 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 1C C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FA BF 00 00 35 04 06 00 79 00 00 91 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 03 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 03 00 DC 63 00 90 00 B3 [09:23:23]RAPDU: 90 00 [09:23:23]wFMCommunicate OK [09:23:23]wFMCommunicate request_size=10 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 0D 02 02 05 96 0A 76 A4 67 [09:23:23]Write to MH i2c: E2 0D 00 DD 63 80 0D 02 02 05 00 96 0A 76 A4 67 00 00 E5 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 03 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 03 00 DD 63 00 90 00 B4 [09:23:23]RAPDU: 90 00 [09:23:23]wFMCommunicate OK [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 0D 03 02 [09:23:23]Write to MH i2c: E2 08 00 DE 63 80 0D 03 02 00 00 00 00 BC [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0B 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0B 00 DE 63 00 31 B0 66 F0 35 EC 87 AF 90 00 4B [09:23:24]RAPDU: 31 B0 66 F0 35 EC 87 AF 90 00 [09:23:24]wFMCommunicate OK [09:23:24]SAM_PROTO_SignData done [09:23:24]FM_MakeSignedData done [09:23:24]CreateOFDProtocolMessage [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 11 00 00 [09:23:24]Write to MH i2c: E2 08 00 DF 63 80 11 00 00 00 00 00 00 BC [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 17 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 17 00 DF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 09 [09:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:23:24]wFMCommunicate OK [09:23:24]CreateOFDProtocolMessage done [09:23:24]OFDSenderStorePacket 49146 [09:23:24]StoreOFDPacket docnum=49146 [09:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8F 9B 07 01 8B 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 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 1C C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FA BF 00 00 35 04 06 00 79 96 0A 76 A4 67 31 B0 66 F0 35 EC 87 AF [09:23:24]CheckFolder [09:23:24]dirname=/storage/ofd_packets [09:23:24]CheckFolder done [09:23:24]ProducePacketName [09:23:24]name=ofd_packets/00049146 [09:23:24]NVStorageSaveData ofd_packets/00049146 [09:23:24]File name is /storage/ofd_packets/00049146 [09:23:24]Write 301 bytes [09:23:24]NVStorageSaveData done [09:23:24]OFDSenderStorePacket done [09:23:24]KKMCreateOFDPacket done [09:23:24]NVStorageSaveData kkm_last_timestamp [09:23:24]File name is /storage/kkm_last_timestamp [09:23:24]Write 4 bytes [09:23:24]NVStorageSaveData done [09:23:24]ExternCall_PrintAddStr [09:23:24]wPrintStart [09:23:24]Write to MH i2c: 01 00 00 E0 63 43 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 07 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 07 00 E0 63 00 00 00 00 00 FF 0F 58 [09:23:24]RasterBufferAndPrint [09:23:24]line Счет N : (1)216246 [09:23:24]line ИНН: 02508201610067 [09:23:24]line Контрольно-Кассовый Чек [09:23:24]line ПРОДАЖА [09:23:24]line ТРК (МРК, ГНК) : 12 [09:23:24]line Товар: 2710124130 [09:23:24]line Аи-92-К-5 [09:23:24]line 5.030 * 60.30 [09:23:24]line = 303.31 [09:23:24]line НДС 12% НСП 1% [09:23:24]line > о реализуемом товаре [09:23:24]line ОКРУГЛЕНИЕ: -0.31 [09:23:24]line ИТОГО: 303.00 [09:23:24]line Внесено: 303.00 [09:23:24]line СДАЧА: 0.00 [09:23:24]line НСП 1% : 2.68 [09:23:24]line НДС 12% : 32.21 [09:23:24]line Наличными: 303.00 [09:23:24]line Безнал.: 0.00 [09:23:24]line Место: АЗС № 102 "Партнер Нефть" [09:23:24]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:23:24]line СНО: Общий режим [09:23:24]line Чек 22 30.01.2024 09:23 [09:23:24]line Смена: 246 ФФД: 1.0 [09:23:24]line ЗНМ: 0300000040 [09:23:24]line РНМ: 0000000000092723 [09:23:24]line Версия ККМ: 001 [09:23:24]line ФМ: 0000000000875060 [09:23:24]line ФД: 49146 [09:23:24]line ФПД: 133685327602791 [09:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T092340&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49146&fm=133685327602791&tin=02508201610067®Number=0000000000092723&sum=30300 [09:23:24]OFD Sender: Processing packet 49146 [packets to send 12, broken 11] [09:23:24]ProducePacketName [09:23:24]name=ofd_packets/00049146 [09:23:24]OFD Sender: To server: pG, [09:23:24]CommunicateWithHost lk.salyk.kg:30040 [09:23:24]ConnectInit lk.salyk.kg [09:23:24]written 0, free lines is 4095 [09:23:24]Connected sock=10 [09:23:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8F 9B 07 01 8B 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 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 1C C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FA BF 00 00 35 04 06 00 79 96 0A 76 A4 67 31 B0 66 F0 35 EC 87 AF [09:23: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 36 30 4F 00 00 00 F3 27 47 00 5C 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 36 30 10 04 04 00 FA BF 00 00 F4 03 04 00 12 6C B8 65 B6 04 01 00 00 A1 E3 1E 0A 09 38 77 56 [09:23:24]CommunicateWithHost err = 0 [09:23:24]CheckOFDResponse [09:23:24]1017 (14) - 77093643461234 [09:23:24]1041 (16) - 0000000000875060 [09:23:24]1040 (4) - 49146 [09:23:24]1012 (4) - 30.01.2024 03:25 [09:23:24]1206 (1) - 0 [09:23:24]OFD Sender: Remove packet 49146 [09:23:24]ProducePacketName [09:23:24]name=ofd_packets/00049146 [09:23:24]NVStorageDeleteData [09:23:24]Write to MH i2c: 01 00 00 0B 64 6F [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 07 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 07 00 0B 64 00 00 00 00 00 F8 0C 7A [09:23:24]RasterBufferAndPrint [09:23:24]line [09:23:24]line [09:23:24]line [09:23:24]line [09:23:24]line [09:23:24]written 0, free lines is 3327 [09:23:24]MH_Cut [09:23:24]Write to MH i2c: D1 01 00 12 64 01 48 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: D1 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: D1 01 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: D1 01 00 12 64 00 47 [09:23:24]Write to MH i2c: 01 00 00 13 64 77 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:25]OFD Sender: No OFD packet to send [09:23:25]*** Cut start [09:23:25]*** Partial cut [09:23:25]*** CUTSNS_PIN = 1 [09:23:25]*** CUTSNS_PIN = 0 [09:23:25]*** Brake cut motor [09:23:26]Read from MH i2c: 01 [09:23:26]MH_I2C_Read... [09:23:26]*** Stop cut motor [09:23:26]*** Cut end [09:23:26]Read from MH i2c: 01 07 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: 01 07 00 13 64 00 00 00 00 00 FF 0F 8C [09:23:26]process_action close_receipt done [09:23:26]requested_data is exist [09:23:26]produce_requested_data [09:23:26]requested_item fm.sn is exist - process it [09:23:26]wFMCommunicate request_size=4 [09:23:26]MH_SAM_APDU [09:23:26]CAPDU: 80 11 00 00 [09:23:26]Write to MH i2c: E2 08 00 14 64 80 11 00 00 00 00 00 00 F2 [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:26]Read from MH i2c: E2 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 17 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 17 00 14 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3F [09:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:23:26]wFMCommunicate OK [09:23:26]requested_item fd.num is exist - process it [09:23:26]SAM_PROTO_GetFieldsCounters [09:23:26]wFMCommunicate request_size=4 [09:23:26]MH_SAM_APDU [09:23:26]CAPDU: 80 13 00 00 [09:23:26]Write to MH i2c: E2 08 00 15 64 80 13 00 00 00 00 00 00 F5 [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:26]Read from MH i2c: E2 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 62 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 62 00 15 64 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FA BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [09:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FA BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:26]wFMCommunicate OK [09:23:26]SAM_PROTO_GetFieldsCounters done [09:23:26]requested_item shift.num is exist - process it [09:23:26]requested_item shift.opened is exist - process it [09:23:26]req_shift_opened [09:23:26]FM_GetShiftState [09:23:26]SAM_PROTO_GetShiftState [09:23:26]wFMCommunicate request_size=4 [09:23:26]MH_SAM_APDU [09:23:26]CAPDU: 80 13 01 00 [09:23:26]Write to MH i2c: E2 08 00 16 64 80 13 01 00 00 00 00 00 F7 [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:26]Read from MH i2c: E2 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 0E 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 0E 00 16 64 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 1F [09:23:26]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:23:26]wFMCommunicate OK [09:23:26]SAM_PROTO_GetShiftState done [09:23:26]FM_GetShiftState done [09:23:26]req_shift_opened done [09:23:26]requested_item shift.open_date is exist - process it [09:23:26]req_shift_open_date [09:23:26]req_shift_open_date done [09:23:26]produce_requested_data done [09:23:26]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49146,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:23:26]process_action_free close_receipt [09:23:26]json_value_free [09:23:26]json_value_free done [09:23:26]process_json_proto returns [09:23:26]Send response to host [09:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49146,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:23:26]free response buf [09:23:26]execute_script done [09:23:26]execute_script returns [09:23:26]free content buf [09:23:26]Sock 9.Close socket [09:23:26]Sock 9.Thread stoped [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:23:58]accept exits with 7 [09:23:58]New connection [09:23:58]New thread 3066670436 created [09:23:58]Thread 3066813796 joined [09:23:58]Waiting for new connection... [09:23:58] Sock 7.Parse request [09:23:58]Sock 7.Check first char [09:23:58]Sock 7.First char is OK [09:23:58]request: POST /json_proto HTTP/1.0 [09:23:58]Method: POST [09:23:58]URL: /json_proto [09:23:58]Method is POST - this is cgi request [09:23:58]url: /json_proto [09:23:58]query_string will be loaded in cgi processing [09:23:58]execute_cgi json_proto POST (null) [09:23:58]execute_cgi path=json_proto method=POST [09:23:58]POST find Content-Length [09:23:58]Host: 172.17.56.67:8080 [09:23:58]Content-Length: 806 [09:23:58]Content-Type: application/json [09:23:58] [09:23:58]POST finish read [09:23:58]Found Content-Length = 806 [09:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 15.760, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 950.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:58]execute_script... [09:23: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)216247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 15.760, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 950.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:58]POST & json_proto [09:23:58]process_json_proto [09:23:58]json parsed OK: [09:23:58]protocol is kg_v1.0 [09:23:58]action value=close_receipt [09:23:58]process_action close_receipt [09:23:58]cmd_close_receipt [09:23:58]MH_GetDate [09:23:58]Write to MH i2c: F0 00 00 17 64 6A [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: F0 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: F0 09 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: F0 09 00 17 64 00 40 C0 B8 65 26 5D 9E 65 16 [09:23:58]GetLastDocTimeStamp 1706606620 [09:23:58]current date 1706606656 [09:23:58]FM_GetShiftState [09:23:58]SAM_PROTO_GetShiftState [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 13 01 00 [09:23:58]Write to MH i2c: E2 08 00 18 64 80 13 01 00 00 00 00 00 F9 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 0E 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 0E 00 18 64 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 21 [09:23:58]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:23:58]wFMCommunicate OK [09:23:58]SAM_PROTO_GetShiftState done [09:23:58]FM_GetShiftState done [09:23:58]opened in 1706572995 [09:23:58]opened+sec_in_day 1706659395 [09:23:58]quantity*price = 95032 [09:23:58]sum+1 = 95034 [09:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 950.33 НСП 1% : 8.41 НДС 12% : 100.92 Наличными: 0.00 Безнал.: 950.33 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 23 30.01.2024 09:24 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875060 ФД: 49147 ФПД: 134073844558774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T092416&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49147&fm=134073844558774&tin=02508201610067®Number=0000000000092723&sum=95033 [09:23:59]StoreToDocumentArchive [09:23:59]shift 246 fd 49147 [09:23:59]save to /storage/0246/doc_00049147 [09:23:59]save last doc name /storage/0246/doc_00049147 to /storage/kkm_last_doc_name [09:23:59]save OK [09:23:59]Clear old archive folders... [09:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:59]tlvbuf is 011DAEE0 [09:23:59]SAM_PROTO_ClearQueue [09:23:59]wFMCommunicate request_size=4 [09:23:59]MH_SAM_APDU [09:23:59]CAPDU: 80 09 00 00 [09:23:59]Write to MH i2c: E2 08 00 25 64 80 09 00 00 00 00 00 00 FB [09:23:59]Write i2c OK [09:23:59]MH_I2C_Read... [09:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:59]Read from MH i2c: E2 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: E2 03 00 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: E2 03 00 25 64 00 90 00 FD [09:23:59]RAPDU: 90 00 [09:23:59]wFMCommunicate OK [09:23:59]SAM_PROTO_ClearQueue done [09:23:59]KKMCreateOFDPacket [09:23:59]OFDProtocolAddRootSTLVToBuf [09:23:59]FM_MakeSignedData [09:23:59]FM_MakeSignedData [09:23:59]SAM_PROTO_SignData [09:23:59]wFMCommunicate request_size=4 [09:23:59]MH_SAM_APDU [09:23:59]CAPDU: 80 0D 01 02 [09:23:59]Write to MH i2c: E2 08 00 26 64 80 0D 01 02 00 00 00 00 03 [09:23:59]Write i2c OK [09:23:59]MH_I2C_Read... [09:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:59]Read from MH i2c: E2 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: E2 03 00 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: E2 03 00 26 64 00 90 00 FE [09:23:59]RAPDU: 90 00 [09:23:59]wFMCommunicate OK [09:23:59]wFMCommunicate request_size=255 [09:23:59]MH_SAM_APDU [09:23:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 3D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 40 C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BF 00 00 35 04 06 00 79 [09:23:59]Write to MH i2c: E2 02 01 27 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 3D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 40 C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BF 00 00 35 04 06 00 79 00 00 BA [09:23:59]Write i2c OK [09:23:59]MH_I2C_Read... [09:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:00]Read from MH i2c: E2 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: E2 03 00 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: E2 03 00 27 64 00 90 00 FF [09:24:00]RAPDU: 90 00 [09:24:00]wFMCommunicate OK [09:24:00]wFMCommunicate request_size=10 [09:24:00]MH_SAM_APDU [09:24:00]CAPDU: 80 0D 02 02 05 F0 7F E0 EB B6 [09:24:00]Write to MH i2c: E2 0D 00 28 64 80 0D 02 02 05 00 F0 7F E0 EB B6 00 00 00 [09:24:00]Write i2c OK [09:24:00]MH_I2C_Read... [09:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:00]Read from MH i2c: E2 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: E2 03 00 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: E2 03 00 28 64 00 90 00 00 [09:24:00]RAPDU: 90 00 [09:24:00]wFMCommunicate OK [09:24:00]wFMCommunicate request_size=4 [09:24:00]MH_SAM_APDU [09:24:00]CAPDU: 80 0D 03 02 [09:24:00]Write to MH i2c: E2 08 00 29 64 80 0D 03 02 00 00 00 00 08 [09:24:00]Write i2c OK [09:24:00]MH_I2C_Read... [09:24:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:00]Read from MH i2c: E2 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: E2 0B 00 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: E2 0B 00 29 64 00 00 90 46 BF AF F8 0A 6A 90 00 B9 [09:24:00]RAPDU: 00 90 46 BF AF F8 0A 6A 90 00 [09:24:00]wFMCommunicate OK [09:24:00]SAM_PROTO_SignData done [09:24:00]FM_MakeSignedData done [09:24:00]CreateOFDProtocolMessage [09:24:00]wFMCommunicate request_size=4 [09:24:00]MH_SAM_APDU [09:24:00]CAPDU: 80 11 00 00 [09:24:00]Write to MH i2c: E2 08 00 2A 64 80 11 00 00 00 00 00 00 08 [09:24:00]Write i2c OK [09:24:00]MH_I2C_Read... [09:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:00]Read from MH i2c: E2 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: E2 17 00 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: E2 17 00 2A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 55 [09:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:24:00]wFMCommunicate OK [09:24:00]CreateOFDProtocolMessage done [09:24:00]OFDSenderStorePacket 49147 [09:24:00]StoreOFDPacket docnum=49147 [09:24:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 30 95 07 01 0D AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 3D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 40 C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BF 00 00 35 04 06 00 79 F0 7F E0 EB B6 00 90 46 BF AF F8 0A 6A [09:24:00]CheckFolder [09:24:00]dirname=/storage/ofd_packets [09:24:00]CheckFolder done [09:24:00]ProducePacketName [09:24:00]name=ofd_packets/00049147 [09:24:00]NVStorageSaveData ofd_packets/00049147 [09:24:00]File name is /storage/ofd_packets/00049147 [09:24:00]Write 301 bytes [09:24:00]NVStorageSaveData done [09:24:00]OFDSenderStorePacket done [09:24:00]KKMCreateOFDPacket done [09:24:00]NVStorageSaveData kkm_last_timestamp [09:24:00]File name is /storage/kkm_last_timestamp [09:24:00]Write 4 bytes [09:24:00]NVStorageSaveData done [09:24:00]ExternCall_PrintAddStr [09:24:00]wPrintStart [09:24:00]Write to MH i2c: 01 00 00 2B 64 8F [09:24:00]Write i2c OK [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: 01 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: 01 07 00 [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: 01 07 00 2B 64 00 00 00 00 00 FF 0F A4 [09:24:00]RasterBufferAndPrint [09:24:00]line Счет N : (1)216247 [09:24:00]line ИНН: 02508201610067 [09:24:00]line Контрольно-Кассовый Чек [09:24:00]line ПРОДАЖА [09:24:00]line ТРК (МРК, ГНК) : 22 [09:24:00]line Товар: 2710124130 [09:24:00]line Аи-92-К-5 [09:24:00]line 15.760 * 60.30 [09:24:00]line = 950.33 [09:24:00]line НДС 12% НСП 1% [09:24:00]line > о реализуемом товаре [09:24:00]line ИТОГО: 950.33 [09:24:00]line НСП 1% : 8.41 [09:24:00]line НДС 12% : 100.92 [09:24:00]line Наличными: 0.00 [09:24:00]line Безнал.: 950.33 [09:24:00]line Место: АЗС № 102 "Партнер Нефть" [09:24:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:24:00]line СНО: Общий режим [09:24:00]line Чек 23 30.01.2024 09:24 [09:24:00]line Смена: 246 ФФД: 1.0 [09:24:00]line ЗНМ: 0300000040 [09:24:00]line РНМ: 0000000000092723 [09:24:00]line Версия ККМ: 001 [09:24:00]line Платежная система: О! деньги [09:24:00]line ФМ: 0000000000875060 [09:24:00]line ФД: 49147 [09:24:00]line ФПД: 134073844558774 [09:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T092416&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49147&fm=134073844558774&tin=02508201610067®Number=0000000000092723&sum=95033 [09:24:00]OFD Sender: Processing packet 49147 [packets to send 12, broken 11] [09:24:00]ProducePacketName [09:24:00]name=ofd_packets/00049147 [09:24:00]OFD Sender: To server: pG, [09:24:00]CommunicateWithHost lk.salyk.kg:30040 [09:24:00]ConnectInit lk.salyk.kg [09:24:00]written 0, free lines is 4095 [09:24:00]Connected sock=10 [09:24: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 36 30 0F 01 00 00 30 95 07 01 0D AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 3D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 40 C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BF 00 00 35 04 06 00 79 F0 7F E0 EB B6 00 90 46 BF AF F8 0A 6A [09:24: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 36 30 4F 00 00 00 6E 38 47 00 FD 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BF 00 00 F4 03 04 00 36 6C B8 65 B6 04 01 00 00 18 0F 58 B7 1F 8B 7F 58 [09:24:00]CommunicateWithHost err = 0 [09:24:00]CheckOFDResponse [09:24:00]1017 (14) - 77093643461234 [09:24:00]1041 (16) - 0000000000875060 [09:24:00]1040 (4) - 49147 [09:24:00]1012 (4) - 30.01.2024 03:25 [09:24:00]1206 (1) - 0 [09:24:00]OFD Sender: Remove packet 49147 [09:24:00]ProducePacketName [09:24:00]name=ofd_packets/00049147 [09:24:00]NVStorageDeleteData [09:24:00]Write to MH i2c: 01 00 00 55 64 B9 [09:24:00]Write i2c OK [09:24:00]MH_I2C_Read... [09:24:00]Read from MH i2c: 01 [09:24:00]MH_I2C_Read... [09:24:01]Read from MH i2c: 01 07 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: 01 07 00 55 64 00 00 00 00 00 1A 0D E7 [09:24:01]RasterBufferAndPrint [09:24:01]line [09:24:01]line [09:24:01]line [09:24:01]line [09:24:01]line [09:24:01]written 0, free lines is 3360 [09:24:01]MH_Cut [09:24:01]Write to MH i2c: D1 01 00 5C 64 01 92 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: D1 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: D1 01 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: D1 01 00 5C 64 00 91 [09:24:01]Write to MH i2c: 01 00 00 5D 64 C1 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]OFD Sender: No OFD packet to send [09:24:01]*** Cut start [09:24:01]*** Partial cut [09:24:01]*** CUTSNS_PIN = 1 [09:24:01]*** CUTSNS_PIN = 0 [09:24:01]*** Brake cut motor [09:24:02]Read from MH i2c: 01 [09:24:02]MH_I2C_Read... [09:24:02]*** Stop cut motor [09:24:02]*** Cut end [09:24:02]Read from MH i2c: 01 07 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: 01 07 00 5D 64 00 00 00 00 00 FF 0F D6 [09:24:02]process_action close_receipt done [09:24:02]requested_data is exist [09:24:02]produce_requested_data [09:24:02]requested_item fm.sn is exist - process it [09:24:02]wFMCommunicate request_size=4 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 11 00 00 [09:24:02]Write to MH i2c: E2 08 00 5E 64 80 11 00 00 00 00 00 00 3C [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:02]Read from MH i2c: E2 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 17 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 17 00 5E 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 89 [09:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:24:02]wFMCommunicate OK [09:24:02]requested_item fd.num is exist - process it [09:24:02]SAM_PROTO_GetFieldsCounters [09:24:02]wFMCommunicate request_size=4 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 13 00 00 [09:24:02]Write to MH i2c: E2 08 00 5F 64 80 13 00 00 00 00 00 00 3F [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:02]Read from MH i2c: E2 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 62 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 62 00 5F 64 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FB BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [09:24: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FB BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:02]wFMCommunicate OK [09:24:02]SAM_PROTO_GetFieldsCounters done [09:24:02]requested_item shift.num is exist - process it [09:24:02]requested_item shift.opened is exist - process it [09:24:02]req_shift_opened [09:24:02]FM_GetShiftState [09:24:02]SAM_PROTO_GetShiftState [09:24:02]wFMCommunicate request_size=4 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 13 01 00 [09:24:02]Write to MH i2c: E2 08 00 60 64 80 13 01 00 00 00 00 00 41 [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:02]Read from MH i2c: E2 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 0E 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 0E 00 60 64 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 69 [09:24:02]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:24:02]wFMCommunicate OK [09:24:02]SAM_PROTO_GetShiftState done [09:24:02]FM_GetShiftState done [09:24:02]req_shift_opened done [09:24:02]requested_item shift.open_date is exist - process it [09:24:02]req_shift_open_date [09:24:02]req_shift_open_date done [09:24:02]produce_requested_data done [09:24:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49147,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:24:02]process_action_free close_receipt [09:24:02]json_value_free [09:24:02]json_value_free done [09:24:02]process_json_proto returns [09:24:02]Send response to host [09:24:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49147,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:24:02]free response buf [09:24:02]execute_script done [09:24:02]execute_script returns [09:24:02]free content buf [09:24:02]Sock 7.Close socket [09:24:02]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:54]accept exits with 9 [09:25:54]New connection [09:25:54]New thread 3066813796 created [09:25:54]Thread 3066670436 joined [09:25:54]Waiting for new connection... [09:25:54] Sock 9.Parse request [09:25:54]Sock 9.Check first char [09:25:54]Sock 9.First char is OK [09:25:54]request: POST /json_proto HTTP/1.0 [09:25:54]Method: POST [09:25:54]URL: /json_proto [09:25:54]Method is POST - this is cgi request [09:25:54]url: /json_proto [09:25:54]query_string will be loaded in cgi processing [09:25:54]execute_cgi json_proto POST (null) [09:25:54]execute_cgi path=json_proto method=POST [09:25:54]POST find Content-Length [09:25:54]Host: 172.17.56.67:8080 [09:25:54]Content-Length: 677 [09:25:54]Content-Type: application/json [09:25:54] [09:25:54]POST finish read [09:25:54]Found Content-Length = 677 [09:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:54]execute_script... [09:25: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)216248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:54]POST & json_proto [09:25:54]process_json_proto [09:25:54]json parsed OK: [09:25:54]protocol is kg_v1.0 [09:25:54]action value=close_receipt [09:25:54]process_action close_receipt [09:25:54]cmd_close_receipt [09:25:54]MH_GetDate [09:25:54]Write to MH i2c: F0 00 00 61 64 B4 [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: F0 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: F0 09 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: F0 09 00 61 64 00 B4 C0 B8 65 26 5D 9E 65 D4 [09:25:54]GetLastDocTimeStamp 1706606656 [09:25:54]current date 1706606772 [09:25:54]FM_GetShiftState [09:25:54]SAM_PROTO_GetShiftState [09:25:54]wFMCommunicate request_size=4 [09:25:54]MH_SAM_APDU [09:25:54]CAPDU: 80 13 01 00 [09:25:54]Write to MH i2c: E2 08 00 62 64 80 13 01 00 00 00 00 00 43 [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 0E 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 0E 00 62 64 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6B [09:25:54]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:25:54]wFMCommunicate OK [09:25:54]SAM_PROTO_GetShiftState done [09:25:54]FM_GetShiftState done [09:25:54]opened in 1706572995 [09:25:54]opened+sec_in_day 1706659395 [09:25:54]quantity*price = 50049 [09:25:54]sum+1 = 50050 [09:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 24 30.01.2024 09:26 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49148 ФПД: 219800561788707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T092612&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49148&fm=219800561788707&tin=02508201610067®Number=0000000000092723&sum=50000 [09:25:55]StoreToDocumentArchive [09:25:55]shift 246 fd 49148 [09:25:55]save to /storage/0246/doc_00049148 [09:25:55]save last doc name /storage/0246/doc_00049148 to /storage/kkm_last_doc_name [09:25:55]save OK [09:25:55]Clear old archive folders... [09:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:55]tlvbuf is 011CF550 [09:25:55]SAM_PROTO_ClearQueue [09:25:55]wFMCommunicate request_size=4 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 09 00 00 [09:25:55]Write to MH i2c: E2 08 00 6F 64 80 09 00 00 00 00 00 00 45 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 03 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 03 00 6F 64 00 90 00 47 [09:25:55]RAPDU: 90 00 [09:25:55]wFMCommunicate OK [09:25:55]SAM_PROTO_ClearQueue done [09:25:55]KKMCreateOFDPacket [09:25:55]OFDProtocolAddRootSTLVToBuf [09:25:55]FM_MakeSignedData [09:25:55]FM_MakeSignedData [09:25:55]SAM_PROTO_SignData [09:25:55]wFMCommunicate request_size=4 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 0D 01 02 [09:25:55]Write to MH i2c: E2 08 00 70 64 80 0D 01 02 00 00 00 00 4D [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 03 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 03 00 70 64 00 90 00 48 [09:25:55]RAPDU: 90 00 [09:25:55]wFMCommunicate OK [09:25:55]wFMCommunicate request_size=255 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 B4 C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BF 00 00 35 04 06 00 C7 [09:25:55]Write to MH i2c: E2 02 01 71 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 B4 C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BF 00 00 35 04 06 00 C7 00 00 9E [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 03 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 03 00 71 64 00 90 00 49 [09:25:55]RAPDU: 90 00 [09:25:55]wFMCommunicate OK [09:25:55]wFMCommunicate request_size=10 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 0D 02 02 05 E8 4E 68 27 23 [09:25:55]Write to MH i2c: E2 0D 00 72 64 80 0D 02 02 05 00 E8 4E 68 27 23 00 00 42 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 03 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 03 00 72 64 00 90 00 4A [09:25:55]RAPDU: 90 00 [09:25:55]wFMCommunicate OK [09:25:55]wFMCommunicate request_size=4 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 0D 03 02 [09:25:55]Write to MH i2c: E2 08 00 73 64 80 0D 03 02 00 00 00 00 52 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 0B 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 0B 00 73 64 00 50 75 B6 75 24 36 1A 38 90 00 EF [09:25:55]RAPDU: 50 75 B6 75 24 36 1A 38 90 00 [09:25:55]wFMCommunicate OK [09:25:55]SAM_PROTO_SignData done [09:25:55]FM_MakeSignedData done [09:25:55]CreateOFDProtocolMessage [09:25:55]wFMCommunicate request_size=4 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 11 00 00 [09:25:55]Write to MH i2c: E2 08 00 74 64 80 11 00 00 00 00 00 00 52 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 17 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 17 00 74 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9F [09:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:25:55]wFMCommunicate OK [09:25:55]CreateOFDProtocolMessage done [09:25:55]OFDSenderStorePacket 49148 [09:25:55]StoreOFDPacket docnum=49148 [09:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 58 34 07 01 1E 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 B4 C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BF 00 00 35 04 06 00 C7 E8 4E 68 27 23 50 75 B6 75 24 36 1A 38 [09:25:55]CheckFolder [09:25:55]dirname=/storage/ofd_packets [09:25:55]CheckFolder done [09:25:55]ProducePacketName [09:25:55]name=ofd_packets/00049148 [09:25:55]NVStorageSaveData ofd_packets/00049148 [09:25:55]File name is /storage/ofd_packets/00049148 [09:25:55]Write 301 bytes [09:25:55]NVStorageSaveData done [09:25:55]OFDSenderStorePacket done [09:25:55]KKMCreateOFDPacket done [09:25:55]NVStorageSaveData kkm_last_timestamp [09:25:55]File name is /storage/kkm_last_timestamp [09:25:55]Write 4 bytes [09:25:55]NVStorageSaveData done [09:25:55]ExternCall_PrintAddStr [09:25:55]wPrintStart [09:25:55]Write to MH i2c: 01 00 00 75 64 D9 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 07 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 07 00 75 64 00 00 00 00 00 FF 0F EE [09:25:55]RasterBufferAndPrint [09:25:55]line Счет N : (1)216248 [09:25:55]line ИНН: 02508201610067 [09:25:55]line Контрольно-Кассовый Чек [09:25:55]line ПРОДАЖА [09:25:55]line ТРК (МРК, ГНК) : 12 [09:25:55]line Товар: 2710124130 [09:25:55]line Аи-92-К-5 [09:25:55]line 8.300 * 60.30 [09:25:55]line = 500.49 [09:25:55]line НДС 12% НСП 1% [09:25:55]line > о реализуемом товаре [09:25:55]line ОКРУГЛЕНИЕ: -0.49 [09:25:55]line ИТОГО: 500.00 [09:25:55]line Внесено: 500.00 [09:25:55]line СДАЧА: 0.00 [09:25:55]line НСП 1% : 4.43 [09:25:55]line НДС 12% : 53.15 [09:25:55]line Наличными: 500.00 [09:25:55]line Безнал.: 0.00 [09:25:55]line Место: АЗС № 102 "Партнер Нефть" [09:25:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:25:55]line СНО: Общий режим [09:25:55]line Чек 24 30.01.2024 09:26 [09:25:55]line Смена: 246 ФФД: 1.0 [09:25:55]line ЗНМ: 0300000040 [09:25:55]line РНМ: 0000000000092723 [09:25:55]line Версия ККМ: 001 [09:25:55]line ФМ: 0000000000875060 [09:25:55]line ФД: 49148 [09:25:55]line ФПД: 219800561788707 [09:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T092612&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49148&fm=219800561788707&tin=02508201610067®Number=0000000000092723&sum=50000 [09:25:56]OFD Sender: Processing packet 49148 [packets to send 12, broken 11] [09:25:56]ProducePacketName [09:25:56]name=ofd_packets/00049148 [09:25:56]OFD Sender: To server: pG, [09:25:56]CommunicateWithHost lk.salyk.kg:30040 [09:25:56]ConnectInit lk.salyk.kg [09:25:56]written 0, free lines is 4095 [09:25:56]Connected sock=10 [09:25: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 36 30 0F 01 00 00 58 34 07 01 1E 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 B4 C0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BF 00 00 35 04 06 00 C7 E8 4E 68 27 23 50 75 B6 75 24 36 1A 38 [09:25: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 36 30 4F 00 00 00 2E B8 47 00 EA A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BF 00 00 F4 03 04 00 AA 6C B8 65 B6 04 01 00 00 ED 32 B2 BA F2 2C AB 01 [09:25:56]CommunicateWithHost err = 0 [09:25:56]CheckOFDResponse [09:25:56]1017 (14) - 77093643461234 [09:25:56]1041 (16) - 0000000000875060 [09:25:56]1040 (4) - 49148 [09:25:56]1012 (4) - 30.01.2024 03:27 [09:25:56]1206 (1) - 0 [09:25:56]OFD Sender: Remove packet 49148 [09:25:56]ProducePacketName [09:25:56]name=ofd_packets/00049148 [09:25:56]NVStorageDeleteData [09:25:56]Write to MH i2c: 01 00 00 A0 64 04 [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 07 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 07 00 A0 64 00 00 00 00 00 EC 0C 03 [09:25:56]RasterBufferAndPrint [09:25:56]line [09:25:56]line [09:25:56]line [09:25:56]line [09:25:56]line [09:25:56]written 0, free lines is 3314 [09:25:56]MH_Cut [09:25:56]Write to MH i2c: D1 01 00 A7 64 01 DD [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: D1 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: D1 01 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: D1 01 00 A7 64 00 DC [09:25:56]Write to MH i2c: 01 00 00 A8 64 0C [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:57]OFD Sender: No OFD packet to send [09:25:57]*** Cut start [09:25:57]*** Partial cut [09:25:57]*** CUTSNS_PIN = 1 [09:25:57]*** CUTSNS_PIN = 0 [09:25:57]*** Brake cut motor [09:25:57]Read from MH i2c: 01 [09:25:57]MH_I2C_Read... [09:25:57]*** Stop cut motor [09:25:57]*** Cut end [09:25:57]Read from MH i2c: 01 07 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 07 00 A8 64 00 00 00 00 00 FF 0F 21 [09:25:57]process_action close_receipt done [09:25:57]requested_data is exist [09:25:57]produce_requested_data [09:25:57]requested_item fm.sn is exist - process it [09:25:57]wFMCommunicate request_size=4 [09:25:57]MH_SAM_APDU [09:25:57]CAPDU: 80 11 00 00 [09:25:57]Write to MH i2c: E2 08 00 A9 64 80 11 00 00 00 00 00 00 87 [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:57]Read from MH i2c: E2 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: E2 17 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: E2 17 00 A9 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D4 [09:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:25:57]wFMCommunicate OK [09:25:57]requested_item fd.num is exist - process it [09:25:57]SAM_PROTO_GetFieldsCounters [09:25:57]wFMCommunicate request_size=4 [09:25:57]MH_SAM_APDU [09:25:57]CAPDU: 80 13 00 00 [09:25:57]Write to MH i2c: E2 08 00 AA 64 80 13 00 00 00 00 00 00 8A [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:58]Read from MH i2c: E2 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 62 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 62 00 AA 64 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FC BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [09:25: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FC BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:58]wFMCommunicate OK [09:25:58]SAM_PROTO_GetFieldsCounters done [09:25:58]requested_item shift.num is exist - process it [09:25:58]requested_item shift.opened is exist - process it [09:25:58]req_shift_opened [09:25:58]FM_GetShiftState [09:25:58]SAM_PROTO_GetShiftState [09:25:58]wFMCommunicate request_size=4 [09:25:58]MH_SAM_APDU [09:25:58]CAPDU: 80 13 01 00 [09:25:58]Write to MH i2c: E2 08 00 AB 64 80 13 01 00 00 00 00 00 8C [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:58]Read from MH i2c: E2 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 0E 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 0E 00 AB 64 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B4 [09:25:58]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:25:58]wFMCommunicate OK [09:25:58]SAM_PROTO_GetShiftState done [09:25:58]FM_GetShiftState done [09:25:58]req_shift_opened done [09:25:58]requested_item shift.open_date is exist - process it [09:25:58]req_shift_open_date [09:25:58]req_shift_open_date done [09:25:58]produce_requested_data done [09:25:58]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49148,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:25:58]process_action_free close_receipt [09:25:58]json_value_free [09:25:58]json_value_free done [09:25:58]process_json_proto returns [09:25:58]Send response to host [09:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49148,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:25:58]free response buf [09:25:58]execute_script done [09:25:58]execute_script returns [09:25:58]free content buf [09:25:58]Sock 9.Close socket [09:25:58]Sock 9.Thread stoped [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31: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:16]accept exits with 7 [09:33:16]New connection [09:33:16]New thread 3066670436 created [09:33:16]Thread 3066813796 joined [09:33:16]Waiting for new connection... [09:33:16] Sock 7.Parse request [09:33:16]Sock 7.Check first char [09:33:16]Sock 7.First char is OK [09:33:16]request: POST /json_proto HTTP/1.0 [09:33:16]Method: POST [09:33:16]URL: /json_proto [09:33:16]Method is POST - this is cgi request [09:33:16]url: /json_proto [09:33:16]query_string will be loaded in cgi processing [09:33:16]execute_cgi json_proto POST (null) [09:33:16]execute_cgi path=json_proto method=POST [09:33:16]POST find Content-Length [09:33:16]Host: 172.17.56.67:8080 [09:33:16]Content-Length: 682 [09:33:16]Content-Type: application/json [09:33:16] [09:33:16]POST finish read [09:33:16]Found Content-Length = 682 [09:33:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:16]execute_script... [09:33:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:16]POST & json_proto [09:33:16]process_json_proto [09:33:16]json parsed OK: [09:33:16]protocol is kg_v1.0 [09:33:16]action value=close_receipt [09:33:16]process_action close_receipt [09:33:16]cmd_close_receipt [09:33:16]MH_GetDate [09:33:16]Write to MH i2c: F0 00 00 AC 64 FF [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: F0 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: F0 09 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: F0 09 00 AC 64 00 6E C2 B8 65 26 5D 9E 65 DB [09:33:16]GetLastDocTimeStamp 1706606772 [09:33:16]current date 1706607214 [09:33:16]FM_GetShiftState [09:33:16]SAM_PROTO_GetShiftState [09:33:16]wFMCommunicate request_size=4 [09:33:16]MH_SAM_APDU [09:33:16]CAPDU: 80 13 01 00 [09:33:16]Write to MH i2c: E2 08 00 AD 64 80 13 01 00 00 00 00 00 8E [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:16]Read from MH i2c: E2 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 0E 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 0E 00 AD 64 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B6 [09:33:16]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:33:16]wFMCommunicate OK [09:33:16]SAM_PROTO_GetShiftState done [09:33:16]FM_GetShiftState done [09:33:16]opened in 1706572995 [09:33:16]opened+sec_in_day 1706659395 [09:33:16]quantity*price = 100037 [09:33:16]sum+1 = 100039 [09:33:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 25 30.01.2024 09:33 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49149 ФПД: 102965213186431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T093334&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49149&fm=102965213186431&tin=02508201610067®Number=0000000000092723&sum=100000 [09:33:17]StoreToDocumentArchive [09:33:17]shift 246 fd 49149 [09:33:17]save to /storage/0246/doc_00049149 [09:33:17]save last doc name /storage/0246/doc_00049149 to /storage/kkm_last_doc_name [09:33:17]save OK [09:33:17]Clear old archive folders... [09:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:17]tlvbuf is 0121E460 [09:33:17]SAM_PROTO_ClearQueue [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 09 00 00 [09:33:17]Write to MH i2c: E2 08 00 BA 64 80 09 00 00 00 00 00 00 90 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 BA 64 00 90 00 92 [09:33:17]RAPDU: 90 00 [09:33:17]wFMCommunicate OK [09:33:17]SAM_PROTO_ClearQueue done [09:33:17]KKMCreateOFDPacket [09:33:17]OFDProtocolAddRootSTLVToBuf [09:33:17]FM_MakeSignedData [09:33:17]FM_MakeSignedData [09:33:17]SAM_PROTO_SignData [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 0D 01 02 [09:33:17]Write to MH i2c: E2 08 00 BB 64 80 0D 01 02 00 00 00 00 98 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 BB 64 00 90 00 93 [09:33:17]RAPDU: 90 00 [09:33:17]wFMCommunicate OK [09:33:17]wFMCommunicate request_size=255 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 6E C2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FD BF 00 00 35 04 06 00 5D [09:33:17]Write to MH i2c: E2 02 01 BC 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 6E C2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FD BF 00 00 35 04 06 00 5D 00 00 7D [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]OFD Sender: No OFD packet to send [09:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 BC 64 00 90 00 94 [09:33:17]RAPDU: 90 00 [09:33:17]wFMCommunicate OK [09:33:17]wFMCommunicate request_size=10 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 0D 02 02 05 A5 74 F4 C9 7F [09:33:17]Write to MH i2c: E2 0D 00 BD 64 80 0D 02 02 05 00 A5 74 F4 C9 7F 00 00 FA [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 BD 64 00 90 00 95 [09:33:17]RAPDU: 90 00 [09:33:17]wFMCommunicate OK [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 0D 03 02 [09:33:17]Write to MH i2c: E2 08 00 BE 64 80 0D 03 02 00 00 00 00 9D [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 0B 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 0B 00 BE 64 00 31 60 1B 0F A7 47 6C 9E 90 00 51 [09:33:17]RAPDU: 31 60 1B 0F A7 47 6C 9E 90 00 [09:33:17]wFMCommunicate OK [09:33:17]SAM_PROTO_SignData done [09:33:17]FM_MakeSignedData done [09:33:17]CreateOFDProtocolMessage [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 11 00 00 [09:33:17]Write to MH i2c: E2 08 00 BF 64 80 11 00 00 00 00 00 00 9D [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 17 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 17 00 BF 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EA [09:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:33:17]wFMCommunicate OK [09:33:17]CreateOFDProtocolMessage done [09:33:17]OFDSenderStorePacket 49149 [09:33:17]StoreOFDPacket docnum=49149 [09:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EC D5 07 01 F0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 6E C2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FD BF 00 00 35 04 06 00 5D A5 74 F4 C9 7F 31 60 1B 0F A7 47 6C 9E [09:33:17]CheckFolder [09:33:17]dirname=/storage/ofd_packets [09:33:17]CheckFolder done [09:33:17]ProducePacketName [09:33:17]name=ofd_packets/00049149 [09:33:17]NVStorageSaveData ofd_packets/00049149 [09:33:17]File name is /storage/ofd_packets/00049149 [09:33:17]Write 301 bytes [09:33:17]NVStorageSaveData done [09:33:17]OFDSenderStorePacket done [09:33:17]KKMCreateOFDPacket done [09:33:17]NVStorageSaveData kkm_last_timestamp [09:33:17]File name is /storage/kkm_last_timestamp [09:33:17]Write 4 bytes [09:33:17]NVStorageSaveData done [09:33:17]ExternCall_PrintAddStr [09:33:17]wPrintStart [09:33:17]Write to MH i2c: 01 00 00 C0 64 24 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 C0 64 00 00 00 00 00 FF 0F 39 [09:33:17]RasterBufferAndPrint [09:33:17]line Счет N : (1)216249 [09:33:17]line ИНН: 02508201610067 [09:33:17]line Контрольно-Кассовый Чек [09:33:17]line ПРОДАЖА [09:33:17]line ТРК (МРК, ГНК) : 12 [09:33:17]line Товар: 2710124130 [09:33:17]line Аи-92-К-5 [09:33:17]line 16.590 * 60.30 [09:33:17]line = 1000.38 [09:33:17]line НДС 12% НСП 1% [09:33:17]line > о реализуемом товаре [09:33:17]line ОКРУГЛЕНИЕ: -0.38 [09:33:17]line ИТОГО: 1000.00 [09:33:17]line Внесено: 1000.00 [09:33:17]line СДАЧА: 0.00 [09:33:17]line НСП 1% : 8.85 [09:33:17]line НДС 12% : 106.23 [09:33:17]line Наличными: 1000.00 [09:33:17]line Безнал.: 0.00 [09:33:17]line Место: АЗС № 102 "Партнер Нефть" [09:33:17]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:33:17]line СНО: Общий режим [09:33:17]line Чек 25 30.01.2024 09:33 [09:33:17]line Смена: 246 ФФД: 1.0 [09:33:17]line ЗНМ: 0300000040 [09:33:17]line РНМ: 0000000000092723 [09:33:17]line Версия ККМ: 001 [09:33:17]line ФМ: 0000000000875060 [09:33:17]line ФД: 49149 [09:33:17]line ФПД: 102965213186431 [09:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T093334&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49149&fm=102965213186431&tin=02508201610067®Number=0000000000092723&sum=100000 [09:33:17]OFD Sender: Processing packet 49149 [packets to send 12, broken 11] [09:33:17]ProducePacketName [09:33:17]name=ofd_packets/00049149 [09:33:17]OFD Sender: To server: pG, [09:33:17]CommunicateWithHost lk.salyk.kg:30040 [09:33:17]ConnectInit lk.salyk.kg [09:33:17]written 0, free lines is 4095 [09:33:18]Connected sock=10 [09:33: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 36 30 0F 01 00 00 EC D5 07 01 F0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 6E C2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FD BF 00 00 35 04 06 00 5D A5 74 F4 C9 7F 31 60 1B 0F A7 47 6C 9E [09:33: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 36 30 4F 00 00 00 E8 81 47 00 B2 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 36 30 10 04 04 00 FD BF 00 00 F4 03 04 00 64 6E B8 65 B6 04 01 00 00 B7 A4 9F FA E4 66 81 F8 [09:33:18]CommunicateWithHost err = 0 [09:33:18]CheckOFDResponse [09:33:18]1017 (14) - 77093643461234 [09:33:18]1041 (16) - 0000000000875060 [09:33:18]1040 (4) - 49149 [09:33:18]1012 (4) - 30.01.2024 03:35 [09:33:18]1206 (1) - 0 [09:33:18]OFD Sender: Remove packet 49149 [09:33:18]ProducePacketName [09:33:18]name=ofd_packets/00049149 [09:33:18]NVStorageDeleteData [09:33:18]Write to MH i2c: 01 00 00 EB 64 4F [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 EB 64 00 00 00 00 00 F3 0C 55 [09:33:18]RasterBufferAndPrint [09:33:18]line [09:33:18]line [09:33:18]line [09:33:18]line [09:33:18]line [09:33:18]written 0, free lines is 3321 [09:33:18]MH_Cut [09:33:18]Write to MH i2c: D1 01 00 F2 64 01 28 [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D1 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D1 01 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D1 01 00 F2 64 00 27 [09:33:18]Write to MH i2c: 01 00 00 F3 64 57 [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]OFD Sender: No OFD packet to send [09:33:19]*** Cut start [09:33:19]*** Partial cut [09:33:19]*** CUTSNS_PIN = 1 [09:33:19]*** CUTSNS_PIN = 0 [09:33:19]*** Brake cut motor [09:33:19]Read from MH i2c: 01 [09:33:19]MH_I2C_Read... [09:33:19]*** Stop cut motor [09:33:19]*** Cut end [09:33:19]Read from MH i2c: 01 07 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 F3 64 00 00 00 00 00 FF 0F 6C [09:33:19]process_action close_receipt done [09:33:19]requested_data is exist [09:33:19]produce_requested_data [09:33:19]requested_item fm.sn is exist - process it [09:33:19]wFMCommunicate request_size=4 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 11 00 00 [09:33:19]Write to MH i2c: E2 08 00 F4 64 80 11 00 00 00 00 00 00 D2 [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 17 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 17 00 F4 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1F [09:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:33:19]wFMCommunicate OK [09:33:19]requested_item fd.num is exist - process it [09:33:19]SAM_PROTO_GetFieldsCounters [09:33:19]wFMCommunicate request_size=4 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 13 00 00 [09:33:19]Write to MH i2c: E2 08 00 F5 64 80 13 00 00 00 00 00 00 D5 [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 62 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 62 00 F5 64 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FD BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [09:33: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FD BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:19]wFMCommunicate OK [09:33:19]SAM_PROTO_GetFieldsCounters done [09:33:19]requested_item shift.num is exist - process it [09:33:19]requested_item shift.opened is exist - process it [09:33:19]req_shift_opened [09:33:19]FM_GetShiftState [09:33:19]SAM_PROTO_GetShiftState [09:33:19]wFMCommunicate request_size=4 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 13 01 00 [09:33:19]Write to MH i2c: E2 08 00 F6 64 80 13 01 00 00 00 00 00 D7 [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 0E 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 0E 00 F6 64 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 FF [09:33:19]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:33:19]wFMCommunicate OK [09:33:19]SAM_PROTO_GetShiftState done [09:33:19]FM_GetShiftState done [09:33:19]req_shift_opened done [09:33:19]requested_item shift.open_date is exist - process it [09:33:19]req_shift_open_date [09:33:19]req_shift_open_date done [09:33:19]produce_requested_data done [09:33:19]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49149,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:33:19]process_action_free close_receipt [09:33:19]json_value_free [09:33:19]json_value_free done [09:33:19]process_json_proto returns [09:33:19]Send response to host [09:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49149,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:33:19]free response buf [09:33:19]execute_script done [09:33:19]execute_script returns [09:33:19]free content buf [09:33:19]Sock 7.Close socket [09:33:19]Sock 7.Thread stoped [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:00]accept exits with 9 [09:37:00]New connection [09:37:00]New thread 3066813796 created [09:37:00]Thread 3066670436 joined [09:37:00]Waiting for new connection... [09:37:00] Sock 9.Parse request [09:37:00]Sock 9.Check first char [09:37:00]Sock 9.First char is OK [09:37:00]request: POST /json_proto HTTP/1.0 [09:37:00]Method: POST [09:37:00]URL: /json_proto [09:37:00]Method is POST - this is cgi request [09:37:00]url: /json_proto [09:37:00]query_string will be loaded in cgi processing [09:37:00]execute_cgi json_proto POST (null) [09:37:00]execute_cgi path=json_proto method=POST [09:37:00]POST find Content-Length [09:37:00]Host: 172.17.56.67:8080 [09:37:00]Content-Length: 677 [09:37:00]Content-Type: application/json [09:37:00] [09:37:00]POST finish read [09:37:00]Found Content-Length = 677 [09:37:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:00]execute_script... [09:37:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:00]POST & json_proto [09:37:00]process_json_proto [09:37:00]json parsed OK: [09:37:00]protocol is kg_v1.0 [09:37:00]action value=close_receipt [09:37:00]process_action close_receipt [09:37:00]cmd_close_receipt [09:37:00]MH_GetDate [09:37:00]Write to MH i2c: F0 00 00 F7 64 4A [09:37:00]Write i2c OK [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: F0 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: F0 09 00 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: F0 09 00 F7 64 00 4E C3 B8 65 26 5D 9E 65 07 [09:37:00]GetLastDocTimeStamp 1706607214 [09:37:00]current date 1706607438 [09:37:00]FM_GetShiftState [09:37:00]SAM_PROTO_GetShiftState [09:37:00]wFMCommunicate request_size=4 [09:37:00]MH_SAM_APDU [09:37:00]CAPDU: 80 13 01 00 [09:37:00]Write to MH i2c: E2 08 00 F8 64 80 13 01 00 00 00 00 00 D9 [09:37:00]Write i2c OK [09:37:00]MH_I2C_Read... [09:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:00]Read from MH i2c: E2 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: E2 0E 00 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: E2 0E 00 F8 64 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 01 [09:37:00]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:37:00]wFMCommunicate OK [09:37:00]SAM_PROTO_GetShiftState done [09:37:00]FM_GetShiftState done [09:37:00]opened in 1706572995 [09:37:00]opened+sec_in_day 1706659395 [09:37:00]quantity*price = 40039 [09:37:00]sum+1 = 40040 [09:37:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 26 30.01.2024 09:37 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49150 ФПД: 9522115266399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T093718&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49150&fm=9522115266399&tin=02508201610067®Number=0000000000092723&sum=40000 [09:37:01]StoreToDocumentArchive [09:37:01]shift 246 fd 49150 [09:37:01]save to /storage/0246/doc_00049150 [09:37:01]save last doc name /storage/0246/doc_00049150 to /storage/kkm_last_doc_name [09:37:01]save OK [09:37:01]Clear old archive folders... [09:37:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:01]tlvbuf is 01214A30 [09:37:01]SAM_PROTO_ClearQueue [09:37:01]wFMCommunicate request_size=4 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 09 00 00 [09:37:01]Write to MH i2c: E2 08 00 05 65 80 09 00 00 00 00 00 00 DC [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 05 65 00 90 00 DE [09:37:01]RAPDU: 90 00 [09:37:01]wFMCommunicate OK [09:37:01]SAM_PROTO_ClearQueue done [09:37:01]KKMCreateOFDPacket [09:37:01]OFDProtocolAddRootSTLVToBuf [09:37:01]FM_MakeSignedData [09:37:01]FM_MakeSignedData [09:37:01]SAM_PROTO_SignData [09:37:01]wFMCommunicate request_size=4 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 0D 01 02 [09:37:01]Write to MH i2c: E2 08 00 06 65 80 0D 01 02 00 00 00 00 E4 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 06 65 00 90 00 DF [09:37:01]RAPDU: 90 00 [09:37:01]wFMCommunicate OK [09:37:01]wFMCommunicate request_size=255 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4E C3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BF 00 00 35 04 06 00 08 [09:37:01]Write to MH i2c: E2 02 01 07 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4E C3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BF 00 00 35 04 06 00 08 00 00 61 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 07 65 00 90 00 E0 [09:37:01]RAPDU: 90 00 [09:37:01]wFMCommunicate OK [09:37:01]wFMCommunicate request_size=10 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 0D 02 02 05 A9 0A 4C 47 5F [09:37:01]Write to MH i2c: E2 0D 00 08 65 80 0D 02 02 05 00 A9 0A 4C 47 5F 00 00 96 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 08 65 00 90 00 E1 [09:37:02]RAPDU: 90 00 [09:37:02]wFMCommunicate OK [09:37:02]wFMCommunicate request_size=4 [09:37:02]MH_SAM_APDU [09:37:02]CAPDU: 80 0D 03 02 [09:37:02]Write to MH i2c: E2 08 00 09 65 80 0D 03 02 00 00 00 00 E9 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 0B 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 0B 00 09 65 00 9B 0A F9 C6 6B B2 A8 CB 90 00 DE [09:37:02]RAPDU: 9B 0A F9 C6 6B B2 A8 CB 90 00 [09:37:02]wFMCommunicate OK [09:37:02]SAM_PROTO_SignData done [09:37:02]FM_MakeSignedData done [09:37:02]CreateOFDProtocolMessage [09:37:02]wFMCommunicate request_size=4 [09:37:02]MH_SAM_APDU [09:37:02]CAPDU: 80 11 00 00 [09:37:02]Write to MH i2c: E2 08 00 0A 65 80 11 00 00 00 00 00 00 E9 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 17 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 17 00 0A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 36 [09:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:37:02]wFMCommunicate OK [09:37:02]CreateOFDProtocolMessage done [09:37:02]OFDSenderStorePacket 49150 [09:37:02]StoreOFDPacket docnum=49150 [09:37:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D0 D3 07 01 73 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4E C3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BF 00 00 35 04 06 00 08 A9 0A 4C 47 5F 9B 0A F9 C6 6B B2 A8 CB [09:37:02]CheckFolder [09:37:02]dirname=/storage/ofd_packets [09:37:02]CheckFolder done [09:37:02]ProducePacketName [09:37:02]name=ofd_packets/00049150 [09:37:02]NVStorageSaveData ofd_packets/00049150 [09:37:02]File name is /storage/ofd_packets/00049150 [09:37:02]Write 301 bytes [09:37:02]NVStorageSaveData done [09:37:02]OFDSenderStorePacket done [09:37:02]KKMCreateOFDPacket done [09:37:02]NVStorageSaveData kkm_last_timestamp [09:37:02]File name is /storage/kkm_last_timestamp [09:37:02]Write 4 bytes [09:37:02]NVStorageSaveData done [09:37:02]ExternCall_PrintAddStr [09:37:02]wPrintStart [09:37:02]Write to MH i2c: 01 00 00 0B 65 70 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 07 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 07 00 0B 65 00 00 00 00 00 FF 0F 85 [09:37:02]RasterBufferAndPrint [09:37:02]line Счет N : (1)216250 [09:37:02]line ИНН: 02508201610067 [09:37:02]line Контрольно-Кассовый Чек [09:37:02]line ПРОДАЖА [09:37:02]line ТРК (МРК, ГНК) : 22 [09:37:02]line Товар: 2710124130 [09:37:02]line Аи-92-К-5 [09:37:02]line 6.640 * 60.30 [09:37:02]line = 400.39 [09:37:02]line НДС 12% НСП 1% [09:37:02]line > о реализуемом товаре [09:37:02]line ОКРУГЛЕНИЕ: -0.39 [09:37:02]line ИТОГО: 400.00 [09:37:02]line Внесено: 400.00 [09:37:02]line СДАЧА: 0.00 [09:37:02]line НСП 1% : 3.54 [09:37:02]line НДС 12% : 42.52 [09:37:02]line Наличными: 400.00 [09:37:02]line Безнал.: 0.00 [09:37:02]line Место: АЗС № 102 "Партнер Нефть" [09:37:02]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:37:02]line СНО: Общий режим [09:37:02]line Чек 26 30.01.2024 09:37 [09:37:02]line Смена: 246 ФФД: 1.0 [09:37:02]line ЗНМ: 0300000040 [09:37:02]line РНМ: 0000000000092723 [09:37:02]line Версия ККМ: 001 [09:37:02]line ФМ: 0000000000875060 [09:37:02]line ФД: 49150 [09:37:02]line ФПД: 9522115266399 [09:37:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T093718&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49150&fm=9522115266399&tin=02508201610067®Number=0000000000092723&sum=40000 [09:37:02]OFD Sender: Processing packet 49150 [packets to send 12, broken 11] [09:37:02]ProducePacketName [09:37:02]name=ofd_packets/00049150 [09:37:02]OFD Sender: To server: pG, [09:37:02]CommunicateWithHost lk.salyk.kg:30040 [09:37:02]ConnectInit lk.salyk.kg [09:37:02]written 0, free lines is 4095 [09:37:02]Connected sock=11 [09:37:02]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 36 30 0F 01 00 00 D0 D3 07 01 73 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4E C3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BF 00 00 35 04 06 00 08 A9 0A 4C 47 5F 9B 0A F9 C6 6B B2 A8 CB [09:37:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 5E B0 47 00 F4 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BF 00 00 F4 03 04 00 44 6F B8 65 B6 04 01 00 00 88 A8 F6 50 CF 76 4E 71 [09:37:02]CommunicateWithHost err = 0 [09:37:02]CheckOFDResponse [09:37:02]1017 (14) - 77093643461234 [09:37:02]1041 (16) - 0000000000875060 [09:37:02]1040 (4) - 49150 [09:37:02]1012 (4) - 30.01.2024 03:38 [09:37:02]1206 (1) - 0 [09:37:02]OFD Sender: Remove packet 49150 [09:37:02]ProducePacketName [09:37:02]name=ofd_packets/00049150 [09:37:02]NVStorageDeleteData [09:37:02]Write to MH i2c: 01 00 00 36 65 9B [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 07 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 07 00 36 65 00 00 00 00 00 FB 0C A9 [09:37:02]RasterBufferAndPrint [09:37:02]line [09:37:02]line [09:37:02]line [09:37:02]line [09:37:02]line [09:37:02]written 0, free lines is 3330 [09:37:02]MH_Cut [09:37:02]Write to MH i2c: D1 01 00 3D 65 01 74 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: D1 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: D1 01 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: D1 01 00 3D 65 00 73 [09:37:02]Write to MH i2c: 01 00 00 3E 65 A3 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:03]OFD Sender: No OFD packet to send [09:37:03]*** Cut start [09:37:03]*** Partial cut [09:37:03]*** CUTSNS_PIN = 1 [09:37:03]*** CUTSNS_PIN = 0 [09:37:03]*** Brake cut motor [09:37:04]Read from MH i2c: 01 [09:37:04]MH_I2C_Read... [09:37:04]*** Stop cut motor [09:37:04]*** Cut end [09:37:04]Read from MH i2c: 01 07 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: 01 07 00 3E 65 00 00 00 00 00 FF 0F B8 [09:37:04]process_action close_receipt done [09:37:04]requested_data is exist [09:37:04]produce_requested_data [09:37:04]requested_item fm.sn is exist - process it [09:37:04]wFMCommunicate request_size=4 [09:37:04]MH_SAM_APDU [09:37:04]CAPDU: 80 11 00 00 [09:37:04]Write to MH i2c: E2 08 00 3F 65 80 11 00 00 00 00 00 00 1E [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:04]Read from MH i2c: E2 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 17 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 17 00 3F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6B [09:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:37:04]wFMCommunicate OK [09:37:04]requested_item fd.num is exist - process it [09:37:04]SAM_PROTO_GetFieldsCounters [09:37:04]wFMCommunicate request_size=4 [09:37:04]MH_SAM_APDU [09:37:04]CAPDU: 80 13 00 00 [09:37:04]Write to MH i2c: E2 08 00 40 65 80 13 00 00 00 00 00 00 21 [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:04]Read from MH i2c: E2 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 62 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 62 00 40 65 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FE BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [09:37: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FE BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:04]wFMCommunicate OK [09:37:04]SAM_PROTO_GetFieldsCounters done [09:37:04]requested_item shift.num is exist - process it [09:37:04]requested_item shift.opened is exist - process it [09:37:04]req_shift_opened [09:37:04]FM_GetShiftState [09:37:04]SAM_PROTO_GetShiftState [09:37:04]wFMCommunicate request_size=4 [09:37:04]MH_SAM_APDU [09:37:04]CAPDU: 80 13 01 00 [09:37:04]Write to MH i2c: E2 08 00 41 65 80 13 01 00 00 00 00 00 23 [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:04]Read from MH i2c: E2 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 0E 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 0E 00 41 65 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4B [09:37:04]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:37:04]wFMCommunicate OK [09:37:04]SAM_PROTO_GetShiftState done [09:37:04]FM_GetShiftState done [09:37:04]req_shift_opened done [09:37:04]requested_item shift.open_date is exist - process it [09:37:04]req_shift_open_date [09:37:04]req_shift_open_date done [09:37:04]produce_requested_data done [09:37:04]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49150,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:37:04]process_action_free close_receipt [09:37:04]json_value_free [09:37:04]json_value_free done [09:37:04]process_json_proto returns [09:37:04]Send response to host [09:37:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49150,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:37:04]free response buf [09:37:04]execute_script done [09:37:04]execute_script returns [09:37:04]free content buf [09:37:04]Sock 9.Close socket [09:37:04]Sock 9.Thread stoped [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]accept exits with 7 [09:38:38]New connection [09:38:38]New thread 3066670436 created [09:38:38]Thread 3066813796 joined [09:38:38]Waiting for new connection... [09:38:38] Sock 7.Parse request [09:38:38]Sock 7.Check first char [09:38:38]Sock 7.First char is OK [09:38:38]request: POST /json_proto HTTP/1.0 [09:38:38]Method: POST [09:38:38]URL: /json_proto [09:38:38]Method is POST - this is cgi request [09:38:38]url: /json_proto [09:38:38]query_string will be loaded in cgi processing [09:38:38]execute_cgi json_proto POST (null) [09:38:38]execute_cgi path=json_proto method=POST [09:38:38]POST find Content-Length [09:38:38]Host: 172.17.56.67:8080 [09:38:38]Content-Length: 677 [09:38:38]Content-Type: application/json [09:38:38] [09:38:38]POST finish read [09:38:38]Found Content-Length = 677 [09:38:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:38]execute_script... [09:38:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:38]POST & json_proto [09:38:38]process_json_proto [09:38:38]json parsed OK: [09:38:38]protocol is kg_v1.0 [09:38:38]action value=close_receipt [09:38:38]process_action close_receipt [09:38:38]cmd_close_receipt [09:38:38]MH_GetDate [09:38:38]Write to MH i2c: F0 00 00 42 65 96 [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: F0 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: F0 09 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: F0 09 00 42 65 00 B0 C3 B8 65 26 5D 9E 65 B5 [09:38:38]GetLastDocTimeStamp 1706607438 [09:38:38]current date 1706607536 [09:38:38]FM_GetShiftState [09:38:38]SAM_PROTO_GetShiftState [09:38:38]wFMCommunicate request_size=4 [09:38:38]MH_SAM_APDU [09:38:38]CAPDU: 80 13 01 00 [09:38:38]Write to MH i2c: E2 08 00 43 65 80 13 01 00 00 00 00 00 25 [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:38]Read from MH i2c: E2 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 0E 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 0E 00 43 65 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4D [09:38:38]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:38:38]wFMCommunicate OK [09:38:38]SAM_PROTO_GetShiftState done [09:38:38]FM_GetShiftState done [09:38:38]opened in 1706572995 [09:38:38]opened+sec_in_day 1706659395 [09:38:38]quantity*price = 60058 [09:38:38]sum+1 = 60060 [09:38:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 27 30.01.2024 09:38 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49151 ФПД: 32049882923331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T093856&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49151&fm=32049882923331&tin=02508201610067®Number=0000000000092723&sum=60000 [09:38:39]StoreToDocumentArchive [09:38:39]shift 246 fd 49151 [09:38:39]save to /storage/0246/doc_00049151 [09:38:39]save last doc name /storage/0246/doc_00049151 to /storage/kkm_last_doc_name [09:38:39]save OK [09:38:39]Clear old archive folders... [09:38:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:39]tlvbuf is 01232640 [09:38:39]SAM_PROTO_ClearQueue [09:38:39]wFMCommunicate request_size=4 [09:38:39]MH_SAM_APDU [09:38:39]CAPDU: 80 09 00 00 [09:38:39]Write to MH i2c: E2 08 00 50 65 80 09 00 00 00 00 00 00 27 [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:39]Read from MH i2c: E2 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 03 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 03 00 50 65 00 90 00 29 [09:38:39]RAPDU: 90 00 [09:38:39]wFMCommunicate OK [09:38:39]SAM_PROTO_ClearQueue done [09:38:39]KKMCreateOFDPacket [09:38:39]OFDProtocolAddRootSTLVToBuf [09:38:39]FM_MakeSignedData [09:38:39]FM_MakeSignedData [09:38:39]SAM_PROTO_SignData [09:38:39]wFMCommunicate request_size=4 [09:38:39]MH_SAM_APDU [09:38:39]CAPDU: 80 0D 01 02 [09:38:39]Write to MH i2c: E2 08 00 51 65 80 0D 01 02 00 00 00 00 2F [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:39]Read from MH i2c: E2 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 03 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 03 00 51 65 00 90 00 2A [09:38:39]RAPDU: 90 00 [09:38:39]wFMCommunicate OK [09:38:39]wFMCommunicate request_size=255 [09:38:39]MH_SAM_APDU [09:38:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B0 C3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BF 00 00 35 04 06 00 1D [09:38:39]Write to MH i2c: E2 02 01 52 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B0 C3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BF 00 00 35 04 06 00 1D 00 00 90 [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:39]Read from MH i2c: E2 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 03 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 03 00 52 65 00 90 00 2B [09:38:39]RAPDU: 90 00 [09:38:39]wFMCommunicate OK [09:38:39]wFMCommunicate request_size=10 [09:38:39]MH_SAM_APDU [09:38:39]CAPDU: 80 0D 02 02 05 26 31 E3 01 43 [09:38:39]Write to MH i2c: E2 0D 00 53 65 80 0D 02 02 05 00 26 31 E3 01 43 00 00 BA [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:39]Read from MH i2c: E2 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 03 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 03 00 53 65 00 90 00 2C [09:38:39]RAPDU: 90 00 [09:38:39]wFMCommunicate OK [09:38:39]wFMCommunicate request_size=4 [09:38:39]MH_SAM_APDU [09:38:39]CAPDU: 80 0D 03 02 [09:38:39]Write to MH i2c: E2 08 00 54 65 80 0D 03 02 00 00 00 00 34 [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:39]Read from MH i2c: E2 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 0B 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 0B 00 54 65 00 13 C3 03 CE 59 80 73 F9 90 00 21 [09:38:39]RAPDU: 13 C3 03 CE 59 80 73 F9 90 00 [09:38:39]wFMCommunicate OK [09:38:39]SAM_PROTO_SignData done [09:38:39]FM_MakeSignedData done [09:38:39]CreateOFDProtocolMessage [09:38:39]wFMCommunicate request_size=4 [09:38:39]MH_SAM_APDU [09:38:39]CAPDU: 80 11 00 00 [09:38:39]Write to MH i2c: E2 08 00 55 65 80 11 00 00 00 00 00 00 34 [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:39]Read from MH i2c: E2 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 17 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 17 00 55 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 81 [09:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:38:39]wFMCommunicate OK [09:38:39]CreateOFDProtocolMessage done [09:38:39]OFDSenderStorePacket 49151 [09:38:39]StoreOFDPacket docnum=49151 [09:38:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B0 73 07 01 20 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B0 C3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BF 00 00 35 04 06 00 1D 26 31 E3 01 43 13 C3 03 CE 59 80 73 F9 [09:38:39]CheckFolder [09:38:39]dirname=/storage/ofd_packets [09:38:39]CheckFolder done [09:38:39]ProducePacketName [09:38:39]name=ofd_packets/00049151 [09:38:39]NVStorageSaveData ofd_packets/00049151 [09:38:39]File name is /storage/ofd_packets/00049151 [09:38:39]Write 301 bytes [09:38:39]NVStorageSaveData done [09:38:39]OFDSenderStorePacket done [09:38:39]KKMCreateOFDPacket done [09:38:39]NVStorageSaveData kkm_last_timestamp [09:38:39]File name is /storage/kkm_last_timestamp [09:38:39]Write 4 bytes [09:38:39]NVStorageSaveData done [09:38:39]ExternCall_PrintAddStr [09:38:39]wPrintStart [09:38:39]Write to MH i2c: 01 00 00 56 65 BB [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: 01 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: 01 07 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: 01 07 00 56 65 00 00 00 00 00 FF 0F D0 [09:38:39]RasterBufferAndPrint [09:38:39]line Счет N : (1)216252 [09:38:39]line ИНН: 02508201610067 [09:38:39]line Контрольно-Кассовый Чек [09:38:39]line ПРОДАЖА [09:38:39]line ТРК (МРК, ГНК) : 12 [09:38:39]line Товар: 2710124130 [09:38:39]line Аи-92-К-5 [09:38:39]line 9.960 * 60.30 [09:38:39]line = 600.59 [09:38:39]line НДС 12% НСП 1% [09:38:39]line > о реализуемом товаре [09:38:39]line ОКРУГЛЕНИЕ: -0.59 [09:38:39]line ИТОГО: 600.00 [09:38:39]line Внесено: 600.00 [09:38:39]line СДАЧА: 0.00 [09:38:39]line НСП 1% : 5.31 [09:38:39]line НДС 12% : 63.78 [09:38:39]line Наличными: 600.00 [09:38:39]line Безнал.: 0.00 [09:38:39]line Место: АЗС № 102 "Партнер Нефть" [09:38:39]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:38:39]line СНО: Общий режим [09:38:39]line Чек 27 30.01.2024 09:38 [09:38:39]line Смена: 246 ФФД: 1.0 [09:38:39]line ЗНМ: 0300000040 [09:38:39]line РНМ: 0000000000092723 [09:38:39]line Версия ККМ: 001 [09:38:39]line ФМ: 0000000000875060 [09:38:39]line ФД: 49151 [09:38:39]line ФПД: 32049882923331 [09:38:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T093856&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49151&fm=32049882923331&tin=02508201610067®Number=0000000000092723&sum=60000 [09:38:40]OFD Sender: Processing packet 49151 [packets to send 12, broken 11] [09:38:40]ProducePacketName [09:38:40]name=ofd_packets/00049151 [09:38:40]OFD Sender: To server: pG, [09:38:40]CommunicateWithHost lk.salyk.kg:30040 [09:38:40]ConnectInit lk.salyk.kg [09:38:40]written 0, free lines is 4095 [09:38:40]Connected sock=10 [09:38: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 36 30 0F 01 00 00 B0 73 07 01 20 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B0 C3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BF 00 00 35 04 06 00 1D 26 31 E3 01 43 13 C3 03 CE 59 80 73 F9 [09:38: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 36 30 4F 00 00 00 F1 F4 47 00 D8 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BF 00 00 F4 03 04 00 A6 6F B8 65 B6 04 01 00 00 D3 79 00 6B 44 1B 7C 42 [09:38:40]CommunicateWithHost err = 0 [09:38:40]CheckOFDResponse [09:38:40]1017 (14) - 77093643461234 [09:38:40]1041 (16) - 0000000000875060 [09:38:40]1040 (4) - 49151 [09:38:40]1012 (4) - 30.01.2024 03:40 [09:38:40]1206 (1) - 0 [09:38:40]OFD Sender: Remove packet 49151 [09:38:40]ProducePacketName [09:38:40]name=ofd_packets/00049151 [09:38:40]NVStorageDeleteData [09:38:40]Write to MH i2c: 01 00 00 81 65 E6 [09:38:40]Write i2c OK [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: 01 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: 01 07 00 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: 01 07 00 81 65 00 00 00 00 00 FA 0C F3 [09:38:40]RasterBufferAndPrint [09:38:40]line [09:38:40]line [09:38:40]line [09:38:40]line [09:38:40]line [09:38:40]written 0, free lines is 3328 [09:38:40]MH_Cut [09:38:40]Write to MH i2c: D1 01 00 88 65 01 BF [09:38:40]Write i2c OK [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: D1 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: D1 01 00 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: D1 01 00 88 65 00 BE [09:38:40]Write to MH i2c: 01 00 00 89 65 EE [09:38:40]Write i2c OK [09:38:40]MH_I2C_Read... [09:38:40]OFD Sender: No OFD packet to send [09:38:41]*** Cut start [09:38:41]*** Partial cut [09:38:41]*** CUTSNS_PIN = 1 [09:38:41]*** CUTSNS_PIN = 0 [09:38:41]*** Brake cut motor [09:38:41]Read from MH i2c: 01 [09:38:41]MH_I2C_Read... [09:38:41]*** Stop cut motor [09:38:41]*** Cut end [09:38:41]Read from MH i2c: 01 07 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: 01 07 00 89 65 00 00 00 00 00 FF 0F 03 [09:38:41]process_action close_receipt done [09:38:41]requested_data is exist [09:38:41]produce_requested_data [09:38:41]requested_item fm.sn is exist - process it [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 11 00 00 [09:38:41]Write to MH i2c: E2 08 00 8A 65 80 11 00 00 00 00 00 00 69 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 17 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 17 00 8A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B6 [09:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:38:41]wFMCommunicate OK [09:38:41]requested_item fd.num is exist - process it [09:38:41]SAM_PROTO_GetFieldsCounters [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 13 00 00 [09:38:41]Write to MH i2c: E2 08 00 8B 65 80 13 00 00 00 00 00 00 6C [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:42]Read from MH i2c: E2 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: E2 62 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: E2 62 00 8B 65 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FF BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [09:38: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FF BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:42]wFMCommunicate OK [09:38:42]SAM_PROTO_GetFieldsCounters done [09:38:42]requested_item shift.num is exist - process it [09:38:42]requested_item shift.opened is exist - process it [09:38:42]req_shift_opened [09:38:42]FM_GetShiftState [09:38:42]SAM_PROTO_GetShiftState [09:38:42]wFMCommunicate request_size=4 [09:38:42]MH_SAM_APDU [09:38:42]CAPDU: 80 13 01 00 [09:38:42]Write to MH i2c: E2 08 00 8C 65 80 13 01 00 00 00 00 00 6E [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:42]Read from MH i2c: E2 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: E2 0E 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: E2 0E 00 8C 65 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 96 [09:38:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:38:42]wFMCommunicate OK [09:38:42]SAM_PROTO_GetShiftState done [09:38:42]FM_GetShiftState done [09:38:42]req_shift_opened done [09:38:42]requested_item shift.open_date is exist - process it [09:38:42]req_shift_open_date [09:38:42]req_shift_open_date done [09:38:42]produce_requested_data done [09:38:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49151,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:38:42]process_action_free close_receipt [09:38:42]json_value_free [09:38:42]json_value_free done [09:38:42]process_json_proto returns [09:38:42]Send response to host [09:38:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49151,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:38:42]free response buf [09:38:42]execute_script done [09:38:42]execute_script returns [09:38:42]free content buf [09:38:42]Sock 7.Close socket [09:38:42]Sock 7.Thread stoped [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:45:58]accept exits with 9 [09:45:58]New connection [09:45:58]New thread 3066813796 created [09:45:58]Thread 3066670436 joined [09:45:58]Waiting for new connection... [09:45:58] Sock 9.Parse request [09:45:58]Sock 9.Check first char [09:45:58]Sock 9.First char is OK [09:45:58]request: POST /json_proto HTTP/1.0 [09:45:58]Method: POST [09:45:58]URL: /json_proto [09:45:58]Method is POST - this is cgi request [09:45:58]url: /json_proto [09:45:58]query_string will be loaded in cgi processing [09:45:58]execute_cgi json_proto POST (null) [09:45:58]execute_cgi path=json_proto method=POST [09:45:58]POST find Content-Length [09:45:58]Host: 172.17.56.67:8080 [09:45:58]Content-Length: 677 [09:45:58]Content-Type: application/json [09:45:58] [09:45:58]POST finish read [09:45:58]Found Content-Length = 677 [09:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:58]execute_script... [09:45: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)216253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:58]POST & json_proto [09:45:58]process_json_proto [09:45:58]json parsed OK: [09:45:58]protocol is kg_v1.0 [09:45:58]action value=close_receipt [09:45:58]process_action close_receipt [09:45:58]cmd_close_receipt [09:45:58]MH_GetDate [09:45:58]Write to MH i2c: F0 00 00 8D 65 E1 [09:45:58]Write i2c OK [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: F0 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: F0 09 00 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: F0 09 00 8D 65 00 68 C5 B8 65 26 5D 9E 65 BA [09:45:58]GetLastDocTimeStamp 1706607536 [09:45:58]current date 1706607976 [09:45:58]FM_GetShiftState [09:45:58]SAM_PROTO_GetShiftState [09:45:58]wFMCommunicate request_size=4 [09:45:58]MH_SAM_APDU [09:45:58]CAPDU: 80 13 01 00 [09:45:58]Write to MH i2c: E2 08 00 8E 65 80 13 01 00 00 00 00 00 70 [09:45:58]Write i2c OK [09:45:58]MH_I2C_Read... [09:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:58]Read from MH i2c: E2 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: E2 0E 00 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: E2 0E 00 8E 65 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 98 [09:45:58]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:45:58]wFMCommunicate OK [09:45:58]SAM_PROTO_GetShiftState done [09:45:58]FM_GetShiftState done [09:45:58]opened in 1706572995 [09:45:58]opened+sec_in_day 1706659395 [09:45:58]quantity*price = 40039 [09:45:58]sum+1 = 40040 [09:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 28 30.01.2024 09:46 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49152 ФПД: 253919812202707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T094616&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49152&fm=253919812202707&tin=02508201610067®Number=0000000000092723&sum=40000 [09:45:59]StoreToDocumentArchive [09:45:59]shift 246 fd 49152 [09:45:59]save to /storage/0246/doc_00049152 [09:45:59]save last doc name /storage/0246/doc_00049152 to /storage/kkm_last_doc_name [09:45:59]save OK [09:45:59]Clear old archive folders... [09:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:59]tlvbuf is 011D8D70 [09:45:59]SAM_PROTO_ClearQueue [09:45:59]wFMCommunicate request_size=4 [09:45:59]MH_SAM_APDU [09:45:59]CAPDU: 80 09 00 00 [09:45:59]Write to MH i2c: E2 08 00 9B 65 80 09 00 00 00 00 00 00 72 [09:45:59]Write i2c OK [09:45:59]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 9B 65 00 90 00 74 [09:46:00]RAPDU: 90 00 [09:46:00]wFMCommunicate OK [09:46:00]SAM_PROTO_ClearQueue done [09:46:00]KKMCreateOFDPacket [09:46:00]OFDProtocolAddRootSTLVToBuf [09:46:00]FM_MakeSignedData [09:46:00]FM_MakeSignedData [09:46:00]SAM_PROTO_SignData [09:46:00]wFMCommunicate request_size=4 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 0D 01 02 [09:46:00]Write to MH i2c: E2 08 00 9C 65 80 0D 01 02 00 00 00 00 7A [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 9C 65 00 90 00 75 [09:46:00]RAPDU: 90 00 [09:46:00]wFMCommunicate OK [09:46:00]wFMCommunicate request_size=255 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 68 C5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 C0 00 00 35 04 06 00 E6 [09:46:00]Write to MH i2c: E2 02 01 9D 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 68 C5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 C0 00 00 35 04 06 00 E6 00 00 F6 [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 9D 65 00 90 00 76 [09:46:00]RAPDU: 90 00 [09:46:00]wFMCommunicate OK [09:46:00]wFMCommunicate request_size=10 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 0D 02 02 05 F0 50 35 30 D3 [09:46:00]Write to MH i2c: E2 0D 00 9E 65 80 0D 02 02 05 00 F0 50 35 30 D3 00 00 FF [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 9E 65 00 90 00 77 [09:46:00]RAPDU: 90 00 [09:46:00]wFMCommunicate OK [09:46:00]wFMCommunicate request_size=4 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 0D 03 02 [09:46:00]Write to MH i2c: E2 08 00 9F 65 80 0D 03 02 00 00 00 00 7F [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 0B 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 0B 00 9F 65 00 E7 63 2E A2 75 4E 60 67 90 00 24 [09:46:00]RAPDU: E7 63 2E A2 75 4E 60 67 90 00 [09:46:00]wFMCommunicate OK [09:46:00]SAM_PROTO_SignData done [09:46:00]FM_MakeSignedData done [09:46:00]CreateOFDProtocolMessage [09:46:00]wFMCommunicate request_size=4 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 11 00 00 [09:46:00]Write to MH i2c: E2 08 00 A0 65 80 11 00 00 00 00 00 00 7F [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 17 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 17 00 A0 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CC [09:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:46:00]wFMCommunicate OK [09:46:00]CreateOFDProtocolMessage done [09:46:00]OFDSenderStorePacket 49152 [09:46:00]StoreOFDPacket docnum=49152 [09:46:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 26 15 07 01 16 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 68 C5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 C0 00 00 35 04 06 00 E6 F0 50 35 30 D3 E7 63 2E A2 75 4E 60 67 [09:46:00]CheckFolder [09:46:00]dirname=/storage/ofd_packets [09:46:00]CheckFolder done [09:46:00]ProducePacketName [09:46:00]name=ofd_packets/00049152 [09:46:00]NVStorageSaveData ofd_packets/00049152 [09:46:00]File name is /storage/ofd_packets/00049152 [09:46:00]Write 301 bytes [09:46:00]NVStorageSaveData done [09:46:00]OFDSenderStorePacket done [09:46:00]KKMCreateOFDPacket done [09:46:00]NVStorageSaveData kkm_last_timestamp [09:46:00]File name is /storage/kkm_last_timestamp [09:46:00]Write 4 bytes [09:46:00]NVStorageSaveData done [09:46:00]ExternCall_PrintAddStr [09:46:00]wPrintStart [09:46:00]Write to MH i2c: 01 00 00 A1 65 06 [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: 01 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: 01 07 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: 01 07 00 A1 65 00 00 00 00 00 FF 0F 1B [09:46:00]RasterBufferAndPrint [09:46:00]line Счет N : (1)216253 [09:46:00]line ИНН: 02508201610067 [09:46:00]line Контрольно-Кассовый Чек [09:46:00]line ПРОДАЖА [09:46:00]line ТРК (МРК, ГНК) : 22 [09:46:00]line Товар: 2710124130 [09:46:00]line Аи-92-К-5 [09:46:00]line 6.640 * 60.30 [09:46:00]line = 400.39 [09:46:00]line НДС 12% НСП 1% [09:46:00]line > о реализуемом товаре [09:46:00]line ОКРУГЛЕНИЕ: -0.39 [09:46:00]line ИТОГО: 400.00 [09:46:00]line Внесено: 400.00 [09:46:00]line СДАЧА: 0.00 [09:46:00]line НСП 1% : 3.54 [09:46:00]line НДС 12% : 42.52 [09:46:00]line Наличными: 400.00 [09:46:00]line Безнал.: 0.00 [09:46:00]line Место: АЗС № 102 "Партнер Нефть" [09:46:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:46:00]line СНО: Общий режим [09:46:00]line Чек 28 30.01.2024 09:46 [09:46:00]line Смена: 246 ФФД: 1.0 [09:46:00]line ЗНМ: 0300000040 [09:46:00]line РНМ: 0000000000092723 [09:46:00]line Версия ККМ: 001 [09:46:00]line ФМ: 0000000000875060 [09:46:00]line ФД: 49152 [09:46:00]line ФПД: 253919812202707 [09:46:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T094616&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49152&fm=253919812202707&tin=02508201610067®Number=0000000000092723&sum=40000 [09:46:00]OFD Sender: Processing packet 49152 [packets to send 12, broken 11] [09:46:00]ProducePacketName [09:46:00]name=ofd_packets/00049152 [09:46:00]OFD Sender: To server: pG, [09:46:00]CommunicateWithHost lk.salyk.kg:30040 [09:46:00]ConnectInit lk.salyk.kg [09:46:00]written 0, free lines is 4095 [09:46:00]Connected sock=10 [09:46: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 36 30 0F 01 00 00 26 15 07 01 16 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 68 C5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 C0 00 00 35 04 06 00 E6 F0 50 35 30 D3 E7 63 2E A2 75 4E 60 67 [09:46: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 36 30 4F 00 00 00 FF AF 47 00 FF 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 C0 00 00 F4 03 04 00 5E 71 B8 65 B6 04 01 00 00 8F EB 2D C4 7A 71 9B E7 [09:46:01]CommunicateWithHost err = 0 [09:46:01]CheckOFDResponse [09:46:01]1017 (14) - 77093643461234 [09:46:01]1041 (16) - 0000000000875060 [09:46:01]1040 (4) - 49152 [09:46:01]1012 (4) - 30.01.2024 03:47 [09:46:01]1206 (1) - 0 [09:46:01]OFD Sender: Remove packet 49152 [09:46:01]ProducePacketName [09:46:01]name=ofd_packets/00049152 [09:46:01]NVStorageDeleteData [09:46:01]Write to MH i2c: 01 00 00 CC 65 31 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 07 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 07 00 CC 65 00 00 00 00 00 EF 0C 33 [09:46:01]RasterBufferAndPrint [09:46:01]line [09:46:01]line [09:46:01]line [09:46:01]line [09:46:01]line [09:46:01]written 0, free lines is 3317 [09:46:01]MH_Cut [09:46:01]Write to MH i2c: D1 01 00 D3 65 01 0A [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: D1 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: D1 01 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: D1 01 00 D3 65 00 09 [09:46:01]Write to MH i2c: 01 00 00 D4 65 39 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]OFD Sender: No OFD packet to send [09:46:01]*** Cut start [09:46:01]*** Partial cut [09:46:01]*** CUTSNS_PIN = 1 [09:46:02]*** CUTSNS_PIN = 0 [09:46:02]*** Brake cut motor [09:46:02]Read from MH i2c: 01 [09:46:02]MH_I2C_Read... [09:46:02]*** Stop cut motor [09:46:02]*** Cut end [09:46:02]Read from MH i2c: 01 07 00 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: 01 07 00 D4 65 00 00 00 00 00 FF 0F 4E [09:46:02]process_action close_receipt done [09:46:02]requested_data is exist [09:46:02]produce_requested_data [09:46:02]requested_item fm.sn is exist - process it [09:46:02]wFMCommunicate request_size=4 [09:46:02]MH_SAM_APDU [09:46:02]CAPDU: 80 11 00 00 [09:46:02]Write to MH i2c: E2 08 00 D5 65 80 11 00 00 00 00 00 00 B4 [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:02]Read from MH i2c: E2 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: E2 17 00 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: E2 17 00 D5 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 01 [09:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:46:02]wFMCommunicate OK [09:46:02]requested_item fd.num is exist - process it [09:46:02]SAM_PROTO_GetFieldsCounters [09:46:02]wFMCommunicate request_size=4 [09:46:02]MH_SAM_APDU [09:46:02]CAPDU: 80 13 00 00 [09:46:02]Write to MH i2c: E2 08 00 D6 65 80 13 00 00 00 00 00 00 B7 [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:02]Read from MH i2c: E2 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: E2 62 00 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: E2 62 00 D6 65 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 00 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [09:46: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 00 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:02]wFMCommunicate OK [09:46:02]SAM_PROTO_GetFieldsCounters done [09:46:02]requested_item shift.num is exist - process it [09:46:02]requested_item shift.opened is exist - process it [09:46:02]req_shift_opened [09:46:02]FM_GetShiftState [09:46:02]SAM_PROTO_GetShiftState [09:46:02]wFMCommunicate request_size=4 [09:46:02]MH_SAM_APDU [09:46:02]CAPDU: 80 13 01 00 [09:46:02]Write to MH i2c: E2 08 00 D7 65 80 13 01 00 00 00 00 00 B9 [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:02]Read from MH i2c: E2 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: E2 0E 00 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: E2 0E 00 D7 65 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E1 [09:46:02]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:46:02]wFMCommunicate OK [09:46:02]SAM_PROTO_GetShiftState done [09:46:02]FM_GetShiftState done [09:46:02]req_shift_opened done [09:46:02]requested_item shift.open_date is exist - process it [09:46:02]req_shift_open_date [09:46:02]req_shift_open_date done [09:46:02]produce_requested_data done [09:46:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49152,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:46:02]process_action_free close_receipt [09:46:02]json_value_free [09:46:02]json_value_free done [09:46:02]process_json_proto returns [09:46:02]Send response to host [09:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49152,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:46:02]free response buf [09:46:02]execute_script done [09:46:02]execute_script returns [09:46:02]free content buf [09:46:02]Sock 9.Close socket [09:46:02]Sock 9.Thread stoped [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:29]accept exits with 7 [09:46:29]New connection [09:46:29]New thread 3066670436 created [09:46:29]Thread 3066813796 joined [09:46:29]Waiting for new connection... [09:46:29] Sock 7.Parse request [09:46:29]Sock 7.Check first char [09:46:29]Sock 7.First char is OK [09:46:29]request: POST /json_proto HTTP/1.0 [09:46:29]Method: POST [09:46:29]URL: /json_proto [09:46:29]Method is POST - this is cgi request [09:46:29]url: /json_proto [09:46:29]query_string will be loaded in cgi processing [09:46:29]execute_cgi json_proto POST (null) [09:46:29]execute_cgi path=json_proto method=POST [09:46:29]POST find Content-Length [09:46:29]Host: 172.17.56.67:8080 [09:46:29]Content-Length: 677 [09:46:29]Content-Type: application/json [09:46:29] [09:46:29]POST finish read [09:46:29]Found Content-Length = 677 [09:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [09:46:29]execute_script... [09:46:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [09:46:29]POST & json_proto [09:46:29]process_json_proto [09:46:29]json parsed OK: [09:46:29]protocol is kg_v1.0 [09:46:29]action value=close_receipt [09:46:29]process_action close_receipt [09:46:29]cmd_close_receipt [09:46:29]MH_GetDate [09:46:29]Write to MH i2c: F0 00 00 D8 65 2C [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 09 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 09 00 D8 65 00 87 C5 B8 65 26 5D 9E 65 24 [09:46:29]GetLastDocTimeStamp 1706607976 [09:46:29]current date 1706608007 [09:46:29]FM_GetShiftState [09:46:29]SAM_PROTO_GetShiftState [09:46:29]wFMCommunicate request_size=4 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 13 01 00 [09:46:29]Write to MH i2c: E2 08 00 D9 65 80 13 01 00 00 00 00 00 BB [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:29]Read from MH i2c: E2 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 0E 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 0E 00 D9 65 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E3 [09:46:29]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:46:29]wFMCommunicate OK [09:46:29]SAM_PROTO_GetShiftState done [09:46:29]FM_GetShiftState done [09:46:29]opened in 1706572995 [09:46:29]opened+sec_in_day 1706659395 [09:46:29]quantity*price = 20019 [09:46:29]sum+1 = 20021 [09:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 29 30.01.2024 09:46 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49153 ФПД: 46604559311422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T094647&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49153&fm=46604559311422&tin=02508201610067®Number=0000000000092723&sum=20000 [09:46:30]StoreToDocumentArchive [09:46:30]shift 246 fd 49153 [09:46:30]save to /storage/0246/doc_00049153 [09:46:30]save last doc name /storage/0246/doc_00049153 to /storage/kkm_last_doc_name [09:46:30]save OK [09:46:30]Clear old archive folders... [09:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:30]tlvbuf is 011D8850 [09:46:30]SAM_PROTO_ClearQueue [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 09 00 00 [09:46:30]Write to MH i2c: E2 08 00 E6 65 80 09 00 00 00 00 00 00 BD [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 E6 65 00 90 00 BF [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]SAM_PROTO_ClearQueue done [09:46:30]KKMCreateOFDPacket [09:46:30]OFDProtocolAddRootSTLVToBuf [09:46:30]FM_MakeSignedData [09:46:30]FM_MakeSignedData [09:46:30]SAM_PROTO_SignData [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 01 02 [09:46:30]Write to MH i2c: E2 08 00 E7 65 80 0D 01 02 00 00 00 00 C5 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 E7 65 00 90 00 C0 [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=255 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 87 C5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 C0 00 00 35 04 06 00 2A [09:46:30]Write to MH i2c: E2 02 01 E8 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 87 C5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 C0 00 00 35 04 06 00 2A 00 00 3C [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 E8 65 00 90 00 C1 [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=10 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 02 02 05 62 F8 33 E2 3E [09:46:30]Write to MH i2c: E2 0D 00 E9 65 80 0D 02 02 05 00 62 F8 33 E2 3E 00 00 7F [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 E9 65 00 90 00 C2 [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 03 02 [09:46:30]Write to MH i2c: E2 08 00 EA 65 80 0D 03 02 00 00 00 00 CA [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 0B 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 0B 00 EA 65 00 27 E7 58 07 68 82 C9 98 90 00 83 [09:46:30]RAPDU: 27 E7 58 07 68 82 C9 98 90 00 [09:46:30]wFMCommunicate OK [09:46:30]SAM_PROTO_SignData done [09:46:30]FM_MakeSignedData done [09:46:30]CreateOFDProtocolMessage [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 11 00 00 [09:46:30]Write to MH i2c: E2 08 00 EB 65 80 11 00 00 00 00 00 00 CA [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 17 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 17 00 EB 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 17 [09:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:46:30]wFMCommunicate OK [09:46:30]CreateOFDProtocolMessage done [09:46:30]OFDSenderStorePacket 49153 [09:46:30]StoreOFDPacket docnum=49153 [09:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E1 6A 07 01 5D AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 87 C5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 C0 00 00 35 04 06 00 2A 62 F8 33 E2 3E 27 E7 58 07 68 82 C9 98 [09:46:30]CheckFolder [09:46:30]dirname=/storage/ofd_packets [09:46:30]CheckFolder done [09:46:30]ProducePacketName [09:46:30]name=ofd_packets/00049153 [09:46:30]NVStorageSaveData ofd_packets/00049153 [09:46:30]File name is /storage/ofd_packets/00049153 [09:46:30]Write 301 bytes [09:46:30]NVStorageSaveData done [09:46:30]OFDSenderStorePacket done [09:46:30]KKMCreateOFDPacket done [09:46:30]NVStorageSaveData kkm_last_timestamp [09:46:30]File name is /storage/kkm_last_timestamp [09:46:30]Write 4 bytes [09:46:30]NVStorageSaveData done [09:46:30]ExternCall_PrintAddStr [09:46:30]wPrintStart [09:46:30]Write to MH i2c: 01 00 00 EC 65 51 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 EC 65 00 00 00 00 00 FF 0F 66 [09:46:30]RasterBufferAndPrint [09:46:30]line Счет N : (1)216254 [09:46:30]line ИНН: 02508201610067 [09:46:30]line Контрольно-Кассовый Чек [09:46:30]line ПРОДАЖА [09:46:30]line ТРК (МРК, ГНК) : 12 [09:46:30]line Товар: 2710124130 [09:46:30]line Аи-92-К-5 [09:46:30]line 3.320 * 60.30 [09:46:30]line = 200.20 [09:46:30]line НДС 12% НСП 1% [09:46:30]line > о реализуемом товаре [09:46:30]line ОКРУГЛЕНИЕ: -0.20 [09:46:30]line ИТОГО: 200.00 [09:46:30]line Внесено: 200.00 [09:46:30]line СДАЧА: 0.00 [09:46:30]line НСП 1% : 1.77 [09:46:30]line НДС 12% : 21.26 [09:46:30]line Наличными: 200.00 [09:46:30]line Безнал.: 0.00 [09:46:30]line Место: АЗС № 102 "Партнер Нефть" [09:46:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:46:30]line СНО: Общий режим [09:46:30]line Чек 29 30.01.2024 09:46 [09:46:30]line Смена: 246 ФФД: 1.0 [09:46:31]line ЗНМ: 0300000040 [09:46:31]line РНМ: 0000000000092723 [09:46:31]line Версия ККМ: 001 [09:46:31]line ФМ: 0000000000875060 [09:46:31]line ФД: 49153 [09:46:31]line ФПД: 46604559311422 [09:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T094647&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49153&fm=46604559311422&tin=02508201610067®Number=0000000000092723&sum=20000 [09:46:31]OFD Sender: Processing packet 49153 [packets to send 12, broken 11] [09:46:31]ProducePacketName [09:46:31]name=ofd_packets/00049153 [09:46:31]OFD Sender: To server: pG, [09:46:31]CommunicateWithHost lk.salyk.kg:30040 [09:46:31]ConnectInit lk.salyk.kg [09:46:31]written 0, free lines is 4095 [09:46:31]Connected sock=10 [09:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E1 6A 07 01 5D AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 87 C5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 C0 00 00 35 04 06 00 2A 62 F8 33 E2 3E 27 E7 58 07 68 82 C9 98 [09:46: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 36 30 4F 00 00 00 A5 41 47 00 E4 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 36 30 10 04 04 00 01 C0 00 00 F4 03 04 00 7D 71 B8 65 B6 04 01 00 00 38 D3 DF 11 F0 66 06 90 [09:46:31]CommunicateWithHost err = 0 [09:46:31]CheckOFDResponse [09:46:31]1017 (14) - 77093643461234 [09:46:31]1041 (16) - 0000000000875060 [09:46:31]1040 (4) - 49153 [09:46:31]1012 (4) - 30.01.2024 03:48 [09:46:31]1206 (1) - 0 [09:46:31]OFD Sender: Remove packet 49153 [09:46:31]ProducePacketName [09:46:31]name=ofd_packets/00049153 [09:46:31]NVStorageDeleteData [09:46:31]Write to MH i2c: 01 00 00 17 66 7D [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 07 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 07 00 17 66 00 00 00 00 00 F6 0C 86 [09:46:31]RasterBufferAndPrint [09:46:31]line [09:46:31]line [09:46:31]line [09:46:31]line [09:46:31]line [09:46:31]written 0, free lines is 3324 [09:46:31]MH_Cut [09:46:31]Write to MH i2c: D1 01 00 1E 66 01 56 [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: D1 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: D1 01 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: D1 01 00 1E 66 00 55 [09:46:31]Write to MH i2c: 01 00 00 1F 66 85 [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:32]OFD Sender: No OFD packet to send [09:46:32]*** Cut start [09:46:32]*** Partial cut [09:46:32]*** CUTSNS_PIN = 1 [09:46:32]*** CUTSNS_PIN = 0 [09:46:32]*** Brake cut motor [09:46:32]Read from MH i2c: 01 [09:46:32]MH_I2C_Read... [09:46:32]*** Stop cut motor [09:46:32]*** Cut end [09:46:32]Read from MH i2c: 01 07 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: 01 07 00 1F 66 00 00 00 00 00 FF 0F 9A [09:46:32]process_action close_receipt done [09:46:32]requested_data is exist [09:46:32]produce_requested_data [09:46:32]requested_item fm.sn is exist - process it [09:46:32]wFMCommunicate request_size=4 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 11 00 00 [09:46:32]Write to MH i2c: E2 08 00 20 66 80 11 00 00 00 00 00 00 00 [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 17 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 17 00 20 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4D [09:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:46:33]wFMCommunicate OK [09:46:33]requested_item fd.num is exist - process it [09:46:33]SAM_PROTO_GetFieldsCounters [09:46:33]wFMCommunicate request_size=4 [09:46:33]MH_SAM_APDU [09:46:33]CAPDU: 80 13 00 00 [09:46:33]Write to MH i2c: E2 08 00 21 66 80 13 00 00 00 00 00 00 03 [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 62 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 62 00 21 66 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 01 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09:46: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 01 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:33]wFMCommunicate OK [09:46:33]SAM_PROTO_GetFieldsCounters done [09:46:33]requested_item shift.num is exist - process it [09:46:33]requested_item shift.opened is exist - process it [09:46:33]req_shift_opened [09:46:33]FM_GetShiftState [09:46:33]SAM_PROTO_GetShiftState [09:46:33]wFMCommunicate request_size=4 [09:46:33]MH_SAM_APDU [09:46:33]CAPDU: 80 13 01 00 [09:46:33]Write to MH i2c: E2 08 00 22 66 80 13 01 00 00 00 00 00 05 [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 0E 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 0E 00 22 66 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2D [09:46:33]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:46:33]wFMCommunicate OK [09:46:33]SAM_PROTO_GetShiftState done [09:46:33]FM_GetShiftState done [09:46:33]req_shift_opened done [09:46:33]requested_item shift.open_date is exist - process it [09:46:33]req_shift_open_date [09:46:33]req_shift_open_date done [09:46:33]produce_requested_data done [09:46:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49153,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:46:33]process_action_free close_receipt [09:46:33]json_value_free [09:46:33]json_value_free done [09:46:33]process_json_proto returns [09:46:33]Send response to host [09:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49153,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:46:33]free response buf [09:46:33]execute_script done [09:46:33]execute_script returns [09:46:33]free content buf [09:46:33]Sock 7.Close socket [09:46:33]Sock 7.Thread stoped [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:39]accept exits with 9 [09:48:39]New connection [09:48:39]New thread 3066813796 created [09:48:39]Thread 3066670436 joined [09:48:39]Waiting for new connection... [09:48:39] Sock 9.Parse request [09:48:39]Sock 9.Check first char [09:48:39]Sock 9.First char is OK [09:48:39]request: POST /json_proto HTTP/1.0 [09:48:39]Method: POST [09:48:39]URL: /json_proto [09:48:39]Method is POST - this is cgi request [09:48:39]url: /json_proto [09:48:39]query_string will be loaded in cgi processing [09:48:39]execute_cgi json_proto POST (null) [09:48:39]execute_cgi path=json_proto method=POST [09:48:39]POST find Content-Length [09:48:39]Host: 172.17.56.67:8080 [09:48:39]Content-Length: 679 [09:48:39]Content-Type: application/json [09:48:39] [09:48:39]POST finish read [09:48:39]Found Content-Length = 679 [09:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 20.030, "sum" : 1400.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:39]execute_script... [09:48:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 20.030, "sum" : 1400.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:39]POST & json_proto [09:48:39]process_json_proto [09:48:39]json parsed OK: [09:48:39]protocol is kg_v1.0 [09:48:39]action value=close_receipt [09:48:39]process_action close_receipt [09:48:39]cmd_close_receipt [09:48:39]MH_GetDate [09:48:39]Write to MH i2c: F0 00 00 23 66 78 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: F0 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: F0 09 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: F0 09 00 23 66 00 09 C6 B8 65 26 5D 9E 65 F3 [09:48:39]GetLastDocTimeStamp 1706608007 [09:48:39]current date 1706608137 [09:48:39]FM_GetShiftState [09:48:39]SAM_PROTO_GetShiftState [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 13 01 00 [09:48:39]Write to MH i2c: E2 08 00 24 66 80 13 01 00 00 00 00 00 07 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 0E 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 0E 00 24 66 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2F [09:48:39]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:48:39]wFMCommunicate OK [09:48:39]SAM_PROTO_GetShiftState done [09:48:39]FM_GetShiftState done [09:48:39]opened in 1706572995 [09:48:39]opened+sec_in_day 1706659395 [09:48:39]quantity*price = 140009 [09:48:39]sum+1 = 140011 [09:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 30 30.01.2024 09:48 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49154 ФПД: 234932002964986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T094857&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49154&fm=234932002964986&tin=02508201610067®Number=0000000000092723&sum=140000 [09:48:40]StoreToDocumentArchive [09:48:40]shift 246 fd 49154 [09:48:40]save to /storage/0246/doc_00049154 [09:48:40]save last doc name /storage/0246/doc_00049154 to /storage/kkm_last_doc_name [09:48:40]save OK [09:48:40]Clear old archive folders... [09:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:40]tlvbuf is 01232360 [09:48:40]SAM_PROTO_ClearQueue [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 09 00 00 [09:48:40]Write to MH i2c: E2 08 00 31 66 80 09 00 00 00 00 00 00 09 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 31 66 00 90 00 0B [09:48:40]RAPDU: 90 00 [09:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_ClearQueue done [09:48:40]KKMCreateOFDPacket [09:48:40]OFDProtocolAddRootSTLVToBuf [09:48:40]FM_MakeSignedData [09:48:40]FM_MakeSignedData [09:48:40]SAM_PROTO_SignData [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 0D 01 02 [09:48:40]Write to MH i2c: E2 08 00 32 66 80 0D 01 02 00 00 00 00 11 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 32 66 00 90 00 0C [09:48:40]RAPDU: 90 00 [09:48:40]wFMCommunicate OK [09:48:40]wFMCommunicate request_size=255 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 EA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 09 C6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 C0 00 00 35 04 06 00 D5 AB 5E 95 [09:48:40]Write to MH i2c: E2 02 01 33 66 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 EA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 09 C6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 C0 00 00 35 04 06 00 D5 AB 5E 95 00 00 CF [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 33 66 00 90 00 0D [09:48:40]RAPDU: 90 00 [09:48:40]wFMCommunicate OK [09:48:40]wFMCommunicate request_size=7 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 0D 02 02 02 45 FA [09:48:40]Write to MH i2c: E2 0A 00 34 66 80 0D 02 02 02 00 45 FA 00 00 57 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 03 00 34 66 00 90 00 0E [09:48:40]RAPDU: 90 00 [09:48:40]wFMCommunicate OK [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 0D 03 02 [09:48:40]Write to MH i2c: E2 08 00 35 66 80 0D 03 02 00 00 00 00 16 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0B 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0B 00 35 66 00 A7 75 B6 33 86 72 8A 24 90 00 C2 [09:48:40]RAPDU: A7 75 B6 33 86 72 8A 24 90 00 [09:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_SignData done [09:48:40]FM_MakeSignedData done [09:48:40]CreateOFDProtocolMessage [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 11 00 00 [09:48:40]Write to MH i2c: E2 08 00 36 66 80 11 00 00 00 00 00 00 16 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 36 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 63 [09:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:48:40]wFMCommunicate OK [09:48:40]CreateOFDProtocolMessage done [09:48:40]OFDSenderStorePacket 49154 [09:48:40]StoreOFDPacket docnum=49154 [09:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 6C 77 04 01 B5 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 EA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 09 C6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 C0 00 00 35 04 06 00 D5 AB 5E 95 45 FA A7 75 B6 33 86 72 8A 24 [09:48:40]CheckFolder [09:48:40]dirname=/storage/ofd_packets [09:48:40]CheckFolder done [09:48:40]ProducePacketName [09:48:40]name=ofd_packets/00049154 [09:48:40]NVStorageSaveData ofd_packets/00049154 [09:48:40]File name is /storage/ofd_packets/00049154 [09:48:40]Write 298 bytes [09:48:40]NVStorageSaveData done [09:48:40]OFDSenderStorePacket done [09:48:40]KKMCreateOFDPacket done [09:48:40]NVStorageSaveData kkm_last_timestamp [09:48:40]File name is /storage/kkm_last_timestamp [09:48:40]Write 4 bytes [09:48:40]NVStorageSaveData done [09:48:40]ExternCall_PrintAddStr [09:48:40]wPrintStart [09:48:40]Write to MH i2c: 01 00 00 37 66 9D [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 37 66 00 00 00 00 00 FF 0F B2 [09:48:40]RasterBufferAndPrint [09:48:40]line Счет N : (1)216255 [09:48:40]line ИНН: 02508201610067 [09:48:40]line Контрольно-Кассовый Чек [09:48:40]line ПРОДАЖА [09:48:40]line ТРК (МРК, ГНК) : 11 [09:48:40]line Товар: 2710194210 [09:48:40]line ДТ-К-5 [09:48:40]line 20.030 * 69.90 [09:48:40]line = 1400.10 [09:48:40]line НДС 12% НСП 1% [09:48:40]line > о реализуемом товаре [09:48:40]line ОКРУГЛЕНИЕ: -0.10 [09:48:40]line ИТОГО: 1400.00 [09:48:40]line Внесено: 1400.00 [09:48:40]line СДАЧА: 0.00 [09:48:40]line НСП 1% : 12.39 [09:48:40]line НДС 12% : 148.68 [09:48:40]line Наличными: 1400.00 [09:48:40]line Безнал.: 0.00 [09:48:40]line Место: АЗС № 102 "Партнер Нефть" [09:48:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:48:40]line СНО: Общий режим [09:48:40]line Чек 30 30.01.2024 09:48 [09:48:40]line Смена: 246 ФФД: 1.0 [09:48:40]line ЗНМ: 0300000040 [09:48:40]line РНМ: 0000000000092723 [09:48:40]line Версия ККМ: 001 [09:48:40]line ФМ: 0000000000875060 [09:48:40]line ФД: 49154 [09:48:40]line ФПД: 234932002964986 [09:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T094857&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49154&fm=234932002964986&tin=02508201610067®Number=0000000000092723&sum=140000 [09:48:41]OFD Sender: Processing packet 49154 [packets to send 12, broken 11] [09:48:41]ProducePacketName [09:48:41]name=ofd_packets/00049154 [09:48:41]OFD Sender: To server: pG, [09:48:41]CommunicateWithHost lk.salyk.kg:30040 [09:48:41]ConnectInit lk.salyk.kg [09:48:41]written 0, free lines is 4095 [09:48:41]Connected sock=10 [09:48: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 36 30 0C 01 00 00 6C 77 04 01 B5 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 EA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 09 C6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 C0 00 00 35 04 06 00 D5 AB 5E 95 45 FA A7 75 B6 33 86 72 8A 24 [09:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 67 9D 47 00 F4 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 C0 00 00 F4 03 04 00 FF 71 B8 65 B6 04 01 00 00 1D 53 13 24 71 0B 2E AF [09:48:41]CommunicateWithHost err = 0 [09:48:41]CheckOFDResponse [09:48:41]1017 (14) - 77093643461234 [09:48:41]1041 (16) - 0000000000875060 [09:48:41]1040 (4) - 49154 [09:48:41]1012 (4) - 30.01.2024 03:50 [09:48:41]1206 (1) - 0 [09:48:41]OFD Sender: Remove packet 49154 [09:48:41]ProducePacketName [09:48:41]name=ofd_packets/00049154 [09:48:41]NVStorageDeleteData [09:48:41]Write to MH i2c: 01 00 00 62 66 C8 [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 62 66 00 00 00 00 00 FA 0C D5 [09:48:41]RasterBufferAndPrint [09:48:41]line [09:48:41]line [09:48:41]line [09:48:41]line [09:48:41]line [09:48:41]written 0, free lines is 3328 [09:48:41]MH_Cut [09:48:41]Write to MH i2c: D1 01 00 69 66 01 A1 [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: D1 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: D1 01 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: D1 01 00 69 66 00 A0 [09:48:41]Write to MH i2c: 01 00 00 6A 66 D0 [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]OFD Sender: No OFD packet to send [09:48:42]*** Cut start [09:48:42]*** Partial cut [09:48:42]*** CUTSNS_PIN = 1 [09:48:42]*** CUTSNS_PIN = 0 [09:48:42]*** Brake cut motor [09:48:42]Read from MH i2c: 01 [09:48:42]MH_I2C_Read... [09:48:42]*** Stop cut motor [09:48:42]*** Cut end [09:48:42]Read from MH i2c: 01 07 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: 01 07 00 6A 66 00 00 00 00 00 FF 0F E5 [09:48:42]process_action close_receipt done [09:48:42]requested_data is exist [09:48:42]produce_requested_data [09:48:42]requested_item fm.sn is exist - process it [09:48:42]wFMCommunicate request_size=4 [09:48:42]MH_SAM_APDU [09:48:42]CAPDU: 80 11 00 00 [09:48:42]Write to MH i2c: E2 08 00 6B 66 80 11 00 00 00 00 00 00 4B [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:42]Read from MH i2c: E2 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 17 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 17 00 6B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 98 [09:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:48:42]wFMCommunicate OK [09:48:42]requested_item fd.num is exist - process it [09:48:42]SAM_PROTO_GetFieldsCounters [09:48:42]wFMCommunicate request_size=4 [09:48:42]MH_SAM_APDU [09:48:42]CAPDU: 80 13 00 00 [09:48:42]Write to MH i2c: E2 08 00 6C 66 80 13 00 00 00 00 00 00 4E [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:42]Read from MH i2c: E2 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 62 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 62 00 6C 66 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 02 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [09:48: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 02 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:42]wFMCommunicate OK [09:48:42]SAM_PROTO_GetFieldsCounters done [09:48:42]requested_item shift.num is exist - process it [09:48:42]requested_item shift.opened is exist - process it [09:48:42]req_shift_opened [09:48:42]FM_GetShiftState [09:48:42]SAM_PROTO_GetShiftState [09:48:42]wFMCommunicate request_size=4 [09:48:42]MH_SAM_APDU [09:48:42]CAPDU: 80 13 01 00 [09:48:42]Write to MH i2c: E2 08 00 6D 66 80 13 01 00 00 00 00 00 50 [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:42]Read from MH i2c: E2 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 0E 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 0E 00 6D 66 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 78 [09:48:43]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetShiftState done [09:48:43]FM_GetShiftState done [09:48:43]req_shift_opened done [09:48:43]requested_item shift.open_date is exist - process it [09:48:43]req_shift_open_date [09:48:43]req_shift_open_date done [09:48:43]produce_requested_data done [09:48:43]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49154,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:48:43]process_action_free close_receipt [09:48:43]json_value_free [09:48:43]json_value_free done [09:48:43]process_json_proto returns [09:48:43]Send response to host [09:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49154,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:48:43]free response buf [09:48:43]execute_script done [09:48:43]execute_script returns [09:48:43]free content buf [09:48:43]Sock 9.Close socket [09:48:43]Sock 9.Thread stoped [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:33]accept exits with 7 [09:55:33]New connection [09:55:33]New thread 3066670436 created [09:55:33]Thread 3066813796 joined [09:55:33]Waiting for new connection... [09:55:33] Sock 7.Parse request [09:55:33]Sock 7.Check first char [09:55:33]Sock 7.First char is OK [09:55:33]request: POST /json_proto HTTP/1.0 [09:55:33]Method: POST [09:55:33]URL: /json_proto [09:55:33]Method is POST - this is cgi request [09:55:33]url: /json_proto [09:55:33]query_string will be loaded in cgi processing [09:55:33]execute_cgi json_proto POST (null) [09:55:33]execute_cgi path=json_proto method=POST [09:55:33]POST find Content-Length [09:55:33]Host: 172.17.56.67:8080 [09:55:33]Content-Length: 682 [09:55:33]Content-Type: application/json [09:55:33] [09:55:33]POST finish read [09:55:33]Found Content-Length = 682 [09:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:55:33]execute_script... [09:55: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)216256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:55:33]POST & json_proto [09:55:33]process_json_proto [09:55:33]json parsed OK: [09:55:33]protocol is kg_v1.0 [09:55:33]action value=close_receipt [09:55:33]process_action close_receipt [09:55:33]cmd_close_receipt [09:55:33]MH_GetDate [09:55:33]Write to MH i2c: F0 00 00 6E 66 C3 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: F0 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: F0 09 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: F0 09 00 6E 66 00 A8 C7 B8 65 26 5D 9E 65 DE [09:55:33]GetLastDocTimeStamp 1706608137 [09:55:33]current date 1706608552 [09:55:33]FM_GetShiftState [09:55:33]SAM_PROTO_GetShiftState [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 13 01 00 [09:55:33]Write to MH i2c: E2 08 00 6F 66 80 13 01 00 00 00 00 00 52 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 0E 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 0E 00 6F 66 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 7A [09:55:33]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:55:33]wFMCommunicate OK [09:55:33]SAM_PROTO_GetShiftState done [09:55:33]FM_GetShiftState done [09:55:33]opened in 1706572995 [09:55:33]opened+sec_in_day 1706659395 [09:55:33]quantity*price = 100037 [09:55:33]sum+1 = 100039 [09:55:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 31 30.01.2024 09:55 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49155 ФПД: 97365570142255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T095552&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49155&fm=97365570142255&tin=02508201610067®Number=0000000000092723&sum=100000 [09:55:35]StoreToDocumentArchive [09:55:35]shift 246 fd 49155 [09:55:35]save to /storage/0246/doc_00049155 [09:55:35]save last doc name /storage/0246/doc_00049155 to /storage/kkm_last_doc_name [09:55:35]save OK [09:55:35]Clear old archive folders... [09:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:35]tlvbuf is 01384A50 [09:55:35]SAM_PROTO_ClearQueue [09:55:35]wFMCommunicate request_size=4 [09:55:35]MH_SAM_APDU [09:55:35]CAPDU: 80 09 00 00 [09:55:35]Write to MH i2c: E2 08 00 7C 66 80 09 00 00 00 00 00 00 54 [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:35]Read from MH i2c: E2 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 7C 66 00 90 00 56 [09:55:35]RAPDU: 90 00 [09:55:35]wFMCommunicate OK [09:55:35]SAM_PROTO_ClearQueue done [09:55:35]KKMCreateOFDPacket [09:55:35]OFDProtocolAddRootSTLVToBuf [09:55:35]FM_MakeSignedData [09:55:35]FM_MakeSignedData [09:55:35]SAM_PROTO_SignData [09:55:35]wFMCommunicate request_size=4 [09:55:35]MH_SAM_APDU [09:55:35]CAPDU: 80 0D 01 02 [09:55:35]Write to MH i2c: E2 08 00 7D 66 80 0D 01 02 00 00 00 00 5C [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:35]Read from MH i2c: E2 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 7D 66 00 90 00 57 [09:55:35]RAPDU: 90 00 [09:55:35]wFMCommunicate OK [09:55:35]wFMCommunicate request_size=255 [09:55:35]MH_SAM_APDU [09:55:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A8 C7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 C0 00 00 35 04 06 00 58 [09:55:35]Write to MH i2c: E2 02 01 7E 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A8 C7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 C0 00 00 35 04 06 00 58 00 00 88 [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:35]Read from MH i2c: E2 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 7E 66 00 90 00 58 [09:55:35]RAPDU: 90 00 [09:55:35]wFMCommunicate OK [09:55:35]wFMCommunicate request_size=10 [09:55:35]MH_SAM_APDU [09:55:35]CAPDU: 80 0D 02 02 05 8D B0 38 C0 2F [09:55:35]Write to MH i2c: E2 0D 00 7F 66 80 0D 02 02 05 00 8D B0 38 C0 2F 00 00 CD [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:35]Read from MH i2c: E2 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 7F 66 00 90 00 59 [09:55:35]RAPDU: 90 00 [09:55:35]wFMCommunicate OK [09:55:35]wFMCommunicate request_size=4 [09:55:35]MH_SAM_APDU [09:55:35]CAPDU: 80 0D 03 02 [09:55:35]Write to MH i2c: E2 08 00 80 66 80 0D 03 02 00 00 00 00 61 [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:35]Read from MH i2c: E2 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 0B 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 0B 00 80 66 00 30 04 9C 7C E2 A7 15 1B 90 00 67 [09:55:35]RAPDU: 30 04 9C 7C E2 A7 15 1B 90 00 [09:55:35]wFMCommunicate OK [09:55:35]SAM_PROTO_SignData done [09:55:35]FM_MakeSignedData done [09:55:35]CreateOFDProtocolMessage [09:55:35]wFMCommunicate request_size=4 [09:55:35]MH_SAM_APDU [09:55:35]CAPDU: 80 11 00 00 [09:55:35]Write to MH i2c: E2 08 00 81 66 80 11 00 00 00 00 00 00 61 [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:35]Read from MH i2c: E2 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 17 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 17 00 81 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AE [09:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:55:35]wFMCommunicate OK [09:55:35]CreateOFDProtocolMessage done [09:55:35]OFDSenderStorePacket 49155 [09:55:35]StoreOFDPacket docnum=49155 [09:55:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 29 F4 07 01 8A 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A8 C7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 C0 00 00 35 04 06 00 58 8D B0 38 C0 2F 30 04 9C 7C E2 A7 15 1B [09:55:35]CheckFolder [09:55:35]dirname=/storage/ofd_packets [09:55:35]CheckFolder done [09:55:35]ProducePacketName [09:55:35]name=ofd_packets/00049155 [09:55:35]NVStorageSaveData ofd_packets/00049155 [09:55:35]File name is /storage/ofd_packets/00049155 [09:55:35]Write 301 bytes [09:55:35]NVStorageSaveData done [09:55:35]OFDSenderStorePacket done [09:55:35]KKMCreateOFDPacket done [09:55:35]NVStorageSaveData kkm_last_timestamp [09:55:35]File name is /storage/kkm_last_timestamp [09:55:35]Write 4 bytes [09:55:35]NVStorageSaveData done [09:55:35]ExternCall_PrintAddStr [09:55:35]wPrintStart [09:55:35]Write to MH i2c: 01 00 00 82 66 E8 [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 07 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 07 00 82 66 00 00 00 00 00 FF 0F FD [09:55:35]RasterBufferAndPrint [09:55:35]line Счет N : (1)216256 [09:55:35]line ИНН: 02508201610067 [09:55:35]line Контрольно-Кассовый Чек [09:55:35]line ПРОДАЖА [09:55:35]line ТРК (МРК, ГНК) : 22 [09:55:35]line Товар: 2710124130 [09:55:35]line Аи-92-К-5 [09:55:35]line 16.590 * 60.30 [09:55:35]line = 1000.38 [09:55:35]line НДС 12% НСП 1% [09:55:35]line > о реализуемом товаре [09:55:35]line ОКРУГЛЕНИЕ: -0.38 [09:55:35]line ИТОГО: 1000.00 [09:55:35]line Внесено: 1000.00 [09:55:35]line СДАЧА: 0.00 [09:55:35]line НСП 1% : 8.85 [09:55:35]line НДС 12% : 106.23 [09:55:35]line Наличными: 1000.00 [09:55:35]line Безнал.: 0.00 [09:55:35]line Место: АЗС № 102 "Партнер Нефть" [09:55:35]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:55:35]line СНО: Общий режим [09:55:35]line Чек 31 30.01.2024 09:55 [09:55:35]line Смена: 246 ФФД: 1.0 [09:55:35]line ЗНМ: 0300000040 [09:55:35]line РНМ: 0000000000092723 [09:55:35]line Версия ККМ: 001 [09:55:35]line ФМ: 0000000000875060 [09:55:35]line ФД: 49155 [09:55:35]line ФПД: 97365570142255 [09:55:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T095552&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49155&fm=97365570142255&tin=02508201610067®Number=0000000000092723&sum=100000 [09:55:35]OFD Sender: Processing packet 49155 [packets to send 12, broken 11] [09:55:35]ProducePacketName [09:55:35]name=ofd_packets/00049155 [09:55:35]OFD Sender: To server: pG, [09:55:35]CommunicateWithHost lk.salyk.kg:30040 [09:55:35]ConnectInit lk.salyk.kg [09:55:35]written 0, free lines is 4095 [09:55:36]Connected sock=10 [09:55: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 36 30 0F 01 00 00 29 F4 07 01 8A 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A8 C7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 C0 00 00 35 04 06 00 58 8D B0 38 C0 2F 30 04 9C 7C E2 A7 15 1B [09:55: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 36 30 4F 00 00 00 A6 05 47 00 D9 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 36 30 10 04 04 00 03 C0 00 00 F4 03 04 00 9E 73 B8 65 B6 04 01 00 00 77 61 E9 5B 3C 3E 26 1D [09:55:36]CommunicateWithHost err = 0 [09:55:36]CheckOFDResponse [09:55:36]1017 (14) - 77093643461234 [09:55:36]1041 (16) - 0000000000875060 [09:55:36]1040 (4) - 49155 [09:55:36]1012 (4) - 30.01.2024 03:57 [09:55:36]1206 (1) - 0 [09:55:36]OFD Sender: Remove packet 49155 [09:55:36]ProducePacketName [09:55:36]name=ofd_packets/00049155 [09:55:36]NVStorageDeleteData [09:55:36]Write to MH i2c: 01 00 00 AD 66 13 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 07 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 07 00 AD 66 00 00 00 00 00 FA 0C 20 [09:55:36]RasterBufferAndPrint [09:55:36]line [09:55:36]line [09:55:36]line [09:55:36]line [09:55:36]line [09:55:36]written 0, free lines is 3331 [09:55:36]MH_Cut [09:55:36]Write to MH i2c: D1 01 00 B4 66 01 EC [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: D1 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: D1 01 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: D1 01 00 B4 66 00 EB [09:55:36]Write to MH i2c: 01 00 00 B5 66 1B [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]OFD Sender: No OFD packet to send [09:55:37]*** Cut start [09:55:37]*** Partial cut [09:55:37]*** CUTSNS_PIN = 1 [09:55:37]*** CUTSNS_PIN = 0 [09:55:37]*** Brake cut motor [09:55:37]Read from MH i2c: 01 [09:55:37]MH_I2C_Read... [09:55:37]*** Stop cut motor [09:55:37]*** Cut end [09:55:37]Read from MH i2c: 01 07 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: 01 07 00 B5 66 00 00 00 00 00 FF 0F 30 [09:55:37]process_action close_receipt done [09:55:37]requested_data is exist [09:55:37]produce_requested_data [09:55:37]requested_item fm.sn is exist - process it [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 11 00 00 [09:55:37]Write to MH i2c: E2 08 00 B6 66 80 11 00 00 00 00 00 00 96 [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 17 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 17 00 B6 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E3 [09:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:55:37]wFMCommunicate OK [09:55:37]requested_item fd.num is exist - process it [09:55:37]SAM_PROTO_GetFieldsCounters [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 13 00 00 [09:55:37]Write to MH i2c: E2 08 00 B7 66 80 13 00 00 00 00 00 00 99 [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 62 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 62 00 B7 66 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 03 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [09:55: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 03 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:37]wFMCommunicate OK [09:55:37]SAM_PROTO_GetFieldsCounters done [09:55:37]requested_item shift.num is exist - process it [09:55:37]requested_item shift.opened is exist - process it [09:55:37]req_shift_opened [09:55:37]FM_GetShiftState [09:55:37]SAM_PROTO_GetShiftState [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 13 01 00 [09:55:37]Write to MH i2c: E2 08 00 B8 66 80 13 01 00 00 00 00 00 9B [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 0E 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 0E 00 B8 66 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C3 [09:55:37]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:55:37]wFMCommunicate OK [09:55:37]SAM_PROTO_GetShiftState done [09:55:37]FM_GetShiftState done [09:55:37]req_shift_opened done [09:55:37]requested_item shift.open_date is exist - process it [09:55:37]req_shift_open_date [09:55:37]req_shift_open_date done [09:55:37]produce_requested_data done [09:55:37]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49155,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:55:37]process_action_free close_receipt [09:55:37]json_value_free [09:55:37]json_value_free done [09:55:37]process_json_proto returns [09:55:37]Send response to host [09:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49155,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:55:37]free response buf [09:55:37]execute_script done [09:55:37]execute_script returns [09:55:37]free content buf [09:55:37]Sock 7.Close socket [09:55:37]Sock 7.Thread stoped [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]accept exits with 9 [09:59:01]New connection [09:59:01]New thread 3066813796 created [09:59:01]Thread 3066670436 joined [09:59:01]Waiting for new connection... [09:59:01] Sock 9.Parse request [09:59:01]Sock 9.Check first char [09:59:01]Sock 9.First char is OK [09:59:01]request: POST /json_proto HTTP/1.0 [09:59:01]Method: POST [09:59:01]URL: /json_proto [09:59:01]Method is POST - this is cgi request [09:59:01]url: /json_proto [09:59:01]query_string will be loaded in cgi processing [09:59:01]execute_cgi json_proto POST (null) [09:59:01]execute_cgi path=json_proto method=POST [09:59:01]POST find Content-Length [09:59:01]Host: 172.17.56.67:8080 [09:59:01]Content-Length: 677 [09:59:01]Content-Type: application/json [09:59:01] [09:59:01]POST finish read [09:59:01]Found Content-Length = 677 [09:59:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:01]execute_script... [09:59:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:01]POST & json_proto [09:59:01]process_json_proto [09:59:01]json parsed OK: [09:59:01]protocol is kg_v1.0 [09:59:01]action value=close_receipt [09:59:01]process_action close_receipt [09:59:01]cmd_close_receipt [09:59:01]MH_GetDate [09:59:01]Write to MH i2c: F0 00 00 B9 66 0E [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: F0 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: F0 09 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: F0 09 00 B9 66 00 77 C8 B8 65 26 5D 9E 65 F9 [09:59:01]GetLastDocTimeStamp 1706608552 [09:59:01]current date 1706608759 [09:59:01]FM_GetShiftState [09:59:01]SAM_PROTO_GetShiftState [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 13 01 00 [09:59:01]Write to MH i2c: E2 08 00 BA 66 80 13 01 00 00 00 00 00 9D [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 0E 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 0E 00 BA 66 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C5 [09:59:01]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:59:01]wFMCommunicate OK [09:59:01]SAM_PROTO_GetShiftState done [09:59:01]FM_GetShiftState done [09:59:01]opened in 1706572995 [09:59:01]opened+sec_in_day 1706659395 [09:59:01]quantity*price = 50049 [09:59:01]sum+1 = 50050 [09:59:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 32 30.01.2024 09:59 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49156 ФПД: 65381633661788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T095919&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49156&fm=65381633661788&tin=02508201610067®Number=0000000000092723&sum=50000 [09:59:02]StoreToDocumentArchive [09:59:02]shift 246 fd 49156 [09:59:02]save to /storage/0246/doc_00049156 [09:59:02]save last doc name /storage/0246/doc_00049156 to /storage/kkm_last_doc_name [09:59:02]save OK [09:59:02]Clear old archive folders... [09:59:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:02]tlvbuf is 012109C0 [09:59:02]SAM_PROTO_ClearQueue [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 09 00 00 [09:59:02]Write to MH i2c: E2 08 00 C7 66 80 09 00 00 00 00 00 00 9F [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 03 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 03 00 C7 66 00 90 00 A1 [09:59:02]RAPDU: 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_ClearQueue done [09:59:02]KKMCreateOFDPacket [09:59:02]OFDProtocolAddRootSTLVToBuf [09:59:02]FM_MakeSignedData [09:59:02]FM_MakeSignedData [09:59:02]SAM_PROTO_SignData [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 0D 01 02 [09:59:02]Write to MH i2c: E2 08 00 C8 66 80 0D 01 02 00 00 00 00 A7 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 03 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 03 00 C8 66 00 90 00 A2 [09:59:02]RAPDU: 90 00 [09:59:02]wFMCommunicate OK [09:59:02]wFMCommunicate request_size=255 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 77 C8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 04 C0 00 00 35 04 06 00 3B [09:59:02]Write to MH i2c: E2 02 01 C9 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 77 C8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 04 C0 00 00 35 04 06 00 3B 00 00 48 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 C9 66 00 90 00 A3 [09:59:03]RAPDU: 90 00 [09:59:03]wFMCommunicate OK [09:59:03]wFMCommunicate request_size=10 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 0D 02 02 05 76 D9 0C 9B 5C [09:59:03]Write to MH i2c: E2 0D 00 CA 66 80 0D 02 02 05 00 76 D9 0C 9B 5C 00 00 06 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 CA 66 00 90 00 A4 [09:59:03]RAPDU: 90 00 [09:59:03]wFMCommunicate OK [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 0D 03 02 [09:59:03]Write to MH i2c: E2 08 00 CB 66 80 0D 03 02 00 00 00 00 AC [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 0B 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 0B 00 CB 66 00 EF D8 D2 8B C2 32 5D FE 90 00 20 [09:59:03]RAPDU: EF D8 D2 8B C2 32 5D FE 90 00 [09:59:03]wFMCommunicate OK [09:59:03]SAM_PROTO_SignData done [09:59:03]FM_MakeSignedData done [09:59:03]CreateOFDProtocolMessage [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 11 00 00 [09:59:03]Write to MH i2c: E2 08 00 CC 66 80 11 00 00 00 00 00 00 AC [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 17 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 17 00 CC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F9 [09:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:59:03]wFMCommunicate OK [09:59:03]CreateOFDProtocolMessage done [09:59:03]OFDSenderStorePacket 49156 [09:59:03]StoreOFDPacket docnum=49156 [09:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DC DA 07 01 7C E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 77 C8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 04 C0 00 00 35 04 06 00 3B 76 D9 0C 9B 5C EF D8 D2 8B C2 32 5D FE [09:59:03]CheckFolder [09:59:03]dirname=/storage/ofd_packets [09:59:03]CheckFolder done [09:59:03]ProducePacketName [09:59:03]name=ofd_packets/00049156 [09:59:03]NVStorageSaveData ofd_packets/00049156 [09:59:03]File name is /storage/ofd_packets/00049156 [09:59:03]Write 301 bytes [09:59:03]NVStorageSaveData done [09:59:03]OFDSenderStorePacket done [09:59:03]KKMCreateOFDPacket done [09:59:03]NVStorageSaveData kkm_last_timestamp [09:59:03]File name is /storage/kkm_last_timestamp [09:59:03]Write 4 bytes [09:59:03]NVStorageSaveData done [09:59:03]ExternCall_PrintAddStr [09:59:03]wPrintStart [09:59:03]Write to MH i2c: 01 00 00 CD 66 33 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: 01 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: 01 07 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: 01 07 00 CD 66 00 00 00 00 00 FF 0F 48 [09:59:03]RasterBufferAndPrint [09:59:03]line Счет N : (1)216257 [09:59:03]line ИНН: 02508201610067 [09:59:03]line Контрольно-Кассовый Чек [09:59:03]line ПРОДАЖА [09:59:03]line ТРК (МРК, ГНК) : 22 [09:59:03]line Товар: 2710124130 [09:59:03]line Аи-92-К-5 [09:59:03]line 8.300 * 60.30 [09:59:03]line = 500.49 [09:59:03]line НДС 12% НСП 1% [09:59:03]line > о реализуемом товаре [09:59:03]line ОКРУГЛЕНИЕ: -0.49 [09:59:03]line ИТОГО: 500.00 [09:59:03]line Внесено: 500.00 [09:59:03]line СДАЧА: 0.00 [09:59:03]line НСП 1% : 4.43 [09:59:03]line НДС 12% : 53.15 [09:59:03]line Наличными: 500.00 [09:59:03]line Безнал.: 0.00 [09:59:03]line Место: АЗС № 102 "Партнер Нефть" [09:59:03]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:59:03]line СНО: Общий режим [09:59:03]line Чек 32 30.01.2024 09:59 [09:59:03]line Смена: 246 ФФД: 1.0 [09:59:03]line ЗНМ: 0300000040 [09:59:03]line РНМ: 0000000000092723 [09:59:03]line Версия ККМ: 001 [09:59:03]line ФМ: 0000000000875060 [09:59:03]line ФД: 49156 [09:59:03]line ФПД: 65381633661788 [09:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T095919&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49156&fm=65381633661788&tin=02508201610067®Number=0000000000092723&sum=50000 [09:59:03]OFD Sender: Processing packet 49156 [packets to send 12, broken 11] [09:59:03]ProducePacketName [09:59:03]name=ofd_packets/00049156 [09:59:03]OFD Sender: To server: pG, [09:59:03]CommunicateWithHost lk.salyk.kg:30040 [09:59:03]ConnectInit lk.salyk.kg [09:59:03]written 0, free lines is 4095 [09:59:03]Connected sock=10 [09:59: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 36 30 0F 01 00 00 DC DA 07 01 7C E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 77 C8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 04 C0 00 00 35 04 06 00 3B 76 D9 0C 9B 5C EF D8 D2 8B C2 32 5D FE [09:59: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 36 30 4F 00 00 00 14 1B 47 00 F1 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 36 30 10 04 04 00 04 C0 00 00 F4 03 04 00 6D 74 B8 65 B6 04 01 00 00 50 1E 00 F3 A5 45 75 90 [09:59:03]CommunicateWithHost err = 0 [09:59:03]CheckOFDResponse [09:59:03]1017 (14) - 77093643461234 [09:59:03]1041 (16) - 0000000000875060 [09:59:03]1040 (4) - 49156 [09:59:03]1012 (4) - 30.01.2024 04:00 [09:59:03]1206 (1) - 0 [09:59:03]OFD Sender: Remove packet 49156 [09:59:03]ProducePacketName [09:59:03]name=ofd_packets/00049156 [09:59:03]NVStorageDeleteData [09:59:04]Write to MH i2c: 01 00 00 F8 66 5E [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 F8 66 00 00 00 00 00 04 0D 76 [09:59:04]RasterBufferAndPrint [09:59:04]line [09:59:04]line [09:59:04]line [09:59:04]line [09:59:04]line [09:59:04]written 0, free lines is 3339 [09:59:04]MH_Cut [09:59:04]Write to MH i2c: D1 01 00 FF 66 01 37 [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: D1 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: D1 01 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: D1 01 00 FF 66 00 36 [09:59:04]Write to MH i2c: 01 00 00 00 67 67 [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]OFD Sender: No OFD packet to send [09:59:04]*** Cut start [09:59:04]*** Partial cut [09:59:04]*** CUTSNS_PIN = 1 [09:59:04]*** CUTSNS_PIN = 0 [09:59:04]*** Brake cut motor [09:59:05]Read from MH i2c: 01 [09:59:05]MH_I2C_Read... [09:59:05]*** Stop cut motor [09:59:05]*** Cut end [09:59:05]Read from MH i2c: 01 07 00 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: 01 07 00 00 67 00 00 00 00 00 FF 0F 7C [09:59:05]process_action close_receipt done [09:59:05]requested_data is exist [09:59:05]produce_requested_data [09:59:05]requested_item fm.sn is exist - process it [09:59:05]wFMCommunicate request_size=4 [09:59:05]MH_SAM_APDU [09:59:05]CAPDU: 80 11 00 00 [09:59:05]Write to MH i2c: E2 08 00 01 67 80 11 00 00 00 00 00 00 E2 [09:59:05]Write i2c OK [09:59:05]MH_I2C_Read... [09:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:05]Read from MH i2c: E2 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: E2 17 00 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: E2 17 00 01 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2F [09:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:59:05]wFMCommunicate OK [09:59:05]requested_item fd.num is exist - process it [09:59:05]SAM_PROTO_GetFieldsCounters [09:59:05]wFMCommunicate request_size=4 [09:59:05]MH_SAM_APDU [09:59:05]CAPDU: 80 13 00 00 [09:59:05]Write to MH i2c: E2 08 00 02 67 80 13 00 00 00 00 00 00 E5 [09:59:05]Write i2c OK [09:59:05]MH_I2C_Read... [09:59:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:05]Read from MH i2c: E2 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: E2 62 00 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: E2 62 00 02 67 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 04 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:59: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 04 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:05]wFMCommunicate OK [09:59:05]SAM_PROTO_GetFieldsCounters done [09:59:05]requested_item shift.num is exist - process it [09:59:05]requested_item shift.opened is exist - process it [09:59:05]req_shift_opened [09:59:05]FM_GetShiftState [09:59:05]SAM_PROTO_GetShiftState [09:59:05]wFMCommunicate request_size=4 [09:59:05]MH_SAM_APDU [09:59:05]CAPDU: 80 13 01 00 [09:59:05]Write to MH i2c: E2 08 00 03 67 80 13 01 00 00 00 00 00 E7 [09:59:05]Write i2c OK [09:59:05]MH_I2C_Read... [09:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:05]Read from MH i2c: E2 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: E2 0E 00 [09:59:05]MH_I2C_Read... [09:59:05]Read from MH i2c: E2 0E 00 03 67 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 0F [09:59:05]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [09:59:05]wFMCommunicate OK [09:59:05]SAM_PROTO_GetShiftState done [09:59:05]FM_GetShiftState done [09:59:05]req_shift_opened done [09:59:05]requested_item shift.open_date is exist - process it [09:59:05]req_shift_open_date [09:59:05]req_shift_open_date done [09:59:05]produce_requested_data done [09:59:05]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49156,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [09:59:05]process_action_free close_receipt [09:59:05]json_value_free [09:59:05]json_value_free done [09:59:05]process_json_proto returns [09:59:05]Send response to host [09:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49156,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [09:59:05]free response buf [09:59:05]execute_script done [09:59:05]execute_script returns [09:59:05]free content buf [09:59:05]Sock 9.Close socket [09:59:05]Sock 9.Thread stoped [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [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:02]accept exits with 7 [10:02:02]New connection [10:02:02]New thread 3066670436 created [10:02:02]Thread 3066813796 joined [10:02:02]Waiting for new connection... [10:02:02] Sock 7.Parse request [10:02:02]Sock 7.Check first char [10:02:02]Sock 7.First char is OK [10:02:02]request: POST /json_proto HTTP/1.0 [10:02:02]Method: POST [10:02:02]URL: /json_proto [10:02:02]Method is POST - this is cgi request [10:02:02]url: /json_proto [10:02:02]query_string will be loaded in cgi processing [10:02:02]execute_cgi json_proto POST (null) [10:02:02]execute_cgi path=json_proto method=POST [10:02:02]POST find Content-Length [10:02:02]Host: 172.17.56.67:8080 [10:02:02]Content-Length: 677 [10:02:02]Content-Type: application/json [10:02:02] [10:02:02]POST finish read [10:02:02]Found Content-Length = 677 [10:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:02]execute_script... [10:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:02]POST & json_proto [10:02:02]process_json_proto [10:02:02]json parsed OK: [10:02:02]protocol is kg_v1.0 [10:02:02]action value=close_receipt [10:02:02]process_action close_receipt [10:02:02]cmd_close_receipt [10:02:02]MH_GetDate [10:02:02]Write to MH i2c: F0 00 00 04 67 5A [10:02:03]Write i2c OK [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: F0 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: F0 09 00 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: F0 09 00 04 67 00 2D C9 B8 65 26 5D 9E 65 FC [10:02:03]GetLastDocTimeStamp 1706608759 [10:02:03]current date 1706608941 [10:02:03]FM_GetShiftState [10:02:03]SAM_PROTO_GetShiftState [10:02:03]wFMCommunicate request_size=4 [10:02:03]MH_SAM_APDU [10:02:03]CAPDU: 80 13 01 00 [10:02:03]Write to MH i2c: E2 08 00 05 67 80 13 01 00 00 00 00 00 E9 [10:02:03]Write i2c OK [10:02:03]MH_I2C_Read... [10:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:03]Read from MH i2c: E2 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: E2 0E 00 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: E2 0E 00 05 67 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 11 [10:02:03]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:02:03]wFMCommunicate OK [10:02:03]SAM_PROTO_GetShiftState done [10:02:03]FM_GetShiftState done [10:02:03]opened in 1706572995 [10:02:03]opened+sec_in_day 1706659395 [10:02:03]quantity*price = 30029 [10:02:03]sum+1 = 30030 [10:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 33 30.01.2024 10:02 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49157 ФПД: 143268894303319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T100221&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49157&fm=143268894303319&tin=02508201610067®Number=0000000000092723&sum=30000 [10:02:04]StoreToDocumentArchive [10:02:04]shift 246 fd 49157 [10:02:04]save to /storage/0246/doc_00049157 [10:02:04]save last doc name /storage/0246/doc_00049157 to /storage/kkm_last_doc_name [10:02:04]save OK [10:02:04]Clear old archive folders... [10:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:04]tlvbuf is 011EA460 [10:02:04]SAM_PROTO_ClearQueue [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 09 00 00 [10:02:04]Write to MH i2c: E2 08 00 12 67 80 09 00 00 00 00 00 00 EB [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 03 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 03 00 12 67 00 90 00 ED [10:02:04]RAPDU: 90 00 [10:02:04]wFMCommunicate OK [10:02:04]SAM_PROTO_ClearQueue done [10:02:04]KKMCreateOFDPacket [10:02:04]OFDProtocolAddRootSTLVToBuf [10:02:04]FM_MakeSignedData [10:02:04]FM_MakeSignedData [10:02:04]SAM_PROTO_SignData [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 0D 01 02 [10:02:04]Write to MH i2c: E2 08 00 13 67 80 0D 01 02 00 00 00 00 F3 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 03 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 03 00 13 67 00 90 00 EE [10:02:04]RAPDU: 90 00 [10:02:04]wFMCommunicate OK [10:02:04]wFMCommunicate request_size=255 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2D C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 C0 00 00 35 04 06 00 82 [10:02:04]Write to MH i2c: E2 02 01 14 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2D C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 C0 00 00 35 04 06 00 82 00 00 2A [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 03 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 03 00 14 67 00 90 00 EF [10:02:04]RAPDU: 90 00 [10:02:04]wFMCommunicate OK [10:02:04]wFMCommunicate request_size=10 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 0D 02 02 05 4D 63 8D 64 57 [10:02:04]Write to MH i2c: E2 0D 00 15 67 80 0D 02 02 05 00 4D 63 8D 64 57 00 00 F8 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 03 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 03 00 15 67 00 90 00 F0 [10:02:04]RAPDU: 90 00 [10:02:04]wFMCommunicate OK [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 0D 03 02 [10:02:04]Write to MH i2c: E2 08 00 16 67 80 0D 03 02 00 00 00 00 F8 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:04]OFD Sender: No OFD packet to send [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 0B 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 0B 00 16 67 00 4E 68 07 53 16 2C 05 E1 90 00 31 [10:02:04]RAPDU: 4E 68 07 53 16 2C 05 E1 90 00 [10:02:04]wFMCommunicate OK [10:02:04]SAM_PROTO_SignData done [10:02:04]FM_MakeSignedData done [10:02:04]CreateOFDProtocolMessage [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 11 00 00 [10:02:04]Write to MH i2c: E2 08 00 17 67 80 11 00 00 00 00 00 00 F8 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 17 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 17 00 17 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 45 [10:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:02:04]wFMCommunicate OK [10:02:04]CreateOFDProtocolMessage done [10:02:04]OFDSenderStorePacket 49157 [10:02:04]StoreOFDPacket docnum=49157 [10:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 60 36 07 01 86 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2D C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 C0 00 00 35 04 06 00 82 4D 63 8D 64 57 4E 68 07 53 16 2C 05 E1 [10:02:04]CheckFolder [10:02:04]dirname=/storage/ofd_packets [10:02:04]CheckFolder done [10:02:04]ProducePacketName [10:02:04]name=ofd_packets/00049157 [10:02:04]NVStorageSaveData ofd_packets/00049157 [10:02:04]File name is /storage/ofd_packets/00049157 [10:02:04]Write 301 bytes [10:02:04]NVStorageSaveData done [10:02:04]OFDSenderStorePacket done [10:02:04]KKMCreateOFDPacket done [10:02:04]NVStorageSaveData kkm_last_timestamp [10:02:04]File name is /storage/kkm_last_timestamp [10:02:04]Write 4 bytes [10:02:04]NVStorageSaveData done [10:02:04]ExternCall_PrintAddStr [10:02:04]wPrintStart [10:02:04]Write to MH i2c: 01 00 00 18 67 7F [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: 01 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: 01 07 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: 01 07 00 18 67 00 00 00 00 00 FF 0F 94 [10:02:04]RasterBufferAndPrint [10:02:04]line Счет N : (1)216258 [10:02:04]line ИНН: 02508201610067 [10:02:04]line Контрольно-Кассовый Чек [10:02:04]line ПРОДАЖА [10:02:04]line ТРК (МРК, ГНК) : 12 [10:02:04]line Товар: 2710124130 [10:02:04]line Аи-92-К-5 [10:02:04]line 4.980 * 60.30 [10:02:04]line = 300.29 [10:02:04]line НДС 12% НСП 1% [10:02:04]line > о реализуемом товаре [10:02:04]line ОКРУГЛЕНИЕ: -0.29 [10:02:04]line ИТОГО: 300.00 [10:02:04]line Внесено: 300.00 [10:02:04]line СДАЧА: 0.00 [10:02:04]line НСП 1% : 2.66 [10:02:04]line НДС 12% : 31.89 [10:02:04]line Наличными: 300.00 [10:02:04]line Безнал.: 0.00 [10:02:04]line Место: АЗС № 102 "Партнер Нефть" [10:02:04]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:02:04]line СНО: Общий режим [10:02:04]line Чек 33 30.01.2024 10:02 [10:02:04]line Смена: 246 ФФД: 1.0 [10:02:04]line ЗНМ: 0300000040 [10:02:04]line РНМ: 0000000000092723 [10:02:04]line Версия ККМ: 001 [10:02:04]line ФМ: 0000000000875060 [10:02:04]line ФД: 49157 [10:02:04]line ФПД: 143268894303319 [10:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T100221&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49157&fm=143268894303319&tin=02508201610067®Number=0000000000092723&sum=30000 [10:02:05]OFD Sender: Processing packet 49157 [packets to send 12, broken 11] [10:02:05]ProducePacketName [10:02:05]name=ofd_packets/00049157 [10:02:05]OFD Sender: To server: pG, [10:02:05]CommunicateWithHost lk.salyk.kg:30040 [10:02:05]ConnectInit lk.salyk.kg [10:02:05]written 0, free lines is 4095 [10:02:05]Connected sock=10 [10:02: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 36 30 0F 01 00 00 60 36 07 01 86 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2D C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 C0 00 00 35 04 06 00 82 4D 63 8D 64 57 4E 68 07 53 16 2C 05 E1 [10:02: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 36 30 4F 00 00 00 05 B1 47 00 FE 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 C0 00 00 F4 03 04 00 23 75 B8 65 B6 04 01 00 00 38 44 B1 4B 0B 77 7C C7 [10:02:05]CommunicateWithHost err = 0 [10:02:05]CheckOFDResponse [10:02:05]1017 (14) - 77093643461234 [10:02:05]1041 (16) - 0000000000875060 [10:02:05]1040 (4) - 49157 [10:02:05]1012 (4) - 30.01.2024 04:03 [10:02:05]1206 (1) - 0 [10:02:05]OFD Sender: Remove packet 49157 [10:02:05]ProducePacketName [10:02:05]name=ofd_packets/00049157 [10:02:05]NVStorageDeleteData [10:02:05]Write to MH i2c: 01 00 00 43 67 AA [10:02:05]Write i2c OK [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 07 00 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 07 00 43 67 00 00 00 00 00 FF 0C BC [10:02:05]RasterBufferAndPrint [10:02:05]line [10:02:05]line [10:02:05]line [10:02:05]line [10:02:05]line [10:02:05]written 0, free lines is 3333 [10:02:05]MH_Cut [10:02:05]Write to MH i2c: D1 01 00 4A 67 01 83 [10:02:05]Write i2c OK [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: D1 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: D1 01 00 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: D1 01 00 4A 67 00 82 [10:02:05]Write to MH i2c: 01 00 00 4B 67 B2 [10:02:05]Write i2c OK [10:02:05]MH_I2C_Read... [10:02:05]OFD Sender: No OFD packet to send [10:02:06]*** Cut start [10:02:06]*** Partial cut [10:02:06]*** CUTSNS_PIN = 1 [10:02:06]*** CUTSNS_PIN = 0 [10:02:06]*** Brake cut motor [10:02:06]Read from MH i2c: 01 [10:02:06]MH_I2C_Read... [10:02:06]*** Stop cut motor [10:02:06]*** Cut end [10:02:06]Read from MH i2c: 01 07 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: 01 07 00 4B 67 00 00 00 00 00 FF 0F C7 [10:02:06]process_action close_receipt done [10:02:06]requested_data is exist [10:02:06]produce_requested_data [10:02:06]requested_item fm.sn is exist - process it [10:02:06]wFMCommunicate request_size=4 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 11 00 00 [10:02:06]Write to MH i2c: E2 08 00 4C 67 80 11 00 00 00 00 00 00 2D [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 17 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 17 00 4C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7A [10:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:02:06]wFMCommunicate OK [10:02:06]requested_item fd.num is exist - process it [10:02:06]SAM_PROTO_GetFieldsCounters [10:02:06]wFMCommunicate request_size=4 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 13 00 00 [10:02:06]Write to MH i2c: E2 08 00 4D 67 80 13 00 00 00 00 00 00 30 [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 62 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 62 00 4D 67 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 05 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:02: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 05 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:06]wFMCommunicate OK [10:02:06]SAM_PROTO_GetFieldsCounters done [10:02:06]requested_item shift.num is exist - process it [10:02:06]requested_item shift.opened is exist - process it [10:02:06]req_shift_opened [10:02:06]FM_GetShiftState [10:02:06]SAM_PROTO_GetShiftState [10:02:06]wFMCommunicate request_size=4 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 13 01 00 [10:02:06]Write to MH i2c: E2 08 00 4E 67 80 13 01 00 00 00 00 00 32 [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:07]Read from MH i2c: E2 [10:02:07]MH_I2C_Read... [10:02:07]Read from MH i2c: E2 0E 00 [10:02:07]MH_I2C_Read... [10:02:07]Read from MH i2c: E2 0E 00 4E 67 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5A [10:02:07]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:02:07]wFMCommunicate OK [10:02:07]SAM_PROTO_GetShiftState done [10:02:07]FM_GetShiftState done [10:02:07]req_shift_opened done [10:02:07]requested_item shift.open_date is exist - process it [10:02:07]req_shift_open_date [10:02:07]req_shift_open_date done [10:02:07]produce_requested_data done [10:02:07]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49157,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:02:07]process_action_free close_receipt [10:02:07]json_value_free [10:02:07]json_value_free done [10:02:07]process_json_proto returns [10:02:07]Send response to host [10:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49157,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:02:07]free response buf [10:02:07]execute_script done [10:02:07]execute_script returns [10:02:07]free content buf [10:02:07]Sock 7.Close socket [10:02:07]Sock 7.Thread stoped [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:36]accept exits with 9 [10:02:36]New connection [10:02:36]New thread 3066813796 created [10:02:36]Thread 3066670436 joined [10:02:36]Waiting for new connection... [10:02:36] Sock 9.Parse request [10:02:36]Sock 9.Check first char [10:02:36]Sock 9.First char is OK [10:02:36]request: POST /json_proto HTTP/1.0 [10:02:36]Method: POST [10:02:36]URL: /json_proto [10:02:36]Method is POST - this is cgi request [10:02:36]url: /json_proto [10:02:36]query_string will be loaded in cgi processing [10:02:36]execute_cgi json_proto POST (null) [10:02:36]execute_cgi path=json_proto method=POST [10:02:36]POST find Content-Length [10:02:36]Host: 172.17.56.67:8080 [10:02:36]Content-Length: 677 [10:02:36]Content-Type: application/json [10:02:36] [10:02:36]POST finish read [10:02:36]Found Content-Length = 677 [10:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:36]execute_script... [10:02:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:36]POST & json_proto [10:02:36]process_json_proto [10:02:36]json parsed OK: [10:02:36]protocol is kg_v1.0 [10:02:36]action value=close_receipt [10:02:36]process_action close_receipt [10:02:36]cmd_close_receipt [10:02:36]MH_GetDate [10:02:36]Write to MH i2c: F0 00 00 4F 67 A5 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: F0 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: F0 09 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: F0 09 00 4F 67 00 4E C9 B8 65 26 5D 9E 65 68 [10:02:36]GetLastDocTimeStamp 1706608941 [10:02:36]current date 1706608974 [10:02:36]FM_GetShiftState [10:02:36]SAM_PROTO_GetShiftState [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 13 01 00 [10:02:36]Write to MH i2c: E2 08 00 50 67 80 13 01 00 00 00 00 00 34 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 0E 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 0E 00 50 67 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5C [10:02:36]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:02:36]wFMCommunicate OK [10:02:36]SAM_PROTO_GetShiftState done [10:02:36]FM_GetShiftState done [10:02:36]opened in 1706572995 [10:02:36]opened+sec_in_day 1706659395 [10:02:36]quantity*price = 50049 [10:02:36]sum+1 = 50050 [10:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 34 30.01.2024 10:02 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49158 ФПД: 120924632901487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T100254&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49158&fm=120924632901487&tin=02508201610067®Number=0000000000092723&sum=50000 [10:02:37]StoreToDocumentArchive [10:02:37]shift 246 fd 49158 [10:02:37]save to /storage/0246/doc_00049158 [10:02:37]save last doc name /storage/0246/doc_00049158 to /storage/kkm_last_doc_name [10:02:37]save OK [10:02:37]Clear old archive folders... [10:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:37]tlvbuf is 011DA860 [10:02:37]SAM_PROTO_ClearQueue [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 09 00 00 [10:02:37]Write to MH i2c: E2 08 00 5D 67 80 09 00 00 00 00 00 00 36 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 5D 67 00 90 00 38 [10:02:37]RAPDU: 90 00 [10:02:37]wFMCommunicate OK [10:02:37]SAM_PROTO_ClearQueue done [10:02:37]KKMCreateOFDPacket [10:02:37]OFDProtocolAddRootSTLVToBuf [10:02:37]FM_MakeSignedData [10:02:37]FM_MakeSignedData [10:02:37]SAM_PROTO_SignData [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 0D 01 02 [10:02:37]Write to MH i2c: E2 08 00 5E 67 80 0D 01 02 00 00 00 00 3E [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 5E 67 00 90 00 39 [10:02:37]RAPDU: 90 00 [10:02:37]wFMCommunicate OK [10:02:37]wFMCommunicate request_size=255 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 4E C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 C0 00 00 35 04 06 00 6D [10:02:37]Write to MH i2c: E2 02 01 5F 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 4E C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 C0 00 00 35 04 06 00 6D 00 00 ED [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 5F 67 00 90 00 3A [10:02:37]RAPDU: 90 00 [10:02:37]wFMCommunicate OK [10:02:37]wFMCommunicate request_size=10 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 0D 02 02 05 FA F5 C9 E7 6F [10:02:37]Write to MH i2c: E2 0D 00 60 67 80 0D 02 02 05 00 FA F5 C9 E7 6F 00 00 59 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 60 67 00 90 00 3B [10:02:37]RAPDU: 90 00 [10:02:37]wFMCommunicate OK [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 0D 03 02 [10:02:37]Write to MH i2c: E2 08 00 61 67 80 0D 03 02 00 00 00 00 43 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:38]Read from MH i2c: E2 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 0B 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 0B 00 61 67 00 84 78 88 25 D7 6F 7B 23 90 00 D1 [10:02:38]RAPDU: 84 78 88 25 D7 6F 7B 23 90 00 [10:02:38]wFMCommunicate OK [10:02:38]SAM_PROTO_SignData done [10:02:38]FM_MakeSignedData done [10:02:38]CreateOFDProtocolMessage [10:02:38]wFMCommunicate request_size=4 [10:02:38]MH_SAM_APDU [10:02:38]CAPDU: 80 11 00 00 [10:02:38]Write to MH i2c: E2 08 00 62 67 80 11 00 00 00 00 00 00 43 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:38]Read from MH i2c: E2 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 17 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 17 00 62 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 90 [10:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:02:38]wFMCommunicate OK [10:02:38]CreateOFDProtocolMessage done [10:02:38]OFDSenderStorePacket 49158 [10:02:38]StoreOFDPacket docnum=49158 [10:02:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CC 0C 07 01 9E CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 4E C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 C0 00 00 35 04 06 00 6D FA F5 C9 E7 6F 84 78 88 25 D7 6F 7B 23 [10:02:38]CheckFolder [10:02:38]dirname=/storage/ofd_packets [10:02:38]CheckFolder done [10:02:38]ProducePacketName [10:02:38]name=ofd_packets/00049158 [10:02:38]NVStorageSaveData ofd_packets/00049158 [10:02:38]File name is /storage/ofd_packets/00049158 [10:02:38]Write 301 bytes [10:02:38]NVStorageSaveData done [10:02:38]OFDSenderStorePacket done [10:02:38]KKMCreateOFDPacket done [10:02:38]NVStorageSaveData kkm_last_timestamp [10:02:38]File name is /storage/kkm_last_timestamp [10:02:38]Write 4 bytes [10:02:38]NVStorageSaveData done [10:02:38]ExternCall_PrintAddStr [10:02:38]wPrintStart [10:02:38]Write to MH i2c: 01 00 00 63 67 CA [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 07 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 07 00 63 67 00 00 00 00 00 FF 0F DF [10:02:38]RasterBufferAndPrint [10:02:38]line Счет N : (1)216259 [10:02:38]line ИНН: 02508201610067 [10:02:38]line Контрольно-Кассовый Чек [10:02:38]line ПРОДАЖА [10:02:38]line ТРК (МРК, ГНК) : 22 [10:02:38]line Товар: 2710124130 [10:02:38]line Аи-92-К-5 [10:02:38]line 8.300 * 60.30 [10:02:38]line = 500.49 [10:02:38]line НДС 12% НСП 1% [10:02:38]line > о реализуемом товаре [10:02:38]line ОКРУГЛЕНИЕ: -0.49 [10:02:38]line ИТОГО: 500.00 [10:02:38]line Внесено: 500.00 [10:02:38]line СДАЧА: 0.00 [10:02:38]line НСП 1% : 4.43 [10:02:38]line НДС 12% : 53.15 [10:02:38]line Наличными: 500.00 [10:02:38]line Безнал.: 0.00 [10:02:38]line Место: АЗС № 102 "Партнер Нефть" [10:02:38]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:02:38]line СНО: Общий режим [10:02:38]line Чек 34 30.01.2024 10:02 [10:02:38]line Смена: 246 ФФД: 1.0 [10:02:38]line ЗНМ: 0300000040 [10:02:38]line РНМ: 0000000000092723 [10:02:38]line Версия ККМ: 001 [10:02:38]line ФМ: 0000000000875060 [10:02:38]line ФД: 49158 [10:02:38]line ФПД: 120924632901487 [10:02:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T100254&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49158&fm=120924632901487&tin=02508201610067®Number=0000000000092723&sum=50000 [10:02:38]OFD Sender: Processing packet 49158 [packets to send 12, broken 11] [10:02:38]ProducePacketName [10:02:38]name=ofd_packets/00049158 [10:02:38]OFD Sender: To server: pG, [10:02:38]CommunicateWithHost lk.salyk.kg:30040 [10:02:38]ConnectInit lk.salyk.kg [10:02:38]written 0, free lines is 4095 [10:02:38]Connected sock=10 [10:02: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 36 30 0F 01 00 00 CC 0C 07 01 9E CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 4E C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 C0 00 00 35 04 06 00 6D FA F5 C9 E7 6F 84 78 88 25 D7 6F 7B 23 [10:02: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 36 30 4F 00 00 00 EA D3 47 00 45 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 36 30 10 04 04 00 06 C0 00 00 F4 03 04 00 44 75 B8 65 B6 04 01 00 00 21 30 BA F1 69 6E 45 2B [10:02:38]CommunicateWithHost err = 0 [10:02:38]CheckOFDResponse [10:02:38]1017 (14) - 77093643461234 [10:02:38]1041 (16) - 0000000000875060 [10:02:38]1040 (4) - 49158 [10:02:38]1012 (4) - 30.01.2024 04:04 [10:02:38]1206 (1) - 0 [10:02:38]OFD Sender: Remove packet 49158 [10:02:38]ProducePacketName [10:02:38]name=ofd_packets/00049158 [10:02:38]NVStorageDeleteData [10:02:38]Write to MH i2c: 01 00 00 8E 67 F5 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 07 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 07 00 8E 67 00 00 00 00 00 EC 0C F4 [10:02:38]RasterBufferAndPrint [10:02:38]line [10:02:38]line [10:02:38]line [10:02:38]line [10:02:38]line [10:02:38]written 0, free lines is 3314 [10:02:38]MH_Cut [10:02:38]Write to MH i2c: D1 01 00 95 67 01 CE [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: D1 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: D1 01 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: D1 01 00 95 67 00 CD [10:02:38]Write to MH i2c: 01 00 00 96 67 FD [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:39]OFD Sender: No OFD packet to send [10:02:39]*** Cut start [10:02:39]*** Partial cut [10:02:39]*** CUTSNS_PIN = 1 [10:02:39]*** CUTSNS_PIN = 0 [10:02:39]*** Brake cut motor [10:02:40]Read from MH i2c: 01 [10:02:40]MH_I2C_Read... [10:02:40]*** Stop cut motor [10:02:40]*** Cut end [10:02:40]Read from MH i2c: 01 07 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: 01 07 00 96 67 00 00 00 00 00 FF 0F 12 [10:02:40]process_action close_receipt done [10:02:40]requested_data is exist [10:02:40]produce_requested_data [10:02:40]requested_item fm.sn is exist - process it [10:02:40]wFMCommunicate request_size=4 [10:02:40]MH_SAM_APDU [10:02:40]CAPDU: 80 11 00 00 [10:02:40]Write to MH i2c: E2 08 00 97 67 80 11 00 00 00 00 00 00 78 [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:40]Read from MH i2c: E2 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 17 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 17 00 97 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C5 [10:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:02:40]wFMCommunicate OK [10:02:40]requested_item fd.num is exist - process it [10:02:40]SAM_PROTO_GetFieldsCounters [10:02:40]wFMCommunicate request_size=4 [10:02:40]MH_SAM_APDU [10:02:40]CAPDU: 80 13 00 00 [10:02:40]Write to MH i2c: E2 08 00 98 67 80 13 00 00 00 00 00 00 7B [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:40]Read from MH i2c: E2 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 62 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 62 00 98 67 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 06 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [10:02: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 06 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:40]wFMCommunicate OK [10:02:40]SAM_PROTO_GetFieldsCounters done [10:02:40]requested_item shift.num is exist - process it [10:02:40]requested_item shift.opened is exist - process it [10:02:40]req_shift_opened [10:02:40]FM_GetShiftState [10:02:40]SAM_PROTO_GetShiftState [10:02:40]wFMCommunicate request_size=4 [10:02:40]MH_SAM_APDU [10:02:40]CAPDU: 80 13 01 00 [10:02:40]Write to MH i2c: E2 08 00 99 67 80 13 01 00 00 00 00 00 7D [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:40]Read from MH i2c: E2 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 0E 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 0E 00 99 67 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A5 [10:02:40]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:02:40]wFMCommunicate OK [10:02:40]SAM_PROTO_GetShiftState done [10:02:40]FM_GetShiftState done [10:02:40]req_shift_opened done [10:02:40]requested_item shift.open_date is exist - process it [10:02:40]req_shift_open_date [10:02:40]req_shift_open_date done [10:02:40]produce_requested_data done [10:02:40]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49158,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:02:40]process_action_free close_receipt [10:02:40]json_value_free [10:02:40]json_value_free done [10:02:40]process_json_proto returns [10:02:40]Send response to host [10:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49158,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:02:40]free response buf [10:02:40]execute_script done [10:02:40]execute_script returns [10:02:40]free content buf [10:02:40]Sock 9.Close socket [10:02:40]Sock 9.Thread stoped [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:42]accept exits with 7 [10:03:42]New connection [10:03:42]New thread 3066670436 created [10:03:42]Thread 3066813796 joined [10:03:42]Waiting for new connection... [10:03:42] Sock 7.Parse request [10:03:42]Sock 7.Check first char [10:03:42]Sock 7.First char is OK [10:03:42]request: POST /json_proto HTTP/1.0 [10:03:42]Method: POST [10:03:42]URL: /json_proto [10:03:42]Method is POST - this is cgi request [10:03:42]url: /json_proto [10:03:42]query_string will be loaded in cgi processing [10:03:42]execute_cgi json_proto POST (null) [10:03:42]execute_cgi path=json_proto method=POST [10:03:42]POST find Content-Length [10:03:42]Host: 172.17.56.67:8080 [10:03:42]Content-Length: 674 [10:03:42]Content-Type: application/json [10:03:42] [10:03:42]POST finish read [10:03:42]Found Content-Length = 674 [10:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 4.300, "sum" : 300.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:42]execute_script... [10:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 4.300, "sum" : 300.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:42]POST & json_proto [10:03:42]process_json_proto [10:03:42]json parsed OK: [10:03:42]protocol is kg_v1.0 [10:03:42]action value=close_receipt [10:03:42]process_action close_receipt [10:03:42]cmd_close_receipt [10:03:42]MH_GetDate [10:03:42]Write to MH i2c: F0 00 00 9A 67 F0 [10:03:42]Write i2c OK [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: F0 [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: F0 09 00 [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: F0 09 00 9A 67 00 91 C9 B8 65 26 5D 9E 65 F6 [10:03:42]GetLastDocTimeStamp 1706608974 [10:03:42]current date 1706609041 [10:03:42]FM_GetShiftState [10:03:42]SAM_PROTO_GetShiftState [10:03:42]wFMCommunicate request_size=4 [10:03:42]MH_SAM_APDU [10:03:42]CAPDU: 80 13 01 00 [10:03:42]Write to MH i2c: E2 08 00 9B 67 80 13 01 00 00 00 00 00 7F [10:03:42]Write i2c OK [10:03:42]MH_I2C_Read... [10:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:42]Read from MH i2c: E2 [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: E2 0E 00 [10:03:42]MH_I2C_Read... [10:03:42]Read from MH i2c: E2 0E 00 9B 67 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A7 [10:03:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:03:42]wFMCommunicate OK [10:03:42]SAM_PROTO_GetShiftState done [10:03:42]FM_GetShiftState done [10:03:42]opened in 1706572995 [10:03:42]opened+sec_in_day 1706659395 [10:03:42]quantity*price = 30057 [10:03:42]sum+1 = 30058 [10:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 35 30.01.2024 10:04 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49159 ФПД: 113690994923784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T100401&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49159&fm=113690994923784&tin=02508201610067®Number=0000000000092723&sum=30000 [10:03:44]StoreToDocumentArchive [10:03:44]shift 246 fd 49159 [10:03:44]save to /storage/0246/doc_00049159 [10:03:44]save last doc name /storage/0246/doc_00049159 to /storage/kkm_last_doc_name [10:03:44]save OK [10:03:44]Clear old archive folders... [10:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:03:44]tlvbuf is B6F336A0 [10:03:44]SAM_PROTO_ClearQueue [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 09 00 00 [10:03:44]Write to MH i2c: E2 08 00 A8 67 80 09 00 00 00 00 00 00 81 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 A8 67 00 90 00 83 [10:03:44]RAPDU: 90 00 [10:03:44]wFMCommunicate OK [10:03:44]SAM_PROTO_ClearQueue done [10:03:44]KKMCreateOFDPacket [10:03:44]OFDProtocolAddRootSTLVToBuf [10:03:44]FM_MakeSignedData [10:03:44]FM_MakeSignedData [10:03:44]SAM_PROTO_SignData [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 0D 01 02 [10:03:44]Write to MH i2c: E2 08 00 A9 67 80 0D 01 02 00 00 00 00 89 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 A9 67 00 90 00 84 [10:03:44]RAPDU: 90 00 [10:03:44]wFMCommunicate OK [10:03:44]wFMCommunicate request_size=255 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 91 C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 C0 00 00 35 04 06 00 67 66 BF 5D [10:03:44]Write to MH i2c: E2 02 01 AA 67 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 91 C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 C0 00 00 35 04 06 00 67 66 BF 5D 00 00 1A [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]OFD Sender: No OFD packet to send [10:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 AA 67 00 90 00 85 [10:03:44]RAPDU: 90 00 [10:03:44]wFMCommunicate OK [10:03:44]wFMCommunicate request_size=7 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 0D 02 02 02 D9 08 [10:03:44]Write to MH i2c: E2 0A 00 AB 67 80 0D 02 02 02 00 D9 08 00 00 71 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 03 00 AB 67 00 90 00 86 [10:03:44]RAPDU: 90 00 [10:03:44]wFMCommunicate OK [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 0D 03 02 [10:03:44]Write to MH i2c: E2 08 00 AC 67 80 0D 03 02 00 00 00 00 8E [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 0B 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 0B 00 AC 67 00 0C 85 F2 16 5D 3A 3A 79 90 00 72 [10:03:44]RAPDU: 0C 85 F2 16 5D 3A 3A 79 90 00 [10:03:44]wFMCommunicate OK [10:03:44]SAM_PROTO_SignData done [10:03:44]FM_MakeSignedData done [10:03:44]CreateOFDProtocolMessage [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 11 00 00 [10:03:44]Write to MH i2c: E2 08 00 AD 67 80 11 00 00 00 00 00 00 8E [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 17 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 17 00 AD 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DB [10:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:03:44]wFMCommunicate OK [10:03:44]CreateOFDProtocolMessage done [10:03:44]OFDSenderStorePacket 49159 [10:03:44]StoreOFDPacket docnum=49159 [10:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 FB 0E 04 01 A0 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 91 C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 C0 00 00 35 04 06 00 67 66 BF 5D D9 08 0C 85 F2 16 5D 3A 3A 79 [10:03:44]CheckFolder [10:03:44]dirname=/storage/ofd_packets [10:03:44]CheckFolder done [10:03:44]ProducePacketName [10:03:44]name=ofd_packets/00049159 [10:03:44]NVStorageSaveData ofd_packets/00049159 [10:03:44]File name is /storage/ofd_packets/00049159 [10:03:44]Write 298 bytes [10:03:44]NVStorageSaveData done [10:03:44]OFDSenderStorePacket done [10:03:44]KKMCreateOFDPacket done [10:03:44]NVStorageSaveData kkm_last_timestamp [10:03:44]File name is /storage/kkm_last_timestamp [10:03:44]Write 4 bytes [10:03:44]NVStorageSaveData done [10:03:44]ExternCall_PrintAddStr [10:03:44]wPrintStart [10:03:44]Write to MH i2c: 01 00 00 AE 67 15 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 07 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 07 00 AE 67 00 00 00 00 00 FF 0F 2A [10:03:44]RasterBufferAndPrint [10:03:44]line Счет N : (1)216260 [10:03:44]line ИНН: 02508201610067 [10:03:44]line Контрольно-Кассовый Чек [10:03:44]line ПРОДАЖА [10:03:44]line ТРК (МРК, ГНК) : 21 [10:03:44]line Товар: 2710194210 [10:03:44]line ДТ-К-5 [10:03:44]line 4.300 * 69.90 [10:03:44]line = 300.57 [10:03:44]line НДС 12% НСП 1% [10:03:44]line > о реализуемом товаре [10:03:44]line ОКРУГЛЕНИЕ: -0.57 [10:03:44]line ИТОГО: 300.00 [10:03:44]line Внесено: 300.00 [10:03:44]line СДАЧА: 0.00 [10:03:44]line НСП 1% : 2.66 [10:03:44]line НДС 12% : 31.92 [10:03:44]line Наличными: 300.00 [10:03:44]line Безнал.: 0.00 [10:03:44]line Место: АЗС № 102 "Партнер Нефть" [10:03:44]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:03:44]line СНО: Общий режим [10:03:44]line Чек 35 30.01.2024 10:04 [10:03:44]line Смена: 246 ФФД: 1.0 [10:03:44]line ЗНМ: 0300000040 [10:03:44]line РНМ: 0000000000092723 [10:03:44]line Версия ККМ: 001 [10:03:44]line ФМ: 0000000000875060 [10:03:44]line ФД: 49159 [10:03:44]line ФПД: 113690994923784 [10:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T100401&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49159&fm=113690994923784&tin=02508201610067®Number=0000000000092723&sum=30000 [10:03:44]OFD Sender: Processing packet 49159 [packets to send 12, broken 11] [10:03:44]ProducePacketName [10:03:44]name=ofd_packets/00049159 [10:03:44]OFD Sender: To server: pG, [10:03:44]CommunicateWithHost lk.salyk.kg:30040 [10:03:44]ConnectInit lk.salyk.kg [10:03:44]written 0, free lines is 4095 [10:03:45]Connected sock=11 [10:03: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 36 30 0C 01 00 00 FB 0E 04 01 A0 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 91 C9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 C0 00 00 35 04 06 00 67 66 BF 5D D9 08 0C 85 F2 16 5D 3A 3A 79 [10:03: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 36 30 4F 00 00 00 55 A5 47 00 30 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 36 30 10 04 04 00 07 C0 00 00 F4 03 04 00 87 75 B8 65 B6 04 01 00 00 28 6A 9A 85 B4 E3 EB EB [10:03:45]CommunicateWithHost err = 0 [10:03:45]CheckOFDResponse [10:03:45]1017 (14) - 77093643461234 [10:03:45]1041 (16) - 0000000000875060 [10:03:45]1040 (4) - 49159 [10:03:45]1012 (4) - 30.01.2024 04:05 [10:03:45]1206 (1) - 0 [10:03:45]OFD Sender: Remove packet 49159 [10:03:45]ProducePacketName [10:03:45]name=ofd_packets/00049159 [10:03:45]NVStorageDeleteData [10:03:45]Write to MH i2c: 01 00 00 D9 67 40 [10:03:45]Write i2c OK [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: 01 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: 01 07 00 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: 01 07 00 D9 67 00 00 00 00 00 E5 0C 38 [10:03:45]RasterBufferAndPrint [10:03:45]line [10:03:45]line [10:03:45]line [10:03:45]line [10:03:45]line [10:03:45]written 0, free lines is 3307 [10:03:45]MH_Cut [10:03:45]Write to MH i2c: D1 01 00 E0 67 01 19 [10:03:45]Write i2c OK [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: D1 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: D1 01 00 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: D1 01 00 E0 67 00 18 [10:03:45]Write to MH i2c: 01 00 00 E1 67 48 [10:03:45]Write i2c OK [10:03:45]MH_I2C_Read... [10:03:45]OFD Sender: No OFD packet to send [10:03:46]*** Cut start [10:03:46]*** Partial cut [10:03:46]*** CUTSNS_PIN = 1 [10:03:46]*** CUTSNS_PIN = 0 [10:03:46]*** Brake cut motor [10:03:46]Read from MH i2c: 01 [10:03:46]MH_I2C_Read... [10:03:46]*** Stop cut motor [10:03:46]*** Cut end [10:03:46]Read from MH i2c: 01 07 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: 01 07 00 E1 67 00 00 00 00 00 FF 0F 5D [10:03:46]process_action close_receipt done [10:03:46]requested_data is exist [10:03:46]produce_requested_data [10:03:46]requested_item fm.sn is exist - process it [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 11 00 00 [10:03:46]Write to MH i2c: E2 08 00 E2 67 80 11 00 00 00 00 00 00 C3 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 17 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 17 00 E2 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 10 [10:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:03:46]wFMCommunicate OK [10:03:46]requested_item fd.num is exist - process it [10:03:46]SAM_PROTO_GetFieldsCounters [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 13 00 00 [10:03:46]Write to MH i2c: E2 08 00 E3 67 80 13 00 00 00 00 00 00 C6 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 62 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 62 00 E3 67 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 07 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:03: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 07 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:46]wFMCommunicate OK [10:03:46]SAM_PROTO_GetFieldsCounters done [10:03:46]requested_item shift.num is exist - process it [10:03:46]requested_item shift.opened is exist - process it [10:03:46]req_shift_opened [10:03:46]FM_GetShiftState [10:03:46]SAM_PROTO_GetShiftState [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 13 01 00 [10:03:46]Write to MH i2c: E2 08 00 E4 67 80 13 01 00 00 00 00 00 C8 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 0E 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 0E 00 E4 67 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F0 [10:03:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:03:46]wFMCommunicate OK [10:03:46]SAM_PROTO_GetShiftState done [10:03:46]FM_GetShiftState done [10:03:46]req_shift_opened done [10:03:46]requested_item shift.open_date is exist - process it [10:03:46]req_shift_open_date [10:03:46]req_shift_open_date done [10:03:46]produce_requested_data done [10:03:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49159,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:03:46]process_action_free close_receipt [10:03:46]json_value_free [10:03:46]json_value_free done [10:03:46]process_json_proto returns [10:03:46]Send response to host [10:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49159,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:03:46]free response buf [10:03:46]execute_script done [10:03:46]execute_script returns [10:03:46]free content buf [10:03:46]Sock 7.Close socket [10:03:46]Sock 7.Thread stoped [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:37]accept exits with 9 [10:08:37]New connection [10:08:37]New thread 3066813796 created [10:08:37]Thread 3066670436 joined [10:08:37]Waiting for new connection... [10:08:37] Sock 9.Parse request [10:08:37]Sock 9.Check first char [10:08:37]Sock 9.First char is OK [10:08:37]request: POST /json_proto HTTP/1.0 [10:08:37]Method: POST [10:08:37]URL: /json_proto [10:08:37]Method is POST - this is cgi request [10:08:37]url: /json_proto [10:08:37]query_string will be loaded in cgi processing [10:08:37]execute_cgi json_proto POST (null) [10:08:37]execute_cgi path=json_proto method=POST [10:08:37]POST find Content-Length [10:08:37]Host: 172.17.56.67:8080 [10:08:37]Content-Length: 677 [10:08:37]Content-Type: application/json [10:08:37] [10:08:37]POST finish read [10:08:37]Found Content-Length = 677 [10:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:37]execute_script... [10:08: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)216261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:37]POST & json_proto [10:08:37]process_json_proto [10:08:37]json parsed OK: [10:08:37]protocol is kg_v1.0 [10:08:37]action value=close_receipt [10:08:37]process_action close_receipt [10:08:37]cmd_close_receipt [10:08:37]MH_GetDate [10:08:37]Write to MH i2c: F0 00 00 E5 67 3B [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: F0 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: F0 09 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: F0 09 00 E5 67 00 B7 CA B8 65 26 5D 9E 65 68 [10:08:37]GetLastDocTimeStamp 1706609041 [10:08:37]current date 1706609335 [10:08:37]FM_GetShiftState [10:08:37]SAM_PROTO_GetShiftState [10:08:37]wFMCommunicate request_size=4 [10:08:37]MH_SAM_APDU [10:08:37]CAPDU: 80 13 01 00 [10:08:37]Write to MH i2c: E2 08 00 E6 67 80 13 01 00 00 00 00 00 CA [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:37]Read from MH i2c: E2 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 0E 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 0E 00 E6 67 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F2 [10:08:37]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:08:37]wFMCommunicate OK [10:08:37]SAM_PROTO_GetShiftState done [10:08:37]FM_GetShiftState done [10:08:37]opened in 1706572995 [10:08:37]opened+sec_in_day 1706659395 [10:08:37]quantity*price = 30029 [10:08:37]sum+1 = 30030 [10:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 36 30.01.2024 10:08 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49160 ФПД: 149879632271934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T100855&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49160&fm=149879632271934&tin=02508201610067®Number=0000000000092723&sum=30000 [10:08:38]StoreToDocumentArchive [10:08:38]shift 246 fd 49160 [10:08:38]save to /storage/0246/doc_00049160 [10:08:38]save last doc name /storage/0246/doc_00049160 to /storage/kkm_last_doc_name [10:08:38]save OK [10:08:38]Clear old archive folders... [10:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:38]tlvbuf is 01214B00 [10:08:38]SAM_PROTO_ClearQueue [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 09 00 00 [10:08:38]Write to MH i2c: E2 08 00 F3 67 80 09 00 00 00 00 00 00 CC [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 F3 67 00 90 00 CE [10:08:38]RAPDU: 90 00 [10:08:38]wFMCommunicate OK [10:08:38]SAM_PROTO_ClearQueue done [10:08:38]KKMCreateOFDPacket [10:08:38]OFDProtocolAddRootSTLVToBuf [10:08:38]FM_MakeSignedData [10:08:38]FM_MakeSignedData [10:08:38]SAM_PROTO_SignData [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 0D 01 02 [10:08:38]Write to MH i2c: E2 08 00 F4 67 80 0D 01 02 00 00 00 00 D4 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 F4 67 00 90 00 CF [10:08:38]RAPDU: 90 00 [10:08:38]wFMCommunicate OK [10:08:38]wFMCommunicate request_size=255 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B7 CA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 C0 00 00 35 04 06 00 88 [10:08:38]Write to MH i2c: E2 02 01 F5 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B7 CA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 C0 00 00 35 04 06 00 88 00 00 A2 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 F5 67 00 90 00 D0 [10:08:38]RAPDU: 90 00 [10:08:38]wFMCommunicate OK [10:08:38]wFMCommunicate request_size=10 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 0D 02 02 05 50 92 3D 9A 3E [10:08:38]Write to MH i2c: E2 0D 00 F6 67 80 0D 02 02 05 00 50 92 3D 9A 3E 00 00 D8 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 F6 67 00 90 00 D1 [10:08:38]RAPDU: 90 00 [10:08:38]wFMCommunicate OK [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 0D 03 02 [10:08:38]Write to MH i2c: E2 08 00 F7 67 80 0D 03 02 00 00 00 00 D9 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 0B 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 0B 00 F7 67 00 D1 5D 1D 51 F5 22 18 7A 90 00 1F [10:08:38]RAPDU: D1 5D 1D 51 F5 22 18 7A 90 00 [10:08:38]wFMCommunicate OK [10:08:38]SAM_PROTO_SignData done [10:08:38]FM_MakeSignedData done [10:08:38]CreateOFDProtocolMessage [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 11 00 00 [10:08:38]Write to MH i2c: E2 08 00 F8 67 80 11 00 00 00 00 00 00 D9 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 17 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 17 00 F8 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 26 [10:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:08:38]wFMCommunicate OK [10:08:38]CreateOFDProtocolMessage done [10:08:38]OFDSenderStorePacket 49160 [10:08:38]StoreOFDPacket docnum=49160 [10:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5D D0 07 01 21 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B7 CA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 C0 00 00 35 04 06 00 88 50 92 3D 9A 3E D1 5D 1D 51 F5 22 18 7A [10:08:38]CheckFolder [10:08:38]dirname=/storage/ofd_packets [10:08:38]CheckFolder done [10:08:38]ProducePacketName [10:08:38]name=ofd_packets/00049160 [10:08:38]NVStorageSaveData ofd_packets/00049160 [10:08:38]File name is /storage/ofd_packets/00049160 [10:08:38]Write 301 bytes [10:08:38]NVStorageSaveData done [10:08:38]OFDSenderStorePacket done [10:08:38]KKMCreateOFDPacket done [10:08:38]NVStorageSaveData kkm_last_timestamp [10:08:38]File name is /storage/kkm_last_timestamp [10:08:38]Write 4 bytes [10:08:38]NVStorageSaveData done [10:08:38]ExternCall_PrintAddStr [10:08:38]wPrintStart [10:08:38]Write to MH i2c: 01 00 00 F9 67 60 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 F9 67 00 00 00 00 00 FF 0F 75 [10:08:38]RasterBufferAndPrint [10:08:38]line Счет N : (1)216261 [10:08:38]line ИНН: 02508201610067 [10:08:38]line Контрольно-Кассовый Чек [10:08:38]line ПРОДАЖА [10:08:38]line ТРК (МРК, ГНК) : 12 [10:08:38]line Товар: 2710124130 [10:08:38]line Аи-92-К-5 [10:08:38]line 4.980 * 60.30 [10:08:38]line = 300.29 [10:08:38]line НДС 12% НСП 1% [10:08:38]line > о реализуемом товаре [10:08:38]line ОКРУГЛЕНИЕ: -0.29 [10:08:38]line ИТОГО: 300.00 [10:08:38]line Внесено: 300.00 [10:08:38]line СДАЧА: 0.00 [10:08:38]line НСП 1% : 2.66 [10:08:38]line НДС 12% : 31.89 [10:08:38]line Наличными: 300.00 [10:08:38]line Безнал.: 0.00 [10:08:38]line Место: АЗС № 102 "Партнер Нефть" [10:08:38]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:08:38]line СНО: Общий режим [10:08:38]line Чек 36 30.01.2024 10:08 [10:08:38]line Смена: 246 ФФД: 1.0 [10:08:38]line ЗНМ: 0300000040 [10:08:38]line РНМ: 0000000000092723 [10:08:38]line Версия ККМ: 001 [10:08:38]line ФМ: 0000000000875060 [10:08:38]line ФД: 49160 [10:08:38]line ФПД: 149879632271934 [10:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T100855&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49160&fm=149879632271934&tin=02508201610067®Number=0000000000092723&sum=30000 [10:08:39]OFD Sender: Processing packet 49160 [packets to send 12, broken 11] [10:08:39]ProducePacketName [10:08:39]name=ofd_packets/00049160 [10:08:39]OFD Sender: To server: pG, [10:08:39]CommunicateWithHost lk.salyk.kg:30040 [10:08:39]ConnectInit lk.salyk.kg [10:08:39]written 0, free lines is 4095 [10:08:39]Connected sock=11 [10:08: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 36 30 0F 01 00 00 5D D0 07 01 21 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B7 CA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 C0 00 00 35 04 06 00 88 50 92 3D 9A 3E D1 5D 1D 51 F5 22 18 7A [10:08: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 36 30 4F 00 00 00 C7 49 47 00 E9 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 36 30 10 04 04 00 08 C0 00 00 F4 03 04 00 AD 76 B8 65 B6 04 01 00 00 00 86 76 12 D2 CC CA 95 [10:08:39]CommunicateWithHost err = 0 [10:08:39]CheckOFDResponse [10:08:39]1017 (14) - 77093643461234 [10:08:39]1041 (16) - 0000000000875060 [10:08:39]1040 (4) - 49160 [10:08:39]1012 (4) - 30.01.2024 04:10 [10:08:39]1206 (1) - 0 [10:08:39]OFD Sender: Remove packet 49160 [10:08:39]ProducePacketName [10:08:39]name=ofd_packets/00049160 [10:08:39]NVStorageDeleteData [10:08:39]Write to MH i2c: 01 00 00 24 68 8C [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: 01 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: 01 07 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: 01 07 00 24 68 00 00 00 00 00 01 0D A1 [10:08:39]RasterBufferAndPrint [10:08:39]line [10:08:39]line [10:08:39]line [10:08:39]line [10:08:39]line [10:08:39]written 0, free lines is 3335 [10:08:39]MH_Cut [10:08:39]Write to MH i2c: D1 01 00 2B 68 01 65 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: D1 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: D1 01 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: D1 01 00 2B 68 00 64 [10:08:39]Write to MH i2c: 01 00 00 2C 68 94 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]OFD Sender: No OFD packet to send [10:08:40]*** Cut start [10:08:40]*** Partial cut [10:08:40]*** CUTSNS_PIN = 1 [10:08:40]*** CUTSNS_PIN = 0 [10:08:40]*** Brake cut motor [10:08:40]Read from MH i2c: 01 [10:08:40]MH_I2C_Read... [10:08:40]*** Stop cut motor [10:08:40]*** Cut end [10:08:40]Read from MH i2c: 01 07 00 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: 01 07 00 2C 68 00 00 00 00 00 FF 0F A9 [10:08:40]process_action close_receipt done [10:08:40]requested_data is exist [10:08:40]produce_requested_data [10:08:40]requested_item fm.sn is exist - process it [10:08:40]wFMCommunicate request_size=4 [10:08:40]MH_SAM_APDU [10:08:40]CAPDU: 80 11 00 00 [10:08:40]Write to MH i2c: E2 08 00 2D 68 80 11 00 00 00 00 00 00 0F [10:08:40]Write i2c OK [10:08:40]MH_I2C_Read... [10:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:40]Read from MH i2c: E2 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: E2 17 00 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: E2 17 00 2D 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5C [10:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:08:40]wFMCommunicate OK [10:08:40]requested_item fd.num is exist - process it [10:08:40]SAM_PROTO_GetFieldsCounters [10:08:40]wFMCommunicate request_size=4 [10:08:40]MH_SAM_APDU [10:08:40]CAPDU: 80 13 00 00 [10:08:40]Write to MH i2c: E2 08 00 2E 68 80 13 00 00 00 00 00 00 12 [10:08:40]Write i2c OK [10:08:40]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 62 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 62 00 2E 68 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 08 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:08: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 08 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:41]wFMCommunicate OK [10:08:41]SAM_PROTO_GetFieldsCounters done [10:08:41]requested_item shift.num is exist - process it [10:08:41]requested_item shift.opened is exist - process it [10:08:41]req_shift_opened [10:08:41]FM_GetShiftState [10:08:41]SAM_PROTO_GetShiftState [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 13 01 00 [10:08:41]Write to MH i2c: E2 08 00 2F 68 80 13 01 00 00 00 00 00 14 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0E 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0E 00 2F 68 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3C [10:08:41]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:08:41]wFMCommunicate OK [10:08:41]SAM_PROTO_GetShiftState done [10:08:41]FM_GetShiftState done [10:08:41]req_shift_opened done [10:08:41]requested_item shift.open_date is exist - process it [10:08:41]req_shift_open_date [10:08:41]req_shift_open_date done [10:08:41]produce_requested_data done [10:08:41]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49160,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:08:41]process_action_free close_receipt [10:08:41]json_value_free [10:08:41]json_value_free done [10:08:41]process_json_proto returns [10:08:41]Send response to host [10:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49160,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:08:41]free response buf [10:08:41]execute_script done [10:08:41]execute_script returns [10:08:41]free content buf [10:08:41]Sock 9.Close socket [10:08:41]Sock 9.Thread stoped [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:24]accept exits with 7 [10:15:24]New connection [10:15:24]New thread 3066670436 created [10:15:24]Thread 3066813796 joined [10:15:24]Waiting for new connection... [10:15:24] Sock 7.Parse request [10:15:24]Sock 7.Check first char [10:15:24]Sock 7.First char is OK [10:15:24]request: POST /json_proto HTTP/1.0 [10:15:24]Method: POST [10:15:24]URL: /json_proto [10:15:24]Method is POST - this is cgi request [10:15:24]url: /json_proto [10:15:24]query_string will be loaded in cgi processing [10:15:24]execute_cgi json_proto POST (null) [10:15:24]execute_cgi path=json_proto method=POST [10:15:24]POST find Content-Length [10:15:24]Host: 172.17.56.67:8080 [10:15:24]Content-Length: 677 [10:15:24]Content-Type: application/json [10:15:24] [10:15:24]POST finish read [10:15:24]Found Content-Length = 677 [10:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:24]execute_script... [10:15: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)216262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:24]POST & json_proto [10:15:24]process_json_proto [10:15:24]json parsed OK: [10:15:24]protocol is kg_v1.0 [10:15:24]action value=close_receipt [10:15:24]process_action close_receipt [10:15:24]cmd_close_receipt [10:15:24]MH_GetDate [10:15:24]Write to MH i2c: F0 00 00 30 68 87 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: F0 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: F0 09 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: F0 09 00 30 68 00 4E CC B8 65 26 5D 9E 65 4D [10:15:24]GetLastDocTimeStamp 1706609335 [10:15:24]current date 1706609742 [10:15:24]FM_GetShiftState [10:15:24]SAM_PROTO_GetShiftState [10:15:24]wFMCommunicate request_size=4 [10:15:24]MH_SAM_APDU [10:15:24]CAPDU: 80 13 01 00 [10:15:24]Write to MH i2c: E2 08 00 31 68 80 13 01 00 00 00 00 00 16 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:24]Read from MH i2c: E2 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: E2 0E 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: E2 0E 00 31 68 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3E [10:15:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:15:24]wFMCommunicate OK [10:15:24]SAM_PROTO_GetShiftState done [10:15:24]FM_GetShiftState done [10:15:24]opened in 1706572995 [10:15:24]opened+sec_in_day 1706659395 [10:15:24]quantity*price = 20019 [10:15:24]sum+1 = 20021 [10:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 37 30.01.2024 10:15 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49161 ФПД: 112304067513832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T101542&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49161&fm=112304067513832&tin=02508201610067®Number=0000000000092723&sum=20000 [10:15:25]StoreToDocumentArchive [10:15:25]shift 246 fd 49161 [10:15:25]save to /storage/0246/doc_00049161 [10:15:25]save last doc name /storage/0246/doc_00049161 to /storage/kkm_last_doc_name [10:15:25]save OK [10:15:25]Clear old archive folders... [10:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:25]tlvbuf is 013069B0 [10:15:25]SAM_PROTO_ClearQueue [10:15:25]wFMCommunicate request_size=4 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 09 00 00 [10:15:25]Write to MH i2c: E2 08 00 3E 68 80 09 00 00 00 00 00 00 18 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:25]Read from MH i2c: E2 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 03 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 03 00 3E 68 00 90 00 1A [10:15:25]RAPDU: 90 00 [10:15:25]wFMCommunicate OK [10:15:25]SAM_PROTO_ClearQueue done [10:15:25]KKMCreateOFDPacket [10:15:25]OFDProtocolAddRootSTLVToBuf [10:15:25]FM_MakeSignedData [10:15:25]FM_MakeSignedData [10:15:25]SAM_PROTO_SignData [10:15:25]wFMCommunicate request_size=4 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 0D 01 02 [10:15:25]Write to MH i2c: E2 08 00 3F 68 80 0D 01 02 00 00 00 00 20 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:25]Read from MH i2c: E2 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 03 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 03 00 3F 68 00 90 00 1B [10:15:25]RAPDU: 90 00 [10:15:25]wFMCommunicate OK [10:15:25]wFMCommunicate request_size=255 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 4E CC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 09 C0 00 00 35 04 06 00 66 [10:15:25]Write to MH i2c: E2 02 01 40 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 4E CC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 09 C0 00 00 35 04 06 00 66 00 00 B1 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 03 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 03 00 40 68 00 90 00 1C [10:15:26]RAPDU: 90 00 [10:15:26]wFMCommunicate OK [10:15:26]wFMCommunicate request_size=10 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 0D 02 02 05 23 D4 0D 0D E8 [10:15:26]Write to MH i2c: E2 0D 00 41 68 80 0D 02 02 05 00 23 D4 0D 0D E8 00 00 26 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 03 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 03 00 41 68 00 90 00 1D [10:15:26]RAPDU: 90 00 [10:15:26]wFMCommunicate OK [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 0D 03 02 [10:15:26]Write to MH i2c: E2 08 00 42 68 80 0D 03 02 00 00 00 00 25 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 0B 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 0B 00 42 68 00 66 54 17 5E F1 70 5B 3F 90 00 50 [10:15:26]RAPDU: 66 54 17 5E F1 70 5B 3F 90 00 [10:15:26]wFMCommunicate OK [10:15:26]SAM_PROTO_SignData done [10:15:26]FM_MakeSignedData done [10:15:26]CreateOFDProtocolMessage [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 11 00 00 [10:15:26]Write to MH i2c: E2 08 00 43 68 80 11 00 00 00 00 00 00 25 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 17 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 17 00 43 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 72 [10:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:15:26]wFMCommunicate OK [10:15:26]CreateOFDProtocolMessage done [10:15:26]OFDSenderStorePacket 49161 [10:15:26]StoreOFDPacket docnum=49161 [10:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 25 CD 07 01 F7 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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 4E CC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 09 C0 00 00 35 04 06 00 66 23 D4 0D 0D E8 66 54 17 5E F1 70 5B 3F [10:15:26]CheckFolder [10:15:26]dirname=/storage/ofd_packets [10:15:26]CheckFolder done [10:15:26]ProducePacketName [10:15:26]name=ofd_packets/00049161 [10:15:26]NVStorageSaveData ofd_packets/00049161 [10:15:26]File name is /storage/ofd_packets/00049161 [10:15:26]Write 301 bytes [10:15:26]NVStorageSaveData done [10:15:26]OFDSenderStorePacket done [10:15:26]KKMCreateOFDPacket done [10:15:26]NVStorageSaveData kkm_last_timestamp [10:15:26]File name is /storage/kkm_last_timestamp [10:15:26]Write 4 bytes [10:15:26]NVStorageSaveData done [10:15:26]ExternCall_PrintAddStr [10:15:26]wPrintStart [10:15:26]Write to MH i2c: 01 00 00 44 68 AC [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: 01 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: 01 07 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: 01 07 00 44 68 00 00 00 00 00 FF 0F C1 [10:15:26]RasterBufferAndPrint [10:15:26]line Счет N : (1)216262 [10:15:26]line ИНН: 02508201610067 [10:15:26]line Контрольно-Кассовый Чек [10:15:26]line ПРОДАЖА [10:15:26]line ТРК (МРК, ГНК) : 22 [10:15:26]line Товар: 2710124130 [10:15:26]line Аи-92-К-5 [10:15:26]line 3.320 * 60.30 [10:15:26]line = 200.20 [10:15:26]line НДС 12% НСП 1% [10:15:26]line > о реализуемом товаре [10:15:26]line ОКРУГЛЕНИЕ: -0.20 [10:15:26]line ИТОГО: 200.00 [10:15:26]line Внесено: 200.00 [10:15:26]line СДАЧА: 0.00 [10:15:26]line НСП 1% : 1.77 [10:15:26]line НДС 12% : 21.26 [10:15:26]line Наличными: 200.00 [10:15:26]line Безнал.: 0.00 [10:15:26]line Место: АЗС № 102 "Партнер Нефть" [10:15:26]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:15:26]line СНО: Общий режим [10:15:26]line Чек 37 30.01.2024 10:15 [10:15:26]line Смена: 246 ФФД: 1.0 [10:15:26]line ЗНМ: 0300000040 [10:15:26]line РНМ: 0000000000092723 [10:15:26]line Версия ККМ: 001 [10:15:26]line ФМ: 0000000000875060 [10:15:26]line ФД: 49161 [10:15:26]line ФПД: 112304067513832 [10:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T101542&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49161&fm=112304067513832&tin=02508201610067®Number=0000000000092723&sum=20000 [10:15:26]OFD Sender: Processing packet 49161 [packets to send 12, broken 11] [10:15:26]ProducePacketName [10:15:26]name=ofd_packets/00049161 [10:15:26]OFD Sender: To server: pG, [10:15:26]CommunicateWithHost lk.salyk.kg:30040 [10:15:26]ConnectInit lk.salyk.kg [10:15:26]written 0, free lines is 4095 [10:15:26]Connected sock=11 [10:15: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 36 30 0F 01 00 00 25 CD 07 01 F7 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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 4E CC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 09 C0 00 00 35 04 06 00 66 23 D4 0D 0D E8 66 54 17 5E F1 70 5B 3F [10:15: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 36 30 4F 00 00 00 85 F8 47 00 63 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 36 30 10 04 04 00 09 C0 00 00 F4 03 04 00 44 78 B8 65 B6 04 01 00 00 DD 3B 96 92 E0 E7 CE 27 [10:15:27]CommunicateWithHost err = 0 [10:15:27]CheckOFDResponse [10:15:27]1017 (14) - 77093643461234 [10:15:27]1041 (16) - 0000000000875060 [10:15:27]1040 (4) - 49161 [10:15:27]1012 (4) - 30.01.2024 04:17 [10:15:27]1206 (1) - 0 [10:15:27]OFD Sender: Remove packet 49161 [10:15:27]ProducePacketName [10:15:27]name=ofd_packets/00049161 [10:15:27]NVStorageDeleteData [10:15:27]Write to MH i2c: 01 00 00 6F 68 D7 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 6F 68 00 00 00 00 00 F2 0C DC [10:15:27]RasterBufferAndPrint [10:15:27]line [10:15:27]line [10:15:27]line [10:15:27]line [10:15:27]line [10:15:27]written 0, free lines is 3320 [10:15:27]MH_Cut [10:15:27]Write to MH i2c: D1 01 00 76 68 01 B0 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: D1 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: D1 01 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: D1 01 00 76 68 00 AF [10:15:27]Write to MH i2c: 01 00 00 77 68 DF [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]OFD Sender: No OFD packet to send [10:15:27]*** Cut start [10:15:27]*** Partial cut [10:15:27]*** CUTSNS_PIN = 1 [10:15:27]*** CUTSNS_PIN = 0 [10:15:28]*** Brake cut motor [10:15:28]Read from MH i2c: 01 [10:15:28]MH_I2C_Read... [10:15:28]*** Stop cut motor [10:15:28]*** Cut end [10:15:28]Read from MH i2c: 01 07 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: 01 07 00 77 68 00 00 00 00 00 FF 0F F4 [10:15:28]process_action close_receipt done [10:15:28]requested_data is exist [10:15:28]produce_requested_data [10:15:28]requested_item fm.sn is exist - process it [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 11 00 00 [10:15:28]Write to MH i2c: E2 08 00 78 68 80 11 00 00 00 00 00 00 5A [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 17 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 17 00 78 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A7 [10:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:15:28]wFMCommunicate OK [10:15:28]requested_item fd.num is exist - process it [10:15:28]SAM_PROTO_GetFieldsCounters [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 13 00 00 [10:15:28]Write to MH i2c: E2 08 00 79 68 80 13 00 00 00 00 00 00 5D [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 62 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 62 00 79 68 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 09 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [10:15: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 09 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:28]wFMCommunicate OK [10:15:28]SAM_PROTO_GetFieldsCounters done [10:15:28]requested_item shift.num is exist - process it [10:15:28]requested_item shift.opened is exist - process it [10:15:28]req_shift_opened [10:15:28]FM_GetShiftState [10:15:28]SAM_PROTO_GetShiftState [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 13 01 00 [10:15:28]Write to MH i2c: E2 08 00 7A 68 80 13 01 00 00 00 00 00 5F [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 7A 68 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 87 [10:15:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:15:28]wFMCommunicate OK [10:15:28]SAM_PROTO_GetShiftState done [10:15:28]FM_GetShiftState done [10:15:28]req_shift_opened done [10:15:28]requested_item shift.open_date is exist - process it [10:15:28]req_shift_open_date [10:15:28]req_shift_open_date done [10:15:28]produce_requested_data done [10:15:28]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49161,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:15:28]process_action_free close_receipt [10:15:28]json_value_free [10:15:28]json_value_free done [10:15:28]process_json_proto returns [10:15:28]Send response to host [10:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49161,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:15:28]free response buf [10:15:28]execute_script done [10:15:28]execute_script returns [10:15:28]free content buf [10:15:28]Sock 7.Close socket [10:15:28]Sock 7.Thread stoped [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:20]ConnectInit Can't connect to host [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]accept exits with 10 [10:21:12]New connection [10:21:12]New thread 3066813796 created [10:21:12]Thread 3066670436 joined [10:21:12]Waiting for new connection... [10:21:12] Sock 10.Parse request [10:21:12]Sock 10.Check first char [10:21:12]Sock 10.First char is OK [10:21:12]request: POST /json_proto HTTP/1.0 [10:21:12]Method: POST [10:21:12]URL: /json_proto [10:21:12]Method is POST - this is cgi request [10:21:12]url: /json_proto [10:21:12]query_string will be loaded in cgi processing [10:21:12]execute_cgi json_proto POST (null) [10:21:12]execute_cgi path=json_proto method=POST [10:21:12]POST find Content-Length [10:21:12]Host: 172.17.56.67:8080 [10:21:12]Content-Length: 677 [10:21:12]Content-Type: application/json [10:21:12] [10:21:12]POST finish read [10:21:12]Found Content-Length = 677 [10:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.990, "sum" : 180.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:12]execute_script... [10:21:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.990, "sum" : 180.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:12]POST & json_proto [10:21:12]process_json_proto [10:21:12]json parsed OK: [10:21:12]protocol is kg_v1.0 [10:21:12]action value=close_receipt [10:21:12]process_action close_receipt [10:21:12]cmd_close_receipt [10:21:12]MH_GetDate [10:21:12]Write to MH i2c: F0 00 00 7B 68 D2 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: F0 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: F0 09 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: F0 09 00 7B 68 00 AA CD B8 65 26 5D 9E 65 F5 [10:21:12]GetLastDocTimeStamp 1706609742 [10:21:12]current date 1706610090 [10:21:12]FM_GetShiftState [10:21:12]SAM_PROTO_GetShiftState [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 13 01 00 [10:21:12]Write to MH i2c: E2 08 00 7C 68 80 13 01 00 00 00 00 00 61 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0E 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0E 00 7C 68 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 89 [10:21:12]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:21:12]wFMCommunicate OK [10:21:12]SAM_PROTO_GetShiftState done [10:21:12]FM_GetShiftState done [10:21:12]opened in 1706572995 [10:21:12]opened+sec_in_day 1706659395 [10:21:12]quantity*price = 18029 [10:21:12]sum+1 = 18031 [10:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.60 НДС 12% : 19.15 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 38 30.01.2024 10:21 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49162 ФПД: 267974775058114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T102130&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49162&fm=267974775058114&tin=02508201610067®Number=0000000000092723&sum=18000 [10:21:13]StoreToDocumentArchive [10:21:13]shift 246 fd 49162 [10:21:13]save to /storage/0246/doc_00049162 [10:21:13]save last doc name /storage/0246/doc_00049162 to /storage/kkm_last_doc_name [10:21:13]save OK [10:21:13]Clear old archive folders... [10:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:13]tlvbuf is 013849D0 [10:21:13]SAM_PROTO_ClearQueue [10:21:13]wFMCommunicate request_size=4 [10:21:13]MH_SAM_APDU [10:21:13]CAPDU: 80 09 00 00 [10:21:13]Write to MH i2c: E2 08 00 89 68 80 09 00 00 00 00 00 00 63 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:13]Read from MH i2c: E2 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: E2 03 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: E2 03 00 89 68 00 90 00 65 [10:21:13]RAPDU: 90 00 [10:21:13]wFMCommunicate OK [10:21:13]SAM_PROTO_ClearQueue done [10:21:13]KKMCreateOFDPacket [10:21:13]OFDProtocolAddRootSTLVToBuf [10:21:13]FM_MakeSignedData [10:21:13]FM_MakeSignedData [10:21:13]SAM_PROTO_SignData [10:21:13]wFMCommunicate request_size=4 [10:21:13]MH_SAM_APDU [10:21:13]CAPDU: 80 0D 01 02 [10:21:13]Write to MH i2c: E2 08 00 8A 68 80 0D 01 02 00 00 00 00 6B [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:13]Read from MH i2c: E2 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: E2 03 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: E2 03 00 8A 68 00 90 00 66 [10:21:13]RAPDU: 90 00 [10:21:13]wFMCommunicate OK [10:21:13]wFMCommunicate request_size=255 [10:21:13]MH_SAM_APDU [10:21:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6E 46 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 7B 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 26 00 00 00 F4 03 04 00 AA CD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A C0 00 00 35 04 06 00 F3 [10:21:13]Write to MH i2c: E2 02 01 8B 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6E 46 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 7B 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 26 00 00 00 F4 03 04 00 AA CD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A C0 00 00 35 04 06 00 F3 00 00 3A [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:13]Read from MH i2c: E2 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: E2 03 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: E2 03 00 8B 68 00 90 00 67 [10:21:13]RAPDU: 90 00 [10:21:13]wFMCommunicate OK [10:21:13]wFMCommunicate request_size=10 [10:21:13]MH_SAM_APDU [10:21:13]CAPDU: 80 0D 02 02 05 B8 BD 46 AE C2 [10:21:13]Write to MH i2c: E2 0D 00 8C 68 80 0D 02 02 05 00 B8 BD 46 AE C2 00 00 A3 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:13]Read from MH i2c: E2 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: E2 03 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: E2 03 00 8C 68 00 90 00 68 [10:21:13]RAPDU: 90 00 [10:21:13]wFMCommunicate OK [10:21:13]wFMCommunicate request_size=4 [10:21:13]MH_SAM_APDU [10:21:13]CAPDU: 80 0D 03 02 [10:21:13]Write to MH i2c: E2 08 00 8D 68 80 0D 03 02 00 00 00 00 70 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 0B 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 0B 00 8D 68 00 62 AA E0 3D 29 6C AE 02 90 00 DF [10:21:14]RAPDU: 62 AA E0 3D 29 6C AE 02 90 00 [10:21:14]wFMCommunicate OK [10:21:14]SAM_PROTO_SignData done [10:21:14]FM_MakeSignedData done [10:21:14]CreateOFDProtocolMessage [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 11 00 00 [10:21:14]Write to MH i2c: E2 08 00 8E 68 80 11 00 00 00 00 00 00 70 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 17 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 17 00 8E 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BD [10:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:21:14]wFMCommunicate OK [10:21:14]CreateOFDProtocolMessage done [10:21:14]OFDSenderStorePacket 49162 [10:21:14]StoreOFDPacket docnum=49162 [10:21:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 65 F0 07 01 8C 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6E 46 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 7B 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 26 00 00 00 F4 03 04 00 AA CD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A C0 00 00 35 04 06 00 F3 B8 BD 46 AE C2 62 AA E0 3D 29 6C AE 02 [10:21:14]CheckFolder [10:21:14]dirname=/storage/ofd_packets [10:21:14]CheckFolder done [10:21:14]ProducePacketName [10:21:14]name=ofd_packets/00049162 [10:21:14]NVStorageSaveData ofd_packets/00049162 [10:21:14]File name is /storage/ofd_packets/00049162 [10:21:14]Write 301 bytes [10:21:14]NVStorageSaveData done [10:21:14]OFDSenderStorePacket done [10:21:14]KKMCreateOFDPacket done [10:21:14]NVStorageSaveData kkm_last_timestamp [10:21:14]File name is /storage/kkm_last_timestamp [10:21:14]Write 4 bytes [10:21:14]NVStorageSaveData done [10:21:14]ExternCall_PrintAddStr [10:21:14]wPrintStart [10:21:14]Write to MH i2c: 01 00 00 8F 68 F7 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 07 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 07 00 8F 68 00 00 00 00 00 FF 0F 0C [10:21:14]RasterBufferAndPrint [10:21:14]line Счет N : (1)216263 [10:21:14]line ИНН: 02508201610067 [10:21:14]line Контрольно-Кассовый Чек [10:21:14]line ПРОДАЖА [10:21:14]line ТРК (МРК, ГНК) : 22 [10:21:14]line Товар: 2710124130 [10:21:14]line Аи-92-К-5 [10:21:14]line 2.990 * 60.30 [10:21:14]line = 180.30 [10:21:14]line НДС 12% НСП 1% [10:21:14]line > о реализуемом товаре [10:21:14]line ОКРУГЛЕНИЕ: -0.30 [10:21:14]line ИТОГО: 180.00 [10:21:14]line Внесено: 180.00 [10:21:14]line СДАЧА: 0.00 [10:21:14]line НСП 1% : 1.60 [10:21:14]line НДС 12% : 19.15 [10:21:14]line Наличными: 180.00 [10:21:14]line Безнал.: 0.00 [10:21:14]line Место: АЗС № 102 "Партнер Нефть" [10:21:14]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:21:14]line СНО: Общий режим [10:21:14]line Чек 38 30.01.2024 10:21 [10:21:14]line Смена: 246 ФФД: 1.0 [10:21:14]line ЗНМ: 0300000040 [10:21:14]line РНМ: 0000000000092723 [10:21:14]line Версия ККМ: 001 [10:21:14]line ФМ: 0000000000875060 [10:21:14]line ФД: 49162 [10:21:14]line ФПД: 267974775058114 [10:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T102130&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49162&fm=267974775058114&tin=02508201610067®Number=0000000000092723&sum=18000 [10:21:14]OFD Sender: Processing packet 49162 [packets to send 12, broken 11] [10:21:14]ProducePacketName [10:21:14]name=ofd_packets/00049162 [10:21:14]OFD Sender: To server: pG, [10:21:14]CommunicateWithHost lk.salyk.kg:30040 [10:21:14]ConnectInit lk.salyk.kg [10:21:14]written 0, free lines is 4095 [10:21:14]Write to MH i2c: 01 00 00 BA 68 22 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 07 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 07 00 BA 68 00 00 00 00 00 E6 0C 1B [10:21:14]RasterBufferAndPrint [10:21:14]line [10:21:14]line [10:21:14]line [10:21:14]line [10:21:14]line [10:21:14]written 0, free lines is 3309 [10:21:14]MH_Cut [10:21:14]Write to MH i2c: D1 01 00 C1 68 01 FB [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: D1 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: D1 01 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: D1 01 00 C1 68 00 FA [10:21:14]Write to MH i2c: 01 00 00 C2 68 2A [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:15]*** Cut start [10:21:15]*** Partial cut [10:21:15]*** CUTSNS_PIN = 1 [10:21:15]*** CUTSNS_PIN = 0 [10:21:15]*** Brake cut motor [10:21:16]Read from MH i2c: 01 [10:21:16]MH_I2C_Read... [10:21:16]*** Stop cut motor [10:21:16]*** Cut end [10:21:16]Read from MH i2c: 01 07 00 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: 01 07 00 C2 68 00 00 00 00 00 FF 0F 3F [10:21:16]process_action close_receipt done [10:21:16]requested_data is exist [10:21:16]produce_requested_data [10:21:16]requested_item fm.sn is exist - process it [10:21:16]wFMCommunicate request_size=4 [10:21:16]MH_SAM_APDU [10:21:16]CAPDU: 80 11 00 00 [10:21:16]Write to MH i2c: E2 08 00 C3 68 80 11 00 00 00 00 00 00 A5 [10:21:16]Write i2c OK [10:21:16]MH_I2C_Read... [10:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:16]Read from MH i2c: E2 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: E2 17 00 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: E2 17 00 C3 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F2 [10:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:21:16]wFMCommunicate OK [10:21:16]requested_item fd.num is exist - process it [10:21:16]SAM_PROTO_GetFieldsCounters [10:21:16]wFMCommunicate request_size=4 [10:21:16]MH_SAM_APDU [10:21:16]CAPDU: 80 13 00 00 [10:21:16]Write to MH i2c: E2 08 00 C4 68 80 13 00 00 00 00 00 00 A8 [10:21:16]Write i2c OK [10:21:16]MH_I2C_Read... [10:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:16]Read from MH i2c: E2 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: E2 62 00 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: E2 62 00 C4 68 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [10:21: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:16]wFMCommunicate OK [10:21:16]SAM_PROTO_GetFieldsCounters done [10:21:16]requested_item shift.num is exist - process it [10:21:16]requested_item shift.opened is exist - process it [10:21:16]req_shift_opened [10:21:16]FM_GetShiftState [10:21:16]SAM_PROTO_GetShiftState [10:21:16]wFMCommunicate request_size=4 [10:21:16]MH_SAM_APDU [10:21:16]CAPDU: 80 13 01 00 [10:21:16]Write to MH i2c: E2 08 00 C5 68 80 13 01 00 00 00 00 00 AA [10:21:16]Write i2c OK [10:21:16]MH_I2C_Read... [10:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:16]Read from MH i2c: E2 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: E2 0E 00 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: E2 0E 00 C5 68 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D2 [10:21:16]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:21:16]wFMCommunicate OK [10:21:16]SAM_PROTO_GetShiftState done [10:21:16]FM_GetShiftState done [10:21:16]req_shift_opened done [10:21:16]requested_item shift.open_date is exist - process it [10:21:16]req_shift_open_date [10:21:16]req_shift_open_date done [10:21:16]produce_requested_data done [10:21:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49162,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:21:16]process_action_free close_receipt [10:21:16]json_value_free [10:21:16]json_value_free done [10:21:16]process_json_proto returns [10:21:16]Send response to host [10:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49162,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:21:16]free response buf [10:21:16]execute_script done [10:21:16]execute_script returns [10:21:16]free content buf [10:21:16]Sock 10.Close socket [10:21:16]Sock 10.Thread stoped [10:23:24]accept exits with 7 [10:23:24]New connection [10:23:24]New thread 3066670436 created [10:23:24]Thread 3066813796 joined [10:23:24]Waiting for new connection... [10:23:24] Sock 7.Parse request [10:23:24]Sock 7.Check first char [10:23:24]Sock 7.First char is OK [10:23:24]request: POST /json_proto HTTP/1.0 [10:23:24]Method: POST [10:23:24]URL: /json_proto [10:23:24]Method is POST - this is cgi request [10:23:24]url: /json_proto [10:23:24]query_string will be loaded in cgi processing [10:23:24]execute_cgi json_proto POST (null) [10:23:24]execute_cgi path=json_proto method=POST [10:23:24]POST find Content-Length [10:23:24]Host: 172.17.56.67:8080 [10:23:24]Content-Length: 675 [10:23:24]Content-Type: application/json [10:23:24] [10:23:24]POST finish read [10:23:24]Found Content-Length = 675 [10:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:24]execute_script... [10:23: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)216264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:24]POST & json_proto [10:23:24]process_json_proto [10:23:24]json parsed OK: [10:23:24]protocol is kg_v1.0 [10:23:24]action value=close_receipt [10:23:24]process_action close_receipt [10:23:24]cmd_close_receipt [10:23:24]MH_GetDate [10:23:24]Write to MH i2c: F0 00 00 C6 68 1D [10:23:24]Write i2c OK [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: F0 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: F0 09 00 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: F0 09 00 C6 68 00 2E CE B8 65 26 5D 9E 65 C5 [10:23:24]GetLastDocTimeStamp 1706610090 [10:23:24]current date 1706610222 [10:23:24]FM_GetShiftState [10:23:24]SAM_PROTO_GetShiftState [10:23:24]wFMCommunicate request_size=4 [10:23:24]MH_SAM_APDU [10:23:24]CAPDU: 80 13 01 00 [10:23:24]Write to MH i2c: E2 08 00 C7 68 80 13 01 00 00 00 00 00 AC [10:23:24]Write i2c OK [10:23:24]MH_I2C_Read... [10:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:24]Read from MH i2c: E2 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: E2 0E 00 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: E2 0E 00 C7 68 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D4 [10:23:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:23:24]wFMCommunicate OK [10:23:24]SAM_PROTO_GetShiftState done [10:23:24]FM_GetShiftState done [10:23:24]opened in 1706572995 [10:23:24]opened+sec_in_day 1706659395 [10:23:24]quantity*price = 70039 [10:23:24]sum+1 = 70041 [10:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 39 30.01.2024 10:23 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49163 ФПД: 61166617430802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T102342&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49163&fm=61166617430802&tin=02508201610067®Number=0000000000092723&sum=70000 [10:23:25]StoreToDocumentArchive [10:23:25]shift 246 fd 49163 [10:23:25]save to /storage/0246/doc_00049163 [10:23:25]save last doc name /storage/0246/doc_00049163 to /storage/kkm_last_doc_name [10:23:25]save OK [10:23:25]Clear old archive folders... [10:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:23:25]tlvbuf is 012764D0 [10:23:25]SAM_PROTO_ClearQueue [10:23:25]wFMCommunicate request_size=4 [10:23:25]MH_SAM_APDU [10:23:25]CAPDU: 80 09 00 00 [10:23:25]Write to MH i2c: E2 08 00 D4 68 80 09 00 00 00 00 00 00 AE [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:25]Read from MH i2c: E2 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 03 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 03 00 D4 68 00 90 00 B0 [10:23:25]RAPDU: 90 00 [10:23:25]wFMCommunicate OK [10:23:25]SAM_PROTO_ClearQueue done [10:23:25]KKMCreateOFDPacket [10:23:25]OFDProtocolAddRootSTLVToBuf [10:23:25]FM_MakeSignedData [10:23:25]FM_MakeSignedData [10:23:25]SAM_PROTO_SignData [10:23:25]wFMCommunicate request_size=4 [10:23:25]MH_SAM_APDU [10:23:25]CAPDU: 80 0D 01 02 [10:23:25]Write to MH i2c: E2 08 00 D5 68 80 0D 01 02 00 00 00 00 B6 [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 [10:23:25]MH_I2C_Read... [10:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:25]Read from MH i2c: E2 03 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 03 00 D5 68 00 90 00 B1 [10:23:25]RAPDU: 90 00 [10:23:25]wFMCommunicate OK [10:23:25]wFMCommunicate request_size=255 [10:23:25]MH_SAM_APDU [10:23:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2E CE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B C0 00 00 35 04 06 00 37 A1 76 81 [10:23:25]Write to MH i2c: E2 02 01 D6 68 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2E CE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B C0 00 00 35 04 06 00 37 A1 76 81 00 00 D6 [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:25]Read from MH i2c: E2 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 03 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 03 00 D6 68 00 90 00 B2 [10:23:25]RAPDU: 90 00 [10:23:25]wFMCommunicate OK [10:23:25]wFMCommunicate request_size=7 [10:23:25]MH_SAM_APDU [10:23:25]CAPDU: 80 0D 02 02 02 0B 12 [10:23:25]Write to MH i2c: E2 0A 00 D7 68 80 0D 02 02 02 00 0B 12 00 00 DA [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:25]Read from MH i2c: E2 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 03 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 03 00 D7 68 00 90 00 B3 [10:23:25]RAPDU: 90 00 [10:23:25]wFMCommunicate OK [10:23:25]wFMCommunicate request_size=4 [10:23:25]MH_SAM_APDU [10:23:25]CAPDU: 80 0D 03 02 [10:23:25]Write to MH i2c: E2 08 00 D8 68 80 0D 03 02 00 00 00 00 BB [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:25]Read from MH i2c: E2 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 0B 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 0B 00 D8 68 00 08 20 FC 79 C9 0C A6 61 90 00 35 [10:23:25]RAPDU: 08 20 FC 79 C9 0C A6 61 90 00 [10:23:25]wFMCommunicate OK [10:23:25]SAM_PROTO_SignData done [10:23:25]FM_MakeSignedData done [10:23:25]CreateOFDProtocolMessage [10:23:25]wFMCommunicate request_size=4 [10:23:25]MH_SAM_APDU [10:23:25]CAPDU: 80 11 00 00 [10:23:25]Write to MH i2c: E2 08 00 D9 68 80 11 00 00 00 00 00 00 BB [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:25]Read from MH i2c: E2 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 17 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 17 00 D9 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 08 [10:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:23:25]wFMCommunicate OK [10:23:25]CreateOFDProtocolMessage done [10:23:25]OFDSenderStorePacket 49163 [10:23:25]StoreOFDPacket docnum=49163 [10:23:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 C2 49 04 01 DB C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2E CE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B C0 00 00 35 04 06 00 37 A1 76 81 0B 12 08 20 FC 79 C9 0C A6 61 [10:23:25]CheckFolder [10:23:25]dirname=/storage/ofd_packets [10:23:25]CheckFolder done [10:23:25]ProducePacketName [10:23:25]name=ofd_packets/00049163 [10:23:25]NVStorageSaveData ofd_packets/00049163 [10:23:25]File name is /storage/ofd_packets/00049163 [10:23:25]Write 298 bytes [10:23:25]NVStorageSaveData done [10:23:25]OFDSenderStorePacket done [10:23:25]KKMCreateOFDPacket done [10:23:25]NVStorageSaveData kkm_last_timestamp [10:23:25]File name is /storage/kkm_last_timestamp [10:23:25]Write 4 bytes [10:23:25]NVStorageSaveData done [10:23:25]ExternCall_PrintAddStr [10:23:25]wPrintStart [10:23:25]Write to MH i2c: 01 00 00 DA 68 42 [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: 01 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: 01 07 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: 01 07 00 DA 68 00 00 00 00 00 FF 0F 57 [10:23:25]RasterBufferAndPrint [10:23:25]line Счет N : (1)216264 [10:23:25]line ИНН: 02508201610067 [10:23:25]line Контрольно-Кассовый Чек [10:23:25]line ПРОДАЖА [10:23:25]line ТРК (МРК, ГНК) : 21 [10:23:25]line Товар: 2710194210 [10:23:25]line ДТ-К-5 [10:23:25]line 10.020 * 69.90 [10:23:25]line = 700.40 [10:23:25]line НДС 12% НСП 1% [10:23:25]line > о реализуемом товаре [10:23:25]line ОКРУГЛЕНИЕ: -0.40 [10:23:25]line ИТОГО: 700.00 [10:23:25]line Внесено: 700.00 [10:23:25]line СДАЧА: 0.00 [10:23:25]line НСП 1% : 6.20 [10:23:25]line НДС 12% : 74.38 [10:23:25]line Наличными: 700.00 [10:23:25]line Безнал.: 0.00 [10:23:25]line Место: АЗС № 102 "Партнер Нефть" [10:23:25]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:23:26]line СНО: Общий режим [10:23:26]line Чек 39 30.01.2024 10:23 [10:23:26]line Смена: 246 ФФД: 1.0 [10:23:26]line ЗНМ: 0300000040 [10:23:26]line РНМ: 0000000000092723 [10:23:26]line Версия ККМ: 001 [10:23:26]line ФМ: 0000000000875060 [10:23:26]line ФД: 49163 [10:23:26]line ФПД: 61166617430802 [10:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T102342&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49163&fm=61166617430802&tin=02508201610067®Number=0000000000092723&sum=70000 [10:23:26]OFD Sender: Processing packet 49162 [packets to send 13, broken 11] [10:23:26]ProducePacketName [10:23:26]name=ofd_packets/00049162 [10:23:26]OFD Sender: To server: pG, [10:23:26]CommunicateWithHost lk.salyk.kg:30040 [10:23:26]ConnectInit lk.salyk.kg [10:23:26]written 0, free lines is 4095 [10:23:26]Connected sock=9 [10:23: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 36 30 0F 01 00 00 65 F0 07 01 8C 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6E 46 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 7B 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 26 00 00 00 F4 03 04 00 AA CD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A C0 00 00 35 04 06 00 F3 B8 BD 46 AE C2 62 AA E0 3D 29 6C AE 02 [10:23: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 36 30 4F 00 00 00 72 30 47 00 AA 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A C0 00 00 F4 03 04 00 24 7A B8 65 B6 04 01 00 00 40 8C A6 18 EB 10 E2 7D [10:23:26]CommunicateWithHost err = 0 [10:23:26]CheckOFDResponse [10:23:26]1017 (14) - 77093643461234 [10:23:26]1041 (16) - 0000000000875060 [10:23:26]1040 (4) - 49162 [10:23:26]1012 (4) - 30.01.2024 04:25 [10:23:26]1206 (1) - 0 [10:23:26]OFD Sender: Remove packet 49162 [10:23:26]ProducePacketName [10:23:26]name=ofd_packets/00049162 [10:23:26]NVStorageDeleteData [10:23:26]Write to MH i2c: 01 00 00 05 69 6E [10:23:26]Write i2c OK [10:23:26]MH_I2C_Read... [10:23:26]Read from MH i2c: 01 [10:23:26]MH_I2C_Read... [10:23:26]Read from MH i2c: 01 07 00 [10:23:26]MH_I2C_Read... [10:23:26]Read from MH i2c: 01 07 00 05 69 00 00 00 00 00 EC 0C 6D [10:23:26]RasterBufferAndPrint [10:23:26]line [10:23:26]line [10:23:26]line [10:23:26]line [10:23:26]line [10:23:26]written 0, free lines is 3314 [10:23:26]MH_Cut [10:23:26]Write to MH i2c: D1 01 00 0C 69 01 47 [10:23:26]Write i2c OK [10:23:26]MH_I2C_Read... [10:23:26]Read from MH i2c: D1 [10:23:26]MH_I2C_Read... [10:23:26]Read from MH i2c: D1 01 00 [10:23:26]MH_I2C_Read... [10:23:26]Read from MH i2c: D1 01 00 0C 69 00 46 [10:23:26]Write to MH i2c: 01 00 00 0D 69 76 [10:23:26]Write i2c OK [10:23:26]MH_I2C_Read... [10:23:27]OFD Sender: Processing packet 49163 [packets to send 12, broken 11] [10:23:27]ProducePacketName [10:23:27]name=ofd_packets/00049163 [10:23:27]OFD Sender: To server: pG, [10:23:27]CommunicateWithHost lk.salyk.kg:30040 [10:23:27]ConnectInit lk.salyk.kg [10:23:27]Connected sock=9 [10:23: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 36 30 0C 01 00 00 C2 49 04 01 DB C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2E CE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B C0 00 00 35 04 06 00 37 A1 76 81 0B 12 08 20 FC 79 C9 0C A6 61 [10:23: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 36 30 4F 00 00 00 3B F4 47 00 7A 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 36 30 10 04 04 00 0B C0 00 00 F4 03 04 00 25 7A B8 65 B6 04 01 00 00 7D A5 AB EF 1D A8 0D D4 [10:23:27]CommunicateWithHost err = 0 [10:23:27]CheckOFDResponse [10:23:27]1017 (14) - 77093643461234 [10:23:27]1041 (16) - 0000000000875060 [10:23:27]1040 (4) - 49163 [10:23:27]1012 (4) - 30.01.2024 04:25 [10:23:27]1206 (1) - 0 [10:23:27]OFD Sender: Remove packet 49163 [10:23:27]ProducePacketName [10:23:27]name=ofd_packets/00049163 [10:23:27]NVStorageDeleteData [10:23:27]*** Cut start [10:23:27]*** Partial cut [10:23:27]*** CUTSNS_PIN = 1 [10:23:27]*** CUTSNS_PIN = 0 [10:23:27]*** Brake cut motor [10:23:27]OFD Sender: No OFD packet to send [10:23:27]Read from MH i2c: 01 [10:23:27]MH_I2C_Read... [10:23:27]*** Stop cut motor [10:23:27]*** Cut end [10:23:27]Read from MH i2c: 01 07 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: 01 07 00 0D 69 00 00 00 00 00 FF 0F 8B [10:23:27]process_action close_receipt done [10:23:27]requested_data is exist [10:23:27]produce_requested_data [10:23:27]requested_item fm.sn is exist - process it [10:23:27]wFMCommunicate request_size=4 [10:23:27]MH_SAM_APDU [10:23:27]CAPDU: 80 11 00 00 [10:23:27]Write to MH i2c: E2 08 00 0E 69 80 11 00 00 00 00 00 00 F1 [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 17 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 17 00 0E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3E [10:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:23:28]wFMCommunicate OK [10:23:28]requested_item fd.num is exist - process it [10:23:28]SAM_PROTO_GetFieldsCounters [10:23:28]wFMCommunicate request_size=4 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 13 00 00 [10:23:28]Write to MH i2c: E2 08 00 0F 69 80 13 00 00 00 00 00 00 F4 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 62 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 62 00 0F 69 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10:23: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:28]wFMCommunicate OK [10:23:28]SAM_PROTO_GetFieldsCounters done [10:23:28]requested_item shift.num is exist - process it [10:23:28]requested_item shift.opened is exist - process it [10:23:28]req_shift_opened [10:23:28]FM_GetShiftState [10:23:28]SAM_PROTO_GetShiftState [10:23:28]wFMCommunicate request_size=4 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 13 01 00 [10:23:28]Write to MH i2c: E2 08 00 10 69 80 13 01 00 00 00 00 00 F6 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 0E 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 0E 00 10 69 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 1E [10:23:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:23:28]wFMCommunicate OK [10:23:28]SAM_PROTO_GetShiftState done [10:23:28]FM_GetShiftState done [10:23:28]req_shift_opened done [10:23:28]requested_item shift.open_date is exist - process it [10:23:28]req_shift_open_date [10:23:28]req_shift_open_date done [10:23:28]produce_requested_data done [10:23:28]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49163,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:23:28]process_action_free close_receipt [10:23:28]json_value_free [10:23:28]json_value_free done [10:23:28]process_json_proto returns [10:23:28]Send response to host [10:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49163,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:23:28]free response buf [10:23:28]execute_script done [10:23:28]execute_script returns [10:23:28]free content buf [10:23:28]Sock 7.Close socket [10:23:28]Sock 7.Thread stoped [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27: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]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:42]accept exits with 10 [10:30:42]New connection [10:30:42]New thread 3066813796 created [10:30:42]Thread 3066670436 joined [10:30:42]Waiting for new connection... [10:30:42] Sock 10.Parse request [10:30:42]Sock 10.Check first char [10:30:42]Sock 10.First char is OK [10:30:42]request: POST /json_proto HTTP/1.0 [10:30:42]Method: POST [10:30:42]URL: /json_proto [10:30:42]Method is POST - this is cgi request [10:30:42]url: /json_proto [10:30:42]query_string will be loaded in cgi processing [10:30:42]execute_cgi json_proto POST (null) [10:30:42]execute_cgi path=json_proto method=POST [10:30:42]POST find Content-Length [10:30:42]Host: 172.17.56.67:8080 [10:30:42]Content-Length: 677 [10:30:42]Content-Type: application/json [10:30:42] [10:30:42]POST finish read [10:30:42]Found Content-Length = 677 [10:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:42]execute_script... [10:30: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)216265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:42]POST & json_proto [10:30:42]process_json_proto [10:30:42]json parsed OK: [10:30:42]protocol is kg_v1.0 [10:30:42]action value=close_receipt [10:30:42]process_action close_receipt [10:30:42]cmd_close_receipt [10:30:42]MH_GetDate [10:30:42]Write to MH i2c: F0 00 00 11 69 69 [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: F0 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: F0 09 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: F0 09 00 11 69 00 E4 CF B8 65 26 5D 9E 65 C8 [10:30:42]GetLastDocTimeStamp 1706610222 [10:30:42]current date 1706610660 [10:30:42]FM_GetShiftState [10:30:42]SAM_PROTO_GetShiftState [10:30:42]wFMCommunicate request_size=4 [10:30:42]MH_SAM_APDU [10:30:42]CAPDU: 80 13 01 00 [10:30:42]Write to MH i2c: E2 08 00 12 69 80 13 01 00 00 00 00 00 F8 [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:42]Read from MH i2c: E2 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 0E 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 0E 00 12 69 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 20 [10:30:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:30:42]wFMCommunicate OK [10:30:42]SAM_PROTO_GetShiftState done [10:30:42]FM_GetShiftState done [10:30:42]opened in 1706572995 [10:30:42]opened+sec_in_day 1706659395 [10:30:42]quantity*price = 40039 [10:30:42]sum+1 = 40040 [10:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 40 30.01.2024 10:31 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49164 ФПД: 234904327085025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T103100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49164&fm=234904327085025&tin=02508201610067®Number=0000000000092723&sum=40000 [10:30:43]StoreToDocumentArchive [10:30:43]shift 246 fd 49164 [10:30:43]save to /storage/0246/doc_00049164 [10:30:43]save last doc name /storage/0246/doc_00049164 to /storage/kkm_last_doc_name [10:30:43]save OK [10:30:43]Clear old archive folders... [10:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:43]tlvbuf is 011EC1A0 [10:30:43]SAM_PROTO_ClearQueue [10:30:43]wFMCommunicate request_size=4 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 09 00 00 [10:30:43]Write to MH i2c: E2 08 00 1F 69 80 09 00 00 00 00 00 00 FA [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 03 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 03 00 1F 69 00 90 00 FC [10:30:43]RAPDU: 90 00 [10:30:43]wFMCommunicate OK [10:30:43]SAM_PROTO_ClearQueue done [10:30:43]KKMCreateOFDPacket [10:30:43]OFDProtocolAddRootSTLVToBuf [10:30:43]FM_MakeSignedData [10:30:43]FM_MakeSignedData [10:30:43]SAM_PROTO_SignData [10:30:43]wFMCommunicate request_size=4 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 0D 01 02 [10:30:43]Write to MH i2c: E2 08 00 20 69 80 0D 01 02 00 00 00 00 02 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 03 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 03 00 20 69 00 90 00 FD [10:30:43]RAPDU: 90 00 [10:30:43]wFMCommunicate OK [10:30:43]wFMCommunicate request_size=255 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 E4 CF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C C0 00 00 35 04 06 00 D5 [10:30:43]Write to MH i2c: E2 02 01 21 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 E4 CF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C C0 00 00 35 04 06 00 D5 00 00 0B [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 03 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 03 00 21 69 00 90 00 FE [10:30:44]RAPDU: 90 00 [10:30:44]wFMCommunicate OK [10:30:44]wFMCommunicate request_size=10 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 0D 02 02 05 A4 EC F8 DB E1 [10:30:44]Write to MH i2c: E2 0D 00 22 69 80 0D 02 02 05 00 A4 EC F8 DB E1 00 00 53 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 03 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 03 00 22 69 00 90 00 FF [10:30:44]RAPDU: 90 00 [10:30:44]wFMCommunicate OK [10:30:44]wFMCommunicate request_size=4 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 0D 03 02 [10:30:44]Write to MH i2c: E2 08 00 23 69 80 0D 03 02 00 00 00 00 07 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 0B 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 0B 00 23 69 00 ED 58 60 A2 5A 1B 98 B5 90 00 11 [10:30:44]RAPDU: ED 58 60 A2 5A 1B 98 B5 90 00 [10:30:44]wFMCommunicate OK [10:30:44]SAM_PROTO_SignData done [10:30:44]FM_MakeSignedData done [10:30:44]CreateOFDProtocolMessage [10:30:44]wFMCommunicate request_size=4 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 11 00 00 [10:30:44]Write to MH i2c: E2 08 00 24 69 80 11 00 00 00 00 00 00 07 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 17 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 17 00 24 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 54 [10:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:30:44]wFMCommunicate OK [10:30:44]CreateOFDProtocolMessage done [10:30:44]OFDSenderStorePacket 49164 [10:30:44]StoreOFDPacket docnum=49164 [10:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0F EB 07 01 15 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 E4 CF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C C0 00 00 35 04 06 00 D5 A4 EC F8 DB E1 ED 58 60 A2 5A 1B 98 B5 [10:30:44]CheckFolder [10:30:44]dirname=/storage/ofd_packets [10:30:44]CheckFolder done [10:30:44]ProducePacketName [10:30:44]name=ofd_packets/00049164 [10:30:44]NVStorageSaveData ofd_packets/00049164 [10:30:44]File name is /storage/ofd_packets/00049164 [10:30:44]Write 301 bytes [10:30:44]NVStorageSaveData done [10:30:44]OFDSenderStorePacket done [10:30:44]KKMCreateOFDPacket done [10:30:44]NVStorageSaveData kkm_last_timestamp [10:30:44]File name is /storage/kkm_last_timestamp [10:30:44]Write 4 bytes [10:30:44]NVStorageSaveData done [10:30:44]ExternCall_PrintAddStr [10:30:44]wPrintStart [10:30:44]Write to MH i2c: 01 00 00 25 69 8E [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: 01 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: 01 07 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: 01 07 00 25 69 00 00 00 00 00 FF 0F A3 [10:30:44]RasterBufferAndPrint [10:30:44]line Счет N : (1)216265 [10:30:44]line ИНН: 02508201610067 [10:30:44]line Контрольно-Кассовый Чек [10:30:44]line ПРОДАЖА [10:30:44]line ТРК (МРК, ГНК) : 22 [10:30:44]line Товар: 2710124130 [10:30:44]line Аи-92-К-5 [10:30:44]line 6.640 * 60.30 [10:30:44]line = 400.39 [10:30:44]line НДС 12% НСП 1% [10:30:44]line > о реализуемом товаре [10:30:44]line ОКРУГЛЕНИЕ: -0.39 [10:30:44]line ИТОГО: 400.00 [10:30:44]line Внесено: 400.00 [10:30:44]line СДАЧА: 0.00 [10:30:44]line НСП 1% : 3.54 [10:30:44]line НДС 12% : 42.52 [10:30:44]line Наличными: 400.00 [10:30:44]line Безнал.: 0.00 [10:30:44]line Место: АЗС № 102 "Партнер Нефть" [10:30:44]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:30:44]line СНО: Общий режим [10:30:44]line Чек 40 30.01.2024 10:31 [10:30:44]line Смена: 246 ФФД: 1.0 [10:30:44]line ЗНМ: 0300000040 [10:30:44]line РНМ: 0000000000092723 [10:30:44]line Версия ККМ: 001 [10:30:44]line ФМ: 0000000000875060 [10:30:44]line ФД: 49164 [10:30:44]line ФПД: 234904327085025 [10:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T103100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49164&fm=234904327085025&tin=02508201610067®Number=0000000000092723&sum=40000 [10:30:44]OFD Sender: Processing packet 49164 [packets to send 12, broken 11] [10:30:44]ProducePacketName [10:30:44]name=ofd_packets/00049164 [10:30:44]OFD Sender: To server: pG, [10:30:44]CommunicateWithHost lk.salyk.kg:30040 [10:30:44]ConnectInit lk.salyk.kg [10:30:44]written 0, free lines is 4095 [10:30:44]Connected sock=9 [10:30: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 36 30 0F 01 00 00 0F EB 07 01 15 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 E4 CF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C C0 00 00 35 04 06 00 D5 A4 EC F8 DB E1 ED 58 60 A2 5A 1B 98 B5 [10:30: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 36 30 4F 00 00 00 02 40 47 00 5A 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 36 30 10 04 04 00 0C C0 00 00 F4 03 04 00 DA 7B B8 65 B6 04 01 00 00 85 84 FF BA D4 E2 97 A4 [10:30:44]CommunicateWithHost err = 0 [10:30:44]CheckOFDResponse [10:30:44]1017 (14) - 77093643461234 [10:30:44]1041 (16) - 0000000000875060 [10:30:44]1040 (4) - 49164 [10:30:44]1012 (4) - 30.01.2024 04:32 [10:30:44]1206 (1) - 0 [10:30:44]OFD Sender: Remove packet 49164 [10:30:44]ProducePacketName [10:30:44]name=ofd_packets/00049164 [10:30:44]NVStorageDeleteData [10:30:44]Write to MH i2c: 01 00 00 50 69 B9 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: 01 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: 01 07 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: 01 07 00 50 69 00 00 00 00 00 EA 0C B6 [10:30:44]RasterBufferAndPrint [10:30:44]line [10:30:44]line [10:30:44]line [10:30:44]line [10:30:44]line [10:30:44]written 0, free lines is 3312 [10:30:44]MH_Cut [10:30:44]Write to MH i2c: D1 01 00 57 69 01 92 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: D1 [10:30:44]MH_I2C_Read... [10:30:45]Read from MH i2c: D1 01 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: D1 01 00 57 69 00 91 [10:30:45]Write to MH i2c: 01 00 00 58 69 C1 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]OFD Sender: No OFD packet to send [10:30:45]*** Cut start [10:30:45]*** Partial cut [10:30:45]*** CUTSNS_PIN = 1 [10:30:45]*** CUTSNS_PIN = 0 [10:30:45]*** Brake cut motor [10:30:46]Read from MH i2c: 01 [10:30:46]MH_I2C_Read... [10:30:46]*** Stop cut motor [10:30:46]*** Cut end [10:30:46]Read from MH i2c: 01 07 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: 01 07 00 58 69 00 00 00 00 00 FF 0F D6 [10:30:46]process_action close_receipt done [10:30:46]requested_data is exist [10:30:46]produce_requested_data [10:30:46]requested_item fm.sn is exist - process it [10:30:46]wFMCommunicate request_size=4 [10:30:46]MH_SAM_APDU [10:30:46]CAPDU: 80 11 00 00 [10:30:46]Write to MH i2c: E2 08 00 59 69 80 11 00 00 00 00 00 00 3C [10:30:46]Write i2c OK [10:30:46]MH_I2C_Read... [10:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:46]Read from MH i2c: E2 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 17 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 17 00 59 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 89 [10:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:30:46]wFMCommunicate OK [10:30:46]requested_item fd.num is exist - process it [10:30:46]SAM_PROTO_GetFieldsCounters [10:30:46]wFMCommunicate request_size=4 [10:30:46]MH_SAM_APDU [10:30:46]CAPDU: 80 13 00 00 [10:30:46]Write to MH i2c: E2 08 00 5A 69 80 13 00 00 00 00 00 00 3F [10:30:46]Write i2c OK [10:30:46]MH_I2C_Read... [10:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:46]Read from MH i2c: E2 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 62 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 62 00 5A 69 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [10:30: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:46]wFMCommunicate OK [10:30:46]SAM_PROTO_GetFieldsCounters done [10:30:46]requested_item shift.num is exist - process it [10:30:46]requested_item shift.opened is exist - process it [10:30:46]req_shift_opened [10:30:46]FM_GetShiftState [10:30:46]SAM_PROTO_GetShiftState [10:30:46]wFMCommunicate request_size=4 [10:30:46]MH_SAM_APDU [10:30:46]CAPDU: 80 13 01 00 [10:30:46]Write to MH i2c: E2 08 00 5B 69 80 13 01 00 00 00 00 00 41 [10:30:46]Write i2c OK [10:30:46]MH_I2C_Read... [10:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:46]Read from MH i2c: E2 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 0E 00 [10:30:46]MH_I2C_Read... [10:30:46]Read from MH i2c: E2 0E 00 5B 69 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 69 [10:30:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:30:46]wFMCommunicate OK [10:30:46]SAM_PROTO_GetShiftState done [10:30:46]FM_GetShiftState done [10:30:46]req_shift_opened done [10:30:46]requested_item shift.open_date is exist - process it [10:30:46]req_shift_open_date [10:30:46]req_shift_open_date done [10:30:46]produce_requested_data done [10:30:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49164,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:30:46]process_action_free close_receipt [10:30:46]json_value_free [10:30:46]json_value_free done [10:30:46]process_json_proto returns [10:30:46]Send response to host [10:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49164,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:30:46]free response buf [10:30:46]execute_script done [10:30:46]execute_script returns [10:30:46]free content buf [10:30:46]Sock 10.Close socket [10:30:46]Sock 10.Thread stoped [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]accept exits with 7 [10:34:20]New connection [10:34:20]New thread 3066670436 created [10:34:20]Thread 3066813796 joined [10:34:20]Waiting for new connection... [10:34:20] Sock 7.Parse request [10:34:20]Sock 7.Check first char [10:34:20]Sock 7.First char is OK [10:34:20]request: POST /json_proto HTTP/1.0 [10:34:20]Method: POST [10:34:20]URL: /json_proto [10:34:20]Method is POST - this is cgi request [10:34:20]url: /json_proto [10:34:20]query_string will be loaded in cgi processing [10:34:20]execute_cgi json_proto POST (null) [10:34:20]execute_cgi path=json_proto method=POST [10:34:20]POST find Content-Length [10:34:20]Host: 172.17.56.67:8080 [10:34:20]Content-Length: 677 [10:34:20]Content-Type: application/json [10:34:20] [10:34:20]POST finish read [10:34:20]Found Content-Length = 677 [10:34:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:20]execute_script... [10:34:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:20]POST & json_proto [10:34:20]process_json_proto [10:34:20]json parsed OK: [10:34:20]protocol is kg_v1.0 [10:34:20]action value=close_receipt [10:34:20]process_action close_receipt [10:34:20]cmd_close_receipt [10:34:20]MH_GetDate [10:34:20]Write to MH i2c: F0 00 00 5C 69 B4 [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: F0 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: F0 09 00 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: F0 09 00 5C 69 00 BE D0 B8 65 26 5D 9E 65 EE [10:34:20]GetLastDocTimeStamp 1706610660 [10:34:20]current date 1706610878 [10:34:20]FM_GetShiftState [10:34:20]SAM_PROTO_GetShiftState [10:34:20]wFMCommunicate request_size=4 [10:34:20]MH_SAM_APDU [10:34:20]CAPDU: 80 13 01 00 [10:34:20]Write to MH i2c: E2 08 00 5D 69 80 13 01 00 00 00 00 00 43 [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:20]OFD Sender: No OFD packet to send [10:34:20]Read from MH i2c: E2 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: E2 0E 00 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: E2 0E 00 5D 69 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6B [10:34:20]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:34:20]wFMCommunicate OK [10:34:20]SAM_PROTO_GetShiftState done [10:34:20]FM_GetShiftState done [10:34:20]opened in 1706572995 [10:34:20]opened+sec_in_day 1706659395 [10:34:20]quantity*price = 50049 [10:34:20]sum+1 = 50050 [10:34:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 41 30.01.2024 10:34 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49165 ФПД: 15664069643613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T103438&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49165&fm=15664069643613&tin=02508201610067®Number=0000000000092723&sum=50000 [10:34:21]StoreToDocumentArchive [10:34:21]shift 246 fd 49165 [10:34:21]save to /storage/0246/doc_00049165 [10:34:21]save last doc name /storage/0246/doc_00049165 to /storage/kkm_last_doc_name [10:34:21]save OK [10:34:21]Clear old archive folders... [10:34:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:21]tlvbuf is 012108C0 [10:34:21]SAM_PROTO_ClearQueue [10:34:21]wFMCommunicate request_size=4 [10:34:21]MH_SAM_APDU [10:34:21]CAPDU: 80 09 00 00 [10:34:21]Write to MH i2c: E2 08 00 6A 69 80 09 00 00 00 00 00 00 45 [10:34:21]Write i2c OK [10:34:21]MH_I2C_Read... [10:34:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:21]Read from MH i2c: E2 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 03 00 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 03 00 6A 69 00 90 00 47 [10:34:21]RAPDU: 90 00 [10:34:21]wFMCommunicate OK [10:34:21]SAM_PROTO_ClearQueue done [10:34:21]KKMCreateOFDPacket [10:34:21]OFDProtocolAddRootSTLVToBuf [10:34:21]FM_MakeSignedData [10:34:21]FM_MakeSignedData [10:34:21]SAM_PROTO_SignData [10:34:21]wFMCommunicate request_size=4 [10:34:21]MH_SAM_APDU [10:34:21]CAPDU: 80 0D 01 02 [10:34:21]Write to MH i2c: E2 08 00 6B 69 80 0D 01 02 00 00 00 00 4D [10:34:21]Write i2c OK [10:34:21]MH_I2C_Read... [10:34:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:21]Read from MH i2c: E2 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 03 00 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 03 00 6B 69 00 90 00 48 [10:34:21]RAPDU: 90 00 [10:34:21]wFMCommunicate OK [10:34:21]wFMCommunicate request_size=255 [10:34:21]MH_SAM_APDU [10:34:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 BE D0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0D C0 00 00 35 04 06 00 0E [10:34:21]Write to MH i2c: E2 02 01 6C 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 BE D0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0D C0 00 00 35 04 06 00 0E 00 00 22 [10:34:21]Write i2c OK [10:34:21]MH_I2C_Read... [10:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:21]Read from MH i2c: E2 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 03 00 [10:34:21]MH_I2C_Read... [10:34:21]Read from MH i2c: E2 03 00 6C 69 00 90 00 49 [10:34:21]RAPDU: 90 00 [10:34:21]wFMCommunicate OK [10:34:21]wFMCommunicate request_size=10 [10:34:21]MH_SAM_APDU [10:34:21]CAPDU: 80 0D 02 02 05 3F 13 4E 8D 5D [10:34:21]Write to MH i2c: E2 0D 00 6D 69 80 0D 02 02 05 00 3F 13 4E 8D 5D 00 00 E4 [10:34:21]Write i2c OK [10:34:21]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 03 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 03 00 6D 69 00 90 00 4A [10:34:22]RAPDU: 90 00 [10:34:22]wFMCommunicate OK [10:34:22]wFMCommunicate request_size=4 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 0D 03 02 [10:34:22]Write to MH i2c: E2 08 00 6E 69 80 0D 03 02 00 00 00 00 52 [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 0B 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 0B 00 6E 69 00 9D 45 DE 17 1D 7F E8 8F 90 00 3D [10:34:22]RAPDU: 9D 45 DE 17 1D 7F E8 8F 90 00 [10:34:22]wFMCommunicate OK [10:34:22]SAM_PROTO_SignData done [10:34:22]FM_MakeSignedData done [10:34:22]CreateOFDProtocolMessage [10:34:22]wFMCommunicate request_size=4 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 11 00 00 [10:34:22]Write to MH i2c: E2 08 00 6F 69 80 11 00 00 00 00 00 00 52 [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 17 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 17 00 6F 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9F [10:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:34:22]wFMCommunicate OK [10:34:22]CreateOFDProtocolMessage done [10:34:22]OFDSenderStorePacket 49165 [10:34:22]StoreOFDPacket docnum=49165 [10:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 18 A5 07 01 CC 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 BE D0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0D C0 00 00 35 04 06 00 0E 3F 13 4E 8D 5D 9D 45 DE 17 1D 7F E8 8F [10:34:22]CheckFolder [10:34:22]dirname=/storage/ofd_packets [10:34:22]CheckFolder done [10:34:22]ProducePacketName [10:34:22]name=ofd_packets/00049165 [10:34:22]NVStorageSaveData ofd_packets/00049165 [10:34:22]File name is /storage/ofd_packets/00049165 [10:34:22]Write 301 bytes [10:34:22]NVStorageSaveData done [10:34:22]OFDSenderStorePacket done [10:34:22]KKMCreateOFDPacket done [10:34:22]NVStorageSaveData kkm_last_timestamp [10:34:22]File name is /storage/kkm_last_timestamp [10:34:22]Write 4 bytes [10:34:22]NVStorageSaveData done [10:34:22]ExternCall_PrintAddStr [10:34:22]wPrintStart [10:34:22]Write to MH i2c: 01 00 00 70 69 D9 [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 07 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 07 00 70 69 00 00 00 00 00 FF 0F EE [10:34:22]RasterBufferAndPrint [10:34:22]line Счет N : (1)216266 [10:34:22]line ИНН: 02508201610067 [10:34:22]line Контрольно-Кассовый Чек [10:34:22]line ПРОДАЖА [10:34:22]line ТРК (МРК, ГНК) : 12 [10:34:22]line Товар: 2710124130 [10:34:22]line Аи-92-К-5 [10:34:22]line 8.300 * 60.30 [10:34:22]line = 500.49 [10:34:22]line НДС 12% НСП 1% [10:34:22]line > о реализуемом товаре [10:34:22]line ОКРУГЛЕНИЕ: -0.49 [10:34:22]line ИТОГО: 500.00 [10:34:22]line Внесено: 500.00 [10:34:22]line СДАЧА: 0.00 [10:34:22]line НСП 1% : 4.43 [10:34:22]line НДС 12% : 53.15 [10:34:22]line Наличными: 500.00 [10:34:22]line Безнал.: 0.00 [10:34:22]line Место: АЗС № 102 "Партнер Нефть" [10:34:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:34:22]line СНО: Общий режим [10:34:22]line Чек 41 30.01.2024 10:34 [10:34:22]line Смена: 246 ФФД: 1.0 [10:34:22]line ЗНМ: 0300000040 [10:34:22]line РНМ: 0000000000092723 [10:34:22]line Версия ККМ: 001 [10:34:22]line ФМ: 0000000000875060 [10:34:22]line ФД: 49165 [10:34:22]line ФПД: 15664069643613 [10:34:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T103438&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49165&fm=15664069643613&tin=02508201610067®Number=0000000000092723&sum=50000 [10:34:22]OFD Sender: Processing packet 49165 [packets to send 12, broken 11] [10:34:22]ProducePacketName [10:34:22]name=ofd_packets/00049165 [10:34:22]OFD Sender: To server: pG, [10:34:22]CommunicateWithHost lk.salyk.kg:30040 [10:34:22]ConnectInit lk.salyk.kg [10:34:22]written 0, free lines is 4095 [10:34:22]Connected sock=10 [10:34: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 36 30 0F 01 00 00 18 A5 07 01 CC 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 BE D0 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0D C0 00 00 35 04 06 00 0E 3F 13 4E 8D 5D 9D 45 DE 17 1D 7F E8 8F [10:34: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 36 30 4F 00 00 00 21 44 47 00 3B 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 36 30 10 04 04 00 0D C0 00 00 F4 03 04 00 B4 7C B8 65 B6 04 01 00 00 5F 8D A3 3D E7 0F 58 8F [10:34:22]CommunicateWithHost err = 0 [10:34:22]CheckOFDResponse [10:34:22]1017 (14) - 77093643461234 [10:34:22]1041 (16) - 0000000000875060 [10:34:22]1040 (4) - 49165 [10:34:22]1012 (4) - 30.01.2024 04:36 [10:34:22]1206 (1) - 0 [10:34:22]OFD Sender: Remove packet 49165 [10:34:22]ProducePacketName [10:34:22]name=ofd_packets/00049165 [10:34:22]NVStorageDeleteData [10:34:22]Write to MH i2c: 01 00 00 9B 69 04 [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 07 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 07 00 9B 69 00 00 00 00 00 E6 0C FD [10:34:22]RasterBufferAndPrint [10:34:22]line [10:34:22]line [10:34:22]line [10:34:22]line [10:34:22]line [10:34:22]written 0, free lines is 3309 [10:34:22]MH_Cut [10:34:22]Write to MH i2c: D1 01 00 A2 69 01 DD [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: D1 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: D1 01 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: D1 01 00 A2 69 00 DC [10:34:22]Write to MH i2c: 01 00 00 A3 69 0C [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:23]OFD Sender: No OFD packet to send [10:34:23]*** Cut start [10:34:23]*** Partial cut [10:34:23]*** CUTSNS_PIN = 1 [10:34:23]*** CUTSNS_PIN = 0 [10:34:23]*** Brake cut motor [10:34:24]Read from MH i2c: 01 [10:34:24]MH_I2C_Read... [10:34:24]*** Stop cut motor [10:34:24]*** Cut end [10:34:24]Read from MH i2c: 01 07 00 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: 01 07 00 A3 69 00 00 00 00 00 FF 0F 21 [10:34:24]process_action close_receipt done [10:34:24]requested_data is exist [10:34:24]produce_requested_data [10:34:24]requested_item fm.sn is exist - process it [10:34:24]wFMCommunicate request_size=4 [10:34:24]MH_SAM_APDU [10:34:24]CAPDU: 80 11 00 00 [10:34:24]Write to MH i2c: E2 08 00 A4 69 80 11 00 00 00 00 00 00 87 [10:34:24]Write i2c OK [10:34:24]MH_I2C_Read... [10:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:24]Read from MH i2c: E2 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 17 00 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 17 00 A4 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D4 [10:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:34:24]wFMCommunicate OK [10:34:24]requested_item fd.num is exist - process it [10:34:24]SAM_PROTO_GetFieldsCounters [10:34:24]wFMCommunicate request_size=4 [10:34:24]MH_SAM_APDU [10:34:24]CAPDU: 80 13 00 00 [10:34:24]Write to MH i2c: E2 08 00 A5 69 80 13 00 00 00 00 00 00 8A [10:34:24]Write i2c OK [10:34:24]MH_I2C_Read... [10:34:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:24]Read from MH i2c: E2 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 62 00 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 62 00 A5 69 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:34: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:24]wFMCommunicate OK [10:34:24]SAM_PROTO_GetFieldsCounters done [10:34:24]requested_item shift.num is exist - process it [10:34:24]requested_item shift.opened is exist - process it [10:34:24]req_shift_opened [10:34:24]FM_GetShiftState [10:34:24]SAM_PROTO_GetShiftState [10:34:24]wFMCommunicate request_size=4 [10:34:24]MH_SAM_APDU [10:34:24]CAPDU: 80 13 01 00 [10:34:24]Write to MH i2c: E2 08 00 A6 69 80 13 01 00 00 00 00 00 8C [10:34:24]Write i2c OK [10:34:24]MH_I2C_Read... [10:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:24]Read from MH i2c: E2 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 0E 00 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 0E 00 A6 69 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B4 [10:34:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:34:24]wFMCommunicate OK [10:34:24]SAM_PROTO_GetShiftState done [10:34:24]FM_GetShiftState done [10:34:24]req_shift_opened done [10:34:24]requested_item shift.open_date is exist - process it [10:34:24]req_shift_open_date [10:34:24]req_shift_open_date done [10:34:24]produce_requested_data done [10:34:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49165,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:34:24]process_action_free close_receipt [10:34:24]json_value_free [10:34:24]json_value_free done [10:34:24]process_json_proto returns [10:34:24]Send response to host [10:34:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49165,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:34:24]free response buf [10:34:24]execute_script done [10:34:24]execute_script returns [10:34:24]free content buf [10:34:24]Sock 7.Close socket [10:34:24]Sock 7.Thread stoped [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:26]accept exits with 9 [10:36:26]New connection [10:36:26]New thread 3066813796 created [10:36:26]Thread 3066670436 joined [10:36:26]Waiting for new connection... [10:36:26] Sock 9.Parse request [10:36:26]Sock 9.Check first char [10:36:26]Sock 9.First char is OK [10:36:26]request: POST /json_proto HTTP/1.0 [10:36:26]Method: POST [10:36:26]URL: /json_proto [10:36:26]Method is POST - this is cgi request [10:36:26]url: /json_proto [10:36:26]query_string will be loaded in cgi processing [10:36:26]execute_cgi json_proto POST (null) [10:36:26]execute_cgi path=json_proto method=POST [10:36:26]POST find Content-Length [10:36:26]Host: 172.17.56.67:8080 [10:36:26]Content-Length: 677 [10:36:26]Content-Type: application/json [10:36:26] [10:36:26]POST finish read [10:36:26]Found Content-Length = 677 [10:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:26]execute_script... [10:36:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:26]POST & json_proto [10:36:26]process_json_proto [10:36:26]json parsed OK: [10:36:26]protocol is kg_v1.0 [10:36:26]action value=close_receipt [10:36:26]process_action close_receipt [10:36:26]cmd_close_receipt [10:36:26]MH_GetDate [10:36:26]Write to MH i2c: F0 00 00 A7 69 FF [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: F0 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: F0 09 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: F0 09 00 A7 69 00 3D D1 B8 65 26 5D 9E 65 B9 [10:36:26]GetLastDocTimeStamp 1706610878 [10:36:26]current date 1706611005 [10:36:26]FM_GetShiftState [10:36:26]SAM_PROTO_GetShiftState [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 13 01 00 [10:36:26]Write to MH i2c: E2 08 00 A8 69 80 13 01 00 00 00 00 00 8E [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 0E 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 0E 00 A8 69 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B6 [10:36:26]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:36:26]wFMCommunicate OK [10:36:26]SAM_PROTO_GetShiftState done [10:36:26]FM_GetShiftState done [10:36:26]opened in 1706572995 [10:36:26]opened+sec_in_day 1706659395 [10:36:26]quantity*price = 30029 [10:36:26]sum+1 = 30030 [10:36:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 42 30.01.2024 10:36 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49166 ФПД: 187045467969394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T103645&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49166&fm=187045467969394&tin=02508201610067®Number=0000000000092723&sum=30000 [10:36:28]StoreToDocumentArchive [10:36:28]shift 246 fd 49166 [10:36:28]save to /storage/0246/doc_00049166 [10:36:28]save last doc name /storage/0246/doc_00049166 to /storage/kkm_last_doc_name [10:36:28]save OK [10:36:28]Clear old archive folders... [10:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:28]tlvbuf is 011DAAA0 [10:36:28]SAM_PROTO_ClearQueue [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 09 00 00 [10:36:28]Write to MH i2c: E2 08 00 B5 69 80 09 00 00 00 00 00 00 90 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 03 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 03 00 B5 69 00 90 00 92 [10:36:28]RAPDU: 90 00 [10:36:28]wFMCommunicate OK [10:36:28]SAM_PROTO_ClearQueue done [10:36:28]KKMCreateOFDPacket [10:36:28]OFDProtocolAddRootSTLVToBuf [10:36:28]FM_MakeSignedData [10:36:28]FM_MakeSignedData [10:36:28]SAM_PROTO_SignData [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 0D 01 02 [10:36:28]Write to MH i2c: E2 08 00 B6 69 80 0D 01 02 00 00 00 00 98 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 03 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 03 00 B6 69 00 90 00 93 [10:36:28]RAPDU: 90 00 [10:36:28]wFMCommunicate OK [10:36:28]wFMCommunicate request_size=255 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 3D D1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E C0 00 00 35 04 06 00 AA [10:36:28]Write to MH i2c: E2 02 01 B7 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 3D D1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E C0 00 00 35 04 06 00 AA 00 00 21 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]OFD Sender: No OFD packet to send [10:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 03 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 03 00 B7 69 00 90 00 94 [10:36:28]RAPDU: 90 00 [10:36:28]wFMCommunicate OK [10:36:28]wFMCommunicate request_size=10 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 0D 02 02 05 1D EA AC D7 72 [10:36:28]Write to MH i2c: E2 0D 00 B8 69 80 0D 02 02 05 00 1D EA AC D7 72 00 00 A1 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 03 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 03 00 B8 69 00 90 00 95 [10:36:28]RAPDU: 90 00 [10:36:28]wFMCommunicate OK [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 0D 03 02 [10:36:28]Write to MH i2c: E2 08 00 B9 69 80 0D 03 02 00 00 00 00 9D [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 0B 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 0B 00 B9 69 00 D0 11 3B 05 41 F6 4F 32 90 00 77 [10:36:28]RAPDU: D0 11 3B 05 41 F6 4F 32 90 00 [10:36:28]wFMCommunicate OK [10:36:28]SAM_PROTO_SignData done [10:36:28]FM_MakeSignedData done [10:36:28]CreateOFDProtocolMessage [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 11 00 00 [10:36:28]Write to MH i2c: E2 08 00 BA 69 80 11 00 00 00 00 00 00 9D [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 17 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 17 00 BA 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EA [10:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:36:28]wFMCommunicate OK [10:36:28]CreateOFDProtocolMessage done [10:36:28]OFDSenderStorePacket 49166 [10:36:28]StoreOFDPacket docnum=49166 [10:36:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4D A5 07 01 A7 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 3D D1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E C0 00 00 35 04 06 00 AA 1D EA AC D7 72 D0 11 3B 05 41 F6 4F 32 [10:36:28]CheckFolder [10:36:28]dirname=/storage/ofd_packets [10:36:28]CheckFolder done [10:36:28]ProducePacketName [10:36:28]name=ofd_packets/00049166 [10:36:28]NVStorageSaveData ofd_packets/00049166 [10:36:28]File name is /storage/ofd_packets/00049166 [10:36:28]Write 301 bytes [10:36:28]NVStorageSaveData done [10:36:28]OFDSenderStorePacket done [10:36:28]KKMCreateOFDPacket done [10:36:28]NVStorageSaveData kkm_last_timestamp [10:36:28]File name is /storage/kkm_last_timestamp [10:36:28]Write 4 bytes [10:36:28]NVStorageSaveData done [10:36:28]ExternCall_PrintAddStr [10:36:28]wPrintStart [10:36:28]Write to MH i2c: 01 00 00 BB 69 24 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: 01 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: 01 07 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: 01 07 00 BB 69 00 00 00 00 00 FF 0F 39 [10:36:28]RasterBufferAndPrint [10:36:28]line Счет N : (1)216267 [10:36:28]line ИНН: 02508201610067 [10:36:28]line Контрольно-Кассовый Чек [10:36:28]line ПРОДАЖА [10:36:28]line ТРК (МРК, ГНК) : 12 [10:36:28]line Товар: 2710124130 [10:36:28]line Аи-92-К-5 [10:36:28]line 4.980 * 60.30 [10:36:28]line = 300.29 [10:36:28]line НДС 12% НСП 1% [10:36:28]line > о реализуемом товаре [10:36:28]line ОКРУГЛЕНИЕ: -0.29 [10:36:28]line ИТОГО: 300.00 [10:36:28]line Внесено: 300.00 [10:36:28]line СДАЧА: 0.00 [10:36:28]line НСП 1% : 2.66 [10:36:28]line НДС 12% : 31.89 [10:36:28]line Наличными: 300.00 [10:36:28]line Безнал.: 0.00 [10:36:28]line Место: АЗС № 102 "Партнер Нефть" [10:36:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:36:28]line СНО: Общий режим [10:36:28]line Чек 42 30.01.2024 10:36 [10:36:28]line Смена: 246 ФФД: 1.0 [10:36:28]line ЗНМ: 0300000040 [10:36:28]line РНМ: 0000000000092723 [10:36:28]line Версия ККМ: 001 [10:36:28]line ФМ: 0000000000875060 [10:36:28]line ФД: 49166 [10:36:28]line ФПД: 187045467969394 [10:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T103645&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49166&fm=187045467969394&tin=02508201610067®Number=0000000000092723&sum=30000 [10:36:28]OFD Sender: Processing packet 49166 [packets to send 12, broken 11] [10:36:28]ProducePacketName [10:36:28]name=ofd_packets/00049166 [10:36:28]OFD Sender: To server: pG, [10:36:28]CommunicateWithHost lk.salyk.kg:30040 [10:36:28]ConnectInit lk.salyk.kg [10:36:28]written 0, free lines is 4095 [10:36:28]Connected sock=10 [10:36: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 36 30 0F 01 00 00 4D A5 07 01 A7 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 3D D1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E C0 00 00 35 04 06 00 AA 1D EA AC D7 72 D0 11 3B 05 41 F6 4F 32 [10:36:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A8 D0 47 00 24 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E C0 00 00 F4 03 04 00 32 7D B8 65 B6 04 01 00 00 30 39 F0 7B DF 22 29 44 [10:36:29]CommunicateWithHost err = 0 [10:36:29]CheckOFDResponse [10:36:29]1017 (14) - 77093643461234 [10:36:29]1041 (16) - 0000000000875060 [10:36:29]1040 (4) - 49166 [10:36:29]1012 (4) - 30.01.2024 04:38 [10:36:29]1206 (1) - 0 [10:36:29]OFD Sender: Remove packet 49166 [10:36:29]ProducePacketName [10:36:29]name=ofd_packets/00049166 [10:36:29]NVStorageDeleteData [10:36:29]Write to MH i2c: 01 00 00 E6 69 4F [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: 01 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: 01 07 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: 01 07 00 E6 69 00 00 00 00 00 EB 0C 4D [10:36:29]RasterBufferAndPrint [10:36:29]line [10:36:29]line [10:36:29]line [10:36:29]line [10:36:29]line [10:36:29]written 0, free lines is 3313 [10:36:29]MH_Cut [10:36:29]Write to MH i2c: D1 01 00 ED 69 01 28 [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: D1 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: D1 01 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: D1 01 00 ED 69 00 27 [10:36:29]Write to MH i2c: 01 00 00 EE 69 57 [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]OFD Sender: No OFD packet to send [10:36:30]*** Cut start [10:36:30]*** Partial cut [10:36:30]*** CUTSNS_PIN = 1 [10:36:30]*** CUTSNS_PIN = 0 [10:36:30]*** Brake cut motor [10:36:30]Read from MH i2c: 01 [10:36:30]MH_I2C_Read... [10:36:30]*** Stop cut motor [10:36:30]*** Cut end [10:36:30]Read from MH i2c: 01 07 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: 01 07 00 EE 69 00 00 00 00 00 FF 0F 6C [10:36:30]process_action close_receipt done [10:36:30]requested_data is exist [10:36:30]produce_requested_data [10:36:30]requested_item fm.sn is exist - process it [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 11 00 00 [10:36:30]Write to MH i2c: E2 08 00 EF 69 80 11 00 00 00 00 00 00 D2 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 17 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 17 00 EF 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1F [10:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:36:30]wFMCommunicate OK [10:36:30]requested_item fd.num is exist - process it [10:36:30]SAM_PROTO_GetFieldsCounters [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 13 00 00 [10:36:30]Write to MH i2c: E2 08 00 F0 69 80 13 00 00 00 00 00 00 D5 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 62 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 62 00 F0 69 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [10:36: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:30]wFMCommunicate OK [10:36:30]SAM_PROTO_GetFieldsCounters done [10:36:30]requested_item shift.num is exist - process it [10:36:30]requested_item shift.opened is exist - process it [10:36:30]req_shift_opened [10:36:30]FM_GetShiftState [10:36:30]SAM_PROTO_GetShiftState [10:36:30]wFMCommunicate request_size=4 [10:36:30]MH_SAM_APDU [10:36:30]CAPDU: 80 13 01 00 [10:36:30]Write to MH i2c: E2 08 00 F1 69 80 13 01 00 00 00 00 00 D7 [10:36:30]Write i2c OK [10:36:30]MH_I2C_Read... [10:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:30]Read from MH i2c: E2 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 0E 00 [10:36:30]MH_I2C_Read... [10:36:30]Read from MH i2c: E2 0E 00 F1 69 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 FF [10:36:30]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:36:30]wFMCommunicate OK [10:36:30]SAM_PROTO_GetShiftState done [10:36:30]FM_GetShiftState done [10:36:30]req_shift_opened done [10:36:30]requested_item shift.open_date is exist - process it [10:36:30]req_shift_open_date [10:36:30]req_shift_open_date done [10:36:30]produce_requested_data done [10:36:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49166,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:36:30]process_action_free close_receipt [10:36:30]json_value_free [10:36:30]json_value_free done [10:36:30]process_json_proto returns [10:36:30]Send response to host [10:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49166,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:36:30]free response buf [10:36:30]execute_script done [10:36:30]execute_script returns [10:36:30]free content buf [10:36:30]Sock 9.Close socket [10:36:30]Sock 9.Thread stoped [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:23]accept exits with 7 [10:37:23]New connection [10:37:23]New thread 3066670436 created [10:37:23]Thread 3066813796 joined [10:37:23]Waiting for new connection... [10:37:23] Sock 7.Parse request [10:37:23]Sock 7.Check first char [10:37:23]Sock 7.First char is OK [10:37:23]request: POST /json_proto HTTP/1.0 [10:37:23]Method: POST [10:37:23]URL: /json_proto [10:37:23]Method is POST - this is cgi request [10:37:23]url: /json_proto [10:37:23]query_string will be loaded in cgi processing [10:37:23]execute_cgi json_proto POST (null) [10:37:23]execute_cgi path=json_proto method=POST [10:37:23]POST find Content-Length [10:37:23]Host: 172.17.56.67:8080 [10:37:23]Content-Length: 677 [10:37:23]Content-Type: application/json [10:37:23] [10:37:23]POST finish read [10:37:23]Found Content-Length = 677 [10:37:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:23]execute_script... [10:37: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)216268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:23]POST & json_proto [10:37:23]process_json_proto [10:37:23]json parsed OK: [10:37:23]protocol is kg_v1.0 [10:37:23]action value=close_receipt [10:37:23]process_action close_receipt [10:37:23]cmd_close_receipt [10:37:23]MH_GetDate [10:37:23]Write to MH i2c: F0 00 00 F2 69 4A [10:37:23]Write i2c OK [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: F0 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: F0 09 00 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: F0 09 00 F2 69 00 75 D1 B8 65 26 5D 9E 65 3C [10:37:23]GetLastDocTimeStamp 1706611005 [10:37:23]current date 1706611061 [10:37:23]FM_GetShiftState [10:37:23]SAM_PROTO_GetShiftState [10:37:23]wFMCommunicate request_size=4 [10:37:23]MH_SAM_APDU [10:37:23]CAPDU: 80 13 01 00 [10:37:23]Write to MH i2c: E2 08 00 F3 69 80 13 01 00 00 00 00 00 D9 [10:37:23]Write i2c OK [10:37:23]MH_I2C_Read... [10:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:23]Read from MH i2c: E2 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: E2 0E 00 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: E2 0E 00 F3 69 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 01 [10:37:23]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:37:23]wFMCommunicate OK [10:37:23]SAM_PROTO_GetShiftState done [10:37:23]FM_GetShiftState done [10:37:23]opened in 1706572995 [10:37:23]opened+sec_in_day 1706659395 [10:37:23]quantity*price = 20019 [10:37:23]sum+1 = 20021 [10:37:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 43 30.01.2024 10:37 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49167 ФПД: 201767666681434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T103741&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49167&fm=201767666681434&tin=02508201610067®Number=0000000000092723&sum=20000 [10:37:24]StoreToDocumentArchive [10:37:24]shift 246 fd 49167 [10:37:24]save to /storage/0246/doc_00049167 [10:37:24]save last doc name /storage/0246/doc_00049167 to /storage/kkm_last_doc_name [10:37:24]save OK [10:37:24]Clear old archive folders... [10:37:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:24]tlvbuf is 01408630 [10:37:24]SAM_PROTO_ClearQueue [10:37:24]wFMCommunicate request_size=4 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 09 00 00 [10:37:24]Write to MH i2c: E2 08 00 00 6A 80 09 00 00 00 00 00 00 DC [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 00 6A 00 90 00 DE [10:37:24]RAPDU: 90 00 [10:37:24]wFMCommunicate OK [10:37:24]SAM_PROTO_ClearQueue done [10:37:24]KKMCreateOFDPacket [10:37:24]OFDProtocolAddRootSTLVToBuf [10:37:24]FM_MakeSignedData [10:37:24]FM_MakeSignedData [10:37:24]SAM_PROTO_SignData [10:37:24]wFMCommunicate request_size=4 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 0D 01 02 [10:37:24]Write to MH i2c: E2 08 00 01 6A 80 0D 01 02 00 00 00 00 E4 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 01 6A 00 90 00 DF [10:37:24]RAPDU: 90 00 [10:37:24]wFMCommunicate OK [10:37:24]wFMCommunicate request_size=255 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 75 D1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F C0 00 00 35 04 06 00 B7 [10:37:24]Write to MH i2c: E2 02 01 02 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 75 D1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F C0 00 00 35 04 06 00 B7 00 00 FE [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]OFD Sender: No OFD packet to send [10:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 02 6A 00 90 00 E0 [10:37:24]RAPDU: 90 00 [10:37:24]wFMCommunicate OK [10:37:24]wFMCommunicate request_size=10 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 0D 02 02 05 81 B2 19 86 5A [10:37:24]Write to MH i2c: E2 0D 00 03 6A 80 0D 02 02 05 00 81 B2 19 86 5A 00 00 1D [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 03 6A 00 90 00 E1 [10:37:24]RAPDU: 90 00 [10:37:24]wFMCommunicate OK [10:37:24]wFMCommunicate request_size=4 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 0D 03 02 [10:37:24]Write to MH i2c: E2 08 00 04 6A 80 0D 03 02 00 00 00 00 E9 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 0B 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 0B 00 04 6A 00 B6 49 81 97 FD FE 0F EB 90 00 F6 [10:37:24]RAPDU: B6 49 81 97 FD FE 0F EB 90 00 [10:37:24]wFMCommunicate OK [10:37:24]SAM_PROTO_SignData done [10:37:24]FM_MakeSignedData done [10:37:24]CreateOFDProtocolMessage [10:37:24]wFMCommunicate request_size=4 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 11 00 00 [10:37:24]Write to MH i2c: E2 08 00 05 6A 80 11 00 00 00 00 00 00 E9 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:25]Read from MH i2c: E2 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 17 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 17 00 05 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 36 [10:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:37:25]wFMCommunicate OK [10:37:25]CreateOFDProtocolMessage done [10:37:25]OFDSenderStorePacket 49167 [10:37:25]StoreOFDPacket docnum=49167 [10:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B3 73 07 01 DB 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 75 D1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F C0 00 00 35 04 06 00 B7 81 B2 19 86 5A B6 49 81 97 FD FE 0F EB [10:37:25]CheckFolder [10:37:25]dirname=/storage/ofd_packets [10:37:25]CheckFolder done [10:37:25]ProducePacketName [10:37:25]name=ofd_packets/00049167 [10:37:25]NVStorageSaveData ofd_packets/00049167 [10:37:25]File name is /storage/ofd_packets/00049167 [10:37:25]Write 301 bytes [10:37:25]NVStorageSaveData done [10:37:25]OFDSenderStorePacket done [10:37:25]KKMCreateOFDPacket done [10:37:25]NVStorageSaveData kkm_last_timestamp [10:37:25]File name is /storage/kkm_last_timestamp [10:37:25]Write 4 bytes [10:37:25]NVStorageSaveData done [10:37:25]ExternCall_PrintAddStr [10:37:25]wPrintStart [10:37:25]Write to MH i2c: 01 00 00 06 6A 70 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: 01 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: 01 07 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: 01 07 00 06 6A 00 00 00 00 00 FF 0F 85 [10:37:25]RasterBufferAndPrint [10:37:25]line Счет N : (1)216268 [10:37:25]line ИНН: 02508201610067 [10:37:25]line Контрольно-Кассовый Чек [10:37:25]line ПРОДАЖА [10:37:25]line ТРК (МРК, ГНК) : 12 [10:37:25]line Товар: 2710124130 [10:37:25]line Аи-92-К-5 [10:37:25]line 3.320 * 60.30 [10:37:25]line = 200.20 [10:37:25]line НДС 12% НСП 1% [10:37:25]line > о реализуемом товаре [10:37:25]line ОКРУГЛЕНИЕ: -0.20 [10:37:25]line ИТОГО: 200.00 [10:37:25]line Внесено: 200.00 [10:37:25]line СДАЧА: 0.00 [10:37:25]line НСП 1% : 1.77 [10:37:25]line НДС 12% : 21.26 [10:37:25]line Наличными: 200.00 [10:37:25]line Безнал.: 0.00 [10:37:25]line Место: АЗС № 102 "Партнер Нефть" [10:37:25]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:37:25]line СНО: Общий режим [10:37:25]line Чек 43 30.01.2024 10:37 [10:37:25]line Смена: 246 ФФД: 1.0 [10:37:25]line ЗНМ: 0300000040 [10:37:25]line РНМ: 0000000000092723 [10:37:25]line Версия ККМ: 001 [10:37:25]line ФМ: 0000000000875060 [10:37:25]line ФД: 49167 [10:37:25]line ФПД: 201767666681434 [10:37:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T103741&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49167&fm=201767666681434&tin=02508201610067®Number=0000000000092723&sum=20000 [10:37:25]OFD Sender: Processing packet 49167 [packets to send 12, broken 11] [10:37:25]ProducePacketName [10:37:25]name=ofd_packets/00049167 [10:37:25]OFD Sender: To server: pG, [10:37:25]CommunicateWithHost lk.salyk.kg:30040 [10:37:25]ConnectInit lk.salyk.kg [10:37:25]written 0, free lines is 4095 [10:37:25]Connected sock=10 [10:37: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 36 30 0F 01 00 00 B3 73 07 01 DB 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 75 D1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F C0 00 00 35 04 06 00 B7 81 B2 19 86 5A B6 49 81 97 FD FE 0F EB [10:37: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 36 30 4F 00 00 00 5F F5 47 00 38 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F C0 00 00 F4 03 04 00 6B 7D B8 65 B6 04 01 00 00 F3 BE 8D 4F 2C 3A 74 23 [10:37:25]CommunicateWithHost err = 0 [10:37:25]CheckOFDResponse [10:37:25]1017 (14) - 77093643461234 [10:37:25]1041 (16) - 0000000000875060 [10:37:25]1040 (4) - 49167 [10:37:25]1012 (4) - 30.01.2024 04:39 [10:37:25]1206 (1) - 0 [10:37:25]OFD Sender: Remove packet 49167 [10:37:25]ProducePacketName [10:37:25]name=ofd_packets/00049167 [10:37:25]NVStorageDeleteData [10:37:25]Write to MH i2c: 01 00 00 31 6A 9B [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: 01 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: 01 07 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: 01 07 00 31 6A 00 00 00 00 00 ED 0C 9B [10:37:25]RasterBufferAndPrint [10:37:25]line [10:37:25]line [10:37:25]line [10:37:25]line [10:37:25]line [10:37:25]written 0, free lines is 3315 [10:37:25]MH_Cut [10:37:25]Write to MH i2c: D1 01 00 38 6A 01 74 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: D1 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: D1 01 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: D1 01 00 38 6A 00 73 [10:37:25]Write to MH i2c: 01 00 00 39 6A A3 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:26]OFD Sender: No OFD packet to send [10:37:26]*** Cut start [10:37:26]*** Partial cut [10:37:26]*** CUTSNS_PIN = 1 [10:37:26]*** CUTSNS_PIN = 0 [10:37:26]*** Brake cut motor [10:37:27]Read from MH i2c: 01 [10:37:27]MH_I2C_Read... [10:37:27]*** Stop cut motor [10:37:27]*** Cut end [10:37:27]Read from MH i2c: 01 07 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: 01 07 00 39 6A 00 00 00 00 00 FF 0F B8 [10:37:27]process_action close_receipt done [10:37:27]requested_data is exist [10:37:27]produce_requested_data [10:37:27]requested_item fm.sn is exist - process it [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 11 00 00 [10:37:27]Write to MH i2c: E2 08 00 3A 6A 80 11 00 00 00 00 00 00 1E [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 17 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 17 00 3A 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6B [10:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:37:27]wFMCommunicate OK [10:37:27]requested_item fd.num is exist - process it [10:37:27]SAM_PROTO_GetFieldsCounters [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 13 00 00 [10:37:27]Write to MH i2c: E2 08 00 3B 6A 80 13 00 00 00 00 00 00 21 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 62 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 62 00 3B 6A 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [10:37: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_GetFieldsCounters done [10:37:27]requested_item shift.num is exist - process it [10:37:27]requested_item shift.opened is exist - process it [10:37:27]req_shift_opened [10:37:27]FM_GetShiftState [10:37:27]SAM_PROTO_GetShiftState [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 13 01 00 [10:37:27]Write to MH i2c: E2 08 00 3C 6A 80 13 01 00 00 00 00 00 23 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0E 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0E 00 3C 6A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4B [10:37:27]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_GetShiftState done [10:37:27]FM_GetShiftState done [10:37:27]req_shift_opened done [10:37:27]requested_item shift.open_date is exist - process it [10:37:27]req_shift_open_date [10:37:27]req_shift_open_date done [10:37:27]produce_requested_data done [10:37:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49167,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:37:27]process_action_free close_receipt [10:37:27]json_value_free [10:37:27]json_value_free done [10:37:27]process_json_proto returns [10:37:27]Send response to host [10:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49167,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:37:27]free response buf [10:37:27]execute_script done [10:37:27]execute_script returns [10:37:27]free content buf [10:37:27]Sock 7.Close socket [10:37:27]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [10:40:14]accept exits with 9 [10:40:14]New connection [10:40:14]New thread 3066813796 created [10:40:14]Thread 3066670436 joined [10:40:14]Waiting for new connection... [10:40:14] Sock 9.Parse request [10:40:14]Sock 9.Check first char [10:40:14]Sock 9.First char is OK [10:40:14]request: POST /json_proto HTTP/1.0 [10:40:14]Method: POST [10:40:14]URL: /json_proto [10:40:14]Method is POST - this is cgi request [10:40:14]url: /json_proto [10:40:14]query_string will be loaded in cgi processing [10:40:14]execute_cgi json_proto POST (null) [10:40:14]execute_cgi path=json_proto method=POST [10:40:14]POST find Content-Length [10:40:14]Host: 172.17.56.67:8080 [10:40:14]Content-Length: 678 [10:40:14]Content-Type: application/json [10:40:14] [10:40:14]POST finish read [10:40:14]Found Content-Length = 678 [10:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 11.610, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:14]execute_script... [10:40: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)216270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 11.610, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:14]POST & json_proto [10:40:14]process_json_proto [10:40:14]json parsed OK: [10:40:14]protocol is kg_v1.0 [10:40:14]action value=close_receipt [10:40:14]process_action close_receipt [10:40:14]cmd_close_receipt [10:40:14]MH_GetDate [10:40:14]Write to MH i2c: F0 00 00 3D 6A 96 [10:40:14]Write i2c OK [10:40:14]MH_I2C_Read... [10:40:14]Read from MH i2c: F0 [10:40:14]MH_I2C_Read... [10:40:14]Read from MH i2c: F0 09 00 [10:40:14]MH_I2C_Read... [10:40:14]Read from MH i2c: F0 09 00 3D 6A 00 20 D2 B8 65 26 5D 9E 65 34 [10:40:14]GetLastDocTimeStamp 1706611061 [10:40:14]current date 1706611232 [10:40:14]FM_GetShiftState [10:40:14]SAM_PROTO_GetShiftState [10:40:14]wFMCommunicate request_size=4 [10:40:14]MH_SAM_APDU [10:40:14]CAPDU: 80 13 01 00 [10:40:14]Write to MH i2c: E2 08 00 3E 6A 80 13 01 00 00 00 00 00 25 [10:40:14]Write i2c OK [10:40:14]MH_I2C_Read... [10:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:14]Read from MH i2c: E2 [10:40:14]MH_I2C_Read... [10:40:14]Read from MH i2c: E2 0E 00 [10:40:14]MH_I2C_Read... [10:40:14]Read from MH i2c: E2 0E 00 3E 6A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4D [10:40:14]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:40:14]wFMCommunicate OK [10:40:14]SAM_PROTO_GetShiftState done [10:40:14]FM_GetShiftState done [10:40:14]opened in 1706572995 [10:40:14]opened+sec_in_day 1706659395 [10:40:14]quantity*price = 70008 [10:40:14]sum+1 = 70009 [10:40:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 44 30.01.2024 10:40 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49168 ФПД: 30518835865526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104032&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49168&fm=30518835865526&tin=02508201610067®Number=0000000000092723&sum=70000 [10:40:15]StoreToDocumentArchive [10:40:15]shift 246 fd 49168 [10:40:15]save to /storage/0246/doc_00049168 [10:40:15]save last doc name /storage/0246/doc_00049168 to /storage/kkm_last_doc_name [10:40:15]save OK [10:40:15]Clear old archive folders... [10:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:15]tlvbuf is B6EB8870 [10:40:15]SAM_PROTO_ClearQueue [10:40:15]wFMCommunicate request_size=4 [10:40:15]MH_SAM_APDU [10:40:15]CAPDU: 80 09 00 00 [10:40:15]Write to MH i2c: E2 08 00 4B 6A 80 09 00 00 00 00 00 00 27 [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:15]Read from MH i2c: E2 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 03 00 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 03 00 4B 6A 00 90 00 29 [10:40:15]RAPDU: 90 00 [10:40:15]wFMCommunicate OK [10:40:15]SAM_PROTO_ClearQueue done [10:40:15]KKMCreateOFDPacket [10:40:15]OFDProtocolAddRootSTLVToBuf [10:40:15]FM_MakeSignedData [10:40:15]FM_MakeSignedData [10:40:15]SAM_PROTO_SignData [10:40:15]wFMCommunicate request_size=4 [10:40:15]MH_SAM_APDU [10:40:15]CAPDU: 80 0D 01 02 [10:40:15]Write to MH i2c: E2 08 00 4C 6A 80 0D 01 02 00 00 00 00 2F [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:15]Read from MH i2c: E2 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 03 00 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 03 00 4C 6A 00 90 00 2A [10:40:15]RAPDU: 90 00 [10:40:15]wFMCommunicate OK [10:40:15]wFMCommunicate request_size=255 [10:40:15]MH_SAM_APDU [10:40:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 20 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 C0 00 00 35 04 06 00 1B [10:40:15]Write to MH i2c: E2 02 01 4D 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 20 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 C0 00 00 35 04 06 00 1B 00 00 9B [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 03 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 03 00 4D 6A 00 90 00 2B [10:40:16]RAPDU: 90 00 [10:40:16]wFMCommunicate OK [10:40:16]wFMCommunicate request_size=10 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 0D 02 02 05 C1 B8 5E E7 B6 [10:40:16]Write to MH i2c: E2 0D 00 4E 6A 80 0D 02 02 05 00 C1 B8 5E E7 B6 00 00 B0 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 03 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 03 00 4E 6A 00 90 00 2C [10:40:16]RAPDU: 90 00 [10:40:16]wFMCommunicate OK [10:40:16]wFMCommunicate request_size=4 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 0D 03 02 [10:40:16]Write to MH i2c: E2 08 00 4F 6A 80 0D 03 02 00 00 00 00 34 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 0B 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 0B 00 4F 6A 00 02 8F 91 66 C3 D2 7A DB 90 00 A7 [10:40:16]RAPDU: 02 8F 91 66 C3 D2 7A DB 90 00 [10:40:16]wFMCommunicate OK [10:40:16]SAM_PROTO_SignData done [10:40:16]FM_MakeSignedData done [10:40:16]CreateOFDProtocolMessage [10:40:16]wFMCommunicate request_size=4 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 11 00 00 [10:40:16]Write to MH i2c: E2 08 00 50 6A 80 11 00 00 00 00 00 00 34 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 17 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 17 00 50 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 81 [10:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:40:16]wFMCommunicate OK [10:40:16]CreateOFDProtocolMessage done [10:40:16]OFDSenderStorePacket 49168 [10:40:16]StoreOFDPacket docnum=49168 [10:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 68 31 07 01 FA 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 20 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 C0 00 00 35 04 06 00 1B C1 B8 5E E7 B6 02 8F 91 66 C3 D2 7A DB [10:40:16]CheckFolder [10:40:16]dirname=/storage/ofd_packets [10:40:16]CheckFolder done [10:40:16]ProducePacketName [10:40:16]name=ofd_packets/00049168 [10:40:16]NVStorageSaveData ofd_packets/00049168 [10:40:16]File name is /storage/ofd_packets/00049168 [10:40:16]Write 301 bytes [10:40:16]NVStorageSaveData done [10:40:16]OFDSenderStorePacket done [10:40:16]KKMCreateOFDPacket done [10:40:16]NVStorageSaveData kkm_last_timestamp [10:40:16]File name is /storage/kkm_last_timestamp [10:40:16]Write 4 bytes [10:40:16]NVStorageSaveData done [10:40:16]ExternCall_PrintAddStr [10:40:16]wPrintStart [10:40:16]Write to MH i2c: 01 00 00 51 6A BB [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 07 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 07 00 51 6A 00 00 00 00 00 FF 0F D0 [10:40:16]RasterBufferAndPrint [10:40:16]line Счет N : (1)216270 [10:40:16]line ИНН: 02508201610067 [10:40:16]line Контрольно-Кассовый Чек [10:40:16]line ПРОДАЖА [10:40:16]line ТРК (МРК, ГНК) : 22 [10:40:16]line Товар: 2710124130 [10:40:16]line Аи-92-К-5 [10:40:16]line 11.610 * 60.30 [10:40:16]line = 700.08 [10:40:16]line НДС 12% НСП 1% [10:40:16]line > о реализуемом товаре [10:40:16]line ОКРУГЛЕНИЕ: -0.08 [10:40:16]line ИТОГО: 700.00 [10:40:16]line Внесено: 700.00 [10:40:16]line СДАЧА: 0.00 [10:40:16]line НСП 1% : 6.19 [10:40:16]line НДС 12% : 74.34 [10:40:16]line Наличными: 700.00 [10:40:16]line Безнал.: 0.00 [10:40:16]line Место: АЗС № 102 "Партнер Нефть" [10:40:16]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:40:16]line СНО: Общий режим [10:40:16]line Чек 44 30.01.2024 10:40 [10:40:16]line Смена: 246 ФФД: 1.0 [10:40:16]line ЗНМ: 0300000040 [10:40:16]line РНМ: 0000000000092723 [10:40:16]line Версия ККМ: 001 [10:40:16]line ФМ: 0000000000875060 [10:40:16]line ФД: 49168 [10:40:16]line ФПД: 30518835865526 [10:40:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104032&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49168&fm=30518835865526&tin=02508201610067®Number=0000000000092723&sum=70000 [10:40:16]OFD Sender: Processing packet 49168 [packets to send 12, broken 11] [10:40:16]ProducePacketName [10:40:16]name=ofd_packets/00049168 [10:40:16]OFD Sender: To server: pG, [10:40:16]CommunicateWithHost lk.salyk.kg:30040 [10:40:16]ConnectInit lk.salyk.kg [10:40:16]written 0, free lines is 4095 [10:40:16]Connected sock=10 [10:40: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 36 30 0F 01 00 00 68 31 07 01 FA 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 20 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 C0 00 00 35 04 06 00 1B C1 B8 5E E7 B6 02 8F 91 66 C3 D2 7A DB [10:40: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 36 30 4F 00 00 00 AC 2D 47 00 3F 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 C0 00 00 F4 03 04 00 16 7E B8 65 B6 04 01 00 00 4E D5 EB CD B7 88 21 0E [10:40:16]CommunicateWithHost err = 0 [10:40:16]CheckOFDResponse [10:40:16]1017 (14) - 77093643461234 [10:40:16]1041 (16) - 0000000000875060 [10:40:16]1040 (4) - 49168 [10:40:16]1012 (4) - 30.01.2024 04:41 [10:40:16]1206 (1) - 0 [10:40:16]OFD Sender: Remove packet 49168 [10:40:16]ProducePacketName [10:40:16]name=ofd_packets/00049168 [10:40:16]NVStorageDeleteData [10:40:16]Write to MH i2c: 01 00 00 7C 6A E6 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 07 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 07 00 7C 6A 00 00 00 00 00 F1 0C EA [10:40:16]RasterBufferAndPrint [10:40:16]line [10:40:16]line [10:40:16]line [10:40:16]line [10:40:16]line [10:40:16]written 0, free lines is 3319 [10:40:16]MH_Cut [10:40:16]Write to MH i2c: D1 01 00 83 6A 01 BF [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: D1 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: D1 01 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: D1 01 00 83 6A 00 BE [10:40:16]Write to MH i2c: 01 00 00 84 6A EE [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:17]OFD Sender: No OFD packet to send [10:40:17]*** Cut start [10:40:17]*** Partial cut [10:40:17]*** CUTSNS_PIN = 1 [10:40:17]*** CUTSNS_PIN = 0 [10:40:17]*** Brake cut motor [10:40:18]Read from MH i2c: 01 [10:40:18]MH_I2C_Read... [10:40:18]*** Stop cut motor [10:40:18]*** Cut end [10:40:18]Read from MH i2c: 01 07 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 84 6A 00 00 00 00 00 FF 0F 03 [10:40:18]process_action close_receipt done [10:40:18]requested_data is exist [10:40:18]produce_requested_data [10:40:18]requested_item fm.sn is exist - process it [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 11 00 00 [10:40:18]Write to MH i2c: E2 08 00 85 6A 80 11 00 00 00 00 00 00 69 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 85 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B6 [10:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:40:18]wFMCommunicate OK [10:40:18]requested_item fd.num is exist - process it [10:40:18]SAM_PROTO_GetFieldsCounters [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 13 00 00 [10:40:18]Write to MH i2c: E2 08 00 86 6A 80 13 00 00 00 00 00 00 6C [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 62 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 62 00 86 6A 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 10 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [10:40: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 10 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_GetFieldsCounters done [10:40:18]requested_item shift.num is exist - process it [10:40:18]requested_item shift.opened is exist - process it [10:40:18]req_shift_opened [10:40:18]FM_GetShiftState [10:40:18]SAM_PROTO_GetShiftState [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 13 01 00 [10:40:18]Write to MH i2c: E2 08 00 87 6A 80 13 01 00 00 00 00 00 6E [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0E 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0E 00 87 6A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 96 [10:40:18]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_GetShiftState done [10:40:18]FM_GetShiftState done [10:40:18]req_shift_opened done [10:40:18]requested_item shift.open_date is exist - process it [10:40:18]req_shift_open_date [10:40:18]req_shift_open_date done [10:40:18]produce_requested_data done [10:40:18]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49168,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:40:18]process_action_free close_receipt [10:40:18]json_value_free [10:40:18]json_value_free done [10:40:18]process_json_proto returns [10:40:18]Send response to host [10:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49168,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:40:18]free response buf [10:40:18]execute_script done [10:40:18]execute_script returns [10:40:18]free content buf [10:40:18]Sock 9.Close socket [10:40:18]Sock 9.Thread stoped [10:40:21]accept exits with 7 [10:40:21]New connection [10:40:21]New thread 3066670436 created [10:40:21]Thread 3066813796 joined [10:40:21]Waiting for new connection... [10:40:21] Sock 7.Parse request [10:40:21]Sock 7.Check first char [10:40:21]Sock 7.First char is OK [10:40:21]request: POST /json_proto HTTP/1.0 [10:40:21]Method: POST [10:40:21]URL: /json_proto [10:40:21]Method is POST - this is cgi request [10:40:21]url: /json_proto [10:40:21]query_string will be loaded in cgi processing [10:40:21]execute_cgi json_proto POST (null) [10:40:21]execute_cgi path=json_proto method=POST [10:40:21]POST find Content-Length [10:40:21]Host: 172.17.56.67:8080 [10:40:21]Content-Length: 677 [10:40:21]Content-Type: application/json [10:40:21] [10:40:21]POST finish read [10:40:21]Found Content-Length = 677 [10:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.630, "sum" : 460.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:21]execute_script... [10:40:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.630, "sum" : 460.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:21]POST & json_proto [10:40:21]process_json_proto [10:40:21]json parsed OK: [10:40:21]protocol is kg_v1.0 [10:40:21]action value=close_receipt [10:40:21]process_action close_receipt [10:40:21]cmd_close_receipt [10:40:21]MH_GetDate [10:40:21]Write to MH i2c: F0 00 00 88 6A E1 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: F0 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: F0 09 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: F0 09 00 88 6A 00 27 D2 B8 65 26 5D 9E 65 86 [10:40:21]GetLastDocTimeStamp 1706611232 [10:40:21]current date 1706611239 [10:40:21]FM_GetShiftState [10:40:21]SAM_PROTO_GetShiftState [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 13 01 00 [10:40:21]Write to MH i2c: E2 08 00 89 6A 80 13 01 00 00 00 00 00 70 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0E 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0E 00 89 6A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 98 [10:40:21]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_GetShiftState done [10:40:21]FM_GetShiftState done [10:40:21]opened in 1706572995 [10:40:21]opened+sec_in_day 1706659395 [10:40:21]quantity*price = 46008 [10:40:21]sum+1 = 46010 [10:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.07 НДС 12% : 48.86 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 45 30.01.2024 10:40 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49169 ФПД: 194624320917667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104039&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49169&fm=194624320917667&tin=02508201610067®Number=0000000000092723&sum=46000 [10:40:22]StoreToDocumentArchive [10:40:22]shift 246 fd 49169 [10:40:22]save to /storage/0246/doc_00049169 [10:40:22]save last doc name /storage/0246/doc_00049169 to /storage/kkm_last_doc_name [10:40:22]save OK [10:40:22]Clear old archive folders... [10:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:22]tlvbuf is B6E9F9E0 [10:40:22]SAM_PROTO_ClearQueue [10:40:22]wFMCommunicate request_size=4 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 09 00 00 [10:40:22]Write to MH i2c: E2 08 00 96 6A 80 09 00 00 00 00 00 00 72 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 96 6A 00 90 00 74 [10:40:22]RAPDU: 90 00 [10:40:22]wFMCommunicate OK [10:40:22]SAM_PROTO_ClearQueue done [10:40:22]KKMCreateOFDPacket [10:40:22]OFDProtocolAddRootSTLVToBuf [10:40:22]FM_MakeSignedData [10:40:22]FM_MakeSignedData [10:40:22]SAM_PROTO_SignData [10:40:22]wFMCommunicate request_size=4 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 0D 01 02 [10:40:22]Write to MH i2c: E2 08 00 97 6A 80 0D 01 02 00 00 00 00 7A [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 97 6A 00 90 00 75 [10:40:22]RAPDU: 90 00 [10:40:22]wFMCommunicate OK [10:40:22]wFMCommunicate request_size=255 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 B9 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 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 27 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 11 C0 00 00 35 04 06 00 B1 [10:40:22]Write to MH i2c: E2 02 01 98 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 B9 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 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 27 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 11 C0 00 00 35 04 06 00 B1 00 00 BA [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 98 6A 00 90 00 76 [10:40:22]RAPDU: 90 00 [10:40:22]wFMCommunicate OK [10:40:22]wFMCommunicate request_size=10 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 0D 02 02 05 02 81 83 50 A3 [10:40:22]Write to MH i2c: E2 0D 00 99 6A 80 0D 02 02 05 00 02 81 83 50 A3 00 00 80 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 03 00 99 6A 00 90 00 77 [10:40:22]RAPDU: 90 00 [10:40:22]wFMCommunicate OK [10:40:22]wFMCommunicate request_size=4 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 0D 03 02 [10:40:22]Write to MH i2c: E2 08 00 9A 6A 80 0D 03 02 00 00 00 00 7F [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 0B 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 0B 00 9A 6A 00 8D 23 61 D3 5F 36 FC E6 90 00 DB [10:40:22]RAPDU: 8D 23 61 D3 5F 36 FC E6 90 00 [10:40:22]wFMCommunicate OK [10:40:22]SAM_PROTO_SignData done [10:40:22]FM_MakeSignedData done [10:40:22]CreateOFDProtocolMessage [10:40:22]wFMCommunicate request_size=4 [10:40:22]MH_SAM_APDU [10:40:22]CAPDU: 80 11 00 00 [10:40:22]Write to MH i2c: E2 08 00 9B 6A 80 11 00 00 00 00 00 00 7F [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:22]Read from MH i2c: E2 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 17 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: E2 17 00 9B 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CC [10:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:40:22]wFMCommunicate OK [10:40:22]CreateOFDProtocolMessage done [10:40:22]OFDSenderStorePacket 49169 [10:40:22]StoreOFDPacket docnum=49169 [10:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CF AF 07 01 01 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 B9 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 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 27 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 11 C0 00 00 35 04 06 00 B1 02 81 83 50 A3 8D 23 61 D3 5F 36 FC E6 [10:40:22]CheckFolder [10:40:22]dirname=/storage/ofd_packets [10:40:22]CheckFolder done [10:40:22]ProducePacketName [10:40:22]name=ofd_packets/00049169 [10:40:22]NVStorageSaveData ofd_packets/00049169 [10:40:22]File name is /storage/ofd_packets/00049169 [10:40:22]Write 301 bytes [10:40:22]NVStorageSaveData done [10:40:22]OFDSenderStorePacket done [10:40:22]KKMCreateOFDPacket done [10:40:22]NVStorageSaveData kkm_last_timestamp [10:40:22]File name is /storage/kkm_last_timestamp [10:40:22]Write 4 bytes [10:40:22]NVStorageSaveData done [10:40:22]ExternCall_PrintAddStr [10:40:22]wPrintStart [10:40:22]Write to MH i2c: 01 00 00 9C 6A 06 [10:40:22]Write i2c OK [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 07 00 [10:40:22]MH_I2C_Read... [10:40:22]Read from MH i2c: 01 07 00 9C 6A 00 00 00 00 00 FF 0F 1B [10:40:22]RasterBufferAndPrint [10:40:22]line Счет N : (1)216269 [10:40:22]line ИНН: 02508201610067 [10:40:22]line Контрольно-Кассовый Чек [10:40:22]line ПРОДАЖА [10:40:22]line ТРК (МРК, ГНК) : 12 [10:40:22]line Товар: 2710124130 [10:40:22]line Аи-92-К-5 [10:40:22]line 7.630 * 60.30 [10:40:22]line = 460.09 [10:40:22]line НДС 12% НСП 1% [10:40:22]line > о реализуемом товаре [10:40:22]line ОКРУГЛЕНИЕ: -0.09 [10:40:22]line ИТОГО: 460.00 [10:40:22]line Внесено: 460.00 [10:40:22]line СДАЧА: 0.00 [10:40:22]line НСП 1% : 4.07 [10:40:22]line НДС 12% : 48.86 [10:40:22]line Наличными: 460.00 [10:40:22]line Безнал.: 0.00 [10:40:22]line Место: АЗС № 102 "Партнер Нефть" [10:40:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:40:22]line СНО: Общий режим [10:40:22]line Чек 45 30.01.2024 10:40 [10:40:22]line Смена: 246 ФФД: 1.0 [10:40:22]line ЗНМ: 0300000040 [10:40:22]line РНМ: 0000000000092723 [10:40:22]line Версия ККМ: 001 [10:40:22]line ФМ: 0000000000875060 [10:40:22]line ФД: 49169 [10:40:22]line ФПД: 194624320917667 [10:40:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104039&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49169&fm=194624320917667&tin=02508201610067®Number=0000000000092723&sum=46000 [10:40:22]OFD Sender: Processing packet 49169 [packets to send 12, broken 11] [10:40:22]ProducePacketName [10:40:22]name=ofd_packets/00049169 [10:40:22]OFD Sender: To server: pG, [10:40:22]CommunicateWithHost lk.salyk.kg:30040 [10:40:22]ConnectInit lk.salyk.kg [10:40:23]written 0, free lines is 4095 [10:40:23]Connected sock=9 [10:40: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 36 30 0F 01 00 00 CF AF 07 01 01 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 B9 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 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 27 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 11 C0 00 00 35 04 06 00 B1 02 81 83 50 A3 8D 23 61 D3 5F 36 FC E6 [10:40: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 36 30 4F 00 00 00 74 0A 47 00 5E 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 36 30 10 04 04 00 11 C0 00 00 F4 03 04 00 1D 7E B8 65 B6 04 01 00 00 23 23 43 89 20 B9 7F 3C [10:40:23]CommunicateWithHost err = 0 [10:40:23]CheckOFDResponse [10:40:23]1017 (14) - 77093643461234 [10:40:23]1041 (16) - 0000000000875060 [10:40:23]1040 (4) - 49169 [10:40:23]1012 (4) - 30.01.2024 04:42 [10:40:23]1206 (1) - 0 [10:40:23]OFD Sender: Remove packet 49169 [10:40:23]ProducePacketName [10:40:23]name=ofd_packets/00049169 [10:40:23]NVStorageDeleteData [10:40:23]Write to MH i2c: 01 00 00 C7 6A 31 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 C7 6A 00 00 00 00 00 05 0D 4A [10:40:23]RasterBufferAndPrint [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]line [10:40:23]written 0, free lines is 3345 [10:40:23]MH_Cut [10:40:23]Write to MH i2c: D1 01 00 CE 6A 01 0A [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 01 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: D1 01 00 CE 6A 00 09 [10:40:23]Write to MH i2c: 01 00 00 CF 6A 39 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]OFD Sender: No OFD packet to send [10:40:24]*** Cut start [10:40:24]*** Partial cut [10:40:24]*** CUTSNS_PIN = 1 [10:40:24]*** CUTSNS_PIN = 0 [10:40:24]*** Brake cut motor [10:40:24]Read from MH i2c: 01 [10:40:24]MH_I2C_Read... [10:40:24]*** Stop cut motor [10:40:24]*** Cut end [10:40:24]Read from MH i2c: 01 07 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: 01 07 00 CF 6A 00 00 00 00 00 FF 0F 4E [10:40:24]process_action close_receipt done [10:40:24]requested_data is exist [10:40:24]produce_requested_data [10:40:24]requested_item fm.sn is exist - process it [10:40:24]wFMCommunicate request_size=4 [10:40:24]MH_SAM_APDU [10:40:24]CAPDU: 80 11 00 00 [10:40:24]Write to MH i2c: E2 08 00 D0 6A 80 11 00 00 00 00 00 00 B4 [10:40:24]Write i2c OK [10:40:24]MH_I2C_Read... [10:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:24]Read from MH i2c: E2 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 17 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 17 00 D0 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 01 [10:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:40:25]wFMCommunicate OK [10:40:25]requested_item fd.num is exist - process it [10:40:25]SAM_PROTO_GetFieldsCounters [10:40:25]wFMCommunicate request_size=4 [10:40:25]MH_SAM_APDU [10:40:25]CAPDU: 80 13 00 00 [10:40:25]Write to MH i2c: E2 08 00 D1 6A 80 13 00 00 00 00 00 00 B7 [10:40:25]Write i2c OK [10:40:25]MH_I2C_Read... [10:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:25]Read from MH i2c: E2 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 62 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 62 00 D1 6A 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 11 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [10:40: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 11 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:25]wFMCommunicate OK [10:40:25]SAM_PROTO_GetFieldsCounters done [10:40:25]requested_item shift.num is exist - process it [10:40:25]requested_item shift.opened is exist - process it [10:40:25]req_shift_opened [10:40:25]FM_GetShiftState [10:40:25]SAM_PROTO_GetShiftState [10:40:25]wFMCommunicate request_size=4 [10:40:25]MH_SAM_APDU [10:40:25]CAPDU: 80 13 01 00 [10:40:25]Write to MH i2c: E2 08 00 D2 6A 80 13 01 00 00 00 00 00 B9 [10:40:25]Write i2c OK [10:40:25]MH_I2C_Read... [10:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:25]Read from MH i2c: E2 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 0E 00 [10:40:25]MH_I2C_Read... [10:40:25]Read from MH i2c: E2 0E 00 D2 6A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E1 [10:40:25]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:40:25]wFMCommunicate OK [10:40:25]SAM_PROTO_GetShiftState done [10:40:25]FM_GetShiftState done [10:40:25]req_shift_opened done [10:40:25]requested_item shift.open_date is exist - process it [10:40:25]req_shift_open_date [10:40:25]req_shift_open_date done [10:40:25]produce_requested_data done [10:40:25]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49169,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:40:25]process_action_free close_receipt [10:40:25]json_value_free [10:40:25]json_value_free done [10:40:25]process_json_proto returns [10:40:25]Send response to host [10:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49169,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:40:25]free response buf [10:40:25]execute_script done [10:40:25]execute_script returns [10:40:25]free content buf [10:40:25]Sock 7.Close socket [10:40:25]Sock 7.Thread stoped [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:11]accept exits with 10 [10:41:11]New connection [10:41:11]New thread 3066813796 created [10:41:11]Thread 3066670436 joined [10:41:11]Waiting for new connection... [10:41:11] Sock 10.Parse request [10:41:11]Sock 10.Check first char [10:41:11]Sock 10.First char is OK [10:41:11]request: POST /json_proto HTTP/1.0 [10:41:11]Method: POST [10:41:11]URL: /json_proto [10:41:11]Method is POST - this is cgi request [10:41:11]url: /json_proto [10:41:11]query_string will be loaded in cgi processing [10:41:11]execute_cgi json_proto POST (null) [10:41:11]execute_cgi path=json_proto method=POST [10:41:11]POST find Content-Length [10:41:11]Host: 172.17.56.67:8080 [10:41:11]Content-Length: 677 [10:41:11]Content-Type: application/json [10:41:11] [10:41:11]POST finish read [10:41:11]Found Content-Length = 677 [10:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:11]execute_script... [10:41:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:11]POST & json_proto [10:41:11]process_json_proto [10:41:11]json parsed OK: [10:41:11]protocol is kg_v1.0 [10:41:11]action value=close_receipt [10:41:11]process_action close_receipt [10:41:11]cmd_close_receipt [10:41:11]MH_GetDate [10:41:11]Write to MH i2c: F0 00 00 D3 6A 2C [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: F0 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: F0 09 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: F0 09 00 D3 6A 00 5A D2 B8 65 26 5D 9E 65 04 [10:41:11]GetLastDocTimeStamp 1706611239 [10:41:11]current date 1706611290 [10:41:11]FM_GetShiftState [10:41:11]SAM_PROTO_GetShiftState [10:41:11]wFMCommunicate request_size=4 [10:41:11]MH_SAM_APDU [10:41:11]CAPDU: 80 13 01 00 [10:41:11]Write to MH i2c: E2 08 00 D4 6A 80 13 01 00 00 00 00 00 BB [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:11]Read from MH i2c: E2 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 0E 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 0E 00 D4 6A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E3 [10:41:11]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:41:11]wFMCommunicate OK [10:41:11]SAM_PROTO_GetShiftState done [10:41:11]FM_GetShiftState done [10:41:11]opened in 1706572995 [10:41:11]opened+sec_in_day 1706659395 [10:41:11]quantity*price = 60058 [10:41:11]sum+1 = 60060 [10:41:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 46 30.01.2024 10:41 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49170 ФПД: 186472507648091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104130&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49170&fm=186472507648091&tin=02508201610067®Number=0000000000092723&sum=60000 [10:41:12]StoreToDocumentArchive [10:41:12]shift 246 fd 49170 [10:41:12]save to /storage/0246/doc_00049170 [10:41:12]save last doc name /storage/0246/doc_00049170 to /storage/kkm_last_doc_name [10:41:12]save OK [10:41:12]Clear old archive folders... [10:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:12]tlvbuf is 01197530 [10:41:12]SAM_PROTO_ClearQueue [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 09 00 00 [10:41:12]Write to MH i2c: E2 08 00 E1 6A 80 09 00 00 00 00 00 00 BD [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 E1 6A 00 90 00 BF [10:41:12]RAPDU: 90 00 [10:41:12]wFMCommunicate OK [10:41:12]SAM_PROTO_ClearQueue done [10:41:12]KKMCreateOFDPacket [10:41:12]OFDProtocolAddRootSTLVToBuf [10:41:12]FM_MakeSignedData [10:41:12]FM_MakeSignedData [10:41:12]SAM_PROTO_SignData [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 0D 01 02 [10:41:12]Write to MH i2c: E2 08 00 E2 6A 80 0D 01 02 00 00 00 00 C5 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:13]Read from MH i2c: E2 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 03 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 03 00 E2 6A 00 90 00 C0 [10:41:13]RAPDU: 90 00 [10:41:13]wFMCommunicate OK [10:41:13]wFMCommunicate request_size=255 [10:41:13]MH_SAM_APDU [10:41:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5A D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 C0 00 00 35 04 06 00 A9 [10:41:13]Write to MH i2c: E2 02 01 E3 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5A D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 C0 00 00 35 04 06 00 A9 00 00 92 [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:13]Read from MH i2c: E2 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 03 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 03 00 E3 6A 00 90 00 C1 [10:41:13]RAPDU: 90 00 [10:41:13]wFMCommunicate OK [10:41:13]wFMCommunicate request_size=10 [10:41:13]MH_SAM_APDU [10:41:13]CAPDU: 80 0D 02 02 05 98 83 94 28 5B [10:41:13]Write to MH i2c: E2 0D 00 E4 6A 80 0D 02 02 05 00 98 83 94 28 5B 00 00 04 [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:13]Read from MH i2c: E2 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 03 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 03 00 E4 6A 00 90 00 C2 [10:41:13]RAPDU: 90 00 [10:41:13]wFMCommunicate OK [10:41:13]wFMCommunicate request_size=4 [10:41:13]MH_SAM_APDU [10:41:13]CAPDU: 80 0D 03 02 [10:41:13]Write to MH i2c: E2 08 00 E5 6A 80 0D 03 02 00 00 00 00 CA [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:13]Read from MH i2c: E2 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 0B 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 0B 00 E5 6A 00 E6 26 C0 A9 2A 0B 3E 4F 90 00 02 [10:41:13]RAPDU: E6 26 C0 A9 2A 0B 3E 4F 90 00 [10:41:13]wFMCommunicate OK [10:41:13]SAM_PROTO_SignData done [10:41:13]FM_MakeSignedData done [10:41:13]CreateOFDProtocolMessage [10:41:13]wFMCommunicate request_size=4 [10:41:13]MH_SAM_APDU [10:41:13]CAPDU: 80 11 00 00 [10:41:13]Write to MH i2c: E2 08 00 E6 6A 80 11 00 00 00 00 00 00 CA [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:13]Read from MH i2c: E2 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 17 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 17 00 E6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 17 [10:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:41:13]wFMCommunicate OK [10:41:13]CreateOFDProtocolMessage done [10:41:13]OFDSenderStorePacket 49170 [10:41:13]StoreOFDPacket docnum=49170 [10:41:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6C B8 07 01 63 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5A D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 C0 00 00 35 04 06 00 A9 98 83 94 28 5B E6 26 C0 A9 2A 0B 3E 4F [10:41:13]CheckFolder [10:41:13]dirname=/storage/ofd_packets [10:41:13]CheckFolder done [10:41:13]ProducePacketName [10:41:13]name=ofd_packets/00049170 [10:41:13]NVStorageSaveData ofd_packets/00049170 [10:41:13]File name is /storage/ofd_packets/00049170 [10:41:13]Write 301 bytes [10:41:13]NVStorageSaveData done [10:41:13]OFDSenderStorePacket done [10:41:13]KKMCreateOFDPacket done [10:41:13]NVStorageSaveData kkm_last_timestamp [10:41:13]File name is /storage/kkm_last_timestamp [10:41:13]Write 4 bytes [10:41:13]NVStorageSaveData done [10:41:13]ExternCall_PrintAddStr [10:41:13]wPrintStart [10:41:13]Write to MH i2c: 01 00 00 E7 6A 51 [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 07 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 07 00 E7 6A 00 00 00 00 00 FF 0F 66 [10:41:13]RasterBufferAndPrint [10:41:13]line Счет N : (1)216271 [10:41:13]line ИНН: 02508201610067 [10:41:13]line Контрольно-Кассовый Чек [10:41:13]line ПРОДАЖА [10:41:13]line ТРК (МРК, ГНК) : 12 [10:41:13]line Товар: 2710124130 [10:41:13]line Аи-92-К-5 [10:41:13]line 9.960 * 60.30 [10:41:13]line = 600.59 [10:41:13]line НДС 12% НСП 1% [10:41:13]line > о реализуемом товаре [10:41:13]line ОКРУГЛЕНИЕ: -0.59 [10:41:13]line ИТОГО: 600.00 [10:41:13]line Внесено: 600.00 [10:41:13]line СДАЧА: 0.00 [10:41:13]line НСП 1% : 5.31 [10:41:13]line НДС 12% : 63.78 [10:41:13]line Наличными: 600.00 [10:41:13]line Безнал.: 0.00 [10:41:13]line Место: АЗС № 102 "Партнер Нефть" [10:41:13]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:41:13]line СНО: Общий режим [10:41:13]line Чек 46 30.01.2024 10:41 [10:41:13]line Смена: 246 ФФД: 1.0 [10:41:13]line ЗНМ: 0300000040 [10:41:13]line РНМ: 0000000000092723 [10:41:13]line Версия ККМ: 001 [10:41:13]line ФМ: 0000000000875060 [10:41:13]line ФД: 49170 [10:41:13]line ФПД: 186472507648091 [10:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104130&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49170&fm=186472507648091&tin=02508201610067®Number=0000000000092723&sum=60000 [10:41:13]written 0, free lines is 4095 [10:41:13]OFD Sender: Processing packet 49170 [packets to send 12, broken 11] [10:41:13]ProducePacketName [10:41:13]name=ofd_packets/00049170 [10:41:13]OFD Sender: To server: pG, [10:41:13]CommunicateWithHost lk.salyk.kg:30040 [10:41:13]ConnectInit lk.salyk.kg [10:41:13]Connected sock=11 [10:41: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 36 30 0F 01 00 00 6C B8 07 01 63 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5A D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 C0 00 00 35 04 06 00 A9 98 83 94 28 5B E6 26 C0 A9 2A 0B 3E 4F [10:41: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 36 30 4F 00 00 00 FF 41 47 00 98 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 C0 00 00 F4 03 04 00 4F 7E B8 65 B6 04 01 00 00 62 42 19 54 41 F9 2F CA [10:41:14]CommunicateWithHost err = 0 [10:41:14]CheckOFDResponse [10:41:14]1017 (14) - 77093643461234 [10:41:14]1041 (16) - 0000000000875060 [10:41:14]1040 (4) - 49170 [10:41:14]1012 (4) - 30.01.2024 04:42 [10:41:14]1206 (1) - 0 [10:41:14]OFD Sender: Remove packet 49170 [10:41:14]ProducePacketName [10:41:14]name=ofd_packets/00049170 [10:41:14]NVStorageDeleteData [10:41:14]Write to MH i2c: 01 00 00 12 6B 7D [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: 01 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: 01 07 00 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: 01 07 00 12 6B 00 00 00 00 00 EC 0C 7C [10:41:14]RasterBufferAndPrint [10:41:14]line [10:41:14]line [10:41:14]line [10:41:14]line [10:41:14]line [10:41:14]written 0, free lines is 3314 [10:41:14]MH_Cut [10:41:14]Write to MH i2c: D1 01 00 19 6B 01 56 [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: D1 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: D1 01 00 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: D1 01 00 19 6B 00 55 [10:41:14]Write to MH i2c: 01 00 00 1A 6B 85 [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:14]OFD Sender: No OFD packet to send [10:41:14]*** Cut start [10:41:14]*** Partial cut [10:41:14]*** CUTSNS_PIN = 1 [10:41:14]*** CUTSNS_PIN = 0 [10:41:15]*** Brake cut motor [10:41:15]Read from MH i2c: 01 [10:41:15]MH_I2C_Read... [10:41:15]*** Stop cut motor [10:41:15]*** Cut end [10:41:15]Read from MH i2c: 01 07 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: 01 07 00 1A 6B 00 00 00 00 00 FF 0F 9A [10:41:15]process_action close_receipt done [10:41:15]requested_data is exist [10:41:15]produce_requested_data [10:41:15]requested_item fm.sn is exist - process it [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 11 00 00 [10:41:15]Write to MH i2c: E2 08 00 1B 6B 80 11 00 00 00 00 00 00 00 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 17 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 17 00 1B 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4D [10:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:41:15]wFMCommunicate OK [10:41:15]requested_item fd.num is exist - process it [10:41:15]SAM_PROTO_GetFieldsCounters [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 13 00 00 [10:41:15]Write to MH i2c: E2 08 00 1C 6B 80 13 00 00 00 00 00 00 03 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 62 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 62 00 1C 6B 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 12 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [10:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 12 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:15]wFMCommunicate OK [10:41:15]SAM_PROTO_GetFieldsCounters done [10:41:15]requested_item shift.num is exist - process it [10:41:15]requested_item shift.opened is exist - process it [10:41:15]req_shift_opened [10:41:15]FM_GetShiftState [10:41:15]SAM_PROTO_GetShiftState [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 13 01 00 [10:41:15]Write to MH i2c: E2 08 00 1D 6B 80 13 01 00 00 00 00 00 05 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 0E 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 0E 00 1D 6B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2D [10:41:15]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:41:15]wFMCommunicate OK [10:41:15]SAM_PROTO_GetShiftState done [10:41:15]FM_GetShiftState done [10:41:15]req_shift_opened done [10:41:15]requested_item shift.open_date is exist - process it [10:41:15]req_shift_open_date [10:41:15]req_shift_open_date done [10:41:15]produce_requested_data done [10:41:15]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49170,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:41:15]process_action_free close_receipt [10:41:15]json_value_free [10:41:15]json_value_free done [10:41:15]process_json_proto returns [10:41:15]Send response to host [10:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49170,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:41:15]free response buf [10:41:15]execute_script done [10:41:15]execute_script returns [10:41:15]free content buf [10:41:15]Sock 10.Close socket [10:41:15]Sock 10.Thread stoped [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:32]accept exits with 7 [10:41:32]New connection [10:41:32]New thread 3066670436 created [10:41:32]Thread 3066813796 joined [10:41:32]Waiting for new connection... [10:41:32] Sock 7.Parse request [10:41:32]Sock 7.Check first char [10:41:32]Sock 7.First char is OK [10:41:32]request: POST /json_proto HTTP/1.0 [10:41:32]Method: POST [10:41:32]URL: /json_proto [10:41:32]Method is POST - this is cgi request [10:41:32]url: /json_proto [10:41:32]query_string will be loaded in cgi processing [10:41:32]execute_cgi json_proto POST (null) [10:41:32]execute_cgi path=json_proto method=POST [10:41:32]POST find Content-Length [10:41:32]Host: 172.17.56.67:8080 [10:41:32]Content-Length: 677 [10:41:32]Content-Type: application/json [10:41:32] [10:41:32]POST finish read [10:41:32]Found Content-Length = 677 [10:41:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.320, "sum" : 260.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:32]execute_script... [10:41:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.320, "sum" : 260.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:32]POST & json_proto [10:41:32]process_json_proto [10:41:32]json parsed OK: [10:41:32]protocol is kg_v1.0 [10:41:32]action value=close_receipt [10:41:32]process_action close_receipt [10:41:32]cmd_close_receipt [10:41:32]MH_GetDate [10:41:32]Write to MH i2c: F0 00 00 1E 6B 78 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: F0 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: F0 09 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: F0 09 00 1E 6B 00 6F D2 B8 65 26 5D 9E 65 65 [10:41:32]GetLastDocTimeStamp 1706611290 [10:41:32]current date 1706611311 [10:41:32]FM_GetShiftState [10:41:32]SAM_PROTO_GetShiftState [10:41:32]wFMCommunicate request_size=4 [10:41:32]MH_SAM_APDU [10:41:32]CAPDU: 80 13 01 00 [10:41:32]Write to MH i2c: E2 08 00 1F 6B 80 13 01 00 00 00 00 00 07 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 0E 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 0E 00 1F 6B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2F [10:41:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:41:32]wFMCommunicate OK [10:41:32]SAM_PROTO_GetShiftState done [10:41:32]FM_GetShiftState done [10:41:32]opened in 1706572995 [10:41:32]opened+sec_in_day 1706659395 [10:41:32]quantity*price = 26049 [10:41:32]sum+1 = 26051 [10:41:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.66 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 47 30.01.2024 10:41 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49171 ФПД: 270240280207568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104151&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49171&fm=270240280207568&tin=02508201610067®Number=0000000000092723&sum=26000 [10:41:33]StoreToDocumentArchive [10:41:33]shift 246 fd 49171 [10:41:33]save to /storage/0246/doc_00049171 [10:41:33]save last doc name /storage/0246/doc_00049171 to /storage/kkm_last_doc_name [10:41:33]save OK [10:41:33]Clear old archive folders... [10:41:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:33]tlvbuf is 01312420 [10:41:33]SAM_PROTO_ClearQueue [10:41:33]wFMCommunicate request_size=4 [10:41:33]MH_SAM_APDU [10:41:33]CAPDU: 80 09 00 00 [10:41:33]Write to MH i2c: E2 08 00 2C 6B 80 09 00 00 00 00 00 00 09 [10:41:33]Write i2c OK [10:41:33]MH_I2C_Read... [10:41:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:33]Read from MH i2c: E2 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: E2 03 00 [10:41:33]MH_I2C_Read... [10:41:33]Read from MH i2c: E2 03 00 2C 6B 00 90 00 0B [10:41:33]RAPDU: 90 00 [10:41:33]wFMCommunicate OK [10:41:33]SAM_PROTO_ClearQueue done [10:41:33]KKMCreateOFDPacket [10:41:33]OFDProtocolAddRootSTLVToBuf [10:41:33]FM_MakeSignedData [10:41:33]FM_MakeSignedData [10:41:33]SAM_PROTO_SignData [10:41:33]wFMCommunicate request_size=4 [10:41:33]MH_SAM_APDU [10:41:33]CAPDU: 80 0D 01 02 [10:41:33]Write to MH i2c: E2 08 00 2D 6B 80 0D 01 02 00 00 00 00 11 [10:41:33]Write i2c OK [10:41:33]MH_I2C_Read... [10:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:34]Read from MH i2c: E2 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 03 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 03 00 2D 6B 00 90 00 0C [10:41:34]RAPDU: 90 00 [10:41:34]wFMCommunicate OK [10:41:34]wFMCommunicate request_size=255 [10:41:34]MH_SAM_APDU [10:41:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C2 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 CE 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 2F 00 00 00 F4 03 04 00 6F D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 C0 00 00 35 04 06 00 F5 [10:41:34]Write to MH i2c: E2 02 01 2E 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C2 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 CE 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 2F 00 00 00 F4 03 04 00 6F D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 C0 00 00 35 04 06 00 F5 00 00 C2 [10:41:34]Write i2c OK [10:41:34]MH_I2C_Read... [10:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:34]Read from MH i2c: E2 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 03 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 03 00 2E 6B 00 90 00 0D [10:41:34]RAPDU: 90 00 [10:41:34]wFMCommunicate OK [10:41:34]wFMCommunicate request_size=10 [10:41:34]MH_SAM_APDU [10:41:34]CAPDU: 80 0D 02 02 05 C8 37 E7 E0 D0 [10:41:34]Write to MH i2c: E2 0D 00 2F 6B 80 0D 02 02 05 00 C8 37 E7 E0 D0 00 00 B4 [10:41:34]Write i2c OK [10:41:34]MH_I2C_Read... [10:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:34]Read from MH i2c: E2 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 03 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 03 00 2F 6B 00 90 00 0E [10:41:34]RAPDU: 90 00 [10:41:34]wFMCommunicate OK [10:41:34]wFMCommunicate request_size=4 [10:41:34]MH_SAM_APDU [10:41:34]CAPDU: 80 0D 03 02 [10:41:34]Write to MH i2c: E2 08 00 30 6B 80 0D 03 02 00 00 00 00 16 [10:41:34]Write i2c OK [10:41:34]MH_I2C_Read... [10:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:34]Read from MH i2c: E2 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 0B 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 0B 00 30 6B 00 82 73 07 7C 63 C6 E3 B3 90 00 4E [10:41:34]RAPDU: 82 73 07 7C 63 C6 E3 B3 90 00 [10:41:34]wFMCommunicate OK [10:41:34]SAM_PROTO_SignData done [10:41:34]FM_MakeSignedData done [10:41:34]CreateOFDProtocolMessage [10:41:34]wFMCommunicate request_size=4 [10:41:34]MH_SAM_APDU [10:41:34]CAPDU: 80 11 00 00 [10:41:34]Write to MH i2c: E2 08 00 31 6B 80 11 00 00 00 00 00 00 16 [10:41:34]Write i2c OK [10:41:34]MH_I2C_Read... [10:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:34]Read from MH i2c: E2 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 17 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 17 00 31 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 63 [10:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:41:34]wFMCommunicate OK [10:41:34]CreateOFDProtocolMessage done [10:41:34]OFDSenderStorePacket 49171 [10:41:34]StoreOFDPacket docnum=49171 [10:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 33 33 07 01 B0 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C2 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 CE 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 2F 00 00 00 F4 03 04 00 6F D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 C0 00 00 35 04 06 00 F5 C8 37 E7 E0 D0 82 73 07 7C 63 C6 E3 B3 [10:41:34]CheckFolder [10:41:34]dirname=/storage/ofd_packets [10:41:34]CheckFolder done [10:41:34]ProducePacketName [10:41:34]name=ofd_packets/00049171 [10:41:34]NVStorageSaveData ofd_packets/00049171 [10:41:34]File name is /storage/ofd_packets/00049171 [10:41:34]Write 301 bytes [10:41:34]NVStorageSaveData done [10:41:34]OFDSenderStorePacket done [10:41:34]KKMCreateOFDPacket done [10:41:34]NVStorageSaveData kkm_last_timestamp [10:41:34]File name is /storage/kkm_last_timestamp [10:41:34]Write 4 bytes [10:41:34]NVStorageSaveData done [10:41:34]ExternCall_PrintAddStr [10:41:34]wPrintStart [10:41:34]Write to MH i2c: 01 00 00 32 6B 9D [10:41:34]Write i2c OK [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: 01 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: 01 07 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: 01 07 00 32 6B 00 00 00 00 00 FF 0F B2 [10:41:34]RasterBufferAndPrint [10:41:34]line Счет N : (1)216272 [10:41:34]line ИНН: 02508201610067 [10:41:34]line Контрольно-Кассовый Чек [10:41:34]line ПРОДАЖА [10:41:34]line ТРК (МРК, ГНК) : 22 [10:41:34]line Товар: 2710124130 [10:41:34]line Аи-92-К-5 [10:41:34]line 4.320 * 60.30 [10:41:34]line = 260.50 [10:41:34]line НДС 12% НСП 1% [10:41:34]line > о реализуемом товаре [10:41:34]line ОКРУГЛЕНИЕ: -0.50 [10:41:34]line ИТОГО: 260.00 [10:41:34]line Внесено: 260.00 [10:41:34]line СДАЧА: 0.00 [10:41:34]line НСП 1% : 2.30 [10:41:34]line НДС 12% : 27.66 [10:41:34]line Наличными: 260.00 [10:41:34]line Безнал.: 0.00 [10:41:34]line Место: АЗС № 102 "Партнер Нефть" [10:41:34]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:41:34]line СНО: Общий режим [10:41:34]line Чек 47 30.01.2024 10:41 [10:41:34]line Смена: 246 ФФД: 1.0 [10:41:34]line ЗНМ: 0300000040 [10:41:34]line РНМ: 0000000000092723 [10:41:34]line Версия ККМ: 001 [10:41:34]line ФМ: 0000000000875060 [10:41:34]line ФД: 49171 [10:41:34]line ФПД: 270240280207568 [10:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104151&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49171&fm=270240280207568&tin=02508201610067®Number=0000000000092723&sum=26000 [10:41:34]OFD Sender: Processing packet 49171 [packets to send 12, broken 11] [10:41:34]ProducePacketName [10:41:34]name=ofd_packets/00049171 [10:41:34]OFD Sender: To server: pG, [10:41:34]CommunicateWithHost lk.salyk.kg:30040 [10:41:34]ConnectInit lk.salyk.kg [10:41:34]written 0, free lines is 4095 [10:41:34]Connected sock=11 [10:41:34]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 36 30 0F 01 00 00 33 33 07 01 B0 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C2 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 CE 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 2F 00 00 00 F4 03 04 00 6F D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 C0 00 00 35 04 06 00 F5 C8 37 E7 E0 D0 82 73 07 7C 63 C6 E3 B3 [10:41: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 36 30 4F 00 00 00 5D 97 47 00 E5 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 36 30 10 04 04 00 13 C0 00 00 F4 03 04 00 64 7E B8 65 B6 04 01 00 00 12 FB 9C 66 40 88 C8 E4 [10:41:35]CommunicateWithHost err = 0 [10:41:35]CheckOFDResponse [10:41:35]1017 (14) - 77093643461234 [10:41:35]1041 (16) - 0000000000875060 [10:41:35]1040 (4) - 49171 [10:41:35]1012 (4) - 30.01.2024 04:43 [10:41:35]1206 (1) - 0 [10:41:35]OFD Sender: Remove packet 49171 [10:41:35]ProducePacketName [10:41:35]name=ofd_packets/00049171 [10:41:35]NVStorageDeleteData [10:41:35]Write to MH i2c: 01 00 00 5D 6B C8 [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: 01 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: 01 07 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: 01 07 00 5D 6B 00 00 00 00 00 F2 0C CD [10:41:35]RasterBufferAndPrint [10:41:35]line [10:41:35]line [10:41:35]line [10:41:35]line [10:41:35]line [10:41:35]written 0, free lines is 3320 [10:41:35]MH_Cut [10:41:35]Write to MH i2c: D1 01 00 64 6B 01 A1 [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: D1 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: D1 01 00 [10:41:35]MH_I2C_Read... [10:41:35]Read from MH i2c: D1 01 00 64 6B 00 A0 [10:41:35]Write to MH i2c: 01 00 00 65 6B D0 [10:41:35]Write i2c OK [10:41:35]MH_I2C_Read... [10:41:35]OFD Sender: No OFD packet to send [10:41:35]*** Cut start [10:41:35]*** Partial cut [10:41:35]*** CUTSNS_PIN = 1 [10:41:35]*** CUTSNS_PIN = 0 [10:41:36]*** Brake cut motor [10:41:36]Read from MH i2c: 01 [10:41:36]MH_I2C_Read... [10:41:36]*** Stop cut motor [10:41:36]*** Cut end [10:41:36]Read from MH i2c: 01 07 00 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: 01 07 00 65 6B 00 00 00 00 00 FF 0F E5 [10:41:36]process_action close_receipt done [10:41:36]requested_data is exist [10:41:36]produce_requested_data [10:41:36]requested_item fm.sn is exist - process it [10:41:36]wFMCommunicate request_size=4 [10:41:36]MH_SAM_APDU [10:41:36]CAPDU: 80 11 00 00 [10:41:36]Write to MH i2c: E2 08 00 66 6B 80 11 00 00 00 00 00 00 4B [10:41:36]Write i2c OK [10:41:36]MH_I2C_Read... [10:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:36]Read from MH i2c: E2 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: E2 17 00 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: E2 17 00 66 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 98 [10:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:41:36]wFMCommunicate OK [10:41:36]requested_item fd.num is exist - process it [10:41:36]SAM_PROTO_GetFieldsCounters [10:41:36]wFMCommunicate request_size=4 [10:41:36]MH_SAM_APDU [10:41:36]CAPDU: 80 13 00 00 [10:41:36]Write to MH i2c: E2 08 00 67 6B 80 13 00 00 00 00 00 00 4E [10:41:36]Write i2c OK [10:41:36]MH_I2C_Read... [10:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:36]Read from MH i2c: E2 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: E2 62 00 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: E2 62 00 67 6B 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 13 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [10:41: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 13 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:36]wFMCommunicate OK [10:41:36]SAM_PROTO_GetFieldsCounters done [10:41:36]requested_item shift.num is exist - process it [10:41:36]requested_item shift.opened is exist - process it [10:41:36]req_shift_opened [10:41:36]FM_GetShiftState [10:41:36]SAM_PROTO_GetShiftState [10:41:36]wFMCommunicate request_size=4 [10:41:36]MH_SAM_APDU [10:41:36]CAPDU: 80 13 01 00 [10:41:36]Write to MH i2c: E2 08 00 68 6B 80 13 01 00 00 00 00 00 50 [10:41:36]Write i2c OK [10:41:36]MH_I2C_Read... [10:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:36]Read from MH i2c: E2 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: E2 0E 00 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: E2 0E 00 68 6B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 78 [10:41:36]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:41:36]wFMCommunicate OK [10:41:36]SAM_PROTO_GetShiftState done [10:41:36]FM_GetShiftState done [10:41:36]req_shift_opened done [10:41:36]requested_item shift.open_date is exist - process it [10:41:36]req_shift_open_date [10:41:36]req_shift_open_date done [10:41:36]produce_requested_data done [10:41:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49171,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:41:36]process_action_free close_receipt [10:41:36]json_value_free [10:41:36]json_value_free done [10:41:36]process_json_proto returns [10:41:36]Send response to host [10:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49171,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:41:36]free response buf [10:41:36]execute_script done [10:41:36]execute_script returns [10:41:36]free content buf [10:41:36]Sock 7.Close socket [10:41:36]Sock 7.Thread stoped [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:48]accept exits with 9 [10:42:48]New connection [10:42:48]New thread 3066813796 created [10:42:48]Thread 3066670436 joined [10:42:48]Waiting for new connection... [10:42:48] Sock 9.Parse request [10:42:48]Sock 9.Check first char [10:42:48]Sock 9.First char is OK [10:42:48]request: POST /json_proto HTTP/1.0 [10:42:48]Method: POST [10:42:48]URL: /json_proto [10:42:48]Method is POST - this is cgi request [10:42:48]url: /json_proto [10:42:48]query_string will be loaded in cgi processing [10:42:48]execute_cgi json_proto POST (null) [10:42:48]execute_cgi path=json_proto method=POST [10:42:48]POST find Content-Length [10:42:48]Host: 172.17.56.67:8080 [10:42:48]Content-Length: 679 [10:42:48]Content-Type: application/json [10:42:48] [10:42:48]POST finish read [10:42:48]Found Content-Length = 679 [10:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:48]execute_script... [10:42: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)216273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:48]POST & json_proto [10:42:48]process_json_proto [10:42:48]json parsed OK: [10:42:48]protocol is kg_v1.0 [10:42:48]action value=close_receipt [10:42:48]process_action close_receipt [10:42:48]cmd_close_receipt [10:42:48]MH_GetDate [10:42:48]Write to MH i2c: F0 00 00 69 6B C3 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: F0 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: F0 09 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: F0 09 00 69 6B 00 BB D2 B8 65 26 5D 9E 65 FC [10:42:48]GetLastDocTimeStamp 1706611311 [10:42:48]current date 1706611387 [10:42:48]FM_GetShiftState [10:42:48]SAM_PROTO_GetShiftState [10:42:48]wFMCommunicate request_size=4 [10:42:48]MH_SAM_APDU [10:42:48]CAPDU: 80 13 01 00 [10:42:48]Write to MH i2c: E2 08 00 6A 6B 80 13 01 00 00 00 00 00 52 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:49]Read from MH i2c: E2 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 0E 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 0E 00 6A 6B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 7A [10:42:49]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:42:49]wFMCommunicate OK [10:42:49]SAM_PROTO_GetShiftState done [10:42:49]FM_GetShiftState done [10:42:49]opened in 1706572995 [10:42:49]opened+sec_in_day 1706659395 [10:42:49]quantity*price = 100026 [10:42:49]sum+1 = 100028 [10:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 48 30.01.2024 10:43 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49172 ФПД: 251381716660796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104307&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49172&fm=251381716660796&tin=02508201610067®Number=0000000000092723&sum=100000 [10:42:50]StoreToDocumentArchive [10:42:50]shift 246 fd 49172 [10:42:50]save to /storage/0246/doc_00049172 [10:42:50]save last doc name /storage/0246/doc_00049172 to /storage/kkm_last_doc_name [10:42:50]save OK [10:42:50]Clear old archive folders... [10:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:42:50]tlvbuf is 011D8680 [10:42:50]SAM_PROTO_ClearQueue [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 09 00 00 [10:42:50]Write to MH i2c: E2 08 00 77 6B 80 09 00 00 00 00 00 00 54 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 77 6B 00 90 00 56 [10:42:50]RAPDU: 90 00 [10:42:50]wFMCommunicate OK [10:42:50]SAM_PROTO_ClearQueue done [10:42:50]KKMCreateOFDPacket [10:42:50]OFDProtocolAddRootSTLVToBuf [10:42:50]FM_MakeSignedData [10:42:50]FM_MakeSignedData [10:42:50]SAM_PROTO_SignData [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 0D 01 02 [10:42:50]Write to MH i2c: E2 08 00 78 6B 80 0D 01 02 00 00 00 00 5C [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 78 6B 00 90 00 57 [10:42:50]RAPDU: 90 00 [10:42:50]wFMCommunicate OK [10:42:50]wFMCommunicate request_size=255 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BB D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 C0 00 00 35 04 06 00 E4 A1 5D EC [10:42:50]Write to MH i2c: E2 02 01 79 6B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BB D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 C0 00 00 35 04 06 00 E4 A1 5D EC 00 00 58 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 79 6B 00 90 00 58 [10:42:50]RAPDU: 90 00 [10:42:50]wFMCommunicate OK [10:42:50]wFMCommunicate request_size=7 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 0D 02 02 02 B2 3C [10:42:50]Write to MH i2c: E2 0A 00 7A 6B 80 0D 02 02 02 00 B2 3C 00 00 51 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 7A 6B 00 90 00 59 [10:42:50]RAPDU: 90 00 [10:42:50]wFMCommunicate OK [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 0D 03 02 [10:42:50]Write to MH i2c: E2 08 00 7B 6B 80 0D 03 02 00 00 00 00 61 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 0B 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 0B 00 7B 6B 00 8E 1C 84 C0 73 1D 22 CE 90 00 D0 [10:42:50]RAPDU: 8E 1C 84 C0 73 1D 22 CE 90 00 [10:42:50]wFMCommunicate OK [10:42:50]SAM_PROTO_SignData done [10:42:50]FM_MakeSignedData done [10:42:50]CreateOFDProtocolMessage [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 11 00 00 [10:42:50]Write to MH i2c: E2 08 00 7C 6B 80 11 00 00 00 00 00 00 61 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 17 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 17 00 7C 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AE [10:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:42:50]wFMCommunicate OK [10:42:50]CreateOFDProtocolMessage done [10:42:50]OFDSenderStorePacket 49172 [10:42:50]StoreOFDPacket docnum=49172 [10:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 EF 7A 04 01 9C 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BB D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 C0 00 00 35 04 06 00 E4 A1 5D EC B2 3C 8E 1C 84 C0 73 1D 22 CE [10:42:50]CheckFolder [10:42:50]dirname=/storage/ofd_packets [10:42:50]CheckFolder done [10:42:50]ProducePacketName [10:42:50]name=ofd_packets/00049172 [10:42:50]NVStorageSaveData ofd_packets/00049172 [10:42:50]File name is /storage/ofd_packets/00049172 [10:42:50]Write 298 bytes [10:42:50]NVStorageSaveData done [10:42:50]OFDSenderStorePacket done [10:42:50]KKMCreateOFDPacket done [10:42:50]NVStorageSaveData kkm_last_timestamp [10:42:50]File name is /storage/kkm_last_timestamp [10:42:50]Write 4 bytes [10:42:50]NVStorageSaveData done [10:42:50]ExternCall_PrintAddStr [10:42:50]wPrintStart [10:42:50]Write to MH i2c: 01 00 00 7D 6B E8 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 07 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 07 00 7D 6B 00 00 00 00 00 FF 0F FD [10:42:50]RasterBufferAndPrint [10:42:50]line Счет N : (1)216273 [10:42:50]line ИНН: 02508201610067 [10:42:50]line Контрольно-Кассовый Чек [10:42:50]line ПРОДАЖА [10:42:50]line ТРК (МРК, ГНК) : 11 [10:42:50]line Товар: 2710194210 [10:42:50]line ДТ-К-5 [10:42:50]line 14.310 * 69.90 [10:42:50]line = 1000.27 [10:42:50]line НДС 12% НСП 1% [10:42:50]line > о реализуемом товаре [10:42:50]line ОКРУГЛЕНИЕ: -0.27 [10:42:50]line ИТОГО: 1000.00 [10:42:50]line Внесено: 1000.00 [10:42:50]line СДАЧА: 0.00 [10:42:50]line НСП 1% : 8.85 [10:42:50]line НДС 12% : 106.22 [10:42:50]line Наличными: 1000.00 [10:42:50]line Безнал.: 0.00 [10:42:50]line Место: АЗС № 102 "Партнер Нефть" [10:42:50]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:42:50]line СНО: Общий режим [10:42:50]line Чек 48 30.01.2024 10:43 [10:42:50]line Смена: 246 ФФД: 1.0 [10:42:50]line ЗНМ: 0300000040 [10:42:50]line РНМ: 0000000000092723 [10:42:50]line Версия ККМ: 001 [10:42:50]line ФМ: 0000000000875060 [10:42:50]line ФД: 49172 [10:42:50]line ФПД: 251381716660796 [10:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104307&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49172&fm=251381716660796&tin=02508201610067®Number=0000000000092723&sum=100000 [10:42:51]OFD Sender: Processing packet 49172 [packets to send 12, broken 11] [10:42:51]ProducePacketName [10:42:51]name=ofd_packets/00049172 [10:42:51]OFD Sender: To server: pG, [10:42:51]CommunicateWithHost lk.salyk.kg:30040 [10:42:51]ConnectInit lk.salyk.kg [10:42:51]written 0, free lines is 4095 [10:42:51]Connected sock=10 [10:42: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 36 30 0C 01 00 00 EF 7A 04 01 9C 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BB D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 C0 00 00 35 04 06 00 E4 A1 5D EC B2 3C 8E 1C 84 C0 73 1D 22 CE [10:42: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 36 30 4F 00 00 00 30 D1 47 00 94 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 36 30 10 04 04 00 14 C0 00 00 F4 03 04 00 B1 7E B8 65 B6 04 01 00 00 71 DF D0 CA 70 23 6E 0C [10:42:51]CommunicateWithHost err = 0 [10:42:51]CheckOFDResponse [10:42:51]1017 (14) - 77093643461234 [10:42:51]1041 (16) - 0000000000875060 [10:42:51]1040 (4) - 49172 [10:42:51]1012 (4) - 30.01.2024 04:44 [10:42:51]1206 (1) - 0 [10:42:51]OFD Sender: Remove packet 49172 [10:42:51]ProducePacketName [10:42:51]name=ofd_packets/00049172 [10:42:51]NVStorageDeleteData [10:42:51]Write to MH i2c: 01 00 00 A8 6B 13 [10:42:51]Write i2c OK [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: 01 [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: 01 07 00 [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: 01 07 00 A8 6B 00 00 00 00 00 03 0D 2A [10:42:51]RasterBufferAndPrint [10:42:51]line [10:42:51]line [10:42:51]line [10:42:51]line [10:42:51]line [10:42:51]written 0, free lines is 3337 [10:42:51]MH_Cut [10:42:51]Write to MH i2c: D1 01 00 AF 6B 01 EC [10:42:51]Write i2c OK [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: D1 [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: D1 01 00 [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: D1 01 00 AF 6B 00 EB [10:42:51]Write to MH i2c: 01 00 00 B0 6B 1B [10:42:51]Write i2c OK [10:42:51]MH_I2C_Read... [10:42:51]OFD Sender: No OFD packet to send [10:42:52]*** Cut start [10:42:52]*** Partial cut [10:42:52]*** CUTSNS_PIN = 1 [10:42:52]*** CUTSNS_PIN = 0 [10:42:52]*** Brake cut motor [10:42:52]Read from MH i2c: 01 [10:42:52]MH_I2C_Read... [10:42:52]*** Stop cut motor [10:42:52]*** Cut end [10:42:52]Read from MH i2c: 01 07 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: 01 07 00 B0 6B 00 00 00 00 00 FF 0F 30 [10:42:52]process_action close_receipt done [10:42:52]requested_data is exist [10:42:52]produce_requested_data [10:42:52]requested_item fm.sn is exist - process it [10:42:52]wFMCommunicate request_size=4 [10:42:52]MH_SAM_APDU [10:42:52]CAPDU: 80 11 00 00 [10:42:52]Write to MH i2c: E2 08 00 B1 6B 80 11 00 00 00 00 00 00 96 [10:42:52]Write i2c OK [10:42:52]MH_I2C_Read... [10:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:52]Read from MH i2c: E2 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 17 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 17 00 B1 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E3 [10:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:42:52]wFMCommunicate OK [10:42:52]requested_item fd.num is exist - process it [10:42:52]SAM_PROTO_GetFieldsCounters [10:42:52]wFMCommunicate request_size=4 [10:42:52]MH_SAM_APDU [10:42:52]CAPDU: 80 13 00 00 [10:42:52]Write to MH i2c: E2 08 00 B2 6B 80 13 00 00 00 00 00 00 99 [10:42:52]Write i2c OK [10:42:52]MH_I2C_Read... [10:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:52]Read from MH i2c: E2 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 62 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 62 00 B2 6B 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 14 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [10:42:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 14 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:52]wFMCommunicate OK [10:42:52]SAM_PROTO_GetFieldsCounters done [10:42:52]requested_item shift.num is exist - process it [10:42:52]requested_item shift.opened is exist - process it [10:42:52]req_shift_opened [10:42:52]FM_GetShiftState [10:42:52]SAM_PROTO_GetShiftState [10:42:52]wFMCommunicate request_size=4 [10:42:52]MH_SAM_APDU [10:42:52]CAPDU: 80 13 01 00 [10:42:52]Write to MH i2c: E2 08 00 B3 6B 80 13 01 00 00 00 00 00 9B [10:42:52]Write i2c OK [10:42:52]MH_I2C_Read... [10:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:52]Read from MH i2c: E2 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 0E 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 0E 00 B3 6B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C3 [10:42:52]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:42:52]wFMCommunicate OK [10:42:52]SAM_PROTO_GetShiftState done [10:42:52]FM_GetShiftState done [10:42:52]req_shift_opened done [10:42:52]requested_item shift.open_date is exist - process it [10:42:52]req_shift_open_date [10:42:52]req_shift_open_date done [10:42:52]produce_requested_data done [10:42:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49172,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:42:52]process_action_free close_receipt [10:42:52]json_value_free [10:42:52]json_value_free done [10:42:52]process_json_proto returns [10:42:52]Send response to host [10:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49172,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:42:52]free response buf [10:42:52]execute_script done [10:42:52]execute_script returns [10:42:52]free content buf [10:42:52]Sock 9.Close socket [10:42:52]Sock 9.Thread stoped [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:29]accept exits with 7 [10:43:29]New connection [10:43:29]New thread 3066670436 created [10:43:29]Thread 3066813796 joined [10:43:29]Waiting for new connection... [10:43:29] Sock 7.Parse request [10:43:29]Sock 7.Check first char [10:43:29]Sock 7.First char is OK [10:43:29]request: POST /json_proto HTTP/1.0 [10:43:29]Method: POST [10:43:29]URL: /json_proto [10:43:29]Method is POST - this is cgi request [10:43:29]url: /json_proto [10:43:29]query_string will be loaded in cgi processing [10:43:29]execute_cgi json_proto POST (null) [10:43:29]execute_cgi path=json_proto method=POST [10:43:29]POST find Content-Length [10:43:29]Host: 172.17.56.67:8080 [10:43:29]Content-Length: 677 [10:43:29]Content-Type: application/json [10:43:29] [10:43:29]POST finish read [10:43:29]Found Content-Length = 677 [10:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:29]execute_script... [10: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 : (1)216274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:29]POST & json_proto [10:43:29]process_json_proto [10:43:29]json parsed OK: [10:43:29]protocol is kg_v1.0 [10:43:29]action value=close_receipt [10:43:29]process_action close_receipt [10:43:29]cmd_close_receipt [10:43:29]MH_GetDate [10:43:29]Write to MH i2c: F0 00 00 B4 6B 0E [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: F0 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: F0 09 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: F0 09 00 B4 6B 00 E4 D2 B8 65 26 5D 9E 65 70 [10:43:29]GetLastDocTimeStamp 1706611387 [10:43:29]current date 1706611428 [10:43:29]FM_GetShiftState [10:43:29]SAM_PROTO_GetShiftState [10:43:29]wFMCommunicate request_size=4 [10:43:29]MH_SAM_APDU [10:43:29]CAPDU: 80 13 01 00 [10:43:29]Write to MH i2c: E2 08 00 B5 6B 80 13 01 00 00 00 00 00 9D [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0E 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0E 00 B5 6B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C5 [10:43:29]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:43:29]wFMCommunicate OK [10:43:29]SAM_PROTO_GetShiftState done [10:43:29]FM_GetShiftState done [10:43:29]opened in 1706572995 [10:43:29]opened+sec_in_day 1706659395 [10:43:29]quantity*price = 50049 [10:43:29]sum+1 = 50050 [10:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 49 30.01.2024 10:43 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49173 ФПД: 221459506301119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104348&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49173&fm=221459506301119&tin=02508201610067®Number=0000000000092723&sum=50000 [10:43:31]StoreToDocumentArchive [10:43:31]shift 246 fd 49173 [10:43:31]save to /storage/0246/doc_00049173 [10:43:31]save last doc name /storage/0246/doc_00049173 to /storage/kkm_last_doc_name [10:43:31]save OK [10:43:31]Clear old archive folders... [10:43:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:31]tlvbuf is 012104E0 [10:43:31]SAM_PROTO_ClearQueue [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 09 00 00 [10:43:31]Write to MH i2c: E2 08 00 C2 6B 80 09 00 00 00 00 00 00 9F [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 03 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 03 00 C2 6B 00 90 00 A1 [10:43:31]RAPDU: 90 00 [10:43:31]wFMCommunicate OK [10:43:31]SAM_PROTO_ClearQueue done [10:43:31]KKMCreateOFDPacket [10:43:31]OFDProtocolAddRootSTLVToBuf [10:43:31]FM_MakeSignedData [10:43:31]FM_MakeSignedData [10:43:31]SAM_PROTO_SignData [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 0D 01 02 [10:43:31]Write to MH i2c: E2 08 00 C3 6B 80 0D 01 02 00 00 00 00 A7 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 03 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 03 00 C3 6B 00 90 00 A2 [10:43:31]RAPDU: 90 00 [10:43:31]wFMCommunicate OK [10:43:31]wFMCommunicate request_size=255 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 E4 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 C0 00 00 35 04 06 00 C9 [10:43:31]Write to MH i2c: E2 02 01 C4 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 E4 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 C0 00 00 35 04 06 00 C9 00 00 6F [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:31]Read from MH i2c: E2 03 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 03 00 C4 6B 00 90 00 A3 [10:43:31]RAPDU: 90 00 [10:43:31]wFMCommunicate OK [10:43:31]wFMCommunicate request_size=10 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 0D 02 02 05 6A 8F 34 88 BF [10:43:31]Write to MH i2c: E2 0D 00 C5 6B 80 0D 02 02 05 00 6A 8F 34 88 BF 00 00 28 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 03 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 03 00 C5 6B 00 90 00 A4 [10:43:31]RAPDU: 90 00 [10:43:31]wFMCommunicate OK [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 0D 03 02 [10:43:31]Write to MH i2c: E2 08 00 C6 6B 80 0D 03 02 00 00 00 00 AC [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 0B 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 0B 00 C6 6B 00 D5 DD 4F AB E9 12 49 22 90 00 BF [10:43:31]RAPDU: D5 DD 4F AB E9 12 49 22 90 00 [10:43:31]wFMCommunicate OK [10:43:31]SAM_PROTO_SignData done [10:43:31]FM_MakeSignedData done [10:43:31]CreateOFDProtocolMessage [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 11 00 00 [10:43:31]Write to MH i2c: E2 08 00 C7 6B 80 11 00 00 00 00 00 00 AC [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 17 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 17 00 C7 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F9 [10:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:43:31]wFMCommunicate OK [10:43:31]CreateOFDProtocolMessage done [10:43:31]OFDSenderStorePacket 49173 [10:43:31]StoreOFDPacket docnum=49173 [10:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FD 3D 07 01 97 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 E4 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 C0 00 00 35 04 06 00 C9 6A 8F 34 88 BF D5 DD 4F AB E9 12 49 22 [10:43:31]CheckFolder [10:43:31]dirname=/storage/ofd_packets [10:43:31]CheckFolder done [10:43:31]ProducePacketName [10:43:31]name=ofd_packets/00049173 [10:43:31]NVStorageSaveData ofd_packets/00049173 [10:43:31]File name is /storage/ofd_packets/00049173 [10:43:31]Write 301 bytes [10:43:31]NVStorageSaveData done [10:43:31]OFDSenderStorePacket done [10:43:31]KKMCreateOFDPacket done [10:43:31]NVStorageSaveData kkm_last_timestamp [10:43:31]File name is /storage/kkm_last_timestamp [10:43:31]Write 4 bytes [10:43:31]NVStorageSaveData done [10:43:31]ExternCall_PrintAddStr [10:43:31]wPrintStart [10:43:31]Write to MH i2c: 01 00 00 C8 6B 33 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 07 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 07 00 C8 6B 00 00 00 00 00 FF 0F 48 [10:43:31]RasterBufferAndPrint [10:43:31]line Счет N : (1)216274 [10:43:31]line ИНН: 02508201610067 [10:43:31]line Контрольно-Кассовый Чек [10:43:31]line ПРОДАЖА [10:43:31]line ТРК (МРК, ГНК) : 12 [10:43:31]line Товар: 2710124130 [10:43:31]line Аи-92-К-5 [10:43:31]line 8.300 * 60.30 [10:43:31]line = 500.49 [10:43:31]line НДС 12% НСП 1% [10:43:31]line > о реализуемом товаре [10:43:31]line ОКРУГЛЕНИЕ: -0.49 [10:43:31]line ИТОГО: 500.00 [10:43:31]line Внесено: 500.00 [10:43:31]line СДАЧА: 0.00 [10:43:31]line НСП 1% : 4.43 [10:43:31]line НДС 12% : 53.15 [10:43:31]line Наличными: 500.00 [10:43:31]line Безнал.: 0.00 [10:43:31]line Место: АЗС № 102 "Партнер Нефть" [10:43:31]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:43:31]line СНО: Общий режим [10:43:31]line Чек 49 30.01.2024 10:43 [10:43:31]line Смена: 246 ФФД: 1.0 [10:43:31]line ЗНМ: 0300000040 [10:43:31]line РНМ: 0000000000092723 [10:43:31]line Версия ККМ: 001 [10:43:31]line ФМ: 0000000000875060 [10:43:31]line ФД: 49173 [10:43:31]line ФПД: 221459506301119 [10:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104348&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49173&fm=221459506301119&tin=02508201610067®Number=0000000000092723&sum=50000 [10:43:31]OFD Sender: Processing packet 49173 [packets to send 12, broken 11] [10:43:31]ProducePacketName [10:43:31]name=ofd_packets/00049173 [10:43:31]OFD Sender: To server: pG, [10:43:31]CommunicateWithHost lk.salyk.kg:30040 [10:43:31]ConnectInit lk.salyk.kg [10:43:31]written 0, free lines is 4095 [10:43:32]Connected sock=10 [10:43:32]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 36 30 0F 01 00 00 FD 3D 07 01 97 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 E4 D2 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 C0 00 00 35 04 06 00 C9 6A 8F 34 88 BF D5 DD 4F AB E9 12 49 22 [10:43:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D9 73 47 00 D7 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 C0 00 00 F4 03 04 00 DA 7E B8 65 B6 04 01 00 00 32 86 5C 2B 3B 71 5C DC [10:43:32]CommunicateWithHost err = 0 [10:43:32]CheckOFDResponse [10:43:32]1017 (14) - 77093643461234 [10:43:32]1041 (16) - 0000000000875060 [10:43:32]1040 (4) - 49173 [10:43:32]1012 (4) - 30.01.2024 04:45 [10:43:32]1206 (1) - 0 [10:43:32]OFD Sender: Remove packet 49173 [10:43:32]ProducePacketName [10:43:32]name=ofd_packets/00049173 [10:43:32]NVStorageDeleteData [10:43:32]Write to MH i2c: 01 00 00 F3 6B 5E [10:43:32]Write i2c OK [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: 01 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: 01 07 00 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: 01 07 00 F3 6B 00 00 00 00 00 F9 0C 6A [10:43:32]RasterBufferAndPrint [10:43:32]line [10:43:32]line [10:43:32]line [10:43:32]line [10:43:32]line [10:43:32]written 0, free lines is 3327 [10:43:32]MH_Cut [10:43:32]Write to MH i2c: D1 01 00 FA 6B 01 37 [10:43:32]Write i2c OK [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: D1 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: D1 01 00 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: D1 01 00 FA 6B 00 36 [10:43:32]Write to MH i2c: 01 00 00 FB 6B 66 [10:43:32]Write i2c OK [10:43:32]MH_I2C_Read... [10:43:32]OFD Sender: No OFD packet to send [10:43:33]*** Cut start [10:43:33]*** Partial cut [10:43:33]*** CUTSNS_PIN = 1 [10:43:33]*** CUTSNS_PIN = 0 [10:43:33]*** Brake cut motor [10:43:33]Read from MH i2c: 01 [10:43:33]MH_I2C_Read... [10:43:33]*** Stop cut motor [10:43:33]*** Cut end [10:43:33]Read from MH i2c: 01 07 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: 01 07 00 FB 6B 00 00 00 00 00 FF 0F 7B [10:43:33]process_action close_receipt done [10:43:33]requested_data is exist [10:43:33]produce_requested_data [10:43:33]requested_item fm.sn is exist - process it [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 11 00 00 [10:43:33]Write to MH i2c: E2 08 00 FC 6B 80 11 00 00 00 00 00 00 E1 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 17 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 17 00 FC 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2E [10:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:43:33]wFMCommunicate OK [10:43:33]requested_item fd.num is exist - process it [10:43:33]SAM_PROTO_GetFieldsCounters [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 13 00 00 [10:43:33]Write to MH i2c: E2 08 00 FD 6B 80 13 00 00 00 00 00 00 E4 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 62 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 62 00 FD 6B 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 15 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:43: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 15 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:33]wFMCommunicate OK [10:43:33]SAM_PROTO_GetFieldsCounters done [10:43:33]requested_item shift.num is exist - process it [10:43:33]requested_item shift.opened is exist - process it [10:43:33]req_shift_opened [10:43:33]FM_GetShiftState [10:43:33]SAM_PROTO_GetShiftState [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 13 01 00 [10:43:33]Write to MH i2c: E2 08 00 FE 6B 80 13 01 00 00 00 00 00 E6 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 0E 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 0E 00 FE 6B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 0E [10:43:33]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:43:33]wFMCommunicate OK [10:43:33]SAM_PROTO_GetShiftState done [10:43:33]FM_GetShiftState done [10:43:33]req_shift_opened done [10:43:33]requested_item shift.open_date is exist - process it [10:43:33]req_shift_open_date [10:43:33]req_shift_open_date done [10:43:33]produce_requested_data done [10:43:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49173,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:43:33]process_action_free close_receipt [10:43:33]json_value_free [10:43:33]json_value_free done [10:43:33]process_json_proto returns [10:43:33]Send response to host [10:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49173,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:43:33]free response buf [10:43:33]execute_script done [10:43:33]execute_script returns [10:43:33]free content buf [10:43:33]Sock 7.Close socket [10:43:33]Sock 7.Thread stoped [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:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:49]accept exits with 9 [10:48:49]New connection [10:48:49]New thread 3066813796 created [10:48:49]Thread 3066670436 joined [10:48:49]Waiting for new connection... [10:48:49] Sock 9.Parse request [10:48:49]Sock 9.Check first char [10:48:49]Sock 9.First char is OK [10:48:49]request: POST /json_proto HTTP/1.0 [10:48:49]Method: POST [10:48:49]URL: /json_proto [10:48:49]Method is POST - this is cgi request [10:48:49]url: /json_proto [10:48:49]query_string will be loaded in cgi processing [10:48:49]execute_cgi json_proto POST (null) [10:48:49]execute_cgi path=json_proto method=POST [10:48:49]POST find Content-Length [10:48:49]Host: 172.17.56.67:8080 [10:48:49]Content-Length: 682 [10:48:49]Content-Type: application/json [10:48:49] [10:48:49]POST finish read [10:48:49]Found Content-Length = 682 [10:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:49]execute_script... [10:48:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:49]POST & json_proto [10:48:49]process_json_proto [10:48:49]json parsed OK: [10:48:49]protocol is kg_v1.0 [10:48:49]action value=close_receipt [10:48:49]process_action close_receipt [10:48:49]cmd_close_receipt [10:48:49]MH_GetDate [10:48:49]Write to MH i2c: F0 00 00 FF 6B 59 [10:48:49]Write i2c OK [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: F0 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: F0 09 00 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: F0 09 00 FF 6B 00 23 D4 B8 65 26 5D 9E 65 FC [10:48:49]GetLastDocTimeStamp 1706611428 [10:48:49]current date 1706611747 [10:48:49]FM_GetShiftState [10:48:49]SAM_PROTO_GetShiftState [10:48:49]wFMCommunicate request_size=4 [10:48:49]MH_SAM_APDU [10:48:49]CAPDU: 80 13 01 00 [10:48:49]Write to MH i2c: E2 08 00 00 6C 80 13 01 00 00 00 00 00 E9 [10:48:49]Write i2c OK [10:48:49]MH_I2C_Read... [10:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:49]Read from MH i2c: E2 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: E2 0E 00 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: E2 0E 00 00 6C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 11 [10:48:49]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:48:49]wFMCommunicate OK [10:48:49]SAM_PROTO_GetShiftState done [10:48:49]FM_GetShiftState done [10:48:49]opened in 1706572995 [10:48:49]opened+sec_in_day 1706659395 [10:48:49]quantity*price = 100037 [10:48:49]sum+1 = 100039 [10:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 50 30.01.2024 10:49 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49174 ФПД: 135663875219646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104907&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49174&fm=135663875219646&tin=02508201610067®Number=0000000000092723&sum=100000 [10:48:50]StoreToDocumentArchive [10:48:50]shift 246 fd 49174 [10:48:50]save to /storage/0246/doc_00049174 [10:48:50]save last doc name /storage/0246/doc_00049174 to /storage/kkm_last_doc_name [10:48:50]save OK [10:48:50]Clear old archive folders... [10:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:50]tlvbuf is 01236E40 [10:48:50]SAM_PROTO_ClearQueue [10:48:50]wFMCommunicate request_size=4 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 09 00 00 [10:48:50]Write to MH i2c: E2 08 00 0D 6C 80 09 00 00 00 00 00 00 EB [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 03 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 03 00 0D 6C 00 90 00 ED [10:48:50]RAPDU: 90 00 [10:48:50]wFMCommunicate OK [10:48:50]SAM_PROTO_ClearQueue done [10:48:50]KKMCreateOFDPacket [10:48:50]OFDProtocolAddRootSTLVToBuf [10:48:50]FM_MakeSignedData [10:48:50]FM_MakeSignedData [10:48:50]SAM_PROTO_SignData [10:48:50]wFMCommunicate request_size=4 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 0D 01 02 [10:48:50]Write to MH i2c: E2 08 00 0E 6C 80 0D 01 02 00 00 00 00 F3 [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 03 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 03 00 0E 6C 00 90 00 EE [10:48:50]RAPDU: 90 00 [10:48:50]wFMCommunicate OK [10:48:50]wFMCommunicate request_size=255 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 D4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 16 C0 00 00 35 04 06 00 7B [10:48:50]Write to MH i2c: E2 02 01 0F 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 D4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 16 C0 00 00 35 04 06 00 7B 00 00 F0 [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 03 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 03 00 0F 6C 00 90 00 EF [10:48:50]RAPDU: 90 00 [10:48:50]wFMCommunicate OK [10:48:50]wFMCommunicate request_size=10 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 0D 02 02 05 62 B5 17 60 BE [10:48:50]Write to MH i2c: E2 0D 00 10 6C 80 0D 02 02 05 00 62 B5 17 60 BE 00 00 4C [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 03 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 03 00 10 6C 00 90 00 F0 [10:48:50]RAPDU: 90 00 [10:48:50]wFMCommunicate OK [10:48:50]wFMCommunicate request_size=4 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 0D 03 02 [10:48:50]Write to MH i2c: E2 08 00 11 6C 80 0D 03 02 00 00 00 00 F8 [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 0B 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 0B 00 11 6C 00 CB AB 8A 5B 56 AF 9E 3C 90 00 33 [10:48:50]RAPDU: CB AB 8A 5B 56 AF 9E 3C 90 00 [10:48:50]wFMCommunicate OK [10:48:50]SAM_PROTO_SignData done [10:48:50]FM_MakeSignedData done [10:48:50]CreateOFDProtocolMessage [10:48:50]wFMCommunicate request_size=4 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 11 00 00 [10:48:50]Write to MH i2c: E2 08 00 12 6C 80 11 00 00 00 00 00 00 F8 [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:51]Read from MH i2c: E2 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: E2 17 00 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: E2 17 00 12 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 45 [10:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:48:51]wFMCommunicate OK [10:48:51]CreateOFDProtocolMessage done [10:48:51]OFDSenderStorePacket 49174 [10:48:51]StoreOFDPacket docnum=49174 [10:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EF 3B 07 01 5F 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 D4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 16 C0 00 00 35 04 06 00 7B 62 B5 17 60 BE CB AB 8A 5B 56 AF 9E 3C [10:48:51]CheckFolder [10:48:51]dirname=/storage/ofd_packets [10:48:51]CheckFolder done [10:48:51]ProducePacketName [10:48:51]name=ofd_packets/00049174 [10:48:51]NVStorageSaveData ofd_packets/00049174 [10:48:51]File name is /storage/ofd_packets/00049174 [10:48:51]Write 301 bytes [10:48:51]NVStorageSaveData done [10:48:51]OFDSenderStorePacket done [10:48:51]KKMCreateOFDPacket done [10:48:51]NVStorageSaveData kkm_last_timestamp [10:48:51]File name is /storage/kkm_last_timestamp [10:48:51]Write 4 bytes [10:48:51]NVStorageSaveData done [10:48:51]ExternCall_PrintAddStr [10:48:51]wPrintStart [10:48:51]Write to MH i2c: 01 00 00 13 6C 7F [10:48:51]Write i2c OK [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: 01 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: 01 07 00 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: 01 07 00 13 6C 00 00 00 00 00 FF 0F 94 [10:48:51]RasterBufferAndPrint [10:48:51]line Счет N : (1)216275 [10:48:51]line ИНН: 02508201610067 [10:48:51]line Контрольно-Кассовый Чек [10:48:51]line ПРОДАЖА [10:48:51]line ТРК (МРК, ГНК) : 22 [10:48:51]line Товар: 2710124130 [10:48:51]line Аи-92-К-5 [10:48:51]line 16.590 * 60.30 [10:48:51]line = 1000.38 [10:48:51]line НДС 12% НСП 1% [10:48:51]line > о реализуемом товаре [10:48:51]line ОКРУГЛЕНИЕ: -0.38 [10:48:51]line ИТОГО: 1000.00 [10:48:51]line Внесено: 1000.00 [10:48:51]line СДАЧА: 0.00 [10:48:51]line НСП 1% : 8.85 [10:48:51]line НДС 12% : 106.23 [10:48:51]line Наличными: 1000.00 [10:48:51]line Безнал.: 0.00 [10:48:51]line Место: АЗС № 102 "Партнер Нефть" [10:48:51]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:48:51]line СНО: Общий режим [10:48:51]line Чек 50 30.01.2024 10:49 [10:48:51]line Смена: 246 ФФД: 1.0 [10:48:51]line ЗНМ: 0300000040 [10:48:51]line РНМ: 0000000000092723 [10:48:51]line Версия ККМ: 001 [10:48:51]line ФМ: 0000000000875060 [10:48:51]line ФД: 49174 [10:48:51]line ФПД: 135663875219646 [10:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T104907&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49174&fm=135663875219646&tin=02508201610067®Number=0000000000092723&sum=100000 [10:48:51]OFD Sender: Processing packet 49174 [packets to send 12, broken 11] [10:48:51]ProducePacketName [10:48:51]name=ofd_packets/00049174 [10:48:51]OFD Sender: To server: pG, [10:48:51]CommunicateWithHost lk.salyk.kg:30040 [10:48:51]ConnectInit lk.salyk.kg [10:48:51]written 0, free lines is 4095 [10:48:51]Connected sock=10 [10:48: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 36 30 0F 01 00 00 EF 3B 07 01 5F 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 D4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 16 C0 00 00 35 04 06 00 7B 62 B5 17 60 BE CB AB 8A 5B 56 AF 9E 3C [10:48: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 36 30 4F 00 00 00 A7 07 47 00 5B 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 36 30 10 04 04 00 16 C0 00 00 F4 03 04 00 19 80 B8 65 B6 04 01 00 00 7E 4A F7 27 AC 98 0F 37 [10:48:51]CommunicateWithHost err = 0 [10:48:51]CheckOFDResponse [10:48:51]1017 (14) - 77093643461234 [10:48:51]1041 (16) - 0000000000875060 [10:48:51]1040 (4) - 49174 [10:48:51]1012 (4) - 30.01.2024 04:50 [10:48:51]1206 (1) - 0 [10:48:51]OFD Sender: Remove packet 49174 [10:48:51]ProducePacketName [10:48:51]name=ofd_packets/00049174 [10:48:51]NVStorageDeleteData [10:48:51]Write to MH i2c: 01 00 00 3E 6C AA [10:48:51]Write i2c OK [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: 01 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: 01 07 00 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: 01 07 00 3E 6C 00 00 00 00 00 04 0D C2 [10:48:51]RasterBufferAndPrint [10:48:51]line [10:48:51]line [10:48:51]line [10:48:51]line [10:48:51]line [10:48:51]written 0, free lines is 3338 [10:48:51]MH_Cut [10:48:51]Write to MH i2c: D1 01 00 45 6C 01 83 [10:48:51]Write i2c OK [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: D1 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: D1 01 00 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: D1 01 00 45 6C 00 82 [10:48:51]Write to MH i2c: 01 00 00 46 6C B2 [10:48:51]Write i2c OK [10:48:51]MH_I2C_Read... [10:48:52]OFD Sender: No OFD packet to send [10:48:52]*** Cut start [10:48:52]*** Partial cut [10:48:52]*** CUTSNS_PIN = 1 [10:48:52]*** CUTSNS_PIN = 0 [10:48:52]*** Brake cut motor [10:48:53]Read from MH i2c: 01 [10:48:53]MH_I2C_Read... [10:48:53]*** Stop cut motor [10:48:53]*** Cut end [10:48:53]Read from MH i2c: 01 07 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: 01 07 00 46 6C 00 00 00 00 00 FF 0F C7 [10:48:53]process_action close_receipt done [10:48:53]requested_data is exist [10:48:53]produce_requested_data [10:48:53]requested_item fm.sn is exist - process it [10:48:53]wFMCommunicate request_size=4 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 11 00 00 [10:48:53]Write to MH i2c: E2 08 00 47 6C 80 11 00 00 00 00 00 00 2D [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 17 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 17 00 47 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7A [10:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:48:53]wFMCommunicate OK [10:48:53]requested_item fd.num is exist - process it [10:48:53]SAM_PROTO_GetFieldsCounters [10:48:53]wFMCommunicate request_size=4 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 13 00 00 [10:48:53]Write to MH i2c: E2 08 00 48 6C 80 13 00 00 00 00 00 00 30 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 62 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 62 00 48 6C 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 16 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 16 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:53]wFMCommunicate OK [10:48:53]SAM_PROTO_GetFieldsCounters done [10:48:53]requested_item shift.num is exist - process it [10:48:53]requested_item shift.opened is exist - process it [10:48:53]req_shift_opened [10:48:53]FM_GetShiftState [10:48:53]SAM_PROTO_GetShiftState [10:48:53]wFMCommunicate request_size=4 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 13 01 00 [10:48:53]Write to MH i2c: E2 08 00 49 6C 80 13 01 00 00 00 00 00 32 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 0E 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 0E 00 49 6C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5A [10:48:53]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:48:53]wFMCommunicate OK [10:48:53]SAM_PROTO_GetShiftState done [10:48:53]FM_GetShiftState done [10:48:53]req_shift_opened done [10:48:53]requested_item shift.open_date is exist - process it [10:48:53]req_shift_open_date [10:48:53]req_shift_open_date done [10:48:53]produce_requested_data done [10:48:53]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49174,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:48:53]process_action_free close_receipt [10:48:53]json_value_free [10:48:53]json_value_free done [10:48:53]process_json_proto returns [10:48:53]Send response to host [10:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49174,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:48:53]free response buf [10:48:53]execute_script done [10:48:53]execute_script returns [10:48:53]free content buf [10:48:53]Sock 9.Close socket [10:48:53]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:04]accept exits with 7 [10:55:04]New connection [10:55:04]New thread 3066670436 created [10:55:04]Thread 3066813796 joined [10:55:04]Waiting for new connection... [10:55:04] Sock 7.Parse request [10:55:04]Sock 7.Check first char [10:55:04]Sock 7.First char is OK [10:55:04]request: POST /json_proto HTTP/1.0 [10:55:04]Method: POST [10:55:04]URL: /json_proto [10:55:04]Method is POST - this is cgi request [10:55:04]url: /json_proto [10:55:04]query_string will be loaded in cgi processing [10:55:04]execute_cgi json_proto POST (null) [10:55:04]execute_cgi path=json_proto method=POST [10:55:04]POST find Content-Length [10:55:04]Host: 172.17.56.67:8080 [10:55:04]Content-Length: 679 [10:55:04]Content-Type: application/json [10:55:04] [10:55:04]POST finish read [10:55:04]Found Content-Length = 679 [10:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "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" ] } } [10:55:04]execute_script... [10:55:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "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" ] } } [10:55:04]POST & json_proto [10:55:04]process_json_proto [10:55:04]json parsed OK: [10:55:04]protocol is kg_v1.0 [10:55:04]action value=close_receipt [10:55:04]process_action close_receipt [10:55:04]cmd_close_receipt [10:55:04]MH_GetDate [10:55:04]Write to MH i2c: F0 00 00 4A 6C A5 [10:55:04]Write i2c OK [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 09 00 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 09 00 4A 6C 00 9B D5 B8 65 26 5D 9E 65 C1 [10:55:04]GetLastDocTimeStamp 1706611747 [10:55:04]current date 1706612123 [10:55:04]FM_GetShiftState [10:55:04]SAM_PROTO_GetShiftState [10:55:04]wFMCommunicate request_size=4 [10:55:04]MH_SAM_APDU [10:55:04]CAPDU: 80 13 01 00 [10:55:04]Write to MH i2c: E2 08 00 4B 6C 80 13 01 00 00 00 00 00 34 [10:55:04]Write i2c OK [10:55:04]MH_I2C_Read... [10:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:04]Read from MH i2c: E2 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: E2 0E 00 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: E2 0E 00 4B 6C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5C [10:55:04]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:55:04]wFMCommunicate OK [10:55:04]SAM_PROTO_GetShiftState done [10:55:04]FM_GetShiftState done [10:55:04]opened in 1706572995 [10:55:04]opened+sec_in_day 1706659395 [10:55:04]quantity*price = 200053 [10:55:04]sum+1 = 200055 [10:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 51 30.01.2024 10:55 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49175 ФПД: 174414189069134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T105523&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49175&fm=174414189069134&tin=02508201610067®Number=0000000000092723&sum=200000 [10:55:05]StoreToDocumentArchive [10:55:05]shift 246 fd 49175 [10:55:05]save to /storage/0246/doc_00049175 [10:55:05]save last doc name /storage/0246/doc_00049175 to /storage/kkm_last_doc_name [10:55:05]save OK [10:55:05]Clear old archive folders... [10:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:55:05]tlvbuf is 013B85C0 [10:55:05]SAM_PROTO_ClearQueue [10:55:05]wFMCommunicate request_size=4 [10:55:05]MH_SAM_APDU [10:55:05]CAPDU: 80 09 00 00 [10:55:05]Write to MH i2c: E2 08 00 58 6C 80 09 00 00 00 00 00 00 36 [10:55:05]Write i2c OK [10:55:05]MH_I2C_Read... [10:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:05]Read from MH i2c: E2 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 58 6C 00 90 00 38 [10:55:05]RAPDU: 90 00 [10:55:05]wFMCommunicate OK [10:55:05]SAM_PROTO_ClearQueue done [10:55:05]KKMCreateOFDPacket [10:55:05]OFDProtocolAddRootSTLVToBuf [10:55:05]FM_MakeSignedData [10:55:05]FM_MakeSignedData [10:55:05]SAM_PROTO_SignData [10:55:05]wFMCommunicate request_size=4 [10:55:05]MH_SAM_APDU [10:55:05]CAPDU: 80 0D 01 02 [10:55:05]Write to MH i2c: E2 08 00 59 6C 80 0D 01 02 00 00 00 00 3E [10:55:05]Write i2c OK [10:55:05]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 59 6C 00 90 00 39 [10:55:06]RAPDU: 90 00 [10:55:06]wFMCommunicate OK [10:55:06]wFMCommunicate request_size=255 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 33 00 00 00 F4 03 04 00 9B D5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 17 C0 00 00 35 04 06 00 9E A0 F7 C8 [10:55:06]Write to MH i2c: E2 02 01 5A 6C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 33 00 00 00 F4 03 04 00 9B D5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 17 C0 00 00 35 04 06 00 9E A0 F7 C8 00 00 26 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 5A 6C 00 90 00 3A [10:55:06]RAPDU: 90 00 [10:55:06]wFMCommunicate OK [10:55:06]wFMCommunicate request_size=7 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 0D 02 02 02 83 4E [10:55:06]Write to MH i2c: E2 0A 00 5B 6C 80 0D 02 02 02 00 83 4E 00 00 16 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 5B 6C 00 90 00 3B [10:55:06]RAPDU: 90 00 [10:55:06]wFMCommunicate OK [10:55:06]wFMCommunicate request_size=4 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 0D 03 02 [10:55:06]Write to MH i2c: E2 08 00 5C 6C 80 0D 03 02 00 00 00 00 43 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 0B 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 0B 00 5C 6C 00 16 67 4F D4 DF CE C3 61 90 00 B5 [10:55:06]RAPDU: 16 67 4F D4 DF CE C3 61 90 00 [10:55:06]wFMCommunicate OK [10:55:06]SAM_PROTO_SignData done [10:55:06]FM_MakeSignedData done [10:55:06]CreateOFDProtocolMessage [10:55:06]wFMCommunicate request_size=4 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 11 00 00 [10:55:06]Write to MH i2c: E2 08 00 5D 6C 80 11 00 00 00 00 00 00 43 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 17 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 17 00 5D 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 90 [10:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:06]wFMCommunicate OK [10:55:06]CreateOFDProtocolMessage done [10:55:06]OFDSenderStorePacket 49175 [10:55:06]StoreOFDPacket docnum=49175 [10:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 45 F4 04 01 2A 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 33 00 00 00 F4 03 04 00 9B D5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 17 C0 00 00 35 04 06 00 9E A0 F7 C8 83 4E 16 67 4F D4 DF CE C3 61 [10:55:06]CheckFolder [10:55:06]dirname=/storage/ofd_packets [10:55:06]CheckFolder done [10:55:06]ProducePacketName [10:55:06]name=ofd_packets/00049175 [10:55:06]NVStorageSaveData ofd_packets/00049175 [10:55:06]File name is /storage/ofd_packets/00049175 [10:55:06]Write 298 bytes [10:55:06]NVStorageSaveData done [10:55:06]OFDSenderStorePacket done [10:55:06]KKMCreateOFDPacket done [10:55:06]NVStorageSaveData kkm_last_timestamp [10:55:06]File name is /storage/kkm_last_timestamp [10:55:06]Write 4 bytes [10:55:06]NVStorageSaveData done [10:55:06]ExternCall_PrintAddStr [10:55:06]wPrintStart [10:55:06]Write to MH i2c: 01 00 00 5E 6C CA [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 07 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 07 00 5E 6C 00 00 00 00 00 FF 0F DF [10:55:06]RasterBufferAndPrint [10:55:06]line Счет N : (1)216276 [10:55:06]line ИНН: 02508201610067 [10:55:06]line Контрольно-Кассовый Чек [10:55:06]line ПРОДАЖА [10:55:06]line ТРК (МРК, ГНК) : 21 [10:55:06]line Товар: 2710194210 [10:55:06]line ДТ-К-5 [10:55:06]line 28.620 * 69.90 [10:55:06]line = 2000.54 [10:55:06]line НДС 12% НСП 1% [10:55:06]line > о реализуемом товаре [10:55:06]line ОКРУГЛЕНИЕ: -0.54 [10:55:06]line ИТОГО: 2000.00 [10:55:06]line Внесено: 2000.00 [10:55:06]line СДАЧА: 0.00 [10:55:06]line НСП 1% : 17.70 [10:55:06]line НДС 12% : 212.45 [10:55:06]line Наличными: 2000.00 [10:55:06]line Безнал.: 0.00 [10:55:06]line Место: АЗС № 102 "Партнер Нефть" [10:55:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:55:06]line СНО: Общий режим [10:55:06]line Чек 51 30.01.2024 10:55 [10:55:06]line Смена: 246 ФФД: 1.0 [10:55:06]line ЗНМ: 0300000040 [10:55:06]line РНМ: 0000000000092723 [10:55:06]line Версия ККМ: 001 [10:55:06]line ФМ: 0000000000875060 [10:55:06]line ФД: 49175 [10:55:06]line ФПД: 174414189069134 [10:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T105523&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49175&fm=174414189069134&tin=02508201610067®Number=0000000000092723&sum=200000 [10:55:06]OFD Sender: Processing packet 49175 [packets to send 12, broken 11] [10:55:06]ProducePacketName [10:55:06]name=ofd_packets/00049175 [10:55:06]OFD Sender: To server: pG, [10:55:06]CommunicateWithHost lk.salyk.kg:30040 [10:55:06]ConnectInit lk.salyk.kg [10:55:06]written 0, free lines is 4095 [10:55:06]Connected sock=10 [10:55:06]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 36 30 0C 01 00 00 45 F4 04 01 2A 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 33 00 00 00 F4 03 04 00 9B D5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 17 C0 00 00 35 04 06 00 9E A0 F7 C8 83 4E 16 67 4F D4 DF CE C3 61 [10:55: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 36 30 4F 00 00 00 E4 6A 47 00 1E 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 36 30 10 04 04 00 17 C0 00 00 F4 03 04 00 90 81 B8 65 B6 04 01 00 00 8C 0A 26 35 D3 13 9D 2A [10:55:07]CommunicateWithHost err = 0 [10:55:07]CheckOFDResponse [10:55:07]1017 (14) - 77093643461234 [10:55:07]1041 (16) - 0000000000875060 [10:55:07]1040 (4) - 49175 [10:55:07]1012 (4) - 30.01.2024 04:56 [10:55:07]1206 (1) - 0 [10:55:07]OFD Sender: Remove packet 49175 [10:55:07]ProducePacketName [10:55:07]name=ofd_packets/00049175 [10:55:07]NVStorageDeleteData [10:55:07]Write to MH i2c: 01 00 00 89 6C F5 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 07 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 07 00 89 6C 00 00 00 00 00 E6 0C EE [10:55:07]RasterBufferAndPrint [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]written 0, free lines is 3308 [10:55:07]MH_Cut [10:55:07]Write to MH i2c: D1 01 00 90 6C 01 CE [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 01 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 01 00 90 6C 00 CD [10:55:07]Write to MH i2c: 01 00 00 91 6C FD [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]OFD Sender: No OFD packet to send [10:55:07]*** Cut start [10:55:07]*** Partial cut [10:55:07]*** CUTSNS_PIN = 1 [10:55:07]*** CUTSNS_PIN = 0 [10:55:08]*** Brake cut motor [10:55:08]Read from MH i2c: 01 [10:55:08]MH_I2C_Read... [10:55:08]*** Stop cut motor [10:55:08]*** Cut end [10:55:08]Read from MH i2c: 01 07 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 91 6C 00 00 00 00 00 FF 0F 12 [10:55:08]process_action close_receipt done [10:55:08]requested_data is exist [10:55:08]produce_requested_data [10:55:08]requested_item fm.sn is exist - process it [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 11 00 00 [10:55:08]Write to MH i2c: E2 08 00 92 6C 80 11 00 00 00 00 00 00 78 [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 92 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C5 [10:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:08]wFMCommunicate OK [10:55:08]requested_item fd.num is exist - process it [10:55:08]SAM_PROTO_GetFieldsCounters [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 13 00 00 [10:55:08]Write to MH i2c: E2 08 00 93 6C 80 13 00 00 00 00 00 00 7B [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 62 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 62 00 93 6C 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 17 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10:55: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 17 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_GetFieldsCounters done [10:55:08]requested_item shift.num is exist - process it [10:55:08]requested_item shift.opened is exist - process it [10:55:08]req_shift_opened [10:55:08]FM_GetShiftState [10:55:08]SAM_PROTO_GetShiftState [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 13 01 00 [10:55:08]Write to MH i2c: E2 08 00 94 6C 80 13 01 00 00 00 00 00 7D [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0E 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0E 00 94 6C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A5 [10:55:08]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_GetShiftState done [10:55:08]FM_GetShiftState done [10:55:08]req_shift_opened done [10:55:08]requested_item shift.open_date is exist - process it [10:55:08]req_shift_open_date [10:55:08]req_shift_open_date done [10:55:08]produce_requested_data done [10:55:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49175,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:55:08]process_action_free close_receipt [10:55:08]json_value_free [10:55:08]json_value_free done [10:55:08]process_json_proto returns [10:55:08]Send response to host [10:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49175,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:55:08]free response buf [10:55:08]execute_script done [10:55:08]execute_script returns [10:55:08]free content buf [10:55:08]Sock 7.Close socket [10:55:08]Sock 7.Thread stoped [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:49]accept exits with 9 [10:55:49]New connection [10:55:49]New thread 3066813796 created [10:55:49]Thread 3066670436 joined [10:55:49]Waiting for new connection... [10:55:49] Sock 9.Parse request [10:55:49]Sock 9.Check first char [10:55:49]Sock 9.First char is OK [10:55:49]request: POST /json_proto HTTP/1.0 [10:55:49]Method: POST [10:55:49]URL: /json_proto [10:55:49]Method is POST - this is cgi request [10:55:49]url: /json_proto [10:55:49]query_string will be loaded in cgi processing [10:55:49]execute_cgi json_proto POST (null) [10:55:49]execute_cgi path=json_proto method=POST [10:55:49]POST find Content-Length [10:55:49]Host: 172.17.56.67:8080 [10:55:49]Content-Length: 677 [10:55:49]Content-Type: application/json [10:55:49] [10:55:49]POST finish read [10:55:49]Found Content-Length = 677 [10:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:49]execute_script... [10:55:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:49]POST & json_proto [10:55:49]process_json_proto [10:55:49]json parsed OK: [10:55:49]protocol is kg_v1.0 [10:55:49]action value=close_receipt [10:55:49]process_action close_receipt [10:55:49]cmd_close_receipt [10:55:49]MH_GetDate [10:55:49]Write to MH i2c: F0 00 00 95 6C F0 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: F0 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: F0 09 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: F0 09 00 95 6C 00 C7 D5 B8 65 26 5D 9E 65 38 [10:55:49]GetLastDocTimeStamp 1706612123 [10:55:49]current date 1706612167 [10:55:49]FM_GetShiftState [10:55:49]SAM_PROTO_GetShiftState [10:55:49]wFMCommunicate request_size=4 [10:55:49]MH_SAM_APDU [10:55:49]CAPDU: 80 13 01 00 [10:55:49]Write to MH i2c: E2 08 00 96 6C 80 13 01 00 00 00 00 00 7F [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 0E 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 0E 00 96 6C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A7 [10:55:49]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:55:49]wFMCommunicate OK [10:55:49]SAM_PROTO_GetShiftState done [10:55:49]FM_GetShiftState done [10:55:49]opened in 1706572995 [10:55:49]opened+sec_in_day 1706659395 [10:55:49]quantity*price = 50049 [10:55:49]sum+1 = 50050 [10:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 52 30.01.2024 10:56 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49176 ФПД: 246010278718825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T105607&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49176&fm=246010278718825&tin=02508201610067®Number=0000000000092723&sum=50000 [10:55:50]StoreToDocumentArchive [10:55:50]shift 246 fd 49176 [10:55:50]save to /storage/0246/doc_00049176 [10:55:50]save last doc name /storage/0246/doc_00049176 to /storage/kkm_last_doc_name [10:55:50]save OK [10:55:50]Clear old archive folders... [10:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:50]tlvbuf is 0119A280 [10:55:50]SAM_PROTO_ClearQueue [10:55:50]wFMCommunicate request_size=4 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 09 00 00 [10:55:50]Write to MH i2c: E2 08 00 A3 6C 80 09 00 00 00 00 00 00 81 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 A3 6C 00 90 00 83 [10:55:50]RAPDU: 90 00 [10:55:50]wFMCommunicate OK [10:55:50]SAM_PROTO_ClearQueue done [10:55:50]KKMCreateOFDPacket [10:55:50]OFDProtocolAddRootSTLVToBuf [10:55:50]FM_MakeSignedData [10:55:50]FM_MakeSignedData [10:55:50]SAM_PROTO_SignData [10:55:50]wFMCommunicate request_size=4 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 0D 01 02 [10:55:50]Write to MH i2c: E2 08 00 A4 6C 80 0D 01 02 00 00 00 00 89 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 A4 6C 00 90 00 84 [10:55:50]RAPDU: 90 00 [10:55:50]wFMCommunicate OK [10:55:50]wFMCommunicate request_size=255 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 C7 D5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 C0 00 00 35 04 06 00 DF [10:55:50]Write to MH i2c: E2 02 01 A5 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 C7 D5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 C0 00 00 35 04 06 00 DF 00 00 53 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 A5 6C 00 90 00 85 [10:55:50]RAPDU: 90 00 [10:55:50]wFMCommunicate OK [10:55:50]wFMCommunicate request_size=10 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 0D 02 02 05 BE BB 46 2D 69 [10:55:50]Write to MH i2c: E2 0D 00 A6 6C 80 0D 02 02 05 00 BE BB 46 2D 69 00 00 EB [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 A6 6C 00 90 00 86 [10:55:50]RAPDU: 90 00 [10:55:50]wFMCommunicate OK [10:55:50]wFMCommunicate request_size=4 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 0D 03 02 [10:55:50]Write to MH i2c: E2 08 00 A7 6C 80 0D 03 02 00 00 00 00 8E [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 0B 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 0B 00 A7 6C 00 62 5D EB 42 26 B5 27 0C 90 00 89 [10:55:50]RAPDU: 62 5D EB 42 26 B5 27 0C 90 00 [10:55:50]wFMCommunicate OK [10:55:50]SAM_PROTO_SignData done [10:55:50]FM_MakeSignedData done [10:55:50]CreateOFDProtocolMessage [10:55:50]wFMCommunicate request_size=4 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 11 00 00 [10:55:50]Write to MH i2c: E2 08 00 A8 6C 80 11 00 00 00 00 00 00 8E [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 17 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 17 00 A8 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DB [10:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:50]wFMCommunicate OK [10:55:50]CreateOFDProtocolMessage done [10:55:50]OFDSenderStorePacket 49176 [10:55:50]StoreOFDPacket docnum=49176 [10:55:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 45 B9 07 01 6D 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 C7 D5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 C0 00 00 35 04 06 00 DF BE BB 46 2D 69 62 5D EB 42 26 B5 27 0C [10:55:50]CheckFolder [10:55:50]dirname=/storage/ofd_packets [10:55:50]CheckFolder done [10:55:50]ProducePacketName [10:55:50]name=ofd_packets/00049176 [10:55:50]NVStorageSaveData ofd_packets/00049176 [10:55:50]File name is /storage/ofd_packets/00049176 [10:55:50]Write 301 bytes [10:55:50]NVStorageSaveData done [10:55:50]OFDSenderStorePacket done [10:55:50]KKMCreateOFDPacket done [10:55:50]NVStorageSaveData kkm_last_timestamp [10:55:50]File name is /storage/kkm_last_timestamp [10:55:50]Write 4 bytes [10:55:50]NVStorageSaveData done [10:55:50]ExternCall_PrintAddStr [10:55:50]wPrintStart [10:55:50]Write to MH i2c: 01 00 00 A9 6C 15 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 07 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 07 00 A9 6C 00 00 00 00 00 FF 0F 2A [10:55:50]RasterBufferAndPrint [10:55:50]line Счет N : (1)216277 [10:55:50]line ИНН: 02508201610067 [10:55:50]line Контрольно-Кассовый Чек [10:55:50]line ПРОДАЖА [10:55:50]line ТРК (МРК, ГНК) : 12 [10:55:50]line Товар: 2710124130 [10:55:50]line Аи-92-К-5 [10:55:50]line 8.300 * 60.30 [10:55:50]line = 500.49 [10:55:50]line НДС 12% НСП 1% [10:55:50]line > о реализуемом товаре [10:55:50]line ОКРУГЛЕНИЕ: -0.49 [10:55:50]line ИТОГО: 500.00 [10:55:50]line Внесено: 500.00 [10:55:50]line СДАЧА: 0.00 [10:55:50]line НСП 1% : 4.43 [10:55:50]line НДС 12% : 53.15 [10:55:50]line Наличными: 500.00 [10:55:50]line Безнал.: 0.00 [10:55:50]line Место: АЗС № 102 "Партнер Нефть" [10:55:50]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:55:50]line СНО: Общий режим [10:55:50]line Чек 52 30.01.2024 10:56 [10:55:50]line Смена: 246 ФФД: 1.0 [10:55:50]line ЗНМ: 0300000040 [10:55:50]line РНМ: 0000000000092723 [10:55:50]line Версия ККМ: 001 [10:55:50]line ФМ: 0000000000875060 [10:55:50]line ФД: 49176 [10:55:50]line ФПД: 246010278718825 [10:55:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T105607&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49176&fm=246010278718825&tin=02508201610067®Number=0000000000092723&sum=50000 [10:55:51]OFD Sender: Processing packet 49176 [packets to send 12, broken 11] [10:55:51]ProducePacketName [10:55:51]name=ofd_packets/00049176 [10:55:51]OFD Sender: To server: pG, [10:55:51]CommunicateWithHost lk.salyk.kg:30040 [10:55:51]ConnectInit lk.salyk.kg [10:55:51]written 0, free lines is 4095 [10:55:51]Connected sock=10 [10:55: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 36 30 0F 01 00 00 45 B9 07 01 6D 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 C7 D5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 C0 00 00 35 04 06 00 DF BE BB 46 2D 69 62 5D EB 42 26 B5 27 0C [10:55: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 36 30 4F 00 00 00 D8 84 47 00 B6 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 C0 00 00 F4 03 04 00 BD 81 B8 65 B6 04 01 00 00 7C C9 D3 D8 1D 89 6A 71 [10:55:51]CommunicateWithHost err = 0 [10:55:51]CheckOFDResponse [10:55:51]1017 (14) - 77093643461234 [10:55:51]1041 (16) - 0000000000875060 [10:55:51]1040 (4) - 49176 [10:55:51]1012 (4) - 30.01.2024 04:57 [10:55:51]1206 (1) - 0 [10:55:51]OFD Sender: Remove packet 49176 [10:55:51]ProducePacketName [10:55:51]name=ofd_packets/00049176 [10:55:51]NVStorageDeleteData [10:55:51]Write to MH i2c: 01 00 00 D4 6C 40 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 D4 6C 00 00 00 00 00 FB 0C 4E [10:55:51]RasterBufferAndPrint [10:55:51]line [10:55:51]line [10:55:51]line [10:55:51]line [10:55:51]line [10:55:51]written 0, free lines is 3329 [10:55:51]MH_Cut [10:55:51]Write to MH i2c: D1 01 00 DB 6C 01 19 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: D1 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: D1 01 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: D1 01 00 DB 6C 00 18 [10:55:51]Write to MH i2c: 01 00 00 DC 6C 48 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:52]OFD Sender: No OFD packet to send [10:55:52]*** Cut start [10:55:52]*** Partial cut [10:55:52]*** CUTSNS_PIN = 1 [10:55:52]*** CUTSNS_PIN = 0 [10:55:52]*** Brake cut motor [10:55:52]Read from MH i2c: 01 [10:55:53]MH_I2C_Read... [10:55:53]*** Stop cut motor [10:55:53]*** Cut end [10:55:53]Read from MH i2c: 01 07 00 [10:55:53]MH_I2C_Read... [10:55:53]Read from MH i2c: 01 07 00 DC 6C 00 00 00 00 00 FF 0F 5D [10:55:53]process_action close_receipt done [10:55:53]requested_data is exist [10:55:53]produce_requested_data [10:55:53]requested_item fm.sn is exist - process it [10:55:53]wFMCommunicate request_size=4 [10:55:53]MH_SAM_APDU [10:55:53]CAPDU: 80 11 00 00 [10:55:53]Write to MH i2c: E2 08 00 DD 6C 80 11 00 00 00 00 00 00 C3 [10:55:53]Write i2c OK [10:55:53]MH_I2C_Read... [10:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:53]Read from MH i2c: E2 [10:55:53]MH_I2C_Read... [10:55:53]Read from MH i2c: E2 17 00 [10:55:53]MH_I2C_Read... [10:55:53]Read from MH i2c: E2 17 00 DD 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 10 [10:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:53]wFMCommunicate OK [10:55:53]requested_item fd.num is exist - process it [10:55:53]SAM_PROTO_GetFieldsCounters [10:55:53]wFMCommunicate request_size=4 [10:55:53]MH_SAM_APDU [10:55:53]CAPDU: 80 13 00 00 [10:55:53]Write to MH i2c: E2 08 00 DE 6C 80 13 00 00 00 00 00 00 C6 [10:55:53]Write i2c OK [10:55:53]MH_I2C_Read... [10:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:53]Read from MH i2c: E2 [10:55:53]MH_I2C_Read... [10:55:53]Read from MH i2c: E2 62 00 [10:55:53]MH_I2C_Read... [10:55:53]Read from MH i2c: E2 62 00 DE 6C 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 18 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [10:55: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 18 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:53]wFMCommunicate OK [10:55:53]SAM_PROTO_GetFieldsCounters done [10:55:53]requested_item shift.num is exist - process it [10:55:53]requested_item shift.opened is exist - process it [10:55:53]req_shift_opened [10:55:53]FM_GetShiftState [10:55:53]SAM_PROTO_GetShiftState [10:55:53]wFMCommunicate request_size=4 [10:55:53]MH_SAM_APDU [10:55:53]CAPDU: 80 13 01 00 [10:55:53]Write to MH i2c: E2 08 00 DF 6C 80 13 01 00 00 00 00 00 C8 [10:55:53]Write i2c OK [10:55:53]MH_I2C_Read... [10:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:53]Read from MH i2c: E2 [10:55:53]MH_I2C_Read... [10:55:53]Read from MH i2c: E2 0E 00 [10:55:53]MH_I2C_Read... [10:55:53]Read from MH i2c: E2 0E 00 DF 6C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F0 [10:55:53]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:55:53]wFMCommunicate OK [10:55:53]SAM_PROTO_GetShiftState done [10:55:53]FM_GetShiftState done [10:55:53]req_shift_opened done [10:55:53]requested_item shift.open_date is exist - process it [10:55:53]req_shift_open_date [10:55:53]req_shift_open_date done [10:55:53]produce_requested_data done [10:55:53]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49176,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:55:53]process_action_free close_receipt [10:55:53]json_value_free [10:55:53]json_value_free done [10:55:53]process_json_proto returns [10:55:53]Send response to host [10:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49176,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:55:53]free response buf [10:55:53]execute_script done [10:55:53]execute_script returns [10:55:53]free content buf [10:55:53]Sock 9.Close socket [10:55:53]Sock 9.Thread stoped [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:33]accept exits with 7 [10:57:33]New connection [10:57:33]New thread 3066670436 created [10:57:33]Thread 3066813796 joined [10:57:33]Waiting for new connection... [10:57:33] Sock 7.Parse request [10:57:33]Sock 7.Check first char [10:57:33]Sock 7.First char is OK [10:57:33]request: POST /json_proto HTTP/1.0 [10:57:33]Method: POST [10:57:33]URL: /json_proto [10:57:33]Method is POST - this is cgi request [10:57:33]url: /json_proto [10:57:33]query_string will be loaded in cgi processing [10:57:33]execute_cgi json_proto POST (null) [10:57:33]execute_cgi path=json_proto method=POST [10:57:33]POST find Content-Length [10:57:33]Host: 172.17.56.67:8080 [10:57:33]Content-Length: 677 [10:57:33]Content-Type: application/json [10:57:33] [10:57:33]POST finish read [10:57:33]Found Content-Length = 677 [10:57:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:33]execute_script... [10:57: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)216279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:33]POST & json_proto [10:57:33]process_json_proto [10:57:33]json parsed OK: [10:57:33]protocol is kg_v1.0 [10:57:33]action value=close_receipt [10:57:33]process_action close_receipt [10:57:33]cmd_close_receipt [10:57:33]MH_GetDate [10:57:33]Write to MH i2c: F0 00 00 E0 6C 3B [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: F0 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: F0 09 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: F0 09 00 E0 6C 00 2F D6 B8 65 26 5D 9E 65 EC [10:57:33]GetLastDocTimeStamp 1706612167 [10:57:33]current date 1706612271 [10:57:33]FM_GetShiftState [10:57:33]SAM_PROTO_GetShiftState [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 13 01 00 [10:57:33]Write to MH i2c: E2 08 00 E1 6C 80 13 01 00 00 00 00 00 CA [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0E 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0E 00 E1 6C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F2 [10:57:33]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_GetShiftState done [10:57:33]FM_GetShiftState done [10:57:33]opened in 1706572995 [10:57:33]opened+sec_in_day 1706659395 [10:57:33]quantity*price = 50049 [10:57:33]sum+1 = 50050 [10:57:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 53 30.01.2024 10:57 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49177 ФПД: 244796749859631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T105751&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49177&fm=244796749859631&tin=02508201610067®Number=0000000000092723&sum=50000 [10:57:34]StoreToDocumentArchive [10:57:34]shift 246 fd 49177 [10:57:34]save to /storage/0246/doc_00049177 [10:57:34]save last doc name /storage/0246/doc_00049177 to /storage/kkm_last_doc_name [10:57:34]save OK [10:57:34]Clear old archive folders... [10:57:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:34]tlvbuf is 011DB270 [10:57:34]SAM_PROTO_ClearQueue [10:57:34]wFMCommunicate request_size=4 [10:57:34]MH_SAM_APDU [10:57:34]CAPDU: 80 09 00 00 [10:57:34]Write to MH i2c: E2 08 00 EE 6C 80 09 00 00 00 00 00 00 CC [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:34]Read from MH i2c: E2 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 03 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 03 00 EE 6C 00 90 00 CE [10:57:34]RAPDU: 90 00 [10:57:34]wFMCommunicate OK [10:57:34]SAM_PROTO_ClearQueue done [10:57:34]KKMCreateOFDPacket [10:57:34]OFDProtocolAddRootSTLVToBuf [10:57:34]FM_MakeSignedData [10:57:34]FM_MakeSignedData [10:57:34]SAM_PROTO_SignData [10:57:34]wFMCommunicate request_size=4 [10:57:34]MH_SAM_APDU [10:57:34]CAPDU: 80 0D 01 02 [10:57:34]Write to MH i2c: E2 08 00 EF 6C 80 0D 01 02 00 00 00 00 D4 [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:34]Read from MH i2c: E2 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 03 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 03 00 EF 6C 00 90 00 CF [10:57:34]RAPDU: 90 00 [10:57:34]wFMCommunicate OK [10:57:34]wFMCommunicate request_size=255 [10:57:34]MH_SAM_APDU [10:57:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F D6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 19 C0 00 00 35 04 06 00 DE [10:57:34]Write to MH i2c: E2 02 01 F0 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F D6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 19 C0 00 00 35 04 06 00 DE 00 00 08 [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:34]Read from MH i2c: E2 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 03 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: E2 03 00 F0 6C 00 90 00 D0 [10:57:34]RAPDU: 90 00 [10:57:34]wFMCommunicate OK [10:57:34]wFMCommunicate request_size=10 [10:57:34]MH_SAM_APDU [10:57:34]CAPDU: 80 0D 02 02 05 A4 2F 51 4B 2F [10:57:34]Write to MH i2c: E2 0D 00 F1 6C 80 0D 02 02 05 00 A4 2F 51 4B 2F 00 00 7F [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:35]Read from MH i2c: E2 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 03 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 03 00 F1 6C 00 90 00 D1 [10:57:35]RAPDU: 90 00 [10:57:35]wFMCommunicate OK [10:57:35]wFMCommunicate request_size=4 [10:57:35]MH_SAM_APDU [10:57:35]CAPDU: 80 0D 03 02 [10:57:35]Write to MH i2c: E2 08 00 F2 6C 80 0D 03 02 00 00 00 00 D9 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:35]Read from MH i2c: E2 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 0B 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 0B 00 F2 6C 00 0A E6 D3 36 E5 1B 2F 3B 90 00 3D [10:57:35]RAPDU: 0A E6 D3 36 E5 1B 2F 3B 90 00 [10:57:35]wFMCommunicate OK [10:57:35]SAM_PROTO_SignData done [10:57:35]FM_MakeSignedData done [10:57:35]CreateOFDProtocolMessage [10:57:35]wFMCommunicate request_size=4 [10:57:35]MH_SAM_APDU [10:57:35]CAPDU: 80 11 00 00 [10:57:35]Write to MH i2c: E2 08 00 F3 6C 80 11 00 00 00 00 00 00 D9 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:35]Read from MH i2c: E2 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 17 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 17 00 F3 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 26 [10:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:57:35]wFMCommunicate OK [10:57:35]CreateOFDProtocolMessage done [10:57:35]OFDSenderStorePacket 49177 [10:57:35]StoreOFDPacket docnum=49177 [10:57:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CC E4 07 01 71 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F D6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 19 C0 00 00 35 04 06 00 DE A4 2F 51 4B 2F 0A E6 D3 36 E5 1B 2F 3B [10:57:35]CheckFolder [10:57:35]dirname=/storage/ofd_packets [10:57:35]CheckFolder done [10:57:35]ProducePacketName [10:57:35]name=ofd_packets/00049177 [10:57:35]NVStorageSaveData ofd_packets/00049177 [10:57:35]File name is /storage/ofd_packets/00049177 [10:57:35]Write 301 bytes [10:57:35]NVStorageSaveData done [10:57:35]OFDSenderStorePacket done [10:57:35]KKMCreateOFDPacket done [10:57:35]NVStorageSaveData kkm_last_timestamp [10:57:35]File name is /storage/kkm_last_timestamp [10:57:35]Write 4 bytes [10:57:35]NVStorageSaveData done [10:57:35]ExternCall_PrintAddStr [10:57:35]wPrintStart [10:57:35]Write to MH i2c: 01 00 00 F4 6C 60 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: 01 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: 01 07 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: 01 07 00 F4 6C 00 00 00 00 00 FF 0F 75 [10:57:35]RasterBufferAndPrint [10:57:35]line Счет N : (1)216279 [10:57:35]line ИНН: 02508201610067 [10:57:35]line Контрольно-Кассовый Чек [10:57:35]line ПРОДАЖА [10:57:35]line ТРК (МРК, ГНК) : 12 [10:57:35]line Товар: 2710124130 [10:57:35]line Аи-92-К-5 [10:57:35]line 8.300 * 60.30 [10:57:35]line = 500.49 [10:57:35]line НДС 12% НСП 1% [10:57:35]line > о реализуемом товаре [10:57:35]line ОКРУГЛЕНИЕ: -0.49 [10:57:35]line ИТОГО: 500.00 [10:57:35]line Внесено: 500.00 [10:57:35]line СДАЧА: 0.00 [10:57:35]line НСП 1% : 4.43 [10:57:35]line НДС 12% : 53.15 [10:57:35]line Наличными: 500.00 [10:57:35]line Безнал.: 0.00 [10:57:35]line Место: АЗС № 102 "Партнер Нефть" [10:57:35]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:57:35]line СНО: Общий режим [10:57:35]line Чек 53 30.01.2024 10:57 [10:57:35]line Смена: 246 ФФД: 1.0 [10:57:35]line ЗНМ: 0300000040 [10:57:35]line РНМ: 0000000000092723 [10:57:35]line Версия ККМ: 001 [10:57:35]line ФМ: 0000000000875060 [10:57:35]line ФД: 49177 [10:57:35]line ФПД: 244796749859631 [10:57:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T105751&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49177&fm=244796749859631&tin=02508201610067®Number=0000000000092723&sum=50000 [10:57:35]written 0, free lines is 4095 [10:57:35]OFD Sender: Processing packet 49177 [packets to send 12, broken 11] [10:57:35]ProducePacketName [10:57:35]name=ofd_packets/00049177 [10:57:35]OFD Sender: To server: pG, [10:57:35]CommunicateWithHost lk.salyk.kg:30040 [10:57:35]ConnectInit lk.salyk.kg [10:57:35]Connected sock=10 [10:57: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 36 30 0F 01 00 00 CC E4 07 01 71 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F D6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 19 C0 00 00 35 04 06 00 DE A4 2F 51 4B 2F 0A E6 D3 36 E5 1B 2F 3B [10:57: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 36 30 4F 00 00 00 17 44 47 00 2D 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 36 30 10 04 04 00 19 C0 00 00 F4 03 04 00 25 82 B8 65 B6 04 01 00 00 44 6A DA 3E C5 23 66 7A [10:57:35]CommunicateWithHost err = 0 [10:57:35]CheckOFDResponse [10:57:35]1017 (14) - 77093643461234 [10:57:35]1041 (16) - 0000000000875060 [10:57:35]1040 (4) - 49177 [10:57:35]1012 (4) - 30.01.2024 04:59 [10:57:35]1206 (1) - 0 [10:57:35]OFD Sender: Remove packet 49177 [10:57:35]ProducePacketName [10:57:35]name=ofd_packets/00049177 [10:57:35]NVStorageDeleteData [10:57:35]Write to MH i2c: 01 00 00 1F 6D 8C [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: 01 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: 01 07 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: 01 07 00 1F 6D 00 00 00 00 00 F8 0C 97 [10:57:35]RasterBufferAndPrint [10:57:35]line [10:57:35]line [10:57:35]line [10:57:35]line [10:57:35]line [10:57:35]written 0, free lines is 3327 [10:57:35]MH_Cut [10:57:35]Write to MH i2c: D1 01 00 26 6D 01 65 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: D1 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: D1 01 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: D1 01 00 26 6D 00 64 [10:57:35]Write to MH i2c: 01 00 00 27 6D 94 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:36]OFD Sender: No OFD packet to send [10:57:36]*** Cut start [10:57:36]*** Partial cut [10:57:36]*** CUTSNS_PIN = 1 [10:57:36]*** CUTSNS_PIN = 0 [10:57:36]*** Brake cut motor [10:57:37]Read from MH i2c: 01 [10:57:37]MH_I2C_Read... [10:57:37]*** Stop cut motor [10:57:37]*** Cut end [10:57:37]Read from MH i2c: 01 07 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: 01 07 00 27 6D 00 00 00 00 00 FF 0F A9 [10:57:37]process_action close_receipt done [10:57:37]requested_data is exist [10:57:37]produce_requested_data [10:57:37]requested_item fm.sn is exist - process it [10:57:37]wFMCommunicate request_size=4 [10:57:37]MH_SAM_APDU [10:57:37]CAPDU: 80 11 00 00 [10:57:37]Write to MH i2c: E2 08 00 28 6D 80 11 00 00 00 00 00 00 0F [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:37]Read from MH i2c: E2 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 17 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 17 00 28 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5C [10:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:57:37]wFMCommunicate OK [10:57:37]requested_item fd.num is exist - process it [10:57:37]SAM_PROTO_GetFieldsCounters [10:57:37]wFMCommunicate request_size=4 [10:57:37]MH_SAM_APDU [10:57:37]CAPDU: 80 13 00 00 [10:57:37]Write to MH i2c: E2 08 00 29 6D 80 13 00 00 00 00 00 00 12 [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:37]Read from MH i2c: E2 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 62 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 62 00 29 6D 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 19 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:57:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 19 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:37]wFMCommunicate OK [10:57:37]SAM_PROTO_GetFieldsCounters done [10:57:37]requested_item shift.num is exist - process it [10:57:37]requested_item shift.opened is exist - process it [10:57:37]req_shift_opened [10:57:37]FM_GetShiftState [10:57:37]SAM_PROTO_GetShiftState [10:57:37]wFMCommunicate request_size=4 [10:57:37]MH_SAM_APDU [10:57:37]CAPDU: 80 13 01 00 [10:57:37]Write to MH i2c: E2 08 00 2A 6D 80 13 01 00 00 00 00 00 14 [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:37]Read from MH i2c: E2 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 0E 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 0E 00 2A 6D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3C [10:57:37]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:57:37]wFMCommunicate OK [10:57:37]SAM_PROTO_GetShiftState done [10:57:37]FM_GetShiftState done [10:57:37]req_shift_opened done [10:57:37]requested_item shift.open_date is exist - process it [10:57:37]req_shift_open_date [10:57:37]req_shift_open_date done [10:57:37]produce_requested_data done [10:57:37]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49177,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:57:37]process_action_free close_receipt [10:57:37]json_value_free [10:57:37]json_value_free done [10:57:37]process_json_proto returns [10:57:37]Send response to host [10:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49177,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:57:37]free response buf [10:57:37]execute_script done [10:57:37]execute_script returns [10:57:37]free content buf [10:57:37]Sock 7.Close socket [10:57:37]Sock 7.Thread stoped [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:17]accept exits with 9 [10:58:17]New connection [10:58:17]New thread 3066813796 created [10:58:17]Thread 3066670436 joined [10:58:17]Waiting for new connection... [10:58:17] Sock 9.Parse request [10:58:17]Sock 9.Check first char [10:58:17]Sock 9.First char is OK [10:58:17]request: POST /json_proto HTTP/1.0 [10:58:17]Method: POST [10:58:17]URL: /json_proto [10:58:17]Method is POST - this is cgi request [10:58:17]url: /json_proto [10:58:17]query_string will be loaded in cgi processing [10:58:17]execute_cgi json_proto POST (null) [10:58:17]execute_cgi path=json_proto method=POST [10:58:17]POST find Content-Length [10:58:17]Host: 172.17.56.67:8080 [10:58:17]Content-Length: 677 [10:58:17]Content-Type: application/json [10:58:17] [10:58:17]POST finish read [10:58:17]Found Content-Length = 677 [10:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.970, "sum" : 420.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:17]execute_script... [10:58:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.970, "sum" : 420.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:17]POST & json_proto [10:58:17]process_json_proto [10:58:17]json parsed OK: [10:58:17]protocol is kg_v1.0 [10:58:17]action value=close_receipt [10:58:17]process_action close_receipt [10:58:17]cmd_close_receipt [10:58:17]MH_GetDate [10:58:17]Write to MH i2c: F0 00 00 2B 6D 87 [10:58:17]Write i2c OK [10:58:17]MH_I2C_Read... [10:58:17]Read from MH i2c: F0 [10:58:17]MH_I2C_Read... [10:58:17]Read from MH i2c: F0 09 00 [10:58:17]MH_I2C_Read... [10:58:17]Read from MH i2c: F0 09 00 2B 6D 00 5C D6 B8 65 26 5D 9E 65 65 [10:58:17]GetLastDocTimeStamp 1706612271 [10:58:17]current date 1706612316 [10:58:17]FM_GetShiftState [10:58:17]SAM_PROTO_GetShiftState [10:58:17]wFMCommunicate request_size=4 [10:58:17]MH_SAM_APDU [10:58:17]CAPDU: 80 13 01 00 [10:58:17]Write to MH i2c: E2 08 00 2C 6D 80 13 01 00 00 00 00 00 16 [10:58:17]Write i2c OK [10:58:17]MH_I2C_Read... [10:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:17]Read from MH i2c: E2 [10:58:17]MH_I2C_Read... [10:58:17]Read from MH i2c: E2 0E 00 [10:58:17]MH_I2C_Read... [10:58:17]Read from MH i2c: E2 0E 00 2C 6D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3E [10:58:17]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:58:17]wFMCommunicate OK [10:58:17]SAM_PROTO_GetShiftState done [10:58:17]FM_GetShiftState done [10:58:17]opened in 1706572995 [10:58:17]opened+sec_in_day 1706659395 [10:58:17]quantity*price = 42029 [10:58:17]sum+1 = 42030 [10:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.63 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 54 30.01.2024 10:58 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49178 ФПД: 239568408127922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T105836&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49178&fm=239568408127922&tin=02508201610067®Number=0000000000092723&sum=42000 [10:58:18]StoreToDocumentArchive [10:58:18]shift 246 fd 49178 [10:58:18]save to /storage/0246/doc_00049178 [10:58:18]save last doc name /storage/0246/doc_00049178 to /storage/kkm_last_doc_name [10:58:18]save OK [10:58:18]Clear old archive folders... [10:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:18]tlvbuf is B6D86220 [10:58:18]SAM_PROTO_ClearQueue [10:58:18]wFMCommunicate request_size=4 [10:58:18]MH_SAM_APDU [10:58:18]CAPDU: 80 09 00 00 [10:58:18]Write to MH i2c: E2 08 00 39 6D 80 09 00 00 00 00 00 00 18 [10:58:18]Write i2c OK [10:58:18]MH_I2C_Read... [10:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:18]Read from MH i2c: E2 [10:58:18]MH_I2C_Read... [10:58:18]Read from MH i2c: E2 03 00 [10:58:18]MH_I2C_Read... [10:58:18]Read from MH i2c: E2 03 00 39 6D 00 90 00 1A [10:58:18]RAPDU: 90 00 [10:58:18]wFMCommunicate OK [10:58:18]SAM_PROTO_ClearQueue done [10:58:18]KKMCreateOFDPacket [10:58:18]OFDProtocolAddRootSTLVToBuf [10:58:18]FM_MakeSignedData [10:58:18]FM_MakeSignedData [10:58:18]SAM_PROTO_SignData [10:58:18]wFMCommunicate request_size=4 [10:58:18]MH_SAM_APDU [10:58:18]CAPDU: 80 0D 01 02 [10:58:18]Write to MH i2c: E2 08 00 3A 6D 80 0D 01 02 00 00 00 00 20 [10:58:18]Write i2c OK [10:58:18]MH_I2C_Read... [10:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:18]Read from MH i2c: E2 [10:58:18]MH_I2C_Read... [10:58:18]Read from MH i2c: E2 03 00 [10:58:18]MH_I2C_Read... [10:58:18]Read from MH i2c: E2 03 00 3A 6D 00 90 00 1B [10:58:18]RAPDU: 90 00 [10:58:18]wFMCommunicate OK [10:58:18]wFMCommunicate request_size=255 [10:58:18]MH_SAM_APDU [10:58:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 5C D6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A C0 00 00 35 04 06 00 D9 [10:58:19]Write to MH i2c: E2 02 01 3B 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 5C D6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A C0 00 00 35 04 06 00 D9 00 00 78 [10:58:19]Write i2c OK [10:58:19]MH_I2C_Read... [10:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:19]Read from MH i2c: E2 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: E2 03 00 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: E2 03 00 3B 6D 00 90 00 1C [10:58:19]RAPDU: 90 00 [10:58:19]wFMCommunicate OK [10:58:19]wFMCommunicate request_size=10 [10:58:19]MH_SAM_APDU [10:58:19]CAPDU: 80 0D 02 02 05 E2 DD DD A9 B2 [10:58:19]Write to MH i2c: E2 0D 00 3C 6D 80 0D 02 02 05 00 E2 DD DD A9 B2 00 00 24 [10:58:19]Write i2c OK [10:58:19]MH_I2C_Read... [10:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:19]Read from MH i2c: E2 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: E2 03 00 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: E2 03 00 3C 6D 00 90 00 1D [10:58:19]RAPDU: 90 00 [10:58:19]wFMCommunicate OK [10:58:19]wFMCommunicate request_size=4 [10:58:19]MH_SAM_APDU [10:58:19]CAPDU: 80 0D 03 02 [10:58:19]Write to MH i2c: E2 08 00 3D 6D 80 0D 03 02 00 00 00 00 25 [10:58:19]Write i2c OK [10:58:19]MH_I2C_Read... [10:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:19]Read from MH i2c: E2 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: E2 0B 00 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: E2 0B 00 3D 6D 00 E5 50 77 03 B5 DB E5 DE 90 00 28 [10:58:19]RAPDU: E5 50 77 03 B5 DB E5 DE 90 00 [10:58:19]wFMCommunicate OK [10:58:19]SAM_PROTO_SignData done [10:58:19]FM_MakeSignedData done [10:58:19]CreateOFDProtocolMessage [10:58:19]wFMCommunicate request_size=4 [10:58:19]MH_SAM_APDU [10:58:19]CAPDU: 80 11 00 00 [10:58:19]Write to MH i2c: E2 08 00 3E 6D 80 11 00 00 00 00 00 00 25 [10:58:19]Write i2c OK [10:58:19]MH_I2C_Read... [10:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:19]Read from MH i2c: E2 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: E2 17 00 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: E2 17 00 3E 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 72 [10:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:58:19]wFMCommunicate OK [10:58:19]CreateOFDProtocolMessage done [10:58:19]OFDSenderStorePacket 49178 [10:58:19]StoreOFDPacket docnum=49178 [10:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B8 CF 07 01 17 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 5C D6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A C0 00 00 35 04 06 00 D9 E2 DD DD A9 B2 E5 50 77 03 B5 DB E5 DE [10:58:19]CheckFolder [10:58:19]dirname=/storage/ofd_packets [10:58:19]CheckFolder done [10:58:19]ProducePacketName [10:58:19]name=ofd_packets/00049178 [10:58:19]NVStorageSaveData ofd_packets/00049178 [10:58:19]File name is /storage/ofd_packets/00049178 [10:58:19]Write 301 bytes [10:58:19]NVStorageSaveData done [10:58:19]OFDSenderStorePacket done [10:58:19]KKMCreateOFDPacket done [10:58:19]NVStorageSaveData kkm_last_timestamp [10:58:19]File name is /storage/kkm_last_timestamp [10:58:19]Write 4 bytes [10:58:19]NVStorageSaveData done [10:58:19]ExternCall_PrintAddStr [10:58:19]wPrintStart [10:58:19]Write to MH i2c: 01 00 00 3F 6D AC [10:58:19]Write i2c OK [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: 01 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: 01 07 00 [10:58:19]MH_I2C_Read... [10:58:19]Read from MH i2c: 01 07 00 3F 6D 00 00 00 00 00 FF 0F C1 [10:58:19]RasterBufferAndPrint [10:58:19]line Счет N : (1)216280 [10:58:19]line ИНН: 02508201610067 [10:58:19]line Контрольно-Кассовый Чек [10:58:19]line ПРОДАЖА [10:58:19]line ТРК (МРК, ГНК) : 22 [10:58:19]line Товар: 2710124130 [10:58:19]line Аи-92-К-5 [10:58:19]line 6.970 * 60.30 [10:58:19]line = 420.29 [10:58:19]line НДС 12% НСП 1% [10:58:19]line > о реализуемом товаре [10:58:19]line ОКРУГЛЕНИЕ: -0.29 [10:58:19]line ИТОГО: 420.00 [10:58:19]line Внесено: 420.00 [10:58:19]line СДАЧА: 0.00 [10:58:19]line НСП 1% : 3.72 [10:58:19]line НДС 12% : 44.63 [10:58:19]line Наличными: 420.00 [10:58:19]line Безнал.: 0.00 [10:58:19]line Место: АЗС № 102 "Партнер Нефть" [10:58:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:58:19]line СНО: Общий режим [10:58:19]line Чек 54 30.01.2024 10:58 [10:58:19]line Смена: 246 ФФД: 1.0 [10:58:19]line ЗНМ: 0300000040 [10:58:19]line РНМ: 0000000000092723 [10:58:19]line Версия ККМ: 001 [10:58:19]line ФМ: 0000000000875060 [10:58:19]line ФД: 49178 [10:58:19]line ФПД: 239568408127922 [10:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T105836&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49178&fm=239568408127922&tin=02508201610067®Number=0000000000092723&sum=42000 [10:58:19]written 0, free lines is 4095 [10:58:19]OFD Sender: Processing packet 49178 [packets to send 12, broken 11] [10:58:19]ProducePacketName [10:58:19]name=ofd_packets/00049178 [10:58:19]OFD Sender: To server: pG, [10:58:19]CommunicateWithHost lk.salyk.kg:30040 [10:58:19]ConnectInit lk.salyk.kg [10:58:19]Connected sock=10 [10:58: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 36 30 0F 01 00 00 B8 CF 07 01 17 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 5C D6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A C0 00 00 35 04 06 00 D9 E2 DD DD A9 B2 E5 50 77 03 B5 DB E5 DE [10:58: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 36 30 4F 00 00 00 5F F6 47 00 EF 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A C0 00 00 F4 03 04 00 51 82 B8 65 B6 04 01 00 00 B9 16 8F 98 A2 E2 DC 8D [10:58:20]CommunicateWithHost err = 0 [10:58:20]CheckOFDResponse [10:58:20]1017 (14) - 77093643461234 [10:58:20]1041 (16) - 0000000000875060 [10:58:20]1040 (4) - 49178 [10:58:20]1012 (4) - 30.01.2024 05:00 [10:58:20]1206 (1) - 0 [10:58:20]OFD Sender: Remove packet 49178 [10:58:20]ProducePacketName [10:58:20]name=ofd_packets/00049178 [10:58:20]NVStorageDeleteData [10:58:20]Write to MH i2c: 01 00 00 6A 6D D7 [10:58:20]Write i2c OK [10:58:20]MH_I2C_Read... [10:58:20]Read from MH i2c: 01 [10:58:20]MH_I2C_Read... [10:58:20]Read from MH i2c: 01 07 00 [10:58:20]MH_I2C_Read... [10:58:20]Read from MH i2c: 01 07 00 6A 6D 00 00 00 00 00 F5 0C DF [10:58:20]RasterBufferAndPrint [10:58:20]line [10:58:20]line [10:58:20]line [10:58:20]line [10:58:20]line [10:58:20]written 0, free lines is 3323 [10:58:20]MH_Cut [10:58:20]Write to MH i2c: D1 01 00 71 6D 01 B0 [10:58:20]Write i2c OK [10:58:20]MH_I2C_Read... [10:58:20]Read from MH i2c: D1 [10:58:20]MH_I2C_Read... [10:58:20]Read from MH i2c: D1 01 00 [10:58:20]MH_I2C_Read... [10:58:20]Read from MH i2c: D1 01 00 71 6D 00 AF [10:58:20]Write to MH i2c: 01 00 00 72 6D DF [10:58:20]Write i2c OK [10:58:20]MH_I2C_Read... [10:58:20]OFD Sender: No OFD packet to send [10:58:20]*** Cut start [10:58:20]*** Partial cut [10:58:20]*** CUTSNS_PIN = 1 [10:58:20]*** CUTSNS_PIN = 0 [10:58:21]*** Brake cut motor [10:58:21]Read from MH i2c: 01 [10:58:21]MH_I2C_Read... [10:58:21]*** Stop cut motor [10:58:21]*** Cut end [10:58:21]Read from MH i2c: 01 07 00 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: 01 07 00 72 6D 00 00 00 00 00 FF 0F F4 [10:58:21]process_action close_receipt done [10:58:21]requested_data is exist [10:58:21]produce_requested_data [10:58:21]requested_item fm.sn is exist - process it [10:58:21]wFMCommunicate request_size=4 [10:58:21]MH_SAM_APDU [10:58:21]CAPDU: 80 11 00 00 [10:58:21]Write to MH i2c: E2 08 00 73 6D 80 11 00 00 00 00 00 00 5A [10:58:21]Write i2c OK [10:58:21]MH_I2C_Read... [10:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:21]Read from MH i2c: E2 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: E2 17 00 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: E2 17 00 73 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A7 [10:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:58:21]wFMCommunicate OK [10:58:21]requested_item fd.num is exist - process it [10:58:21]SAM_PROTO_GetFieldsCounters [10:58:21]wFMCommunicate request_size=4 [10:58:21]MH_SAM_APDU [10:58:21]CAPDU: 80 13 00 00 [10:58:21]Write to MH i2c: E2 08 00 74 6D 80 13 00 00 00 00 00 00 5D [10:58:21]Write i2c OK [10:58:21]MH_I2C_Read... [10:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:21]Read from MH i2c: E2 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: E2 62 00 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: E2 62 00 74 6D 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:58: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:21]wFMCommunicate OK [10:58:21]SAM_PROTO_GetFieldsCounters done [10:58:21]requested_item shift.num is exist - process it [10:58:21]requested_item shift.opened is exist - process it [10:58:21]req_shift_opened [10:58:21]FM_GetShiftState [10:58:21]SAM_PROTO_GetShiftState [10:58:21]wFMCommunicate request_size=4 [10:58:21]MH_SAM_APDU [10:58:21]CAPDU: 80 13 01 00 [10:58:21]Write to MH i2c: E2 08 00 75 6D 80 13 01 00 00 00 00 00 5F [10:58:21]Write i2c OK [10:58:21]MH_I2C_Read... [10:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:21]Read from MH i2c: E2 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: E2 0E 00 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: E2 0E 00 75 6D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 87 [10:58:21]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [10:58:21]wFMCommunicate OK [10:58:21]SAM_PROTO_GetShiftState done [10:58:21]FM_GetShiftState done [10:58:21]req_shift_opened done [10:58:21]requested_item shift.open_date is exist - process it [10:58:21]req_shift_open_date [10:58:21]req_shift_open_date done [10:58:21]produce_requested_data done [10:58:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49178,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [10:58:21]process_action_free close_receipt [10:58:21]json_value_free [10:58:21]json_value_free done [10:58:21]process_json_proto returns [10:58:21]Send response to host [10:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49178,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [10:58:21]free response buf [10:58:21]execute_script done [10:58:21]execute_script returns [10:58:21]free content buf [10:58:21]Sock 9.Close socket [10:58:21]Sock 9.Thread stoped [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:40]accept exits with 7 [11:07:40]New connection [11:07:40]New thread 3066670436 created [11:07:40]Thread 3066813796 joined [11:07:40]Waiting for new connection... [11:07:40] Sock 7.Parse request [11:07:40]Sock 7.Check first char [11:07:40]Sock 7.First char is OK [11:07:40]request: POST /json_proto HTTP/1.0 [11:07:40]Method: POST [11:07:40]URL: /json_proto [11:07:40]Method is POST - this is cgi request [11:07:40]url: /json_proto [11:07:40]query_string will be loaded in cgi processing [11:07:40]execute_cgi json_proto POST (null) [11:07:40]execute_cgi path=json_proto method=POST [11:07:40]POST find Content-Length [11:07:40]Host: 172.17.56.67:8080 [11:07:40]Content-Length: 677 [11:07:40]Content-Type: application/json [11:07:40] [11:07:40]POST finish read [11:07:40]Found Content-Length = 677 [11:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.030, "sum" : 303.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 303.00, "total" : 303.00, "payments": [ { "type": 0, "sum" : 303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:40]execute_script... [11:07:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.030, "sum" : 303.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 303.00, "total" : 303.00, "payments": [ { "type": 0, "sum" : 303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:40]POST & json_proto [11:07:40]process_json_proto [11:07:40]json parsed OK: [11:07:40]protocol is kg_v1.0 [11:07:40]action value=close_receipt [11:07:40]process_action close_receipt [11:07:40]cmd_close_receipt [11:07:40]MH_GetDate [11:07:40]Write to MH i2c: F0 00 00 76 6D D2 [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: F0 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: F0 09 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: F0 09 00 76 6D 00 8F D8 B8 65 26 5D 9E 65 E5 [11:07:40]GetLastDocTimeStamp 1706612316 [11:07:40]current date 1706612879 [11:07:40]FM_GetShiftState [11:07:40]SAM_PROTO_GetShiftState [11:07:40]wFMCommunicate request_size=4 [11:07:40]MH_SAM_APDU [11:07:40]CAPDU: 80 13 01 00 [11:07:40]Write to MH i2c: E2 08 00 77 6D 80 13 01 00 00 00 00 00 61 [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:40]Read from MH i2c: E2 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 0E 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 0E 00 77 6D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 89 [11:07:40]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:07:40]wFMCommunicate OK [11:07:40]SAM_PROTO_GetShiftState done [11:07:40]FM_GetShiftState done [11:07:40]opened in 1706572995 [11:07:40]opened+sec_in_day 1706659395 [11:07:40]quantity*price = 30330 [11:07:40]sum+1 = 30332 [11:07:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 303.00 Внесено: 303.00 СДАЧА: 0.00 НСП 1% : 2.68 НДС 12% : 32.21 Наличными: 303.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 55 30.01.2024 11:07 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49179 ФПД: 28918289562118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T110759&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49179&fm=28918289562118&tin=02508201610067®Number=0000000000092723&sum=30300 [11:07:42]StoreToDocumentArchive [11:07:42]shift 246 fd 49179 [11:07:42]save to /storage/0246/doc_00049179 [11:07:42]save last doc name /storage/0246/doc_00049179 to /storage/kkm_last_doc_name [11:07:42]save OK [11:07:42]Clear old archive folders... [11:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:42]tlvbuf is 0128C9C0 [11:07:42]SAM_PROTO_ClearQueue [11:07:42]wFMCommunicate request_size=4 [11:07:42]MH_SAM_APDU [11:07:42]CAPDU: 80 09 00 00 [11:07:42]Write to MH i2c: E2 08 00 84 6D 80 09 00 00 00 00 00 00 63 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:42]Read from MH i2c: E2 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 84 6D 00 90 00 65 [11:07:42]RAPDU: 90 00 [11:07:42]wFMCommunicate OK [11:07:42]SAM_PROTO_ClearQueue done [11:07:42]KKMCreateOFDPacket [11:07:42]OFDProtocolAddRootSTLVToBuf [11:07:42]FM_MakeSignedData [11:07:42]FM_MakeSignedData [11:07:42]SAM_PROTO_SignData [11:07:42]wFMCommunicate request_size=4 [11:07:42]MH_SAM_APDU [11:07:42]CAPDU: 80 0D 01 02 [11:07:42]Write to MH i2c: E2 08 00 85 6D 80 0D 01 02 00 00 00 00 6B [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:42]Read from MH i2c: E2 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 85 6D 00 90 00 66 [11:07:42]RAPDU: 90 00 [11:07:42]wFMCommunicate OK [11:07:42]wFMCommunicate request_size=255 [11:07:42]MH_SAM_APDU [11:07:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8F D8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B C0 00 00 35 04 06 00 1A [11:07:42]Write to MH i2c: E2 02 01 86 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8F D8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B C0 00 00 35 04 06 00 1A 00 00 B4 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:42]Read from MH i2c: E2 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 86 6D 00 90 00 67 [11:07:42]RAPDU: 90 00 [11:07:42]wFMCommunicate OK [11:07:42]wFMCommunicate request_size=10 [11:07:42]MH_SAM_APDU [11:07:42]CAPDU: 80 0D 02 02 05 4D 10 60 7A 06 [11:07:42]Write to MH i2c: E2 0D 00 87 6D 80 0D 02 02 05 00 4D 10 60 7A 06 00 00 B5 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:42]Read from MH i2c: E2 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 03 00 87 6D 00 90 00 68 [11:07:42]RAPDU: 90 00 [11:07:42]wFMCommunicate OK [11:07:42]wFMCommunicate request_size=4 [11:07:42]MH_SAM_APDU [11:07:42]CAPDU: 80 0D 03 02 [11:07:42]Write to MH i2c: E2 08 00 88 6D 80 0D 03 02 00 00 00 00 70 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:42]Read from MH i2c: E2 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 0B 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 0B 00 88 6D 00 5F 5F 42 C8 A4 EA 9D 8F 90 00 F3 [11:07:42]RAPDU: 5F 5F 42 C8 A4 EA 9D 8F 90 00 [11:07:42]wFMCommunicate OK [11:07:42]SAM_PROTO_SignData done [11:07:42]FM_MakeSignedData done [11:07:42]CreateOFDProtocolMessage [11:07:42]wFMCommunicate request_size=4 [11:07:42]MH_SAM_APDU [11:07:42]CAPDU: 80 11 00 00 [11:07:42]Write to MH i2c: E2 08 00 89 6D 80 11 00 00 00 00 00 00 70 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:42]Read from MH i2c: E2 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 17 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: E2 17 00 89 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BD [11:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:07:42]wFMCommunicate OK [11:07:42]CreateOFDProtocolMessage done [11:07:42]OFDSenderStorePacket 49179 [11:07:42]StoreOFDPacket docnum=49179 [11:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 71 5C 07 01 AE 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 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8F D8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B C0 00 00 35 04 06 00 1A 4D 10 60 7A 06 5F 5F 42 C8 A4 EA 9D 8F [11:07:42]CheckFolder [11:07:42]dirname=/storage/ofd_packets [11:07:42]CheckFolder done [11:07:42]ProducePacketName [11:07:42]name=ofd_packets/00049179 [11:07:42]NVStorageSaveData ofd_packets/00049179 [11:07:42]File name is /storage/ofd_packets/00049179 [11:07:42]Write 301 bytes [11:07:42]NVStorageSaveData done [11:07:42]OFDSenderStorePacket done [11:07:42]KKMCreateOFDPacket done [11:07:42]NVStorageSaveData kkm_last_timestamp [11:07:42]File name is /storage/kkm_last_timestamp [11:07:42]Write 4 bytes [11:07:42]NVStorageSaveData done [11:07:42]ExternCall_PrintAddStr [11:07:42]wPrintStart [11:07:42]Write to MH i2c: 01 00 00 8A 6D F7 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 07 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 07 00 8A 6D 00 00 00 00 00 FF 0F 0C [11:07:42]RasterBufferAndPrint [11:07:42]line Счет N : (1)216281 [11:07:42]line ИНН: 02508201610067 [11:07:42]line Контрольно-Кассовый Чек [11:07:42]line ПРОДАЖА [11:07:42]line ТРК (МРК, ГНК) : 12 [11:07:42]line Товар: 2710124130 [11:07:42]line Аи-92-К-5 [11:07:42]line 5.030 * 60.30 [11:07:42]line = 303.31 [11:07:42]line НДС 12% НСП 1% [11:07:42]line > о реализуемом товаре [11:07:42]line ОКРУГЛЕНИЕ: -0.31 [11:07:42]line ИТОГО: 303.00 [11:07:42]line Внесено: 303.00 [11:07:42]line СДАЧА: 0.00 [11:07:42]line НСП 1% : 2.68 [11:07:42]line НДС 12% : 32.21 [11:07:42]line Наличными: 303.00 [11:07:42]line Безнал.: 0.00 [11:07:42]line Место: АЗС № 102 "Партнер Нефть" [11:07:42]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:07:42]line СНО: Общий режим [11:07:42]line Чек 55 30.01.2024 11:07 [11:07:42]line Смена: 246 ФФД: 1.0 [11:07:42]line ЗНМ: 0300000040 [11:07:42]line РНМ: 0000000000092723 [11:07:42]line Версия ККМ: 001 [11:07:42]line ФМ: 0000000000875060 [11:07:42]line ФД: 49179 [11:07:42]line ФПД: 28918289562118 [11:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T110759&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49179&fm=28918289562118&tin=02508201610067®Number=0000000000092723&sum=30300 [11:07:42]OFD Sender: Processing packet 49179 [packets to send 12, broken 11] [11:07:42]ProducePacketName [11:07:42]name=ofd_packets/00049179 [11:07:42]OFD Sender: To server: pG, [11:07:42]CommunicateWithHost lk.salyk.kg:30040 [11:07:42]ConnectInit lk.salyk.kg [11:07:42]written 0, free lines is 4095 [11:07:42]Connected sock=9 [11:07:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 71 5C 07 01 AE 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 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8F D8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B C0 00 00 35 04 06 00 1A 4D 10 60 7A 06 5F 5F 42 C8 A4 EA 9D 8F [11:07: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 36 30 4F 00 00 00 0B 58 47 00 57 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B C0 00 00 F4 03 04 00 85 84 B8 65 B6 04 01 00 00 F5 EB 86 D0 22 89 11 0F [11:07:43]CommunicateWithHost err = 0 [11:07:43]CheckOFDResponse [11:07:43]1017 (14) - 77093643461234 [11:07:43]1041 (16) - 0000000000875060 [11:07:43]1040 (4) - 49179 [11:07:43]1012 (4) - 30.01.2024 05:09 [11:07:43]1206 (1) - 0 [11:07:43]OFD Sender: Remove packet 49179 [11:07:43]ProducePacketName [11:07:43]name=ofd_packets/00049179 [11:07:43]NVStorageDeleteData [11:07:43]Write to MH i2c: 01 00 00 B5 6D 22 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 B5 6D 00 00 00 00 00 EC 0C 21 [11:07:43]RasterBufferAndPrint [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]line [11:07:43]written 0, free lines is 3314 [11:07:43]MH_Cut [11:07:43]Write to MH i2c: D1 01 00 BC 6D 01 FB [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: D1 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: D1 01 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: D1 01 00 BC 6D 00 FA [11:07:43]Write to MH i2c: 01 00 00 BD 6D 2A [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]OFD Sender: No OFD packet to send [11:07:44]*** Cut start [11:07:44]*** Partial cut [11:07:44]*** CUTSNS_PIN = 1 [11:07:44]*** CUTSNS_PIN = 0 [11:07:44]*** Brake cut motor [11:07:44]Read from MH i2c: 01 [11:07:44]MH_I2C_Read... [11:07:44]*** Stop cut motor [11:07:44]*** Cut end [11:07:44]Read from MH i2c: 01 07 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: 01 07 00 BD 6D 00 00 00 00 00 FF 0F 3F [11:07:44]process_action close_receipt done [11:07:44]requested_data is exist [11:07:44]produce_requested_data [11:07:44]requested_item fm.sn is exist - process it [11:07:44]wFMCommunicate request_size=4 [11:07:44]MH_SAM_APDU [11:07:44]CAPDU: 80 11 00 00 [11:07:44]Write to MH i2c: E2 08 00 BE 6D 80 11 00 00 00 00 00 00 A5 [11:07:44]Write i2c OK [11:07:44]MH_I2C_Read... [11:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:44]Read from MH i2c: E2 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 17 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 17 00 BE 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F2 [11:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:07:44]wFMCommunicate OK [11:07:44]requested_item fd.num is exist - process it [11:07:44]SAM_PROTO_GetFieldsCounters [11:07:44]wFMCommunicate request_size=4 [11:07:44]MH_SAM_APDU [11:07:44]CAPDU: 80 13 00 00 [11:07:44]Write to MH i2c: E2 08 00 BF 6D 80 13 00 00 00 00 00 00 A8 [11:07:44]Write i2c OK [11:07:44]MH_I2C_Read... [11:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:44]Read from MH i2c: E2 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 62 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 62 00 BF 6D 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:07: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:44]wFMCommunicate OK [11:07:44]SAM_PROTO_GetFieldsCounters done [11:07:44]requested_item shift.num is exist - process it [11:07:44]requested_item shift.opened is exist - process it [11:07:44]req_shift_opened [11:07:44]FM_GetShiftState [11:07:44]SAM_PROTO_GetShiftState [11:07:44]wFMCommunicate request_size=4 [11:07:44]MH_SAM_APDU [11:07:44]CAPDU: 80 13 01 00 [11:07:44]Write to MH i2c: E2 08 00 C0 6D 80 13 01 00 00 00 00 00 AA [11:07:44]Write i2c OK [11:07:44]MH_I2C_Read... [11:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:44]Read from MH i2c: E2 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 0E 00 [11:07:44]MH_I2C_Read... [11:07:44]Read from MH i2c: E2 0E 00 C0 6D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D2 [11:07:44]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:07:44]wFMCommunicate OK [11:07:44]SAM_PROTO_GetShiftState done [11:07:44]FM_GetShiftState done [11:07:44]req_shift_opened done [11:07:44]requested_item shift.open_date is exist - process it [11:07:44]req_shift_open_date [11:07:44]req_shift_open_date done [11:07:44]produce_requested_data done [11:07:44]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49179,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:07:44]process_action_free close_receipt [11:07:44]json_value_free [11:07:44]json_value_free done [11:07:44]process_json_proto returns [11:07:44]Send response to host [11:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49179,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:07:44]free response buf [11:07:44]execute_script done [11:07:44]execute_script returns [11:07:44]free content buf [11:07:44]Sock 7.Close socket [11:07:44]Sock 7.Thread stoped [11:07:48]OFD Sender: No OFD packet to send [11:07:48]accept exits with 10 [11:07:48]New connection [11:07:48]New thread 3066813796 created [11:07:48]Thread 3066670436 joined [11:07:48]Waiting for new connection... [11:07:48] Sock 10.Parse request [11:07:48]Sock 10.Check first char [11:07:48]Sock 10.First char is OK [11:07:48]request: POST /json_proto HTTP/1.0 [11:07:48]Method: POST [11:07:48]URL: /json_proto [11:07:48]Method is POST - this is cgi request [11:07:48]url: /json_proto [11:07:48]query_string will be loaded in cgi processing [11:07:48]execute_cgi json_proto POST (null) [11:07:48]execute_cgi path=json_proto method=POST [11:07:48]POST find Content-Length [11:07:48]Host: 172.17.56.67:8080 [11:07:48]Content-Length: 677 [11:07:48]Content-Type: application/json [11:07:48] [11:07:48]POST finish read [11:07:48]Found Content-Length = 677 [11:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:48]execute_script... [11:07: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)216282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:48]POST & json_proto [11:07:48]process_json_proto [11:07:48]json parsed OK: [11:07:48]protocol is kg_v1.0 [11:07:48]action value=close_receipt [11:07:48]process_action close_receipt [11:07:48]cmd_close_receipt [11:07:48]MH_GetDate [11:07:48]Write to MH i2c: F0 00 00 C1 6D 1D [11:07:48]Write i2c OK [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: F0 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: F0 09 00 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: F0 09 00 C1 6D 00 97 D8 B8 65 26 5D 9E 65 38 [11:07:48]GetLastDocTimeStamp 1706612879 [11:07:48]current date 1706612887 [11:07:48]FM_GetShiftState [11:07:48]SAM_PROTO_GetShiftState [11:07:48]wFMCommunicate request_size=4 [11:07:48]MH_SAM_APDU [11:07:48]CAPDU: 80 13 01 00 [11:07:48]Write to MH i2c: E2 08 00 C2 6D 80 13 01 00 00 00 00 00 AC [11:07:48]Write i2c OK [11:07:48]MH_I2C_Read... [11:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:48]Read from MH i2c: E2 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: E2 0E 00 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: E2 0E 00 C2 6D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D4 [11:07:48]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:07:48]wFMCommunicate OK [11:07:48]SAM_PROTO_GetShiftState done [11:07:48]FM_GetShiftState done [11:07:48]opened in 1706572995 [11:07:48]opened+sec_in_day 1706659395 [11:07:48]quantity*price = 30029 [11:07:48]sum+1 = 30030 [11:07:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 56 30.01.2024 11:08 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49180 ФПД: 41156293015052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T110807&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49180&fm=41156293015052&tin=02508201610067®Number=0000000000092723&sum=30000 [11:07:50]StoreToDocumentArchive [11:07:50]shift 246 fd 49180 [11:07:50]save to /storage/0246/doc_00049180 [11:07:50]save last doc name /storage/0246/doc_00049180 to /storage/kkm_last_doc_name [11:07:50]save OK [11:07:50]Clear old archive folders... [11:07:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:50]tlvbuf is 011D5B30 [11:07:50]SAM_PROTO_ClearQueue [11:07:50]wFMCommunicate request_size=4 [11:07:50]MH_SAM_APDU [11:07:50]CAPDU: 80 09 00 00 [11:07:50]Write to MH i2c: E2 08 00 CF 6D 80 09 00 00 00 00 00 00 AE [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:50]Read from MH i2c: E2 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 03 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 03 00 CF 6D 00 90 00 B0 [11:07:50]RAPDU: 90 00 [11:07:50]wFMCommunicate OK [11:07:50]SAM_PROTO_ClearQueue done [11:07:50]KKMCreateOFDPacket [11:07:50]OFDProtocolAddRootSTLVToBuf [11:07:50]FM_MakeSignedData [11:07:50]FM_MakeSignedData [11:07:50]SAM_PROTO_SignData [11:07:50]wFMCommunicate request_size=4 [11:07:50]MH_SAM_APDU [11:07:50]CAPDU: 80 0D 01 02 [11:07:50]Write to MH i2c: E2 08 00 D0 6D 80 0D 01 02 00 00 00 00 B6 [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:50]Read from MH i2c: E2 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 03 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 03 00 D0 6D 00 90 00 B1 [11:07:50]RAPDU: 90 00 [11:07:50]wFMCommunicate OK [11:07:50]wFMCommunicate request_size=255 [11:07:50]MH_SAM_APDU [11:07:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 97 D8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C C0 00 00 35 04 06 00 25 [11:07:50]Write to MH i2c: E2 02 01 D1 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 97 D8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C C0 00 00 35 04 06 00 25 00 00 37 [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:50]Read from MH i2c: E2 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 03 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 03 00 D1 6D 00 90 00 B2 [11:07:50]RAPDU: 90 00 [11:07:50]wFMCommunicate OK [11:07:50]wFMCommunicate request_size=10 [11:07:50]MH_SAM_APDU [11:07:50]CAPDU: 80 0D 02 02 05 6E 72 39 B6 0C [11:07:50]Write to MH i2c: E2 0D 00 D2 6D 80 0D 02 02 05 00 6E 72 39 B6 0C 00 00 9E [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:50]Read from MH i2c: E2 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 03 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 03 00 D2 6D 00 90 00 B3 [11:07:50]RAPDU: 90 00 [11:07:50]wFMCommunicate OK [11:07:50]wFMCommunicate request_size=4 [11:07:50]MH_SAM_APDU [11:07:50]CAPDU: 80 0D 03 02 [11:07:50]Write to MH i2c: E2 08 00 D3 6D 80 0D 03 02 00 00 00 00 BB [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:50]Read from MH i2c: E2 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 0B 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 0B 00 D3 6D 00 2D 2E F7 FB 1E D9 FB C3 90 00 BE [11:07:50]RAPDU: 2D 2E F7 FB 1E D9 FB C3 90 00 [11:07:50]wFMCommunicate OK [11:07:50]SAM_PROTO_SignData done [11:07:50]FM_MakeSignedData done [11:07:50]CreateOFDProtocolMessage [11:07:50]wFMCommunicate request_size=4 [11:07:50]MH_SAM_APDU [11:07:50]CAPDU: 80 11 00 00 [11:07:50]Write to MH i2c: E2 08 00 D4 6D 80 11 00 00 00 00 00 00 BB [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:50]Read from MH i2c: E2 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 17 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 17 00 D4 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 08 [11:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:07:50]wFMCommunicate OK [11:07:50]CreateOFDProtocolMessage done [11:07:50]OFDSenderStorePacket 49180 [11:07:50]StoreOFDPacket docnum=49180 [11:07:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B5 29 07 01 F1 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 97 D8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C C0 00 00 35 04 06 00 25 6E 72 39 B6 0C 2D 2E F7 FB 1E D9 FB C3 [11:07:50]CheckFolder [11:07:50]dirname=/storage/ofd_packets [11:07:50]CheckFolder done [11:07:50]ProducePacketName [11:07:50]name=ofd_packets/00049180 [11:07:50]NVStorageSaveData ofd_packets/00049180 [11:07:50]File name is /storage/ofd_packets/00049180 [11:07:50]Write 301 bytes [11:07:50]NVStorageSaveData done [11:07:50]OFDSenderStorePacket done [11:07:50]KKMCreateOFDPacket done [11:07:50]NVStorageSaveData kkm_last_timestamp [11:07:50]File name is /storage/kkm_last_timestamp [11:07:50]Write 4 bytes [11:07:50]NVStorageSaveData done [11:07:50]ExternCall_PrintAddStr [11:07:50]wPrintStart [11:07:50]Write to MH i2c: 01 00 00 D5 6D 42 [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 07 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 07 00 D5 6D 00 00 00 00 00 FF 0F 57 [11:07:50]RasterBufferAndPrint [11:07:50]line Счет N : (1)216282 [11:07:50]line ИНН: 02508201610067 [11:07:50]line Контрольно-Кассовый Чек [11:07:50]line ПРОДАЖА [11:07:50]line ТРК (МРК, ГНК) : 22 [11:07:50]line Товар: 2710124130 [11:07:50]line Аи-92-К-5 [11:07:50]line 4.980 * 60.30 [11:07:50]line = 300.29 [11:07:50]line НДС 12% НСП 1% [11:07:50]line > о реализуемом товаре [11:07:50]line ОКРУГЛЕНИЕ: -0.29 [11:07:50]line ИТОГО: 300.00 [11:07:50]line Внесено: 300.00 [11:07:50]line СДАЧА: 0.00 [11:07:50]line НСП 1% : 2.66 [11:07:50]line НДС 12% : 31.89 [11:07:50]line Наличными: 300.00 [11:07:50]line Безнал.: 0.00 [11:07:50]line Место: АЗС № 102 "Партнер Нефть" [11:07:50]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:07:50]line СНО: Общий режим [11:07:50]line Чек 56 30.01.2024 11:08 [11:07:50]line Смена: 246 ФФД: 1.0 [11:07:50]line ЗНМ: 0300000040 [11:07:50]line РНМ: 0000000000092723 [11:07:50]line Версия ККМ: 001 [11:07:50]line ФМ: 0000000000875060 [11:07:50]line ФД: 49180 [11:07:50]line ФПД: 41156293015052 [11:07:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T110807&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49180&fm=41156293015052&tin=02508201610067®Number=0000000000092723&sum=30000 [11:07:50]written 0, free lines is 4095 [11:07:50]OFD Sender: Processing packet 49180 [packets to send 12, broken 11] [11:07:50]ProducePacketName [11:07:50]name=ofd_packets/00049180 [11:07:50]OFD Sender: To server: pG, [11:07:50]CommunicateWithHost lk.salyk.kg:30040 [11:07:50]ConnectInit lk.salyk.kg [11:07:50]Connected sock=9 [11:07: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 36 30 0F 01 00 00 B5 29 07 01 F1 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 97 D8 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C C0 00 00 35 04 06 00 25 6E 72 39 B6 0C 2D 2E F7 FB 1E D9 FB C3 [11:07: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 36 30 4F 00 00 00 10 2C 47 00 8A 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 36 30 10 04 04 00 1C C0 00 00 F4 03 04 00 8C 84 B8 65 B6 04 01 00 00 C7 0D 3E 90 C7 84 7D A4 [11:07:51]CommunicateWithHost err = 0 [11:07:51]CheckOFDResponse [11:07:51]1017 (14) - 77093643461234 [11:07:51]1041 (16) - 0000000000875060 [11:07:51]1040 (4) - 49180 [11:07:51]1012 (4) - 30.01.2024 05:09 [11:07:51]1206 (1) - 0 [11:07:51]OFD Sender: Remove packet 49180 [11:07:51]ProducePacketName [11:07:51]name=ofd_packets/00049180 [11:07:51]NVStorageDeleteData [11:07:51]Write to MH i2c: 01 00 00 00 6E 6E [11:07:51]Write i2c OK [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: 01 [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: 01 07 00 [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: 01 07 00 00 6E 00 00 00 00 00 00 0D 82 [11:07:51]RasterBufferAndPrint [11:07:51]line [11:07:51]line [11:07:51]line [11:07:51]line [11:07:51]line [11:07:51]written 0, free lines is 3343 [11:07:51]MH_Cut [11:07:51]Write to MH i2c: D1 01 00 07 6E 01 47 [11:07:51]Write i2c OK [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: D1 [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: D1 01 00 [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: D1 01 00 07 6E 00 46 [11:07:51]Write to MH i2c: 01 00 00 08 6E 76 [11:07:51]Write i2c OK [11:07:51]MH_I2C_Read... [11:07:51]OFD Sender: No OFD packet to send [11:07:51]*** Cut start [11:07:51]*** Partial cut [11:07:51]*** CUTSNS_PIN = 1 [11:07:51]*** CUTSNS_PIN = 0 [11:07:52]*** Brake cut motor [11:07:52]Read from MH i2c: 01 [11:07:52]MH_I2C_Read... [11:07:52]*** Stop cut motor [11:07:52]*** Cut end [11:07:52]Read from MH i2c: 01 07 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: 01 07 00 08 6E 00 00 00 00 00 FF 0F 8B [11:07:52]process_action close_receipt done [11:07:52]requested_data is exist [11:07:52]produce_requested_data [11:07:52]requested_item fm.sn is exist - process it [11:07:52]wFMCommunicate request_size=4 [11:07:52]MH_SAM_APDU [11:07:52]CAPDU: 80 11 00 00 [11:07:52]Write to MH i2c: E2 08 00 09 6E 80 11 00 00 00 00 00 00 F1 [11:07:52]Write i2c OK [11:07:52]MH_I2C_Read... [11:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:52]Read from MH i2c: E2 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 17 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 17 00 09 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3E [11:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:07:52]wFMCommunicate OK [11:07:52]requested_item fd.num is exist - process it [11:07:52]SAM_PROTO_GetFieldsCounters [11:07:52]wFMCommunicate request_size=4 [11:07:52]MH_SAM_APDU [11:07:52]CAPDU: 80 13 00 00 [11:07:52]Write to MH i2c: E2 08 00 0A 6E 80 13 00 00 00 00 00 00 F4 [11:07:52]Write i2c OK [11:07:52]MH_I2C_Read... [11:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:52]Read from MH i2c: E2 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 62 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 62 00 0A 6E 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [11:07: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:52]wFMCommunicate OK [11:07:52]SAM_PROTO_GetFieldsCounters done [11:07:52]requested_item shift.num is exist - process it [11:07:52]requested_item shift.opened is exist - process it [11:07:52]req_shift_opened [11:07:52]FM_GetShiftState [11:07:52]SAM_PROTO_GetShiftState [11:07:52]wFMCommunicate request_size=4 [11:07:52]MH_SAM_APDU [11:07:52]CAPDU: 80 13 01 00 [11:07:52]Write to MH i2c: E2 08 00 0B 6E 80 13 01 00 00 00 00 00 F6 [11:07:52]Write i2c OK [11:07:52]MH_I2C_Read... [11:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:52]Read from MH i2c: E2 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 0E 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 0E 00 0B 6E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 1E [11:07:52]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:07:52]wFMCommunicate OK [11:07:52]SAM_PROTO_GetShiftState done [11:07:52]FM_GetShiftState done [11:07:52]req_shift_opened done [11:07:52]requested_item shift.open_date is exist - process it [11:07:52]req_shift_open_date [11:07:52]req_shift_open_date done [11:07:52]produce_requested_data done [11:07:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49180,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:07:52]process_action_free close_receipt [11:07:52]json_value_free [11:07:52]json_value_free done [11:07:52]process_json_proto returns [11:07:52]Send response to host [11:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49180,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:07:52]free response buf [11:07:52]execute_script done [11:07:52]execute_script returns [11:07:52]free content buf [11:07:52]Sock 10.Close socket [11:07:52]Sock 10.Thread stoped [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:41]accept exits with 7 [11:10:41]New connection [11:10:41]New thread 3066670436 created [11:10:41]Thread 3066813796 joined [11:10:41]Waiting for new connection... [11:10:41] Sock 7.Parse request [11:10:41]Sock 7.Check first char [11:10:41]Sock 7.First char is OK [11:10:41]request: POST /json_proto HTTP/1.0 [11:10:41]Method: POST [11:10:41]URL: /json_proto [11:10:41]Method is POST - this is cgi request [11:10:41]url: /json_proto [11:10:41]query_string will be loaded in cgi processing [11:10:41]execute_cgi json_proto POST (null) [11:10:41]execute_cgi path=json_proto method=POST [11:10:41]POST find Content-Length [11:10:41]Host: 172.17.56.67:8080 [11:10:41]Content-Length: 677 [11:10:41]Content-Type: application/json [11:10:41] [11:10:41]POST finish read [11:10:41]Found Content-Length = 677 [11:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [11:10:41]execute_script... [11:10: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)216283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [11:10:41]POST & json_proto [11:10:41]process_json_proto [11:10:41]json parsed OK: [11:10:41]protocol is kg_v1.0 [11:10:41]action value=close_receipt [11:10:41]process_action close_receipt [11:10:41]cmd_close_receipt [11:10:41]MH_GetDate [11:10:41]Write to MH i2c: F0 00 00 0C 6E 69 [11:10:41]Write i2c OK [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: F0 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: F0 09 00 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: F0 09 00 0C 6E 00 44 D9 B8 65 26 5D 9E 65 32 [11:10:41]GetLastDocTimeStamp 1706612887 [11:10:41]current date 1706613060 [11:10:41]FM_GetShiftState [11:10:41]SAM_PROTO_GetShiftState [11:10:41]wFMCommunicate request_size=4 [11:10:41]MH_SAM_APDU [11:10:41]CAPDU: 80 13 01 00 [11:10:41]Write to MH i2c: E2 08 00 0D 6E 80 13 01 00 00 00 00 00 F8 [11:10:41]Write i2c OK [11:10:41]MH_I2C_Read... [11:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:41]Read from MH i2c: E2 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: E2 0E 00 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: E2 0E 00 0D 6E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 20 [11:10:41]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:10:41]wFMCommunicate OK [11:10:41]SAM_PROTO_GetShiftState done [11:10:41]FM_GetShiftState done [11:10:41]opened in 1706572995 [11:10:41]opened+sec_in_day 1706659395 [11:10:41]quantity*price = 20019 [11:10:41]sum+1 = 20021 [11:10:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 57 30.01.2024 11:11 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49181 ФПД: 214256026038500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T111100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49181&fm=214256026038500&tin=02508201610067®Number=0000000000092723&sum=20000 [11:10:43]StoreToDocumentArchive [11:10:43]shift 246 fd 49181 [11:10:43]save to /storage/0246/doc_00049181 [11:10:43]save last doc name /storage/0246/doc_00049181 to /storage/kkm_last_doc_name [11:10:43]save OK [11:10:43]Clear old archive folders... [11:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:43]tlvbuf is 01244150 [11:10:43]SAM_PROTO_ClearQueue [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 09 00 00 [11:10:43]Write to MH i2c: E2 08 00 1A 6E 80 09 00 00 00 00 00 00 FA [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 03 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 03 00 1A 6E 00 90 00 FC [11:10:43]RAPDU: 90 00 [11:10:43]wFMCommunicate OK [11:10:43]SAM_PROTO_ClearQueue done [11:10:43]KKMCreateOFDPacket [11:10:43]OFDProtocolAddRootSTLVToBuf [11:10:43]FM_MakeSignedData [11:10:43]FM_MakeSignedData [11:10:43]SAM_PROTO_SignData [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 0D 01 02 [11:10:43]Write to MH i2c: E2 08 00 1B 6E 80 0D 01 02 00 00 00 00 02 [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 03 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 03 00 1B 6E 00 90 00 FD [11:10:43]RAPDU: 90 00 [11:10:43]wFMCommunicate OK [11:10:43]wFMCommunicate request_size=255 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 44 D9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D C0 00 00 35 04 06 00 C2 [11:10:43]Write to MH i2c: E2 02 01 1C 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 44 D9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D C0 00 00 35 04 06 00 C2 00 00 1A [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 03 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 03 00 1C 6E 00 90 00 FE [11:10:43]RAPDU: 90 00 [11:10:43]wFMCommunicate OK [11:10:43]wFMCommunicate request_size=10 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 0D 02 02 05 DD 5E 52 B0 E4 [11:10:43]Write to MH i2c: E2 0D 00 1D 6E 80 0D 02 02 05 00 DD 5E 52 B0 E4 00 00 30 [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 03 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 03 00 1D 6E 00 90 00 FF [11:10:43]RAPDU: 90 00 [11:10:43]wFMCommunicate OK [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 0D 03 02 [11:10:43]Write to MH i2c: E2 08 00 1E 6E 80 0D 03 02 00 00 00 00 07 [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 0B 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 0B 00 1E 6E 00 9E 8B 91 85 EB DD E1 00 90 00 F0 [11:10:43]RAPDU: 9E 8B 91 85 EB DD E1 00 90 00 [11:10:43]wFMCommunicate OK [11:10:43]SAM_PROTO_SignData done [11:10:43]FM_MakeSignedData done [11:10:43]CreateOFDProtocolMessage [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 11 00 00 [11:10:43]Write to MH i2c: E2 08 00 1F 6E 80 11 00 00 00 00 00 00 07 [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 17 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 17 00 1F 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 54 [11:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:10:43]wFMCommunicate OK [11:10:43]CreateOFDProtocolMessage done [11:10:43]OFDSenderStorePacket 49181 [11:10:43]StoreOFDPacket docnum=49181 [11:10:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F8 CB 07 01 68 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 44 D9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D C0 00 00 35 04 06 00 C2 DD 5E 52 B0 E4 9E 8B 91 85 EB DD E1 00 [11:10:43]CheckFolder [11:10:43]dirname=/storage/ofd_packets [11:10:43]CheckFolder done [11:10:43]ProducePacketName [11:10:43]name=ofd_packets/00049181 [11:10:43]NVStorageSaveData ofd_packets/00049181 [11:10:43]File name is /storage/ofd_packets/00049181 [11:10:43]Write 301 bytes [11:10:43]NVStorageSaveData done [11:10:43]OFDSenderStorePacket done [11:10:43]KKMCreateOFDPacket done [11:10:43]NVStorageSaveData kkm_last_timestamp [11:10:43]File name is /storage/kkm_last_timestamp [11:10:43]Write 4 bytes [11:10:43]NVStorageSaveData done [11:10:43]ExternCall_PrintAddStr [11:10:43]wPrintStart [11:10:43]Write to MH i2c: 01 00 00 20 6E 8E [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: 01 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: 01 07 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: 01 07 00 20 6E 00 00 00 00 00 FF 0F A3 [11:10:43]RasterBufferAndPrint [11:10:43]line Счет N : (1)216283 [11:10:43]line ИНН: 02508201610067 [11:10:43]line Контрольно-Кассовый Чек [11:10:43]line ПРОДАЖА [11:10:43]line ТРК (МРК, ГНК) : 22 [11:10:43]line Товар: 2710124130 [11:10:43]line Аи-92-К-5 [11:10:43]line 3.320 * 60.30 [11:10:43]line = 200.20 [11:10:43]line НДС 12% НСП 1% [11:10:43]line > о реализуемом товаре [11:10:43]line ОКРУГЛЕНИЕ: -0.20 [11:10:43]line ИТОГО: 200.00 [11:10:43]line Внесено: 200.00 [11:10:43]line СДАЧА: 0.00 [11:10:43]line НСП 1% : 1.77 [11:10:43]line НДС 12% : 21.26 [11:10:43]line Наличными: 200.00 [11:10:43]line Безнал.: 0.00 [11:10:43]line Место: АЗС № 102 "Партнер Нефть" [11:10:43]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:10:43]line СНО: Общий режим [11:10:43]line Чек 57 30.01.2024 11:11 [11:10:43]line Смена: 246 ФФД: 1.0 [11:10:43]line ЗНМ: 0300000040 [11:10:43]line РНМ: 0000000000092723 [11:10:43]line Версия ККМ: 001 [11:10:43]line ФМ: 0000000000875060 [11:10:43]line ФД: 49181 [11:10:43]line ФПД: 214256026038500 [11:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T111100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49181&fm=214256026038500&tin=02508201610067®Number=0000000000092723&sum=20000 [11:10:43]OFD Sender: Processing packet 49181 [packets to send 12, broken 11] [11:10:43]ProducePacketName [11:10:43]name=ofd_packets/00049181 [11:10:43]OFD Sender: To server: pG, [11:10:43]CommunicateWithHost lk.salyk.kg:30040 [11:10:43]ConnectInit lk.salyk.kg [11:10:43]written 0, free lines is 4095 [11:10:44]Connected sock=10 [11:10: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 36 30 0F 01 00 00 F8 CB 07 01 68 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 44 D9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D C0 00 00 35 04 06 00 C2 DD 5E 52 B0 E4 9E 8B 91 85 EB DD E1 00 [11:10: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 36 30 4F 00 00 00 32 A4 47 00 B3 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D C0 00 00 F4 03 04 00 3A 85 B8 65 B6 04 01 00 00 23 12 87 D2 90 03 48 B4 [11:10:44]CommunicateWithHost err = 0 [11:10:44]CheckOFDResponse [11:10:44]1017 (14) - 77093643461234 [11:10:44]1041 (16) - 0000000000875060 [11:10:44]1040 (4) - 49181 [11:10:44]1012 (4) - 30.01.2024 05:12 [11:10:44]1206 (1) - 0 [11:10:44]OFD Sender: Remove packet 49181 [11:10:44]ProducePacketName [11:10:44]name=ofd_packets/00049181 [11:10:44]NVStorageDeleteData [11:10:44]Write to MH i2c: 01 00 00 4B 6E B9 [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: 01 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: 01 07 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: 01 07 00 4B 6E 00 00 00 00 00 EE 0C BA [11:10:44]RasterBufferAndPrint [11:10:44]line [11:10:44]line [11:10:44]line [11:10:44]line [11:10:44]line [11:10:44]written 0, free lines is 3319 [11:10:44]MH_Cut [11:10:44]Write to MH i2c: D1 01 00 52 6E 01 92 [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: D1 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: D1 01 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: D1 01 00 52 6E 00 91 [11:10:44]Write to MH i2c: 01 00 00 53 6E C1 [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]OFD Sender: No OFD packet to send [11:10:45]*** Cut start [11:10:45]*** Partial cut [11:10:45]*** CUTSNS_PIN = 1 [11:10:45]*** CUTSNS_PIN = 0 [11:10:45]*** Brake cut motor [11:10:45]Read from MH i2c: 01 [11:10:45]MH_I2C_Read... [11:10:45]*** Stop cut motor [11:10:45]*** Cut end [11:10:45]Read from MH i2c: 01 07 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: 01 07 00 53 6E 00 00 00 00 00 FF 0F D6 [11:10:45]process_action close_receipt done [11:10:45]requested_data is exist [11:10:45]produce_requested_data [11:10:45]requested_item fm.sn is exist - process it [11:10:45]wFMCommunicate request_size=4 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 11 00 00 [11:10:45]Write to MH i2c: E2 08 00 54 6E 80 11 00 00 00 00 00 00 3C [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 17 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 17 00 54 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 89 [11:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:10:45]wFMCommunicate OK [11:10:45]requested_item fd.num is exist - process it [11:10:45]SAM_PROTO_GetFieldsCounters [11:10:45]wFMCommunicate request_size=4 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 13 00 00 [11:10:45]Write to MH i2c: E2 08 00 55 6E 80 13 00 00 00 00 00 00 3F [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 62 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 62 00 55 6E 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [11:10: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:45]wFMCommunicate OK [11:10:45]SAM_PROTO_GetFieldsCounters done [11:10:45]requested_item shift.num is exist - process it [11:10:45]requested_item shift.opened is exist - process it [11:10:45]req_shift_opened [11:10:45]FM_GetShiftState [11:10:45]SAM_PROTO_GetShiftState [11:10:45]wFMCommunicate request_size=4 [11:10:45]MH_SAM_APDU [11:10:45]CAPDU: 80 13 01 00 [11:10:45]Write to MH i2c: E2 08 00 56 6E 80 13 01 00 00 00 00 00 41 [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:45]Read from MH i2c: E2 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 0E 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: E2 0E 00 56 6E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 69 [11:10:45]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:10:45]wFMCommunicate OK [11:10:45]SAM_PROTO_GetShiftState done [11:10:45]FM_GetShiftState done [11:10:45]req_shift_opened done [11:10:45]requested_item shift.open_date is exist - process it [11:10:45]req_shift_open_date [11:10:45]req_shift_open_date done [11:10:45]produce_requested_data done [11:10:45]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49181,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:10:45]process_action_free close_receipt [11:10:45]json_value_free [11:10:45]json_value_free done [11:10:45]process_json_proto returns [11:10:45]Send response to host [11:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49181,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:10:45]free response buf [11:10:45]execute_script done [11:10:45]execute_script returns [11:10:45]free content buf [11:10:45]Sock 7.Close socket [11:10:45]Sock 7.Thread stoped [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:02]accept exits with 9 [11:12:02]New connection [11:12:02]New thread 3066813796 created [11:12:02]Thread 3066670436 joined [11:12:02]Waiting for new connection... [11:12:02] Sock 9.Parse request [11:12:02]Sock 9.Check first char [11:12:02]Sock 9.First char is OK [11:12:02]request: POST /json_proto HTTP/1.0 [11:12:02]Method: POST [11:12:02]URL: /json_proto [11:12:02]Method is POST - this is cgi request [11:12:02]url: /json_proto [11:12:02]query_string will be loaded in cgi processing [11:12:02]execute_cgi json_proto POST (null) [11:12:02]execute_cgi path=json_proto method=POST [11:12:02]POST find Content-Length [11:12:02]Host: 172.17.56.67:8080 [11:12:02]Content-Length: 674 [11:12:02]Content-Type: application/json [11:12:02] [11:12:02]POST finish read [11:12:02]Found Content-Length = 674 [11:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:02]execute_script... [11:12:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:02]POST & json_proto [11:12:02]process_json_proto [11:12:02]json parsed OK: [11:12:02]protocol is kg_v1.0 [11:12:02]action value=close_receipt [11:12:02]process_action close_receipt [11:12:02]cmd_close_receipt [11:12:02]MH_GetDate [11:12:02]Write to MH i2c: F0 00 00 57 6E B4 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: F0 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: F0 09 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: F0 09 00 57 6E 00 95 D9 B8 65 26 5D 9E 65 CE [11:12:02]GetLastDocTimeStamp 1706613060 [11:12:02]current date 1706613141 [11:12:02]FM_GetShiftState [11:12:02]SAM_PROTO_GetShiftState [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 13 01 00 [11:12:02]Write to MH i2c: E2 08 00 58 6E 80 13 01 00 00 00 00 00 43 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0E 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0E 00 58 6E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6B [11:12:02]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:12:02]wFMCommunicate OK [11:12:02]SAM_PROTO_GetShiftState done [11:12:02]FM_GetShiftState done [11:12:02]opened in 1706572995 [11:12:02]opened+sec_in_day 1706659395 [11:12:02]quantity*price = 50048 [11:12:02]sum+1 = 50049 [11:12:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 58 30.01.2024 11:12 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49182 ФПД: 14609569086149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T111221&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49182&fm=14609569086149&tin=02508201610067®Number=0000000000092723&sum=50000 [11:12:04]StoreToDocumentArchive [11:12:04]shift 246 fd 49182 [11:12:04]save to /storage/0246/doc_00049182 [11:12:04]save last doc name /storage/0246/doc_00049182 to /storage/kkm_last_doc_name [11:12:04]save OK [11:12:04]Clear old archive folders... [11:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:12:04]tlvbuf is B6D86410 [11:12:04]SAM_PROTO_ClearQueue [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 09 00 00 [11:12:04]Write to MH i2c: E2 08 00 65 6E 80 09 00 00 00 00 00 00 45 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 03 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 03 00 65 6E 00 90 00 47 [11:12:04]RAPDU: 90 00 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_ClearQueue done [11:12:04]KKMCreateOFDPacket [11:12:04]OFDProtocolAddRootSTLVToBuf [11:12:04]FM_MakeSignedData [11:12:04]FM_MakeSignedData [11:12:04]SAM_PROTO_SignData [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 0D 01 02 [11:12:04]Write to MH i2c: E2 08 00 66 6E 80 0D 01 02 00 00 00 00 4D [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 03 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 03 00 66 6E 00 90 00 48 [11:12:04]RAPDU: 90 00 [11:12:04]wFMCommunicate OK [11:12:04]wFMCommunicate request_size=255 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 95 D9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E C0 00 00 35 04 06 00 0D 49 8E 2C [11:12:04]Write to MH i2c: E2 02 01 67 6E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 95 D9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E C0 00 00 35 04 06 00 0D 49 8E 2C 00 00 C3 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 03 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 03 00 67 6E 00 90 00 49 [11:12:04]RAPDU: 90 00 [11:12:04]wFMCommunicate OK [11:12:04]wFMCommunicate request_size=7 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 0D 02 02 02 FA C5 [11:12:04]Write to MH i2c: E2 0A 00 68 6E 80 0D 02 02 02 00 FA C5 00 00 13 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 03 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 03 00 68 6E 00 90 00 4A [11:12:04]RAPDU: 90 00 [11:12:04]wFMCommunicate OK [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 0D 03 02 [11:12:04]Write to MH i2c: E2 08 00 69 6E 80 0D 03 02 00 00 00 00 52 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0B 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0B 00 69 6E 00 D9 95 5D E2 E6 39 93 17 90 00 C9 [11:12:04]RAPDU: D9 95 5D E2 E6 39 93 17 90 00 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_SignData done [11:12:04]FM_MakeSignedData done [11:12:04]CreateOFDProtocolMessage [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 11 00 00 [11:12:04]Write to MH i2c: E2 08 00 6A 6E 80 11 00 00 00 00 00 00 52 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 17 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 17 00 6A 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9F [11:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:12:04]wFMCommunicate OK [11:12:04]CreateOFDProtocolMessage done [11:12:04]OFDSenderStorePacket 49182 [11:12:04]StoreOFDPacket docnum=49182 [11:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 CF 63 04 01 2E 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 95 D9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E C0 00 00 35 04 06 00 0D 49 8E 2C FA C5 D9 95 5D E2 E6 39 93 17 [11:12:04]CheckFolder [11:12:04]dirname=/storage/ofd_packets [11:12:04]CheckFolder done [11:12:04]ProducePacketName [11:12:04]name=ofd_packets/00049182 [11:12:04]NVStorageSaveData ofd_packets/00049182 [11:12:04]File name is /storage/ofd_packets/00049182 [11:12:04]Write 298 bytes [11:12:04]NVStorageSaveData done [11:12:04]OFDSenderStorePacket done [11:12:04]KKMCreateOFDPacket done [11:12:04]NVStorageSaveData kkm_last_timestamp [11:12:04]File name is /storage/kkm_last_timestamp [11:12:04]Write 4 bytes [11:12:04]NVStorageSaveData done [11:12:04]ExternCall_PrintAddStr [11:12:04]wPrintStart [11:12:04]Write to MH i2c: 01 00 00 6B 6E D9 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: 01 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: 01 07 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: 01 07 00 6B 6E 00 00 00 00 00 FF 0F EE [11:12:04]RasterBufferAndPrint [11:12:04]line Счет N : (1)216284 [11:12:04]line ИНН: 02508201610067 [11:12:04]line Контрольно-Кассовый Чек [11:12:04]line ПРОДАЖА [11:12:04]line ТРК (МРК, ГНК) : 11 [11:12:04]line Товар: 2710194210 [11:12:04]line ДТ-К-5 [11:12:04]line 7.160 * 69.90 [11:12:04]line = 500.48 [11:12:04]line НДС 12% НСП 1% [11:12:04]line > о реализуемом товаре [11:12:04]line ОКРУГЛЕНИЕ: -0.48 [11:12:04]line ИТОГО: 500.00 [11:12:04]line Внесено: 500.00 [11:12:04]line СДАЧА: 0.00 [11:12:04]line НСП 1% : 4.43 [11:12:04]line НДС 12% : 53.15 [11:12:04]line Наличными: 500.00 [11:12:04]line Безнал.: 0.00 [11:12:04]line Место: АЗС № 102 "Партнер Нефть" [11:12:04]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:12:04]line СНО: Общий режим [11:12:04]line Чек 58 30.01.2024 11:12 [11:12:04]line Смена: 246 ФФД: 1.0 [11:12:04]line ЗНМ: 0300000040 [11:12:04]line РНМ: 0000000000092723 [11:12:04]line Версия ККМ: 001 [11:12:04]line ФМ: 0000000000875060 [11:12:04]line ФД: 49182 [11:12:04]line ФПД: 14609569086149 [11:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T111221&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49182&fm=14609569086149&tin=02508201610067®Number=0000000000092723&sum=50000 [11:12:04]OFD Sender: Processing packet 49182 [packets to send 12, broken 11] [11:12:04]ProducePacketName [11:12:04]name=ofd_packets/00049182 [11:12:04]OFD Sender: To server: pG, [11:12:04]CommunicateWithHost lk.salyk.kg:30040 [11:12:04]ConnectInit lk.salyk.kg [11:12:04]written 0, free lines is 4095 [11:12:04]Connected sock=10 [11:12: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 36 30 0C 01 00 00 CF 63 04 01 2E 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 95 D9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E C0 00 00 35 04 06 00 0D 49 8E 2C FA C5 D9 95 5D E2 E6 39 93 17 [11:12: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 36 30 4F 00 00 00 8E 18 47 00 02 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 36 30 10 04 04 00 1E C0 00 00 F4 03 04 00 8B 85 B8 65 B6 04 01 00 00 47 74 10 84 15 BE E8 0E [11:12:05]CommunicateWithHost err = 0 [11:12:05]CheckOFDResponse [11:12:05]1017 (14) - 77093643461234 [11:12:05]1041 (16) - 0000000000875060 [11:12:05]1040 (4) - 49182 [11:12:05]1012 (4) - 30.01.2024 05:13 [11:12:05]1206 (1) - 0 [11:12:05]OFD Sender: Remove packet 49182 [11:12:05]ProducePacketName [11:12:05]name=ofd_packets/00049182 [11:12:05]NVStorageDeleteData [11:12:05]Write to MH i2c: 01 00 00 96 6E 04 [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: 01 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: 01 07 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: 01 07 00 96 6E 00 00 00 00 00 EC 0C 03 [11:12:05]RasterBufferAndPrint [11:12:05]line [11:12:05]line [11:12:05]line [11:12:05]line [11:12:05]line [11:12:05]written 0, free lines is 3314 [11:12:05]MH_Cut [11:12:05]Write to MH i2c: D1 01 00 9D 6E 01 DD [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: D1 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: D1 01 00 [11:12:05]MH_I2C_Read... [11:12:05]Read from MH i2c: D1 01 00 9D 6E 00 DC [11:12:05]Write to MH i2c: 01 00 00 9E 6E 0C [11:12:05]Write i2c OK [11:12:05]MH_I2C_Read... [11:12:05]OFD Sender: No OFD packet to send [11:12:06]*** Cut start [11:12:06]*** Partial cut [11:12:06]*** CUTSNS_PIN = 1 [11:12:06]*** CUTSNS_PIN = 0 [11:12:06]*** Brake cut motor [11:12:06]Read from MH i2c: 01 [11:12:06]MH_I2C_Read... [11:12:06]*** Stop cut motor [11:12:06]*** Cut end [11:12:06]Read from MH i2c: 01 07 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: 01 07 00 9E 6E 00 00 00 00 00 FF 0F 21 [11:12:06]process_action close_receipt done [11:12:06]requested_data is exist [11:12:06]produce_requested_data [11:12:06]requested_item fm.sn is exist - process it [11:12:06]wFMCommunicate request_size=4 [11:12:06]MH_SAM_APDU [11:12:06]CAPDU: 80 11 00 00 [11:12:06]Write to MH i2c: E2 08 00 9F 6E 80 11 00 00 00 00 00 00 87 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:06]Read from MH i2c: E2 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 17 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 17 00 9F 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D4 [11:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:12:06]wFMCommunicate OK [11:12:06]requested_item fd.num is exist - process it [11:12:06]SAM_PROTO_GetFieldsCounters [11:12:06]wFMCommunicate request_size=4 [11:12:06]MH_SAM_APDU [11:12:06]CAPDU: 80 13 00 00 [11:12:06]Write to MH i2c: E2 08 00 A0 6E 80 13 00 00 00 00 00 00 8A [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:06]Read from MH i2c: E2 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 62 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 62 00 A0 6E 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [11:12:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:06]wFMCommunicate OK [11:12:06]SAM_PROTO_GetFieldsCounters done [11:12:06]requested_item shift.num is exist - process it [11:12:06]requested_item shift.opened is exist - process it [11:12:06]req_shift_opened [11:12:06]FM_GetShiftState [11:12:06]SAM_PROTO_GetShiftState [11:12:06]wFMCommunicate request_size=4 [11:12:06]MH_SAM_APDU [11:12:06]CAPDU: 80 13 01 00 [11:12:06]Write to MH i2c: E2 08 00 A1 6E 80 13 01 00 00 00 00 00 8C [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:06]Read from MH i2c: E2 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 0E 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 0E 00 A1 6E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B4 [11:12:06]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:12:06]wFMCommunicate OK [11:12:06]SAM_PROTO_GetShiftState done [11:12:06]FM_GetShiftState done [11:12:06]req_shift_opened done [11:12:06]requested_item shift.open_date is exist - process it [11:12:06]req_shift_open_date [11:12:06]req_shift_open_date done [11:12:06]produce_requested_data done [11:12:06]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49182,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:12:06]process_action_free close_receipt [11:12:06]json_value_free [11:12:06]json_value_free done [11:12:06]process_json_proto returns [11:12:06]Send response to host [11:12:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49182,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:12:06]free response buf [11:12:06]execute_script done [11:12:06]execute_script returns [11:12:06]free content buf [11:12:06]Sock 9.Close socket [11:12:06]Sock 9.Thread stoped [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:38]accept exits with 7 [11:17:38]New connection [11:17:38]New thread 3066670436 created [11:17:38]Thread 3066813796 joined [11:17:38]Waiting for new connection... [11:17:38] Sock 7.Parse request [11:17:38]Sock 7.Check first char [11:17:38]Sock 7.First char is OK [11:17:38]request: POST /json_proto HTTP/1.0 [11:17:38]Method: POST [11:17:38]URL: /json_proto [11:17:38]Method is POST - this is cgi request [11:17:38]url: /json_proto [11:17:38]query_string will be loaded in cgi processing [11:17:38]execute_cgi json_proto POST (null) [11:17:38]execute_cgi path=json_proto method=POST [11:17:38]POST find Content-Length [11:17:38]Host: 172.17.56.67:8080 [11:17:38]Content-Length: 677 [11:17:38]Content-Type: application/json [11:17:38] [11:17:38]POST finish read [11:17:38]Found Content-Length = 677 [11:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.490, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:38]execute_script... [11:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.490, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:38]POST & json_proto [11:17:38]process_json_proto [11:17:38]json parsed OK: [11:17:38]protocol is kg_v1.0 [11:17:38]action value=close_receipt [11:17:38]process_action close_receipt [11:17:38]cmd_close_receipt [11:17:38]MH_GetDate [11:17:38]Write to MH i2c: F0 00 00 A2 6E FF [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: F0 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: F0 09 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: F0 09 00 A2 6E 00 E5 DA B8 65 26 5D 9E 65 6A [11:17:38]GetLastDocTimeStamp 1706613141 [11:17:38]current date 1706613477 [11:17:38]FM_GetShiftState [11:17:38]SAM_PROTO_GetShiftState [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 13 01 00 [11:17:38]Write to MH i2c: E2 08 00 A3 6E 80 13 01 00 00 00 00 00 8E [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0E 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0E 00 A3 6E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B6 [11:17:38]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_GetShiftState done [11:17:38]FM_GetShiftState done [11:17:38]opened in 1706572995 [11:17:38]opened+sec_in_day 1706659395 [11:17:38]quantity*price = 15014 [11:17:38]sum+1 = 15016 [11:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 59 30.01.2024 11:17 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49183 ФПД: 10979341038886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T111757&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49183&fm=10979341038886&tin=02508201610067®Number=0000000000092723&sum=15000 [11:17:39]StoreToDocumentArchive [11:17:39]shift 246 fd 49183 [11:17:39]save to /storage/0246/doc_00049183 [11:17:39]save last doc name /storage/0246/doc_00049183 to /storage/kkm_last_doc_name [11:17:39]save OK [11:17:39]Clear old archive folders... [11:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:39]tlvbuf is 013180A0 [11:17:39]SAM_PROTO_ClearQueue [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 09 00 00 [11:17:39]Write to MH i2c: E2 08 00 B0 6E 80 09 00 00 00 00 00 00 90 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 B0 6E 00 90 00 92 [11:17:39]RAPDU: 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_ClearQueue done [11:17:39]KKMCreateOFDPacket [11:17:39]OFDProtocolAddRootSTLVToBuf [11:17:39]FM_MakeSignedData [11:17:39]FM_MakeSignedData [11:17:39]SAM_PROTO_SignData [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 0D 01 02 [11:17:39]Write to MH i2c: E2 08 00 B1 6E 80 0D 01 02 00 00 00 00 98 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 B1 6E 00 90 00 93 [11:17:39]RAPDU: 90 00 [11:17:39]wFMCommunicate OK [11:17:39]wFMCommunicate request_size=255 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E5 DA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1F C0 00 00 35 04 06 00 09 [11:17:39]Write to MH i2c: E2 02 01 B2 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E5 DA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1F C0 00 00 35 04 06 00 09 00 00 41 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 B2 6E 00 90 00 94 [11:17:40]RAPDU: 90 00 [11:17:40]wFMCommunicate OK [11:17:40]wFMCommunicate request_size=10 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 0D 02 02 05 FC 53 B8 F5 26 [11:17:40]Write to MH i2c: E2 0D 00 B3 6E 80 0D 02 02 05 00 FC 53 B8 F5 26 00 00 C7 [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 03 00 B3 6E 00 90 00 95 [11:17:40]RAPDU: 90 00 [11:17:40]wFMCommunicate OK [11:17:40]wFMCommunicate request_size=4 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 0D 03 02 [11:17:40]Write to MH i2c: E2 08 00 B4 6E 80 0D 03 02 00 00 00 00 9D [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 0B 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 0B 00 B4 6E 00 40 00 88 48 AA 7C FE 44 90 00 16 [11:17:40]RAPDU: 40 00 88 48 AA 7C FE 44 90 00 [11:17:40]wFMCommunicate OK [11:17:40]SAM_PROTO_SignData done [11:17:40]FM_MakeSignedData done [11:17:40]CreateOFDProtocolMessage [11:17:40]wFMCommunicate request_size=4 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 11 00 00 [11:17:40]Write to MH i2c: E2 08 00 B5 6E 80 11 00 00 00 00 00 00 9D [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 17 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 17 00 B5 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EA [11:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:17:40]wFMCommunicate OK [11:17:40]CreateOFDProtocolMessage done [11:17:40]OFDSenderStorePacket 49183 [11:17:40]StoreOFDPacket docnum=49183 [11:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FE 76 07 01 E7 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E5 DA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1F C0 00 00 35 04 06 00 09 FC 53 B8 F5 26 40 00 88 48 AA 7C FE 44 [11:17:40]CheckFolder [11:17:40]dirname=/storage/ofd_packets [11:17:40]CheckFolder done [11:17:40]ProducePacketName [11:17:40]name=ofd_packets/00049183 [11:17:40]NVStorageSaveData ofd_packets/00049183 [11:17:40]File name is /storage/ofd_packets/00049183 [11:17:40]Write 301 bytes [11:17:40]NVStorageSaveData done [11:17:40]OFDSenderStorePacket done [11:17:40]KKMCreateOFDPacket done [11:17:40]NVStorageSaveData kkm_last_timestamp [11:17:40]File name is /storage/kkm_last_timestamp [11:17:40]Write 4 bytes [11:17:40]NVStorageSaveData done [11:17:40]ExternCall_PrintAddStr [11:17:40]wPrintStart [11:17:40]Write to MH i2c: 01 00 00 B6 6E 24 [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 B6 6E 00 00 00 00 00 FF 0F 39 [11:17:40]RasterBufferAndPrint [11:17:40]line Счет N : (1)216285 [11:17:40]line ИНН: 02508201610067 [11:17:40]line Контрольно-Кассовый Чек [11:17:40]line ПРОДАЖА [11:17:40]line ТРК (МРК, ГНК) : 22 [11:17:40]line Товар: 2710124130 [11:17:40]line Аи-92-К-5 [11:17:40]line 2.490 * 60.30 [11:17:40]line = 150.15 [11:17:40]line НДС 12% НСП 1% [11:17:40]line > о реализуемом товаре [11:17:40]line ОКРУГЛЕНИЕ: -0.15 [11:17:40]line ИТОГО: 150.00 [11:17:40]line Внесено: 150.00 [11:17:40]line СДАЧА: 0.00 [11:17:40]line НСП 1% : 1.33 [11:17:40]line НДС 12% : 15.94 [11:17:40]line Наличными: 150.00 [11:17:40]line Безнал.: 0.00 [11:17:40]line Место: АЗС № 102 "Партнер Нефть" [11:17:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:17:40]line СНО: Общий режим [11:17:40]line Чек 59 30.01.2024 11:17 [11:17:40]line Смена: 246 ФФД: 1.0 [11:17:40]line ЗНМ: 0300000040 [11:17:40]line РНМ: 0000000000092723 [11:17:40]line Версия ККМ: 001 [11:17:40]line ФМ: 0000000000875060 [11:17:40]line ФД: 49183 [11:17:40]line ФПД: 10979341038886 [11:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T111757&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49183&fm=10979341038886&tin=02508201610067®Number=0000000000092723&sum=15000 [11:17:40]OFD Sender: Processing packet 49183 [packets to send 12, broken 11] [11:17:40]ProducePacketName [11:17:40]name=ofd_packets/00049183 [11:17:40]OFD Sender: To server: pG, [11:17:40]CommunicateWithHost lk.salyk.kg:30040 [11:17:40]ConnectInit lk.salyk.kg [11:17:40]written 0, free lines is 4095 [11:17:40]Connected sock=10 [11:17: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 36 30 0F 01 00 00 FE 76 07 01 E7 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E5 DA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1F C0 00 00 35 04 06 00 09 FC 53 B8 F5 26 40 00 88 48 AA 7C FE 44 [11:17: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 36 30 4F 00 00 00 89 D5 47 00 F2 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 36 30 10 04 04 00 1F C0 00 00 F4 03 04 00 DA 86 B8 65 B6 04 01 00 00 F2 F8 56 7F A3 D0 3C C4 [11:17:40]CommunicateWithHost err = 0 [11:17:40]CheckOFDResponse [11:17:40]1017 (14) - 77093643461234 [11:17:40]1041 (16) - 0000000000875060 [11:17:40]1040 (4) - 49183 [11:17:40]1012 (4) - 30.01.2024 05:19 [11:17:40]1206 (1) - 0 [11:17:40]OFD Sender: Remove packet 49183 [11:17:40]ProducePacketName [11:17:40]name=ofd_packets/00049183 [11:17:40]NVStorageDeleteData [11:17:41]Write to MH i2c: 01 00 00 E1 6E 4F [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 07 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 07 00 E1 6E 00 00 00 00 00 E4 0C 46 [11:17:41]RasterBufferAndPrint [11:17:41]line [11:17:41]line [11:17:41]line [11:17:41]line [11:17:41]line [11:17:41]written 0, free lines is 3306 [11:17:41]MH_Cut [11:17:41]Write to MH i2c: D1 01 00 E8 6E 01 28 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: D1 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: D1 01 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: D1 01 00 E8 6E 00 27 [11:17:41]Write to MH i2c: 01 00 00 E9 6E 57 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]OFD Sender: No OFD packet to send [11:17:41]*** Cut start [11:17:41]*** Partial cut [11:17:41]*** CUTSNS_PIN = 1 [11:17:41]*** CUTSNS_PIN = 0 [11:17:42]*** Brake cut motor [11:17:42]Read from MH i2c: 01 [11:17:42]MH_I2C_Read... [11:17:42]*** Stop cut motor [11:17:42]*** Cut end [11:17:42]Read from MH i2c: 01 07 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: 01 07 00 E9 6E 00 00 00 00 00 FF 0F 6C [11:17:42]process_action close_receipt done [11:17:42]requested_data is exist [11:17:42]produce_requested_data [11:17:42]requested_item fm.sn is exist - process it [11:17:42]wFMCommunicate request_size=4 [11:17:42]MH_SAM_APDU [11:17:42]CAPDU: 80 11 00 00 [11:17:42]Write to MH i2c: E2 08 00 EA 6E 80 11 00 00 00 00 00 00 D2 [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:42]Read from MH i2c: E2 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 17 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 17 00 EA 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1F [11:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:17:42]wFMCommunicate OK [11:17:42]requested_item fd.num is exist - process it [11:17:42]SAM_PROTO_GetFieldsCounters [11:17:42]wFMCommunicate request_size=4 [11:17:42]MH_SAM_APDU [11:17:42]CAPDU: 80 13 00 00 [11:17:42]Write to MH i2c: E2 08 00 EB 6E 80 13 00 00 00 00 00 00 D5 [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:42]Read from MH i2c: E2 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 62 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 62 00 EB 6E 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [11:17: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:42]wFMCommunicate OK [11:17:42]SAM_PROTO_GetFieldsCounters done [11:17:42]requested_item shift.num is exist - process it [11:17:42]requested_item shift.opened is exist - process it [11:17:42]req_shift_opened [11:17:42]FM_GetShiftState [11:17:42]SAM_PROTO_GetShiftState [11:17:42]wFMCommunicate request_size=4 [11:17:42]MH_SAM_APDU [11:17:42]CAPDU: 80 13 01 00 [11:17:42]Write to MH i2c: E2 08 00 EC 6E 80 13 01 00 00 00 00 00 D7 [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:42]Read from MH i2c: E2 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 0E 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 0E 00 EC 6E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 FF [11:17:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:17:42]wFMCommunicate OK [11:17:42]SAM_PROTO_GetShiftState done [11:17:42]FM_GetShiftState done [11:17:42]req_shift_opened done [11:17:42]requested_item shift.open_date is exist - process it [11:17:42]req_shift_open_date [11:17:42]req_shift_open_date done [11:17:42]produce_requested_data done [11:17:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49183,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:17:42]process_action_free close_receipt [11:17:42]json_value_free [11:17:42]json_value_free done [11:17:42]process_json_proto returns [11:17:42]Send response to host [11:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49183,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:17:42]free response buf [11:17:42]execute_script done [11:17:42]execute_script returns [11:17:42]free content buf [11:17:42]Sock 7.Close socket [11:17:42]Sock 7.Thread stoped [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:25]accept exits with 9 [11:22:25]New connection [11:22:25]New thread 3066813796 created [11:22:25]Thread 3066670436 joined [11:22:25]Waiting for new connection... [11:22:25] Sock 9.Parse request [11:22:25]Sock 9.Check first char [11:22:25]Sock 9.First char is OK [11:22:25]request: POST /json_proto HTTP/1.0 [11:22:25]Method: POST [11:22:25]URL: /json_proto [11:22:25]Method is POST - this is cgi request [11:22:25]url: /json_proto [11:22:25]query_string will be loaded in cgi processing [11:22:25]execute_cgi json_proto POST (null) [11:22:25]execute_cgi path=json_proto method=POST [11:22:25]POST find Content-Length [11:22:25]Host: 172.17.56.67:8080 [11:22:25]Content-Length: 679 [11:22:25]Content-Type: application/json [11:22:25] [11:22:25]POST finish read [11:22:25]Found Content-Length = 679 [11:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 15.030, "sum" : 1050.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:25]execute_script... [11:22:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 15.030, "sum" : 1050.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:25]POST & json_proto [11:22:25]process_json_proto [11:22:25]json parsed OK: [11:22:25]protocol is kg_v1.0 [11:22:25]action value=close_receipt [11:22:25]process_action close_receipt [11:22:25]cmd_close_receipt [11:22:25]MH_GetDate [11:22:25]Write to MH i2c: F0 00 00 ED 6E 4A [11:22:25]Write i2c OK [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: F0 [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: F0 09 00 [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: F0 09 00 ED 6E 00 03 DC B8 65 26 5D 9E 65 D5 [11:22:25]GetLastDocTimeStamp 1706613477 [11:22:25]current date 1706613763 [11:22:25]FM_GetShiftState [11:22:25]SAM_PROTO_GetShiftState [11:22:25]wFMCommunicate request_size=4 [11:22:25]MH_SAM_APDU [11:22:25]CAPDU: 80 13 01 00 [11:22:25]Write to MH i2c: E2 08 00 EE 6E 80 13 01 00 00 00 00 00 D9 [11:22:25]Write i2c OK [11:22:25]MH_I2C_Read... [11:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:25]Read from MH i2c: E2 [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: E2 0E 00 [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: E2 0E 00 EE 6E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 01 [11:22:25]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:22:25]wFMCommunicate OK [11:22:25]SAM_PROTO_GetShiftState done [11:22:25]FM_GetShiftState done [11:22:25]opened in 1706572995 [11:22:25]opened+sec_in_day 1706659395 [11:22:25]quantity*price = 105059 [11:22:25]sum+1 = 105061 [11:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.30 НДС 12% : 111.57 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 60 30.01.2024 11:22 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49184 ФПД: 190809406266750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T112243&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49184&fm=190809406266750&tin=02508201610067®Number=0000000000092723&sum=105000 [11:22:26]StoreToDocumentArchive [11:22:26]shift 246 fd 49184 [11:22:26]save to /storage/0246/doc_00049184 [11:22:26]save last doc name /storage/0246/doc_00049184 to /storage/kkm_last_doc_name [11:22:26]save OK [11:22:26]Clear old archive folders... [11:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:26]tlvbuf is B6F33570 [11:22:26]SAM_PROTO_ClearQueue [11:22:26]wFMCommunicate request_size=4 [11:22:26]MH_SAM_APDU [11:22:26]CAPDU: 80 09 00 00 [11:22:26]Write to MH i2c: E2 08 00 FB 6E 80 09 00 00 00 00 00 00 DB [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:26]Read from MH i2c: E2 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 03 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 03 00 FB 6E 00 90 00 DD [11:22:26]RAPDU: 90 00 [11:22:26]wFMCommunicate OK [11:22:26]SAM_PROTO_ClearQueue done [11:22:26]KKMCreateOFDPacket [11:22:26]OFDProtocolAddRootSTLVToBuf [11:22:26]FM_MakeSignedData [11:22:26]FM_MakeSignedData [11:22:26]SAM_PROTO_SignData [11:22:26]wFMCommunicate request_size=4 [11:22:26]MH_SAM_APDU [11:22:26]CAPDU: 80 0D 01 02 [11:22:26]Write to MH i2c: E2 08 00 FC 6E 80 0D 01 02 00 00 00 00 E3 [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]OFD Sender: No OFD packet to send [11:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:26]Read from MH i2c: E2 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 03 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 03 00 FC 6E 00 90 00 DE [11:22:26]RAPDU: 90 00 [11:22:26]wFMCommunicate OK [11:22:26]wFMCommunicate request_size=255 [11:22:26]MH_SAM_APDU [11:22:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 64 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 20 C0 00 00 35 04 06 00 AD 8A 46 E1 [11:22:26]Write to MH i2c: E2 02 01 FD 6E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 64 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 20 C0 00 00 35 04 06 00 AD 8A 46 E1 00 00 E7 [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 FD 6E 00 90 00 DF [11:22:27]RAPDU: 90 00 [11:22:27]wFMCommunicate OK [11:22:27]wFMCommunicate request_size=7 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 0D 02 02 02 5D 7E [11:22:27]Write to MH i2c: E2 0A 00 FE 6E 80 0D 02 02 02 00 5D 7E 00 00 C5 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 FE 6E 00 90 00 E0 [11:22:27]RAPDU: 90 00 [11:22:27]wFMCommunicate OK [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 0D 03 02 [11:22:27]Write to MH i2c: E2 08 00 FF 6E 80 0D 03 02 00 00 00 00 E8 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0B 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0B 00 FF 6E 00 C3 4A 3A 92 51 94 84 F2 90 00 1D [11:22:27]RAPDU: C3 4A 3A 92 51 94 84 F2 90 00 [11:22:27]wFMCommunicate OK [11:22:27]SAM_PROTO_SignData done [11:22:27]FM_MakeSignedData done [11:22:27]CreateOFDProtocolMessage [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 11 00 00 [11:22:27]Write to MH i2c: E2 08 00 00 6F 80 11 00 00 00 00 00 00 E9 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 17 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 17 00 00 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 36 [11:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:22:27]wFMCommunicate OK [11:22:27]CreateOFDProtocolMessage done [11:22:27]OFDSenderStorePacket 49184 [11:22:27]StoreOFDPacket docnum=49184 [11:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 34 40 04 01 E4 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 64 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 20 C0 00 00 35 04 06 00 AD 8A 46 E1 5D 7E C3 4A 3A 92 51 94 84 F2 [11:22:27]CheckFolder [11:22:27]dirname=/storage/ofd_packets [11:22:27]CheckFolder done [11:22:27]ProducePacketName [11:22:27]name=ofd_packets/00049184 [11:22:27]NVStorageSaveData ofd_packets/00049184 [11:22:27]File name is /storage/ofd_packets/00049184 [11:22:27]Write 298 bytes [11:22:27]NVStorageSaveData done [11:22:27]OFDSenderStorePacket done [11:22:27]KKMCreateOFDPacket done [11:22:27]NVStorageSaveData kkm_last_timestamp [11:22:27]File name is /storage/kkm_last_timestamp [11:22:27]Write 4 bytes [11:22:27]NVStorageSaveData done [11:22:27]ExternCall_PrintAddStr [11:22:27]wPrintStart [11:22:27]Write to MH i2c: 01 00 00 01 6F 70 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 07 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 07 00 01 6F 00 00 00 00 00 FF 0F 85 [11:22:27]RasterBufferAndPrint [11:22:27]line Счет N : (1)216286 [11:22:27]line ИНН: 02508201610067 [11:22:27]line Контрольно-Кассовый Чек [11:22:27]line ПРОДАЖА [11:22:27]line ТРК (МРК, ГНК) : 11 [11:22:27]line Товар: 2710194210 [11:22:27]line ДТ-К-5 [11:22:27]line 15.030 * 69.90 [11:22:27]line = 1050.60 [11:22:27]line НДС 12% НСП 1% [11:22:27]line > о реализуемом товаре [11:22:27]line ОКРУГЛЕНИЕ: -0.60 [11:22:27]line ИТОГО: 1050.00 [11:22:27]line Внесено: 1050.00 [11:22:27]line СДАЧА: 0.00 [11:22:27]line НСП 1% : 9.30 [11:22:27]line НДС 12% : 111.57 [11:22:27]line Наличными: 1050.00 [11:22:27]line Безнал.: 0.00 [11:22:27]line Место: АЗС № 102 "Партнер Нефть" [11:22:27]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:22:27]line СНО: Общий режим [11:22:27]line Чек 60 30.01.2024 11:22 [11:22:27]line Смена: 246 ФФД: 1.0 [11:22:27]line ЗНМ: 0300000040 [11:22:27]line РНМ: 0000000000092723 [11:22:27]line Версия ККМ: 001 [11:22:27]line ФМ: 0000000000875060 [11:22:27]line ФД: 49184 [11:22:27]line ФПД: 190809406266750 [11:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T112243&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49184&fm=190809406266750&tin=02508201610067®Number=0000000000092723&sum=105000 [11:22:27]OFD Sender: Processing packet 49184 [packets to send 12, broken 11] [11:22:27]ProducePacketName [11:22:27]name=ofd_packets/00049184 [11:22:27]OFD Sender: To server: pG, [11:22:27]CommunicateWithHost lk.salyk.kg:30040 [11:22:27]ConnectInit lk.salyk.kg [11:22:27]written 0, free lines is 4095 [11:22:27]Connected sock=10 [11:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 34 40 04 01 E4 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 64 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 20 C0 00 00 35 04 06 00 AD 8A 46 E1 5D 7E C3 4A 3A 92 51 94 84 F2 [11:22: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 36 30 4F 00 00 00 17 E1 47 00 1F 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 36 30 10 04 04 00 20 C0 00 00 F4 03 04 00 F9 87 B8 65 B6 04 01 00 00 A6 48 0E 19 8C 55 F2 AF [11:22:27]CommunicateWithHost err = 0 [11:22:27]CheckOFDResponse [11:22:27]1017 (14) - 77093643461234 [11:22:27]1041 (16) - 0000000000875060 [11:22:27]1040 (4) - 49184 [11:22:27]1012 (4) - 30.01.2024 05:24 [11:22:27]1206 (1) - 0 [11:22:27]OFD Sender: Remove packet 49184 [11:22:27]ProducePacketName [11:22:27]name=ofd_packets/00049184 [11:22:27]NVStorageDeleteData [11:22:27]Write to MH i2c: 01 00 00 2C 6F 9B [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 07 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 07 00 2C 6F 00 00 00 00 00 E8 0C 96 [11:22:27]RasterBufferAndPrint [11:22:27]line [11:22:27]line [11:22:27]line [11:22:27]line [11:22:27]line [11:22:27]written 0, free lines is 3311 [11:22:27]MH_Cut [11:22:27]Write to MH i2c: D1 01 00 33 6F 01 74 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: D1 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: D1 01 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: D1 01 00 33 6F 00 73 [11:22:28]Write to MH i2c: 01 00 00 34 6F A3 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]OFD Sender: No OFD packet to send [11:22:28]*** Cut start [11:22:28]*** Partial cut [11:22:28]*** CUTSNS_PIN = 1 [11:22:28]*** CUTSNS_PIN = 0 [11:22:28]*** Brake cut motor [11:22:29]Read from MH i2c: 01 [11:22:29]MH_I2C_Read... [11:22:29]*** Stop cut motor [11:22:29]*** Cut end [11:22:29]Read from MH i2c: 01 07 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 34 6F 00 00 00 00 00 FF 0F B8 [11:22:29]process_action close_receipt done [11:22:29]requested_data is exist [11:22:29]produce_requested_data [11:22:29]requested_item fm.sn is exist - process it [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 11 00 00 [11:22:29]Write to MH i2c: E2 08 00 35 6F 80 11 00 00 00 00 00 00 1E [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 17 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 17 00 35 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6B [11:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:22:29]wFMCommunicate OK [11:22:29]requested_item fd.num is exist - process it [11:22:29]SAM_PROTO_GetFieldsCounters [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 13 00 00 [11:22:29]Write to MH i2c: E2 08 00 36 6F 80 13 00 00 00 00 00 00 21 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 62 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 62 00 36 6F 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 20 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:22: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 20 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:29]wFMCommunicate OK [11:22:29]SAM_PROTO_GetFieldsCounters done [11:22:29]requested_item shift.num is exist - process it [11:22:29]requested_item shift.opened is exist - process it [11:22:29]req_shift_opened [11:22:29]FM_GetShiftState [11:22:29]SAM_PROTO_GetShiftState [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 13 01 00 [11:22:29]Write to MH i2c: E2 08 00 37 6F 80 13 01 00 00 00 00 00 23 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 0E 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 0E 00 37 6F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4B [11:22:29]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:22:29]wFMCommunicate OK [11:22:29]SAM_PROTO_GetShiftState done [11:22:29]FM_GetShiftState done [11:22:29]req_shift_opened done [11:22:29]requested_item shift.open_date is exist - process it [11:22:29]req_shift_open_date [11:22:29]req_shift_open_date done [11:22:29]produce_requested_data done [11:22:29]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49184,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:22:29]process_action_free close_receipt [11:22:29]json_value_free [11:22:29]json_value_free done [11:22:29]process_json_proto returns [11:22:29]Send response to host [11:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49184,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:22:29]free response buf [11:22:29]execute_script done [11:22:29]execute_script returns [11:22:29]free content buf [11:22:29]Sock 9.Close socket [11:22:29]Sock 9.Thread stoped [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:09]accept exits with 7 [11:25:09]New connection [11:25:09]New thread 3066670436 created [11:25:09]Thread 3066813796 joined [11:25:09]Waiting for new connection... [11:25:09] Sock 7.Parse request [11:25:09]Sock 7.Check first char [11:25:09]Sock 7.First char is OK [11:25:09]request: POST /json_proto HTTP/1.0 [11:25:09]Method: POST [11:25:09]URL: /json_proto [11:25:09]Method is POST - this is cgi request [11:25:09]url: /json_proto [11:25:09]query_string will be loaded in cgi processing [11:25:09]execute_cgi json_proto POST (null) [11:25:09]execute_cgi path=json_proto method=POST [11:25:09]POST find Content-Length [11:25:09]Host: 172.17.56.67:8080 [11:25:09]Content-Length: 673 [11:25:09]Content-Type: application/json [11:25:09] [11:25:09]POST finish read [11:25:09]Found Content-Length = 673 [11:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.220, "sum" : 73.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 73.00, "total" : 73.00, "payments": [ { "type": 0, "sum" : 73.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:09]execute_script... [11:25:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.220, "sum" : 73.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 73.00, "total" : 73.00, "payments": [ { "type": 0, "sum" : 73.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:09]POST & json_proto [11:25:09]process_json_proto [11:25:09]json parsed OK: [11:25:09]protocol is kg_v1.0 [11:25:09]action value=close_receipt [11:25:09]process_action close_receipt [11:25:09]cmd_close_receipt [11:25:09]MH_GetDate [11:25:09]Write to MH i2c: F0 00 00 38 6F 96 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 09 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 09 00 38 6F 00 A7 DC B8 65 26 5D 9E 65 C5 [11:25:09]GetLastDocTimeStamp 1706613763 [11:25:09]current date 1706613927 [11:25:09]FM_GetShiftState [11:25:09]SAM_PROTO_GetShiftState [11:25:09]wFMCommunicate request_size=4 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 13 01 00 [11:25:09]Write to MH i2c: E2 08 00 39 6F 80 13 01 00 00 00 00 00 25 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0E 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0E 00 39 6F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4D [11:25:09]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:25:09]wFMCommunicate OK [11:25:09]SAM_PROTO_GetShiftState done [11:25:09]FM_GetShiftState done [11:25:09]opened in 1706572995 [11:25:09]opened+sec_in_day 1706659395 [11:25:09]quantity*price = 7356 [11:25:09]sum+1 = 7358 [11:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 73.00 Внесено: 73.00 СДАЧА: 0.00 НСП 1% : 0.65 НДС 12% : 7.81 Наличными: 73.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 61 30.01.2024 11:25 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49185 ФПД: 96670215823377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T112527&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49185&fm=96670215823377&tin=02508201610067®Number=0000000000092723&sum=7300 [11:25:10]StoreToDocumentArchive [11:25:10]shift 246 fd 49185 [11:25:10]save to /storage/0246/doc_00049185 [11:25:10]save last doc name /storage/0246/doc_00049185 to /storage/kkm_last_doc_name [11:25:10]save OK [11:25:10]Clear old archive folders... [11:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:10]tlvbuf is 01236600 [11:25:10]SAM_PROTO_ClearQueue [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 09 00 00 [11:25:10]Write to MH i2c: E2 08 00 46 6F 80 09 00 00 00 00 00 00 27 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 46 6F 00 90 00 29 [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]SAM_PROTO_ClearQueue done [11:25:10]KKMCreateOFDPacket [11:25:10]OFDProtocolAddRootSTLVToBuf [11:25:10]FM_MakeSignedData [11:25:10]FM_MakeSignedData [11:25:10]SAM_PROTO_SignData [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 01 02 [11:25:10]Write to MH i2c: E2 08 00 47 6F 80 0D 01 02 00 00 00 00 2F [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 47 6F 00 90 00 2A [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]wFMCommunicate request_size=255 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 04 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BD 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 03 00 00 00 00 07 04 06 00 84 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A7 DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 21 C0 00 00 35 04 06 00 57 [11:25:10]Write to MH i2c: E2 02 01 48 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 04 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BD 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 03 00 00 00 00 07 04 06 00 84 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A7 DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 21 C0 00 00 35 04 06 00 57 00 00 13 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 48 6F 00 90 00 2B [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]wFMCommunicate request_size=10 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 02 02 05 EB C9 DF E0 11 [11:25:10]Write to MH i2c: E2 0D 00 49 6F 80 0D 02 02 05 00 EB C9 DF E0 11 00 00 C0 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 49 6F 00 90 00 2C [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 03 02 [11:25:10]Write to MH i2c: E2 08 00 4A 6F 80 0D 03 02 00 00 00 00 34 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 0B 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 0B 00 4A 6F 00 A6 A3 AA 8F E4 66 C8 4B 90 00 14 [11:25:10]RAPDU: A6 A3 AA 8F E4 66 C8 4B 90 00 [11:25:10]wFMCommunicate OK [11:25:10]SAM_PROTO_SignData done [11:25:10]FM_MakeSignedData done [11:25:10]CreateOFDProtocolMessage [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 11 00 00 [11:25:10]Write to MH i2c: E2 08 00 4B 6F 80 11 00 00 00 00 00 00 34 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 17 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 17 00 4B 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 81 [11:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:25:10]wFMCommunicate OK [11:25:10]CreateOFDProtocolMessage done [11:25:10]OFDSenderStorePacket 49185 [11:25:10]StoreOFDPacket docnum=49185 [11:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EF F2 07 01 1C 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 04 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BD 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 03 00 00 00 00 07 04 06 00 84 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A7 DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 21 C0 00 00 35 04 06 00 57 EB C9 DF E0 11 A6 A3 AA 8F E4 66 C8 4B [11:25:10]CheckFolder [11:25:10]dirname=/storage/ofd_packets [11:25:10]CheckFolder done [11:25:10]ProducePacketName [11:25:10]name=ofd_packets/00049185 [11:25:10]NVStorageSaveData ofd_packets/00049185 [11:25:10]File name is /storage/ofd_packets/00049185 [11:25:10]Write 301 bytes [11:25:10]NVStorageSaveData done [11:25:10]OFDSenderStorePacket done [11:25:10]KKMCreateOFDPacket done [11:25:10]NVStorageSaveData kkm_last_timestamp [11:25:10]File name is /storage/kkm_last_timestamp [11:25:10]Write 4 bytes [11:25:10]NVStorageSaveData done [11:25:10]ExternCall_PrintAddStr [11:25:10]wPrintStart [11:25:10]Write to MH i2c: 01 00 00 4C 6F BB [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 07 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: 01 07 00 4C 6F 00 00 00 00 00 FF 0F D0 [11:25:10]RasterBufferAndPrint [11:25:10]line Счет N : (1)216287 [11:25:10]line ИНН: 02508201610067 [11:25:10]line Контрольно-Кассовый Чек [11:25:10]line ПРОДАЖА [11:25:10]line ТРК (МРК, ГНК) : 12 [11:25:10]line Товар: 2710124130 [11:25:10]line Аи-92-К-5 [11:25:10]line 1.220 * 60.30 [11:25:10]line = 73.57 [11:25:10]line НДС 12% НСП 1% [11:25:10]line > о реализуемом товаре [11:25:10]line ОКРУГЛЕНИЕ: -0.57 [11:25:10]line ИТОГО: 73.00 [11:25:10]line Внесено: 73.00 [11:25:10]line СДАЧА: 0.00 [11:25:10]line НСП 1% : 0.65 [11:25:10]line НДС 12% : 7.81 [11:25:10]line Наличными: 73.00 [11:25:10]line Безнал.: 0.00 [11:25:10]line Место: АЗС № 102 "Партнер Нефть" [11:25:10]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:25:10]line СНО: Общий режим [11:25:10]line Чек 61 30.01.2024 11:25 [11:25:10]line Смена: 246 ФФД: 1.0 [11:25:10]line ЗНМ: 0300000040 [11:25:10]line РНМ: 0000000000092723 [11:25:10]line Версия ККМ: 001 [11:25:10]line ФМ: 0000000000875060 [11:25:10]line ФД: 49185 [11:25:10]line ФПД: 96670215823377 [11:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T112527&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49185&fm=96670215823377&tin=02508201610067®Number=0000000000092723&sum=7300 [11:25:11]OFD Sender: Processing packet 49185 [packets to send 12, broken 11] [11:25:11]ProducePacketName [11:25:11]name=ofd_packets/00049185 [11:25:11]OFD Sender: To server: pG, [11:25:11]CommunicateWithHost lk.salyk.kg:30040 [11:25:11]ConnectInit lk.salyk.kg [11:25:11]written 0, free lines is 4095 [11:25:11]Connected sock=10 [11:25: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 36 30 0F 01 00 00 EF F2 07 01 1C 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 04 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BD 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 03 00 00 00 00 07 04 06 00 84 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A7 DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 21 C0 00 00 35 04 06 00 57 EB C9 DF E0 11 A6 A3 AA 8F E4 66 C8 4B [11:25: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 36 30 4F 00 00 00 09 DB 47 00 67 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 36 30 10 04 04 00 21 C0 00 00 F4 03 04 00 9D 88 B8 65 B6 04 01 00 00 CD 38 D8 E4 F6 04 AD 9A [11:25:11]CommunicateWithHost err = 0 [11:25:11]CheckOFDResponse [11:25:11]1017 (14) - 77093643461234 [11:25:11]1041 (16) - 0000000000875060 [11:25:11]1040 (4) - 49185 [11:25:11]1012 (4) - 30.01.2024 05:26 [11:25:11]1206 (1) - 0 [11:25:11]OFD Sender: Remove packet 49185 [11:25:11]ProducePacketName [11:25:11]name=ofd_packets/00049185 [11:25:11]NVStorageDeleteData [11:25:11]Write to MH i2c: 01 00 00 77 6F E6 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 77 6F 00 00 00 00 00 E3 0C DC [11:25:11]RasterBufferAndPrint [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]written 0, free lines is 3305 [11:25:11]MH_Cut [11:25:11]Write to MH i2c: D1 01 00 7E 6F 01 BF [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: D1 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: D1 01 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: D1 01 00 7E 6F 00 BE [11:25:11]Write to MH i2c: 01 00 00 7F 6F EE [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:12]OFD Sender: No OFD packet to send [11:25:12]*** Cut start [11:25:12]*** Partial cut [11:25:12]*** CUTSNS_PIN = 1 [11:25:12]*** CUTSNS_PIN = 0 [11:25:12]*** Brake cut motor [11:25:13]Read from MH i2c: 01 [11:25:13]MH_I2C_Read... [11:25:13]*** Stop cut motor [11:25:13]*** Cut end [11:25:13]Read from MH i2c: 01 07 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 7F 6F 00 00 00 00 00 FF 0F 03 [11:25:13]process_action close_receipt done [11:25:13]requested_data is exist [11:25:13]produce_requested_data [11:25:13]requested_item fm.sn is exist - process it [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 11 00 00 [11:25:13]Write to MH i2c: E2 08 00 80 6F 80 11 00 00 00 00 00 00 69 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 80 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B6 [11:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:25:13]wFMCommunicate OK [11:25:13]requested_item fd.num is exist - process it [11:25:13]SAM_PROTO_GetFieldsCounters [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 13 00 00 [11:25:13]Write to MH i2c: E2 08 00 81 6F 80 13 00 00 00 00 00 00 6C [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 62 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 62 00 81 6F 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 21 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [11:25: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 21 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_GetFieldsCounters done [11:25:13]requested_item shift.num is exist - process it [11:25:13]requested_item shift.opened is exist - process it [11:25:13]req_shift_opened [11:25:13]FM_GetShiftState [11:25:13]SAM_PROTO_GetShiftState [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 13 01 00 [11:25:13]Write to MH i2c: E2 08 00 82 6F 80 13 01 00 00 00 00 00 6E [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0E 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0E 00 82 6F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 96 [11:25:13]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_GetShiftState done [11:25:13]FM_GetShiftState done [11:25:13]req_shift_opened done [11:25:13]requested_item shift.open_date is exist - process it [11:25:13]req_shift_open_date [11:25:13]req_shift_open_date done [11:25:13]produce_requested_data done [11:25:13]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49185,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:25:13]process_action_free close_receipt [11:25:13]json_value_free [11:25:13]json_value_free done [11:25:13]process_json_proto returns [11:25:13]Send response to host [11:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49185,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:25:13]free response buf [11:25:13]execute_script done [11:25:13]execute_script returns [11:25:13]free content buf [11:25:13]Sock 7.Close socket [11:25:13]Sock 7.Thread stoped [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:28]accept exits with 9 [11:25:28]New connection [11:25:28]New thread 3066813796 created [11:25:28]Thread 3066670436 joined [11:25:28]Waiting for new connection... [11:25:28] Sock 9.Parse request [11:25:28]Sock 9.Check first char [11:25:28]Sock 9.First char is OK [11:25:28]request: POST /json_proto HTTP/1.0 [11:25:28]Method: POST [11:25:28]URL: /json_proto [11:25:28]Method is POST - this is cgi request [11:25:28]url: /json_proto [11:25:28]query_string will be loaded in cgi processing [11:25:28]execute_cgi json_proto POST (null) [11:25:28]execute_cgi path=json_proto method=POST [11:25:28]POST find Content-Length [11:25:28]Host: 172.17.56.67:8080 [11:25:28]Content-Length: 677 [11:25:28]Content-Type: application/json [11:25:28] [11:25:28]POST finish read [11:25:28]Found Content-Length = 677 [11:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.990, "sum" : 240.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:28]execute_script... [11:25:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.990, "sum" : 240.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:28]POST & json_proto [11:25:28]process_json_proto [11:25:28]json parsed OK: [11:25:28]protocol is kg_v1.0 [11:25:28]action value=close_receipt [11:25:28]process_action close_receipt [11:25:28]cmd_close_receipt [11:25:28]MH_GetDate [11:25:28]Write to MH i2c: F0 00 00 83 6F E1 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: F0 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: F0 09 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: F0 09 00 83 6F 00 BB DC B8 65 26 5D 9E 65 24 [11:25:28]GetLastDocTimeStamp 1706613927 [11:25:28]current date 1706613947 [11:25:28]FM_GetShiftState [11:25:28]SAM_PROTO_GetShiftState [11:25:28]wFMCommunicate request_size=4 [11:25:28]MH_SAM_APDU [11:25:28]CAPDU: 80 13 01 00 [11:25:28]Write to MH i2c: E2 08 00 84 6F 80 13 01 00 00 00 00 00 70 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:28]Read from MH i2c: E2 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 0E 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 0E 00 84 6F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 98 [11:25:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:25:28]wFMCommunicate OK [11:25:28]SAM_PROTO_GetShiftState done [11:25:28]FM_GetShiftState done [11:25:28]opened in 1706572995 [11:25:28]opened+sec_in_day 1706659395 [11:25:28]quantity*price = 24059 [11:25:28]sum+1 = 24061 [11:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.55 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 62 30.01.2024 11:25 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49186 ФПД: 23475184573472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T112547&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49186&fm=23475184573472&tin=02508201610067®Number=0000000000092723&sum=24000 [11:25:29]StoreToDocumentArchive [11:25:29]shift 246 fd 49186 [11:25:29]save to /storage/0246/doc_00049186 [11:25:29]save last doc name /storage/0246/doc_00049186 to /storage/kkm_last_doc_name [11:25:29]save OK [11:25:29]Clear old archive folders... [11:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:29]tlvbuf is B6D86710 [11:25:29]SAM_PROTO_ClearQueue [11:25:29]wFMCommunicate request_size=4 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 09 00 00 [11:25:29]Write to MH i2c: E2 08 00 91 6F 80 09 00 00 00 00 00 00 72 [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:29]Read from MH i2c: E2 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 91 6F 00 90 00 74 [11:25:29]RAPDU: 90 00 [11:25:29]wFMCommunicate OK [11:25:29]SAM_PROTO_ClearQueue done [11:25:29]KKMCreateOFDPacket [11:25:29]OFDProtocolAddRootSTLVToBuf [11:25:29]FM_MakeSignedData [11:25:29]FM_MakeSignedData [11:25:29]SAM_PROTO_SignData [11:25:29]wFMCommunicate request_size=4 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 0D 01 02 [11:25:29]Write to MH i2c: E2 08 00 92 6F 80 0D 01 02 00 00 00 00 7A [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:29]Read from MH i2c: E2 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 92 6F 00 90 00 75 [11:25:29]RAPDU: 90 00 [11:25:29]wFMCommunicate OK [11:25:29]wFMCommunicate request_size=255 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FC 5D 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 FB 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BB DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 C0 00 00 35 04 06 00 15 [11:25:29]Write to MH i2c: E2 02 01 93 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FC 5D 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 FB 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BB DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 C0 00 00 35 04 06 00 15 00 00 11 [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:30]Read from MH i2c: E2 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 03 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 03 00 93 6F 00 90 00 76 [11:25:30]RAPDU: 90 00 [11:25:30]wFMCommunicate OK [11:25:30]wFMCommunicate request_size=10 [11:25:30]MH_SAM_APDU [11:25:30]CAPDU: 80 0D 02 02 05 59 BE 09 9C 20 [11:25:30]Write to MH i2c: E2 0D 00 94 6F 80 0D 02 02 05 00 59 BE 09 9C 20 00 00 63 [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:30]Read from MH i2c: E2 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 03 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 03 00 94 6F 00 90 00 77 [11:25:30]RAPDU: 90 00 [11:25:30]wFMCommunicate OK [11:25:30]wFMCommunicate request_size=4 [11:25:30]MH_SAM_APDU [11:25:30]CAPDU: 80 0D 03 02 [11:25:30]Write to MH i2c: E2 08 00 95 6F 80 0D 03 02 00 00 00 00 7F [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:30]Read from MH i2c: E2 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 0B 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 0B 00 95 6F 00 BB B6 73 BC A9 B5 FC D4 90 00 4E [11:25:30]RAPDU: BB B6 73 BC A9 B5 FC D4 90 00 [11:25:30]wFMCommunicate OK [11:25:30]SAM_PROTO_SignData done [11:25:30]FM_MakeSignedData done [11:25:30]CreateOFDProtocolMessage [11:25:30]wFMCommunicate request_size=4 [11:25:30]MH_SAM_APDU [11:25:30]CAPDU: 80 11 00 00 [11:25:30]Write to MH i2c: E2 08 00 96 6F 80 11 00 00 00 00 00 00 7F [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:30]Read from MH i2c: E2 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 17 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 17 00 96 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CC [11:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:25:30]wFMCommunicate OK [11:25:30]CreateOFDProtocolMessage done [11:25:30]OFDSenderStorePacket 49186 [11:25:30]StoreOFDPacket docnum=49186 [11:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 71 AF 07 01 70 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 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FC 5D 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 FB 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BB DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 C0 00 00 35 04 06 00 15 59 BE 09 9C 20 BB B6 73 BC A9 B5 FC D4 [11:25:30]CheckFolder [11:25:30]dirname=/storage/ofd_packets [11:25:30]CheckFolder done [11:25:30]ProducePacketName [11:25:30]name=ofd_packets/00049186 [11:25:30]NVStorageSaveData ofd_packets/00049186 [11:25:30]File name is /storage/ofd_packets/00049186 [11:25:30]Write 301 bytes [11:25:30]NVStorageSaveData done [11:25:30]OFDSenderStorePacket done [11:25:30]KKMCreateOFDPacket done [11:25:30]NVStorageSaveData kkm_last_timestamp [11:25:30]File name is /storage/kkm_last_timestamp [11:25:30]Write 4 bytes [11:25:30]NVStorageSaveData done [11:25:30]ExternCall_PrintAddStr [11:25:30]wPrintStart [11:25:30]Write to MH i2c: 01 00 00 97 6F 06 [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: 01 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: 01 07 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: 01 07 00 97 6F 00 00 00 00 00 FF 0F 1B [11:25:30]RasterBufferAndPrint [11:25:30]line Счет N : (1)216288 [11:25:30]line ИНН: 02508201610067 [11:25:30]line Контрольно-Кассовый Чек [11:25:30]line ПРОДАЖА [11:25:30]line ТРК (МРК, ГНК) : 22 [11:25:30]line Товар: 2710124130 [11:25:30]line Аи-92-К-5 [11:25:30]line 3.990 * 60.30 [11:25:30]line = 240.60 [11:25:30]line НДС 12% НСП 1% [11:25:30]line > о реализуемом товаре [11:25:30]line ОКРУГЛЕНИЕ: -0.60 [11:25:30]line ИТОГО: 240.00 [11:25:30]line Внесено: 240.00 [11:25:30]line СДАЧА: 0.00 [11:25:30]line НСП 1% : 2.13 [11:25:30]line НДС 12% : 25.55 [11:25:30]line Наличными: 240.00 [11:25:30]line Безнал.: 0.00 [11:25:30]line Место: АЗС № 102 "Партнер Нефть" [11:25:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:25:30]line СНО: Общий режим [11:25:30]line Чек 62 30.01.2024 11:25 [11:25:30]line Смена: 246 ФФД: 1.0 [11:25:30]line ЗНМ: 0300000040 [11:25:30]line РНМ: 0000000000092723 [11:25:30]line Версия ККМ: 001 [11:25:30]line ФМ: 0000000000875060 [11:25:30]line ФД: 49186 [11:25:30]line ФПД: 23475184573472 [11:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T112547&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49186&fm=23475184573472&tin=02508201610067®Number=0000000000092723&sum=24000 [11:25:30]OFD Sender: Processing packet 49186 [packets to send 12, broken 11] [11:25:30]ProducePacketName [11:25:30]name=ofd_packets/00049186 [11:25:30]OFD Sender: To server: pG, [11:25:30]CommunicateWithHost lk.salyk.kg:30040 [11:25:30]ConnectInit lk.salyk.kg [11:25:30]written 0, free lines is 4095 [11:25:30]Connected sock=10 [11:25: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 36 30 0F 01 00 00 71 AF 07 01 70 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 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FC 5D 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 FB 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BB DC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 C0 00 00 35 04 06 00 15 59 BE 09 9C 20 BB B6 73 BC A9 B5 FC D4 [11:25: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 36 30 4F 00 00 00 3A 60 47 00 14 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 C0 00 00 F4 03 04 00 B0 88 B8 65 B6 04 01 00 00 9E 9B 19 DC AC C2 E0 3F [11:25:30]CommunicateWithHost err = 0 [11:25:30]CheckOFDResponse [11:25:30]1017 (14) - 77093643461234 [11:25:30]1041 (16) - 0000000000875060 [11:25:30]1040 (4) - 49186 [11:25:30]1012 (4) - 30.01.2024 05:27 [11:25:30]1206 (1) - 0 [11:25:30]OFD Sender: Remove packet 49186 [11:25:30]ProducePacketName [11:25:30]name=ofd_packets/00049186 [11:25:30]NVStorageDeleteData [11:25:31]Write to MH i2c: 01 00 00 C2 6F 31 [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: 01 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: 01 07 00 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: 01 07 00 C2 6F 00 00 00 00 00 EE 0C 32 [11:25:31]RasterBufferAndPrint [11:25:31]line [11:25:31]line [11:25:31]line [11:25:31]line [11:25:31]line [11:25:31]written 0, free lines is 3316 [11:25:31]MH_Cut [11:25:31]Write to MH i2c: D1 01 00 C9 6F 01 0A [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: D1 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: D1 01 00 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: D1 01 00 C9 6F 00 09 [11:25:31]Write to MH i2c: 01 00 00 CA 6F 39 [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:31]OFD Sender: No OFD packet to send [11:25:31]*** Cut start [11:25:31]*** Partial cut [11:25:31]*** CUTSNS_PIN = 1 [11:25:31]*** CUTSNS_PIN = 0 [11:25:31]*** Brake cut motor [11:25:32]Read from MH i2c: 01 [11:25:32]MH_I2C_Read... [11:25:32]*** Stop cut motor [11:25:32]*** Cut end [11:25:32]Read from MH i2c: 01 07 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: 01 07 00 CA 6F 00 00 00 00 00 FF 0F 4E [11:25:32]process_action close_receipt done [11:25:32]requested_data is exist [11:25:32]produce_requested_data [11:25:32]requested_item fm.sn is exist - process it [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 11 00 00 [11:25:32]Write to MH i2c: E2 08 00 CB 6F 80 11 00 00 00 00 00 00 B4 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 17 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 17 00 CB 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 01 [11:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:25:32]wFMCommunicate OK [11:25:32]requested_item fd.num is exist - process it [11:25:32]SAM_PROTO_GetFieldsCounters [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 13 00 00 [11:25:32]Write to MH i2c: E2 08 00 CC 6F 80 13 00 00 00 00 00 00 B7 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 62 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 62 00 CC 6F 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 22 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 22 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:32]wFMCommunicate OK [11:25:32]SAM_PROTO_GetFieldsCounters done [11:25:32]requested_item shift.num is exist - process it [11:25:32]requested_item shift.opened is exist - process it [11:25:32]req_shift_opened [11:25:32]FM_GetShiftState [11:25:32]SAM_PROTO_GetShiftState [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 13 01 00 [11:25:32]Write to MH i2c: E2 08 00 CD 6F 80 13 01 00 00 00 00 00 B9 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 0E 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 0E 00 CD 6F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E1 [11:25:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:25:32]wFMCommunicate OK [11:25:32]SAM_PROTO_GetShiftState done [11:25:32]FM_GetShiftState done [11:25:32]req_shift_opened done [11:25:32]requested_item shift.open_date is exist - process it [11:25:32]req_shift_open_date [11:25:32]req_shift_open_date done [11:25:32]produce_requested_data done [11:25:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49186,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:25:32]process_action_free close_receipt [11:25:32]json_value_free [11:25:32]json_value_free done [11:25:32]process_json_proto returns [11:25:32]Send response to host [11:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49186,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:25:32]free response buf [11:25:32]execute_script done [11:25:32]execute_script returns [11:25:32]free content buf [11:25:32]Sock 9.Close socket [11:25:32]Sock 9.Thread stoped [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:54]accept exits with 7 [11:27:54]New connection [11:27:54]New thread 3066670436 created [11:27:54]Thread 3066813796 joined [11:27:54]Waiting for new connection... [11:27:54] Sock 7.Parse request [11:27:54]Sock 7.Check first char [11:27:54]Sock 7.First char is OK [11:27:54]request: POST /json_proto HTTP/1.0 [11:27:54]Method: POST [11:27:54]URL: /json_proto [11:27:54]Method is POST - this is cgi request [11:27:54]url: /json_proto [11:27:54]query_string will be loaded in cgi processing [11:27:54]execute_cgi json_proto POST (null) [11:27:54]execute_cgi path=json_proto method=POST [11:27:54]POST find Content-Length [11:27:54]Host: 172.17.56.67:8080 [11:27:54]Content-Length: 677 [11:27:54]Content-Type: application/json [11:27:54] [11:27:54]POST finish read [11:27:54]Found Content-Length = 677 [11:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.480, "sum" : 330.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:54]execute_script... [11:27: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)216289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.480, "sum" : 330.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:54]POST & json_proto [11:27:54]process_json_proto [11:27:54]json parsed OK: [11:27:54]protocol is kg_v1.0 [11:27:54]action value=close_receipt [11:27:54]process_action close_receipt [11:27:54]cmd_close_receipt [11:27:54]MH_GetDate [11:27:54]Write to MH i2c: F0 00 00 CE 6F 2C [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: F0 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: F0 09 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: F0 09 00 CE 6F 00 4C DD B8 65 26 5D 9E 65 01 [11:27:54]GetLastDocTimeStamp 1706613947 [11:27:54]current date 1706614092 [11:27:54]FM_GetShiftState [11:27:54]SAM_PROTO_GetShiftState [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 13 01 00 [11:27:54]Write to MH i2c: E2 08 00 CF 6F 80 13 01 00 00 00 00 00 BB [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 0E 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 0E 00 CF 6F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E3 [11:27:54]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:27:54]wFMCommunicate OK [11:27:54]SAM_PROTO_GetShiftState done [11:27:54]FM_GetShiftState done [11:27:54]opened in 1706572995 [11:27:54]opened+sec_in_day 1706659395 [11:27:54]quantity*price = 33044 [11:27:54]sum+1 = 33045 [11:27:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.09 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 63 30.01.2024 11:28 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49187 ФПД: 57119584768905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T112812&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49187&fm=57119584768905&tin=02508201610067®Number=0000000000092723&sum=33000 [11:27:55]StoreToDocumentArchive [11:27:55]shift 246 fd 49187 [11:27:55]save to /storage/0246/doc_00049187 [11:27:55]save last doc name /storage/0246/doc_00049187 to /storage/kkm_last_doc_name [11:27:55]save OK [11:27:55]Clear old archive folders... [11:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:55]tlvbuf is 01199E90 [11:27:55]SAM_PROTO_ClearQueue [11:27:55]wFMCommunicate request_size=4 [11:27:55]MH_SAM_APDU [11:27:55]CAPDU: 80 09 00 00 [11:27:55]Write to MH i2c: E2 08 00 DC 6F 80 09 00 00 00 00 00 00 BD [11:27:55]Write i2c OK [11:27:55]MH_I2C_Read... [11:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:55]Read from MH i2c: E2 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 03 00 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 03 00 DC 6F 00 90 00 BF [11:27:55]RAPDU: 90 00 [11:27:55]wFMCommunicate OK [11:27:55]SAM_PROTO_ClearQueue done [11:27:55]KKMCreateOFDPacket [11:27:55]OFDProtocolAddRootSTLVToBuf [11:27:55]FM_MakeSignedData [11:27:55]FM_MakeSignedData [11:27:55]SAM_PROTO_SignData [11:27:55]wFMCommunicate request_size=4 [11:27:55]MH_SAM_APDU [11:27:55]CAPDU: 80 0D 01 02 [11:27:55]Write to MH i2c: E2 08 00 DD 6F 80 0D 01 02 00 00 00 00 C5 [11:27:55]Write i2c OK [11:27:55]MH_I2C_Read... [11:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:55]Read from MH i2c: E2 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 03 00 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 03 00 DD 6F 00 90 00 C0 [11:27:55]RAPDU: 90 00 [11:27:55]wFMCommunicate OK [11:27:55]wFMCommunicate request_size=255 [11:27:55]MH_SAM_APDU [11:27:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 14 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4C DD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 C0 00 00 35 04 06 00 33 [11:27:55]Write to MH i2c: E2 02 01 DE 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 14 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4C DD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 C0 00 00 35 04 06 00 33 00 00 C6 [11:27:55]Write i2c OK [11:27:55]MH_I2C_Read... [11:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:55]Read from MH i2c: E2 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 03 00 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 03 00 DE 6F 00 90 00 C1 [11:27:55]RAPDU: 90 00 [11:27:55]wFMCommunicate OK [11:27:55]wFMCommunicate request_size=10 [11:27:55]MH_SAM_APDU [11:27:55]CAPDU: 80 0D 02 02 05 F3 30 8F 53 89 [11:27:55]Write to MH i2c: E2 0D 00 DF 6F 80 0D 02 02 05 00 F3 30 8F 53 89 00 00 60 [11:27:55]Write i2c OK [11:27:55]MH_I2C_Read... [11:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:55]Read from MH i2c: E2 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 03 00 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 03 00 DF 6F 00 90 00 C2 [11:27:55]RAPDU: 90 00 [11:27:55]wFMCommunicate OK [11:27:55]wFMCommunicate request_size=4 [11:27:55]MH_SAM_APDU [11:27:55]CAPDU: 80 0D 03 02 [11:27:55]Write to MH i2c: E2 08 00 E0 6F 80 0D 03 02 00 00 00 00 CA [11:27:55]Write i2c OK [11:27:55]MH_I2C_Read... [11:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:55]Read from MH i2c: E2 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 0B 00 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 0B 00 E0 6F 00 8B A5 38 A0 EC 41 B7 24 90 00 DB [11:27:55]RAPDU: 8B A5 38 A0 EC 41 B7 24 90 00 [11:27:55]wFMCommunicate OK [11:27:55]SAM_PROTO_SignData done [11:27:55]FM_MakeSignedData done [11:27:55]CreateOFDProtocolMessage [11:27:55]wFMCommunicate request_size=4 [11:27:55]MH_SAM_APDU [11:27:55]CAPDU: 80 11 00 00 [11:27:55]Write to MH i2c: E2 08 00 E1 6F 80 11 00 00 00 00 00 00 CA [11:27:55]Write i2c OK [11:27:55]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 17 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 17 00 E1 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 17 [11:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:27:56]wFMCommunicate OK [11:27:56]CreateOFDProtocolMessage done [11:27:56]OFDSenderStorePacket 49187 [11:27:56]StoreOFDPacket docnum=49187 [11:27:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A3 24 07 01 EF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 14 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4C DD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 C0 00 00 35 04 06 00 33 F3 30 8F 53 89 8B A5 38 A0 EC 41 B7 24 [11:27:56]CheckFolder [11:27:56]dirname=/storage/ofd_packets [11:27:56]CheckFolder done [11:27:56]ProducePacketName [11:27:56]name=ofd_packets/00049187 [11:27:56]NVStorageSaveData ofd_packets/00049187 [11:27:56]File name is /storage/ofd_packets/00049187 [11:27:56]Write 301 bytes [11:27:56]NVStorageSaveData done [11:27:56]OFDSenderStorePacket done [11:27:56]KKMCreateOFDPacket done [11:27:56]NVStorageSaveData kkm_last_timestamp [11:27:56]File name is /storage/kkm_last_timestamp [11:27:56]Write 4 bytes [11:27:56]NVStorageSaveData done [11:27:56]ExternCall_PrintAddStr [11:27:56]wPrintStart [11:27:56]Write to MH i2c: 01 00 00 E2 6F 51 [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 07 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 07 00 E2 6F 00 00 00 00 00 FF 0F 66 [11:27:56]RasterBufferAndPrint [11:27:56]line Счет N : (1)216289 [11:27:56]line ИНН: 02508201610067 [11:27:56]line Контрольно-Кассовый Чек [11:27:56]line ПРОДАЖА [11:27:56]line ТРК (МРК, ГНК) : 12 [11:27:56]line Товар: 2710124130 [11:27:56]line Аи-92-К-5 [11:27:56]line 5.480 * 60.30 [11:27:56]line = 330.44 [11:27:56]line НДС 12% НСП 1% [11:27:56]line > о реализуемом товаре [11:27:56]line ОКРУГЛЕНИЕ: -0.44 [11:27:56]line ИТОГО: 330.00 [11:27:56]line Внесено: 330.00 [11:27:56]line СДАЧА: 0.00 [11:27:56]line НСП 1% : 2.92 [11:27:56]line НДС 12% : 35.09 [11:27:56]line Наличными: 330.00 [11:27:56]line Безнал.: 0.00 [11:27:56]line Место: АЗС № 102 "Партнер Нефть" [11:27:56]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:27:56]line СНО: Общий режим [11:27:56]line Чек 63 30.01.2024 11:28 [11:27:56]line Смена: 246 ФФД: 1.0 [11:27:56]line ЗНМ: 0300000040 [11:27:56]line РНМ: 0000000000092723 [11:27:56]line Версия ККМ: 001 [11:27:56]line ФМ: 0000000000875060 [11:27:56]line ФД: 49187 [11:27:56]line ФПД: 57119584768905 [11:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T112812&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49187&fm=57119584768905&tin=02508201610067®Number=0000000000092723&sum=33000 [11:27:56]OFD Sender: Processing packet 49187 [packets to send 12, broken 11] [11:27:56]ProducePacketName [11:27:56]name=ofd_packets/00049187 [11:27:56]OFD Sender: To server: pG, [11:27:56]CommunicateWithHost lk.salyk.kg:30040 [11:27:56]ConnectInit lk.salyk.kg [11:27:56]written 0, free lines is 4095 [11:27:56]Connected sock=9 [11:27: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 36 30 0F 01 00 00 A3 24 07 01 EF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 14 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4C DD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 C0 00 00 35 04 06 00 33 F3 30 8F 53 89 8B A5 38 A0 EC 41 B7 24 [11:27: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 36 30 4F 00 00 00 E6 C1 47 00 74 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 36 30 10 04 04 00 23 C0 00 00 F4 03 04 00 42 89 B8 65 B6 04 01 00 00 CC EF 53 75 49 7C 60 01 [11:27:56]CommunicateWithHost err = 0 [11:27:56]CheckOFDResponse [11:27:56]1017 (14) - 77093643461234 [11:27:56]1041 (16) - 0000000000875060 [11:27:56]1040 (4) - 49187 [11:27:56]1012 (4) - 30.01.2024 05:29 [11:27:56]1206 (1) - 0 [11:27:56]OFD Sender: Remove packet 49187 [11:27:56]ProducePacketName [11:27:56]name=ofd_packets/00049187 [11:27:56]NVStorageDeleteData [11:27:56]Write to MH i2c: 01 00 00 0D 70 7D [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 07 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 07 00 0D 70 00 00 00 00 00 F3 0C 83 [11:27:56]RasterBufferAndPrint [11:27:56]line [11:27:56]line [11:27:56]line [11:27:56]line [11:27:56]line [11:27:56]written 0, free lines is 3322 [11:27:56]MH_Cut [11:27:56]Write to MH i2c: D1 01 00 14 70 01 56 [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: D1 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: D1 01 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: D1 01 00 14 70 00 55 [11:27:56]Write to MH i2c: 01 00 00 15 70 85 [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:57]OFD Sender: No OFD packet to send [11:27:57]*** Cut start [11:27:57]*** Partial cut [11:27:57]*** CUTSNS_PIN = 1 [11:27:57]*** CUTSNS_PIN = 0 [11:27:57]*** Brake cut motor [11:27:58]Read from MH i2c: 01 [11:27:58]MH_I2C_Read... [11:27:58]*** Stop cut motor [11:27:58]*** Cut end [11:27:58]Read from MH i2c: 01 07 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: 01 07 00 15 70 00 00 00 00 00 FF 0F 9A [11:27:58]process_action close_receipt done [11:27:58]requested_data is exist [11:27:58]produce_requested_data [11:27:58]requested_item fm.sn is exist - process it [11:27:58]wFMCommunicate request_size=4 [11:27:58]MH_SAM_APDU [11:27:58]CAPDU: 80 11 00 00 [11:27:58]Write to MH i2c: E2 08 00 16 70 80 11 00 00 00 00 00 00 00 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:58]Read from MH i2c: E2 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 17 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 17 00 16 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4D [11:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:27:58]wFMCommunicate OK [11:27:58]requested_item fd.num is exist - process it [11:27:58]SAM_PROTO_GetFieldsCounters [11:27:58]wFMCommunicate request_size=4 [11:27:58]MH_SAM_APDU [11:27:58]CAPDU: 80 13 00 00 [11:27:58]Write to MH i2c: E2 08 00 17 70 80 13 00 00 00 00 00 00 03 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:58]Read from MH i2c: E2 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 62 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 62 00 17 70 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 23 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [11:27: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 23 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:58]wFMCommunicate OK [11:27:58]SAM_PROTO_GetFieldsCounters done [11:27:58]requested_item shift.num is exist - process it [11:27:58]requested_item shift.opened is exist - process it [11:27:58]req_shift_opened [11:27:58]FM_GetShiftState [11:27:58]SAM_PROTO_GetShiftState [11:27:58]wFMCommunicate request_size=4 [11:27:58]MH_SAM_APDU [11:27:58]CAPDU: 80 13 01 00 [11:27:58]Write to MH i2c: E2 08 00 18 70 80 13 01 00 00 00 00 00 05 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:58]Read from MH i2c: E2 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 0E 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 0E 00 18 70 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2D [11:27:58]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:27:58]wFMCommunicate OK [11:27:58]SAM_PROTO_GetShiftState done [11:27:58]FM_GetShiftState done [11:27:58]req_shift_opened done [11:27:58]requested_item shift.open_date is exist - process it [11:27:58]req_shift_open_date [11:27:58]req_shift_open_date done [11:27:58]produce_requested_data done [11:27:58]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49187,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:27:58]process_action_free close_receipt [11:27:58]json_value_free [11:27:58]json_value_free done [11:27:58]process_json_proto returns [11:27:58]Send response to host [11:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49187,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:27:58]free response buf [11:27:58]execute_script done [11:27:58]execute_script returns [11:27:58]free content buf [11:27:58]Sock 7.Close socket [11:27:58]Sock 7.Thread stoped [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:02]accept exits with 10 [11:30:02]New connection [11:30:02]New thread 3066813796 created [11:30:02]Thread 3066670436 joined [11:30:02]Waiting for new connection... [11:30:02] Sock 10.Parse request [11:30:02]Sock 10.Check first char [11:30:02]Sock 10.First char is OK [11:30:02]request: POST /json_proto HTTP/1.0 [11:30:02]Method: POST [11:30:02]URL: /json_proto [11:30:02]Method is POST - this is cgi request [11:30:02]url: /json_proto [11:30:02]query_string will be loaded in cgi processing [11:30:02]execute_cgi json_proto POST (null) [11:30:02]execute_cgi path=json_proto method=POST [11:30:02]POST find Content-Length [11:30:02]Host: 172.17.56.67:8080 [11:30:02]Content-Length: 677 [11:30:02]Content-Type: application/json [11:30:02] [11:30:02]POST finish read [11:30:02]Found Content-Length = 677 [11:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:02]execute_script... [11:30:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:02]POST & json_proto [11:30:02]process_json_proto [11:30:02]json parsed OK: [11:30:02]protocol is kg_v1.0 [11:30:02]action value=close_receipt [11:30:02]process_action close_receipt [11:30:02]cmd_close_receipt [11:30:02]MH_GetDate [11:30:02]Write to MH i2c: F0 00 00 19 70 78 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: F0 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: F0 09 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: F0 09 00 19 70 00 CD DD B8 65 26 5D 9E 65 CE [11:30:02]GetLastDocTimeStamp 1706614092 [11:30:02]current date 1706614221 [11:30:02]FM_GetShiftState [11:30:02]SAM_PROTO_GetShiftState [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 13 01 00 [11:30:02]Write to MH i2c: E2 08 00 1A 70 80 13 01 00 00 00 00 00 07 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0E 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0E 00 1A 70 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2F [11:30:02]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:30:02]wFMCommunicate OK [11:30:02]SAM_PROTO_GetShiftState done [11:30:02]FM_GetShiftState done [11:30:02]opened in 1706572995 [11:30:02]opened+sec_in_day 1706659395 [11:30:02]quantity*price = 50049 [11:30:02]sum+1 = 50050 [11:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 64 30.01.2024 11:30 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49188 ФПД: 21640054149913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T113021&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49188&fm=21640054149913&tin=02508201610067®Number=0000000000092723&sum=50000 [11:30:03]StoreToDocumentArchive [11:30:03]shift 246 fd 49188 [11:30:03]save to /storage/0246/doc_00049188 [11:30:03]save last doc name /storage/0246/doc_00049188 to /storage/kkm_last_doc_name [11:30:03]save OK [11:30:03]Clear old archive folders... [11:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:03]tlvbuf is 013ED730 [11:30:03]SAM_PROTO_ClearQueue [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 09 00 00 [11:30:03]Write to MH i2c: E2 08 00 27 70 80 09 00 00 00 00 00 00 09 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 27 70 00 90 00 0B [11:30:03]RAPDU: 90 00 [11:30:03]wFMCommunicate OK [11:30:03]SAM_PROTO_ClearQueue done [11:30:03]KKMCreateOFDPacket [11:30:03]OFDProtocolAddRootSTLVToBuf [11:30:03]FM_MakeSignedData [11:30:03]FM_MakeSignedData [11:30:03]SAM_PROTO_SignData [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 0D 01 02 [11:30:03]Write to MH i2c: E2 08 00 28 70 80 0D 01 02 00 00 00 00 11 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 03 00 28 70 00 90 00 0C [11:30:03]RAPDU: 90 00 [11:30:03]wFMCommunicate OK [11:30:03]wFMCommunicate request_size=255 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 CD DD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 C0 00 00 35 04 06 00 13 [11:30:03]Write to MH i2c: E2 02 01 29 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 CD DD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 C0 00 00 35 04 06 00 13 00 00 35 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 29 70 00 90 00 0D [11:30:04]RAPDU: 90 00 [11:30:04]wFMCommunicate OK [11:30:04]wFMCommunicate request_size=10 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 0D 02 02 05 AE 77 BD 93 19 [11:30:04]Write to MH i2c: E2 0D 00 2A 70 80 0D 02 02 05 00 AE 77 BD 93 19 00 00 AC [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 2A 70 00 90 00 0E [11:30:04]RAPDU: 90 00 [11:30:04]wFMCommunicate OK [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 0D 03 02 [11:30:04]Write to MH i2c: E2 08 00 2B 70 80 0D 03 02 00 00 00 00 16 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 0B 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 0B 00 2B 70 00 77 A3 50 BA BA E3 1E 37 90 00 2D [11:30:04]RAPDU: 77 A3 50 BA BA E3 1E 37 90 00 [11:30:04]wFMCommunicate OK [11:30:04]SAM_PROTO_SignData done [11:30:04]FM_MakeSignedData done [11:30:04]CreateOFDProtocolMessage [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 11 00 00 [11:30:04]Write to MH i2c: E2 08 00 2C 70 80 11 00 00 00 00 00 00 16 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 17 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 17 00 2C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 63 [11:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:30:04]wFMCommunicate OK [11:30:04]CreateOFDProtocolMessage done [11:30:04]OFDSenderStorePacket 49188 [11:30:04]StoreOFDPacket docnum=49188 [11:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BA 04 07 01 0C 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 CD DD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 C0 00 00 35 04 06 00 13 AE 77 BD 93 19 77 A3 50 BA BA E3 1E 37 [11:30:04]CheckFolder [11:30:04]dirname=/storage/ofd_packets [11:30:04]CheckFolder done [11:30:04]ProducePacketName [11:30:04]name=ofd_packets/00049188 [11:30:04]NVStorageSaveData ofd_packets/00049188 [11:30:04]File name is /storage/ofd_packets/00049188 [11:30:04]Write 301 bytes [11:30:04]NVStorageSaveData done [11:30:04]OFDSenderStorePacket done [11:30:04]KKMCreateOFDPacket done [11:30:04]NVStorageSaveData kkm_last_timestamp [11:30:04]File name is /storage/kkm_last_timestamp [11:30:04]Write 4 bytes [11:30:04]NVStorageSaveData done [11:30:04]ExternCall_PrintAddStr [11:30:04]wPrintStart [11:30:04]Write to MH i2c: 01 00 00 2D 70 9D [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 07 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: 01 07 00 2D 70 00 00 00 00 00 FF 0F B2 [11:30:04]RasterBufferAndPrint [11:30:04]line Счет N : (1)216290 [11:30:04]line ИНН: 02508201610067 [11:30:04]line Контрольно-Кассовый Чек [11:30:04]line ПРОДАЖА [11:30:04]line ТРК (МРК, ГНК) : 12 [11:30:04]line Товар: 2710124130 [11:30:04]line Аи-92-К-5 [11:30:04]line 8.300 * 60.30 [11:30:04]line = 500.49 [11:30:04]line НДС 12% НСП 1% [11:30:04]line > о реализуемом товаре [11:30:04]line ОКРУГЛЕНИЕ: -0.49 [11:30:04]line ИТОГО: 500.00 [11:30:04]line Внесено: 500.00 [11:30:04]line СДАЧА: 0.00 [11:30:04]line НСП 1% : 4.43 [11:30:04]line НДС 12% : 53.15 [11:30:04]line Наличными: 500.00 [11:30:04]line Безнал.: 0.00 [11:30:04]line Место: АЗС № 102 "Партнер Нефть" [11:30:04]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:30:04]line СНО: Общий режим [11:30:04]line Чек 64 30.01.2024 11:30 [11:30:04]line Смена: 246 ФФД: 1.0 [11:30:04]line ЗНМ: 0300000040 [11:30:04]line РНМ: 0000000000092723 [11:30:04]line Версия ККМ: 001 [11:30:04]line ФМ: 0000000000875060 [11:30:04]line ФД: 49188 [11:30:04]line ФПД: 21640054149913 [11:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T113021&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49188&fm=21640054149913&tin=02508201610067®Number=0000000000092723&sum=50000 [11:30:04]OFD Sender: Processing packet 49188 [packets to send 12, broken 11] [11:30:04]ProducePacketName [11:30:04]name=ofd_packets/00049188 [11:30:04]OFD Sender: To server: pG, [11:30:04]CommunicateWithHost lk.salyk.kg:30040 [11:30:04]ConnectInit lk.salyk.kg [11:30:04]written 0, free lines is 4095 [11:30:04]Connected sock=9 [11:30: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 36 30 0F 01 00 00 BA 04 07 01 0C 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 CD DD B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 C0 00 00 35 04 06 00 13 AE 77 BD 93 19 77 A3 50 BA BA E3 1E 37 [11:30: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 36 30 4F 00 00 00 13 BA 47 00 C2 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 C0 00 00 F4 03 04 00 C2 89 B8 65 B6 04 01 00 00 12 DF 9B 1B D1 F1 F0 54 [11:30:04]CommunicateWithHost err = 0 [11:30:04]CheckOFDResponse [11:30:04]1017 (14) - 77093643461234 [11:30:04]1041 (16) - 0000000000875060 [11:30:04]1040 (4) - 49188 [11:30:04]1012 (4) - 30.01.2024 05:31 [11:30:04]1206 (1) - 0 [11:30:04]OFD Sender: Remove packet 49188 [11:30:04]ProducePacketName [11:30:04]name=ofd_packets/00049188 [11:30:04]NVStorageDeleteData [11:30:05]Write to MH i2c: 01 00 00 58 70 C8 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 07 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 07 00 58 70 00 00 00 00 00 EC 0C C7 [11:30:05]RasterBufferAndPrint [11:30:05]line [11:30:05]line [11:30:05]line [11:30:05]line [11:30:05]line [11:30:05]written 0, free lines is 3314 [11:30:05]MH_Cut [11:30:05]Write to MH i2c: D1 01 00 5F 70 01 A1 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: D1 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: D1 01 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: D1 01 00 5F 70 00 A0 [11:30:05]Write to MH i2c: 01 00 00 60 70 D0 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]OFD Sender: No OFD packet to send [11:30:05]*** Cut start [11:30:05]*** Partial cut [11:30:05]*** CUTSNS_PIN = 1 [11:30:05]*** CUTSNS_PIN = 0 [11:30:05]*** Brake cut motor [11:30:06]Read from MH i2c: 01 [11:30:06]MH_I2C_Read... [11:30:06]*** Stop cut motor [11:30:06]*** Cut end [11:30:06]Read from MH i2c: 01 07 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 60 70 00 00 00 00 00 FF 0F E5 [11:30:06]process_action close_receipt done [11:30:06]requested_data is exist [11:30:06]produce_requested_data [11:30:06]requested_item fm.sn is exist - process it [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 11 00 00 [11:30:06]Write to MH i2c: E2 08 00 61 70 80 11 00 00 00 00 00 00 4B [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 61 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 98 [11:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:30:06]wFMCommunicate OK [11:30:06]requested_item fd.num is exist - process it [11:30:06]SAM_PROTO_GetFieldsCounters [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 13 00 00 [11:30:06]Write to MH i2c: E2 08 00 62 70 80 13 00 00 00 00 00 00 4E [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 62 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 62 00 62 70 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 24 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [11:30: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 24 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_GetFieldsCounters done [11:30:06]requested_item shift.num is exist - process it [11:30:06]requested_item shift.opened is exist - process it [11:30:06]req_shift_opened [11:30:06]FM_GetShiftState [11:30:06]SAM_PROTO_GetShiftState [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 13 01 00 [11:30:06]Write to MH i2c: E2 08 00 63 70 80 13 01 00 00 00 00 00 50 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0E 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0E 00 63 70 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 78 [11:30:06]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_GetShiftState done [11:30:06]FM_GetShiftState done [11:30:06]req_shift_opened done [11:30:06]requested_item shift.open_date is exist - process it [11:30:06]req_shift_open_date [11:30:06]req_shift_open_date done [11:30:06]produce_requested_data done [11:30:06]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49188,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:30:06]process_action_free close_receipt [11:30:06]json_value_free [11:30:06]json_value_free done [11:30:06]process_json_proto returns [11:30:06]Send response to host [11:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49188,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:30:06]free response buf [11:30:06]execute_script done [11:30:06]execute_script returns [11:30:06]free content buf [11:30:06]Sock 10.Close socket [11:30:06]Sock 10.Thread stoped [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:51]accept exits with 7 [11:31:51]New connection [11:31:51]New thread 3066670436 created [11:31:51]Thread 3066813796 joined [11:31:51]Waiting for new connection... [11:31:51] Sock 7.Parse request [11:31:51]Sock 7.Check first char [11:31:51]Sock 7.First char is OK [11:31:51]request: POST /json_proto HTTP/1.0 [11:31:51]Method: POST [11:31:51]URL: /json_proto [11:31:51]Method is POST - this is cgi request [11:31:51]url: /json_proto [11:31:51]query_string will be loaded in cgi processing [11:31:51]execute_cgi json_proto POST (null) [11:31:51]execute_cgi path=json_proto method=POST [11:31:51]POST find Content-Length [11:31:51]Host: 172.17.56.67:8080 [11:31:51]Content-Length: 677 [11:31:51]Content-Type: application/json [11:31:51] [11:31:51]POST finish read [11:31:51]Found Content-Length = 677 [11:31:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.140, "sum" : 430.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:52]execute_script... [11:31: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)216291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.140, "sum" : 430.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:52]POST & json_proto [11:31:52]process_json_proto [11:31:52]json parsed OK: [11:31:52]protocol is kg_v1.0 [11:31:52]action value=close_receipt [11:31:52]process_action close_receipt [11:31:52]cmd_close_receipt [11:31:52]MH_GetDate [11:31:52]Write to MH i2c: F0 00 00 64 70 C3 [11:31:52]Write i2c OK [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: F0 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: F0 09 00 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: F0 09 00 64 70 00 3A DE B8 65 26 5D 9E 65 87 [11:31:52]GetLastDocTimeStamp 1706614221 [11:31:52]current date 1706614330 [11:31:52]FM_GetShiftState [11:31:52]SAM_PROTO_GetShiftState [11:31:52]wFMCommunicate request_size=4 [11:31:52]MH_SAM_APDU [11:31:52]CAPDU: 80 13 01 00 [11:31:52]Write to MH i2c: E2 08 00 65 70 80 13 01 00 00 00 00 00 52 [11:31:52]Write i2c OK [11:31:52]MH_I2C_Read... [11:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:52]Read from MH i2c: E2 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: E2 0E 00 [11:31:52]MH_I2C_Read... [11:31:52]Read from MH i2c: E2 0E 00 65 70 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 7A [11:31:52]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:31:52]wFMCommunicate OK [11:31:52]SAM_PROTO_GetShiftState done [11:31:52]FM_GetShiftState done [11:31:52]opened in 1706572995 [11:31:52]opened+sec_in_day 1706659395 [11:31:52]quantity*price = 43054 [11:31:52]sum+1 = 43055 [11:31:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 430.00 Внесено: 430.00 СДАЧА: 0.00 НСП 1% : 3.81 НДС 12% : 45.72 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 65 30.01.2024 11:32 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49189 ФПД: 163790112852651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T113210&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49189&fm=163790112852651&tin=02508201610067®Number=0000000000092723&sum=43000 [11:31:53]StoreToDocumentArchive [11:31:53]shift 246 fd 49189 [11:31:53]save to /storage/0246/doc_00049189 [11:31:53]save last doc name /storage/0246/doc_00049189 to /storage/kkm_last_doc_name [11:31:53]save OK [11:31:53]Clear old archive folders... [11:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:53]tlvbuf is 011DD8C0 [11:31:53]SAM_PROTO_ClearQueue [11:31:53]wFMCommunicate request_size=4 [11:31:53]MH_SAM_APDU [11:31:53]CAPDU: 80 09 00 00 [11:31:53]Write to MH i2c: E2 08 00 72 70 80 09 00 00 00 00 00 00 54 [11:31:53]Write i2c OK [11:31:53]MH_I2C_Read... [11:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:53]Read from MH i2c: E2 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 03 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 03 00 72 70 00 90 00 56 [11:31:53]RAPDU: 90 00 [11:31:53]wFMCommunicate OK [11:31:53]SAM_PROTO_ClearQueue done [11:31:53]KKMCreateOFDPacket [11:31:53]OFDProtocolAddRootSTLVToBuf [11:31:53]FM_MakeSignedData [11:31:53]FM_MakeSignedData [11:31:53]SAM_PROTO_SignData [11:31:53]wFMCommunicate request_size=4 [11:31:53]MH_SAM_APDU [11:31:53]CAPDU: 80 0D 01 02 [11:31:53]Write to MH i2c: E2 08 00 73 70 80 0D 01 02 00 00 00 00 5C [11:31:53]Write i2c OK [11:31:53]MH_I2C_Read... [11:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:53]Read from MH i2c: E2 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 03 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 03 00 73 70 00 90 00 57 [11:31:53]RAPDU: 90 00 [11:31:53]wFMCommunicate OK [11:31:53]wFMCommunicate request_size=255 [11:31:53]MH_SAM_APDU [11:31:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 1B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2E A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 11 00 00 00 00 07 04 06 00 F8 A7 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 3A DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 25 C0 00 00 35 04 06 00 94 [11:31:53]Write to MH i2c: E2 02 01 74 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 1B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2E A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 11 00 00 00 00 07 04 06 00 F8 A7 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 3A DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 25 C0 00 00 35 04 06 00 94 00 00 66 [11:31:53]Write i2c OK [11:31:53]MH_I2C_Read... [11:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:53]Read from MH i2c: E2 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 03 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 03 00 74 70 00 90 00 58 [11:31:53]RAPDU: 90 00 [11:31:53]wFMCommunicate OK [11:31:53]wFMCommunicate request_size=10 [11:31:53]MH_SAM_APDU [11:31:53]CAPDU: 80 0D 02 02 05 F7 5B 7E 8A AB [11:31:53]Write to MH i2c: E2 0D 00 75 70 80 0D 02 02 05 00 F7 5B 7E 8A AB 00 00 6E [11:31:53]Write i2c OK [11:31:53]MH_I2C_Read... [11:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:53]Read from MH i2c: E2 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 03 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 03 00 75 70 00 90 00 59 [11:31:53]RAPDU: 90 00 [11:31:53]wFMCommunicate OK [11:31:53]wFMCommunicate request_size=4 [11:31:53]MH_SAM_APDU [11:31:53]CAPDU: 80 0D 03 02 [11:31:53]Write to MH i2c: E2 08 00 76 70 80 0D 03 02 00 00 00 00 61 [11:31:53]Write i2c OK [11:31:53]MH_I2C_Read... [11:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:53]Read from MH i2c: E2 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 0B 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 0B 00 76 70 00 72 76 C1 68 2B 92 82 BC 90 00 6E [11:31:53]RAPDU: 72 76 C1 68 2B 92 82 BC 90 00 [11:31:53]wFMCommunicate OK [11:31:53]SAM_PROTO_SignData done [11:31:53]FM_MakeSignedData done [11:31:53]CreateOFDProtocolMessage [11:31:53]wFMCommunicate request_size=4 [11:31:53]MH_SAM_APDU [11:31:53]CAPDU: 80 11 00 00 [11:31:53]Write to MH i2c: E2 08 00 77 70 80 11 00 00 00 00 00 00 61 [11:31:53]Write i2c OK [11:31:53]MH_I2C_Read... [11:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:53]Read from MH i2c: E2 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 17 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: E2 17 00 77 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AE [11:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:31:53]wFMCommunicate OK [11:31:53]CreateOFDProtocolMessage done [11:31:53]OFDSenderStorePacket 49189 [11:31:53]StoreOFDPacket docnum=49189 [11:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 ED ED 07 01 49 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 35 FF 03 08 00 03 E4 1B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2E A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 11 00 00 00 00 07 04 06 00 F8 A7 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 3A DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 25 C0 00 00 35 04 06 00 94 F7 5B 7E 8A AB 72 76 C1 68 2B 92 82 BC [11:31:53]CheckFolder [11:31:53]dirname=/storage/ofd_packets [11:31:53]CheckFolder done [11:31:53]ProducePacketName [11:31:53]name=ofd_packets/00049189 [11:31:53]NVStorageSaveData ofd_packets/00049189 [11:31:53]File name is /storage/ofd_packets/00049189 [11:31:53]Write 301 bytes [11:31:53]NVStorageSaveData done [11:31:53]OFDSenderStorePacket done [11:31:53]KKMCreateOFDPacket done [11:31:53]NVStorageSaveData kkm_last_timestamp [11:31:53]File name is /storage/kkm_last_timestamp [11:31:53]Write 4 bytes [11:31:53]NVStorageSaveData done [11:31:53]ExternCall_PrintAddStr [11:31:53]wPrintStart [11:31:53]Write to MH i2c: 01 00 00 78 70 E8 [11:31:53]Write i2c OK [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: 01 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: 01 07 00 [11:31:53]MH_I2C_Read... [11:31:53]Read from MH i2c: 01 07 00 78 70 00 00 00 00 00 FF 0F FD [11:31:53]RasterBufferAndPrint [11:31:53]line Счет N : (1)216291 [11:31:53]line ИНН: 02508201610067 [11:31:53]line Контрольно-Кассовый Чек [11:31:53]line ПРОДАЖА [11:31:53]line ТРК (МРК, ГНК) : 12 [11:31:53]line Товар: 2710124130 [11:31:53]line Аи-92-К-5 [11:31:53]line 7.140 * 60.30 [11:31:53]line = 430.54 [11:31:53]line НДС 12% НСП 1% [11:31:53]line > о реализуемом товаре [11:31:53]line ОКРУГЛЕНИЕ: -0.54 [11:31:53]line ИТОГО: 430.00 [11:31:53]line Внесено: 430.00 [11:31:53]line СДАЧА: 0.00 [11:31:53]line НСП 1% : 3.81 [11:31:53]line НДС 12% : 45.72 [11:31:53]line Наличными: 430.00 [11:31:53]line Безнал.: 0.00 [11:31:53]line Место: АЗС № 102 "Партнер Нефть" [11:31:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:31:53]line СНО: Общий режим [11:31:53]line Чек 65 30.01.2024 11:32 [11:31:53]line Смена: 246 ФФД: 1.0 [11:31:53]line ЗНМ: 0300000040 [11:31:53]line РНМ: 0000000000092723 [11:31:53]line Версия ККМ: 001 [11:31:53]line ФМ: 0000000000875060 [11:31:53]line ФД: 49189 [11:31:53]line ФПД: 163790112852651 [11:31:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T113210&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49189&fm=163790112852651&tin=02508201610067®Number=0000000000092723&sum=43000 [11:31:54]OFD Sender: Processing packet 49189 [packets to send 12, broken 11] [11:31:54]ProducePacketName [11:31:54]name=ofd_packets/00049189 [11:31:54]OFD Sender: To server: pG, [11:31:54]CommunicateWithHost lk.salyk.kg:30040 [11:31:54]ConnectInit lk.salyk.kg [11:31:54]written 0, free lines is 4095 [11:31:54]Connected sock=9 [11:31: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 36 30 0F 01 00 00 ED ED 07 01 49 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 35 FF 03 08 00 03 E4 1B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2E A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 11 00 00 00 00 07 04 06 00 F8 A7 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 3A DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 25 C0 00 00 35 04 06 00 94 F7 5B 7E 8A AB 72 76 C1 68 2B 92 82 BC [11:31: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 36 30 4F 00 00 00 B4 0A 47 00 40 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 36 30 10 04 04 00 25 C0 00 00 F4 03 04 00 30 8A B8 65 B6 04 01 00 00 88 93 23 1D 16 F3 21 F4 [11:31:54]CommunicateWithHost err = 0 [11:31:54]CheckOFDResponse [11:31:54]1017 (14) - 77093643461234 [11:31:54]1041 (16) - 0000000000875060 [11:31:54]1040 (4) - 49189 [11:31:54]1012 (4) - 30.01.2024 05:33 [11:31:54]1206 (1) - 0 [11:31:54]OFD Sender: Remove packet 49189 [11:31:54]ProducePacketName [11:31:54]name=ofd_packets/00049189 [11:31:54]NVStorageDeleteData [11:31:54]Write to MH i2c: 01 00 00 A3 70 13 [11:31:54]Write i2c OK [11:31:54]MH_I2C_Read... [11:31:54]Read from MH i2c: 01 [11:31:54]MH_I2C_Read... [11:31:54]Read from MH i2c: 01 07 00 [11:31:54]MH_I2C_Read... [11:31:54]Read from MH i2c: 01 07 00 A3 70 00 00 00 00 00 F9 0C 1F [11:31:54]RasterBufferAndPrint [11:31:54]line [11:31:54]line [11:31:54]line [11:31:54]line [11:31:54]line [11:31:54]written 0, free lines is 3330 [11:31:54]MH_Cut [11:31:54]Write to MH i2c: D1 01 00 AA 70 01 EC [11:31:54]Write i2c OK [11:31:54]MH_I2C_Read... [11:31:54]Read from MH i2c: D1 [11:31:54]MH_I2C_Read... [11:31:54]Read from MH i2c: D1 01 00 [11:31:54]MH_I2C_Read... [11:31:54]Read from MH i2c: D1 01 00 AA 70 00 EB [11:31:54]Write to MH i2c: 01 00 00 AB 70 1B [11:31:54]Write i2c OK [11:31:54]MH_I2C_Read... [11:31:54]OFD Sender: No OFD packet to send [11:31:55]*** Cut start [11:31:55]*** Partial cut [11:31:55]*** CUTSNS_PIN = 1 [11:31:55]*** CUTSNS_PIN = 0 [11:31:55]*** Brake cut motor [11:31:55]Read from MH i2c: 01 [11:31:55]MH_I2C_Read... [11:31:55]*** Stop cut motor [11:31:55]*** Cut end [11:31:55]Read from MH i2c: 01 07 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: 01 07 00 AB 70 00 00 00 00 00 FF 0F 30 [11:31:55]process_action close_receipt done [11:31:55]requested_data is exist [11:31:55]produce_requested_data [11:31:55]requested_item fm.sn is exist - process it [11:31:55]wFMCommunicate request_size=4 [11:31:55]MH_SAM_APDU [11:31:55]CAPDU: 80 11 00 00 [11:31:55]Write to MH i2c: E2 08 00 AC 70 80 11 00 00 00 00 00 00 96 [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:55]Read from MH i2c: E2 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 17 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 17 00 AC 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E3 [11:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:31:55]wFMCommunicate OK [11:31:55]requested_item fd.num is exist - process it [11:31:55]SAM_PROTO_GetFieldsCounters [11:31:55]wFMCommunicate request_size=4 [11:31:55]MH_SAM_APDU [11:31:55]CAPDU: 80 13 00 00 [11:31:55]Write to MH i2c: E2 08 00 AD 70 80 13 00 00 00 00 00 00 99 [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:55]Read from MH i2c: E2 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 62 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 62 00 AD 70 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [11:31: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:55]wFMCommunicate OK [11:31:55]SAM_PROTO_GetFieldsCounters done [11:31:55]requested_item shift.num is exist - process it [11:31:55]requested_item shift.opened is exist - process it [11:31:55]req_shift_opened [11:31:55]FM_GetShiftState [11:31:55]SAM_PROTO_GetShiftState [11:31:55]wFMCommunicate request_size=4 [11:31:55]MH_SAM_APDU [11:31:55]CAPDU: 80 13 01 00 [11:31:55]Write to MH i2c: E2 08 00 AE 70 80 13 01 00 00 00 00 00 9B [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:56]Read from MH i2c: E2 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 0E 00 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 0E 00 AE 70 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C3 [11:31:56]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:31:56]wFMCommunicate OK [11:31:56]SAM_PROTO_GetShiftState done [11:31:56]FM_GetShiftState done [11:31:56]req_shift_opened done [11:31:56]requested_item shift.open_date is exist - process it [11:31:56]req_shift_open_date [11:31:56]req_shift_open_date done [11:31:56]produce_requested_data done [11:31:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49189,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:31:56]process_action_free close_receipt [11:31:56]json_value_free [11:31:56]json_value_free done [11:31:56]process_json_proto returns [11:31:56]Send response to host [11:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49189,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:31:56]free response buf [11:31:56]execute_script done [11:31:56]execute_script returns [11:31:56]free content buf [11:31:56]Sock 7.Close socket [11:31:56]Sock 7.Thread stoped [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:38]accept exits with 10 [11:32:38]New connection [11:32:38]New thread 3066813796 created [11:32:38]Thread 3066670436 joined [11:32:38]Waiting for new connection... [11:32:38] Sock 10.Parse request [11:32:38]Sock 10.Check first char [11:32:38]Sock 10.First char is OK [11:32:38]request: POST /json_proto HTTP/1.0 [11:32:38]Method: POST [11:32:38]URL: /json_proto [11:32:38]Method is POST - this is cgi request [11:32:38]url: /json_proto [11:32:38]query_string will be loaded in cgi processing [11:32:38]execute_cgi json_proto POST (null) [11:32:38]execute_cgi path=json_proto method=POST [11:32:38]POST find Content-Length [11:32:38]Host: 172.17.56.67:8080 [11:32:38]Content-Length: 677 [11:32:38]Content-Type: application/json [11:32:38] [11:32:38]POST finish read [11:32:38]Found Content-Length = 677 [11:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:38]execute_script... [11:32:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:38]POST & json_proto [11:32:38]process_json_proto [11:32:38]json parsed OK: [11:32:38]protocol is kg_v1.0 [11:32:38]action value=close_receipt [11:32:38]process_action close_receipt [11:32:38]cmd_close_receipt [11:32:38]MH_GetDate [11:32:38]Write to MH i2c: F0 00 00 AF 70 0E [11:32:38]Write i2c OK [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: F0 [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: F0 09 00 [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: F0 09 00 AF 70 00 69 DE B8 65 26 5D 9E 65 01 [11:32:38]GetLastDocTimeStamp 1706614330 [11:32:38]current date 1706614377 [11:32:38]FM_GetShiftState [11:32:38]SAM_PROTO_GetShiftState [11:32:38]wFMCommunicate request_size=4 [11:32:38]MH_SAM_APDU [11:32:38]CAPDU: 80 13 01 00 [11:32:38]Write to MH i2c: E2 08 00 B0 70 80 13 01 00 00 00 00 00 9D [11:32:38]Write i2c OK [11:32:38]MH_I2C_Read... [11:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:38]Read from MH i2c: E2 [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: E2 0E 00 [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: E2 0E 00 B0 70 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C5 [11:32:38]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:32:38]wFMCommunicate OK [11:32:38]SAM_PROTO_GetShiftState done [11:32:38]FM_GetShiftState done [11:32:38]opened in 1706572995 [11:32:38]opened+sec_in_day 1706659395 [11:32:38]quantity*price = 50049 [11:32:38]sum+1 = 50050 [11:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 66 30.01.2024 11:32 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49190 ФПД: 30138294170733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T113257&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49190&fm=30138294170733&tin=02508201610067®Number=0000000000092723&sum=50000 [11:32:39]StoreToDocumentArchive [11:32:39]shift 246 fd 49190 [11:32:39]save to /storage/0246/doc_00049190 [11:32:39]save last doc name /storage/0246/doc_00049190 to /storage/kkm_last_doc_name [11:32:39]save OK [11:32:39]Clear old archive folders... [11:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:39]tlvbuf is 011ACD20 [11:32:39]SAM_PROTO_ClearQueue [11:32:39]wFMCommunicate request_size=4 [11:32:39]MH_SAM_APDU [11:32:39]CAPDU: 80 09 00 00 [11:32:39]Write to MH i2c: E2 08 00 BD 70 80 09 00 00 00 00 00 00 9F [11:32:39]Write i2c OK [11:32:39]MH_I2C_Read... [11:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:39]Read from MH i2c: E2 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 03 00 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 03 00 BD 70 00 90 00 A1 [11:32:39]RAPDU: 90 00 [11:32:39]wFMCommunicate OK [11:32:39]SAM_PROTO_ClearQueue done [11:32:39]KKMCreateOFDPacket [11:32:39]OFDProtocolAddRootSTLVToBuf [11:32:39]FM_MakeSignedData [11:32:39]FM_MakeSignedData [11:32:39]SAM_PROTO_SignData [11:32:39]wFMCommunicate request_size=4 [11:32:39]MH_SAM_APDU [11:32:39]CAPDU: 80 0D 01 02 [11:32:39]Write to MH i2c: E2 08 00 BE 70 80 0D 01 02 00 00 00 00 A7 [11:32:39]Write i2c OK [11:32:39]MH_I2C_Read... [11:32:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:39]Read from MH i2c: E2 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 03 00 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 03 00 BE 70 00 90 00 A2 [11:32:39]RAPDU: 90 00 [11:32:39]wFMCommunicate OK [11:32:39]wFMCommunicate request_size=255 [11:32:39]MH_SAM_APDU [11:32:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 69 DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 26 C0 00 00 35 04 06 00 1B [11:32:39]Write to MH i2c: E2 02 01 BF 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 69 DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 26 C0 00 00 35 04 06 00 1B 00 00 74 [11:32:39]Write i2c OK [11:32:39]MH_I2C_Read... [11:32:39]OFD Sender: No OFD packet to send [11:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 BF 70 00 90 00 A3 [11:32:40]RAPDU: 90 00 [11:32:40]wFMCommunicate OK [11:32:40]wFMCommunicate request_size=10 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 0D 02 02 05 69 1E 51 74 6D [11:32:40]Write to MH i2c: E2 0D 00 C0 70 80 0D 02 02 05 00 69 1E 51 74 6D 00 00 6D [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 C0 70 00 90 00 A4 [11:32:40]RAPDU: 90 00 [11:32:40]wFMCommunicate OK [11:32:40]wFMCommunicate request_size=4 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 0D 03 02 [11:32:40]Write to MH i2c: E2 08 00 C1 70 80 0D 03 02 00 00 00 00 AC [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 0B 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 0B 00 C1 70 00 20 E0 E7 D2 9A D3 A5 D3 90 00 4B [11:32:40]RAPDU: 20 E0 E7 D2 9A D3 A5 D3 90 00 [11:32:40]wFMCommunicate OK [11:32:40]SAM_PROTO_SignData done [11:32:40]FM_MakeSignedData done [11:32:40]CreateOFDProtocolMessage [11:32:40]wFMCommunicate request_size=4 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 11 00 00 [11:32:40]Write to MH i2c: E2 08 00 C2 70 80 11 00 00 00 00 00 00 AC [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 17 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 17 00 C2 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F9 [11:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:32:40]wFMCommunicate OK [11:32:40]CreateOFDProtocolMessage done [11:32:40]OFDSenderStorePacket 49190 [11:32:40]StoreOFDPacket docnum=49190 [11:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1A AD 07 01 7B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 69 DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 26 C0 00 00 35 04 06 00 1B 69 1E 51 74 6D 20 E0 E7 D2 9A D3 A5 D3 [11:32:40]CheckFolder [11:32:40]dirname=/storage/ofd_packets [11:32:40]CheckFolder done [11:32:40]ProducePacketName [11:32:40]name=ofd_packets/00049190 [11:32:40]NVStorageSaveData ofd_packets/00049190 [11:32:40]File name is /storage/ofd_packets/00049190 [11:32:40]Write 301 bytes [11:32:40]NVStorageSaveData done [11:32:40]OFDSenderStorePacket done [11:32:40]KKMCreateOFDPacket done [11:32:40]NVStorageSaveData kkm_last_timestamp [11:32:40]File name is /storage/kkm_last_timestamp [11:32:40]Write 4 bytes [11:32:40]NVStorageSaveData done [11:32:40]ExternCall_PrintAddStr [11:32:40]wPrintStart [11:32:40]Write to MH i2c: 01 00 00 C3 70 33 [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: 01 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: 01 07 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: 01 07 00 C3 70 00 00 00 00 00 FF 0F 48 [11:32:40]RasterBufferAndPrint [11:32:40]line Счет N : (1)216292 [11:32:40]line ИНН: 02508201610067 [11:32:40]line Контрольно-Кассовый Чек [11:32:40]line ПРОДАЖА [11:32:40]line ТРК (МРК, ГНК) : 22 [11:32:40]line Товар: 2710124130 [11:32:40]line Аи-92-К-5 [11:32:40]line 8.300 * 60.30 [11:32:40]line = 500.49 [11:32:40]line НДС 12% НСП 1% [11:32:40]line > о реализуемом товаре [11:32:40]line ОКРУГЛЕНИЕ: -0.49 [11:32:40]line ИТОГО: 500.00 [11:32:40]line Внесено: 500.00 [11:32:40]line СДАЧА: 0.00 [11:32:40]line НСП 1% : 4.43 [11:32:40]line НДС 12% : 53.15 [11:32:40]line Наличными: 500.00 [11:32:40]line Безнал.: 0.00 [11:32:40]line Место: АЗС № 102 "Партнер Нефть" [11:32:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:32:40]line СНО: Общий режим [11:32:40]line Чек 66 30.01.2024 11:32 [11:32:40]line Смена: 246 ФФД: 1.0 [11:32:40]line ЗНМ: 0300000040 [11:32:40]line РНМ: 0000000000092723 [11:32:40]line Версия ККМ: 001 [11:32:40]line ФМ: 0000000000875060 [11:32:40]line ФД: 49190 [11:32:40]line ФПД: 30138294170733 [11:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T113257&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49190&fm=30138294170733&tin=02508201610067®Number=0000000000092723&sum=50000 [11:32:40]OFD Sender: Processing packet 49190 [packets to send 12, broken 11] [11:32:40]ProducePacketName [11:32:40]name=ofd_packets/00049190 [11:32:40]OFD Sender: To server: pG, [11:32:40]CommunicateWithHost lk.salyk.kg:30040 [11:32:40]ConnectInit lk.salyk.kg [11:32:40]written 0, free lines is 4095 [11:32:40]Connected sock=9 [11:32: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 36 30 0F 01 00 00 1A AD 07 01 7B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 69 DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 26 C0 00 00 35 04 06 00 1B 69 1E 51 74 6D 20 E0 E7 D2 9A D3 A5 D3 [11:32: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 36 30 4F 00 00 00 AC BB 47 00 F0 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 26 C0 00 00 F4 03 04 00 5E 8A B8 65 B6 04 01 00 00 3B 1B 9A 16 4F D4 BA 0B [11:32:40]CommunicateWithHost err = 0 [11:32:40]CheckOFDResponse [11:32:40]1017 (14) - 77093643461234 [11:32:40]1041 (16) - 0000000000875060 [11:32:40]1040 (4) - 49190 [11:32:40]1012 (4) - 30.01.2024 05:34 [11:32:40]1206 (1) - 0 [11:32:40]OFD Sender: Remove packet 49190 [11:32:40]ProducePacketName [11:32:40]name=ofd_packets/00049190 [11:32:40]NVStorageDeleteData [11:32:41]Write to MH i2c: 01 00 00 EE 70 5E [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 07 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 07 00 EE 70 00 00 00 00 00 EC 0C 5D [11:32:41]RasterBufferAndPrint [11:32:41]line [11:32:41]line [11:32:41]line [11:32:41]line [11:32:41]line [11:32:41]written 0, free lines is 3314 [11:32:41]MH_Cut [11:32:41]Write to MH i2c: D1 01 00 F5 70 01 37 [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: D1 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: D1 01 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: D1 01 00 F5 70 00 36 [11:32:41]Write to MH i2c: 01 00 00 F6 70 66 [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]OFD Sender: No OFD packet to send [11:32:41]*** Cut start [11:32:41]*** Partial cut [11:32:41]*** CUTSNS_PIN = 1 [11:32:41]*** CUTSNS_PIN = 0 [11:32:41]*** Brake cut motor [11:32:42]Read from MH i2c: 01 [11:32:42]MH_I2C_Read... [11:32:42]*** Stop cut motor [11:32:42]*** Cut end [11:32:42]Read from MH i2c: 01 07 00 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: 01 07 00 F6 70 00 00 00 00 00 FF 0F 7B [11:32:42]process_action close_receipt done [11:32:42]requested_data is exist [11:32:42]produce_requested_data [11:32:42]requested_item fm.sn is exist - process it [11:32:42]wFMCommunicate request_size=4 [11:32:42]MH_SAM_APDU [11:32:42]CAPDU: 80 11 00 00 [11:32:42]Write to MH i2c: E2 08 00 F7 70 80 11 00 00 00 00 00 00 E1 [11:32:42]Write i2c OK [11:32:42]MH_I2C_Read... [11:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:42]Read from MH i2c: E2 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: E2 17 00 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: E2 17 00 F7 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2E [11:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:32:42]wFMCommunicate OK [11:32:42]requested_item fd.num is exist - process it [11:32:42]SAM_PROTO_GetFieldsCounters [11:32:42]wFMCommunicate request_size=4 [11:32:42]MH_SAM_APDU [11:32:42]CAPDU: 80 13 00 00 [11:32:42]Write to MH i2c: E2 08 00 F8 70 80 13 00 00 00 00 00 00 E4 [11:32:42]Write i2c OK [11:32:42]MH_I2C_Read... [11:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:42]Read from MH i2c: E2 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: E2 62 00 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: E2 62 00 F8 70 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 26 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [11:32: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 26 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:42]wFMCommunicate OK [11:32:42]SAM_PROTO_GetFieldsCounters done [11:32:42]requested_item shift.num is exist - process it [11:32:42]requested_item shift.opened is exist - process it [11:32:42]req_shift_opened [11:32:42]FM_GetShiftState [11:32:42]SAM_PROTO_GetShiftState [11:32:42]wFMCommunicate request_size=4 [11:32:42]MH_SAM_APDU [11:32:42]CAPDU: 80 13 01 00 [11:32:42]Write to MH i2c: E2 08 00 F9 70 80 13 01 00 00 00 00 00 E6 [11:32:42]Write i2c OK [11:32:42]MH_I2C_Read... [11:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:42]Read from MH i2c: E2 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: E2 0E 00 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: E2 0E 00 F9 70 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 0E [11:32:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:32:42]wFMCommunicate OK [11:32:42]SAM_PROTO_GetShiftState done [11:32:42]FM_GetShiftState done [11:32:42]req_shift_opened done [11:32:42]requested_item shift.open_date is exist - process it [11:32:42]req_shift_open_date [11:32:42]req_shift_open_date done [11:32:42]produce_requested_data done [11:32:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49190,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:32:42]process_action_free close_receipt [11:32:42]json_value_free [11:32:42]json_value_free done [11:32:42]process_json_proto returns [11:32:42]Send response to host [11:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49190,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:32:42]free response buf [11:32:42]execute_script done [11:32:42]execute_script returns [11:32:42]free content buf [11:32:42]Sock 10.Close socket [11:32:42]Sock 10.Thread stoped [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:44]accept exits with 7 [11:34:44]New connection [11:34:44]New thread 3066670436 created [11:34:44]Thread 3066813796 joined [11:34:44]Waiting for new connection... [11:34:44] Sock 7.Parse request [11:34:44]Sock 7.Check first char [11:34:44]Sock 7.First char is OK [11:34:44]request: POST /json_proto HTTP/1.0 [11:34:44]Method: POST [11:34:44]URL: /json_proto [11:34:44]Method is POST - this is cgi request [11:34:44]url: /json_proto [11:34:44]query_string will be loaded in cgi processing [11:34:44]execute_cgi json_proto POST (null) [11:34:44]execute_cgi path=json_proto method=POST [11:34:44]POST find Content-Length [11:34:44]Host: 172.17.56.67:8080 [11:34:44]Content-Length: 677 [11:34:44]Content-Type: application/json [11:34:44] [11:34:44]POST finish read [11:34:44]Found Content-Length = 677 [11:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:44]execute_script... [11:34:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:44]POST & json_proto [11:34:44]process_json_proto [11:34:44]json parsed OK: [11:34:44]protocol is kg_v1.0 [11:34:44]action value=close_receipt [11:34:44]process_action close_receipt [11:34:44]cmd_close_receipt [11:34:44]MH_GetDate [11:34:44]Write to MH i2c: F0 00 00 FA 70 59 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: F0 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: F0 09 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: F0 09 00 FA 70 00 E7 DE B8 65 26 5D 9E 65 CA [11:34:44]GetLastDocTimeStamp 1706614377 [11:34:44]current date 1706614503 [11:34:44]FM_GetShiftState [11:34:44]SAM_PROTO_GetShiftState [11:34:44]wFMCommunicate request_size=4 [11:34:44]MH_SAM_APDU [11:34:44]CAPDU: 80 13 01 00 [11:34:44]Write to MH i2c: E2 08 00 FB 70 80 13 01 00 00 00 00 00 E8 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:44]Read from MH i2c: E2 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 0E 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 0E 00 FB 70 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 10 [11:34:44]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:34:44]wFMCommunicate OK [11:34:44]SAM_PROTO_GetShiftState done [11:34:44]FM_GetShiftState done [11:34:44]opened in 1706572995 [11:34:44]opened+sec_in_day 1706659395 [11:34:44]quantity*price = 30029 [11:34:44]sum+1 = 30030 [11:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 67 30.01.2024 11:35 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49191 ФПД: 190696221309800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T113503&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49191&fm=190696221309800&tin=02508201610067®Number=0000000000092723&sum=30000 [11:34:45]StoreToDocumentArchive [11:34:45]shift 246 fd 49191 [11:34:45]save to /storage/0246/doc_00049191 [11:34:45]save last doc name /storage/0246/doc_00049191 to /storage/kkm_last_doc_name [11:34:45]save OK [11:34:45]Clear old archive folders... [11:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:45]tlvbuf is 013556A0 [11:34:45]SAM_PROTO_ClearQueue [11:34:45]wFMCommunicate request_size=4 [11:34:45]MH_SAM_APDU [11:34:45]CAPDU: 80 09 00 00 [11:34:45]Write to MH i2c: E2 08 00 08 71 80 09 00 00 00 00 00 00 EB [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:45]Read from MH i2c: E2 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 03 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 03 00 08 71 00 90 00 ED [11:34:45]RAPDU: 90 00 [11:34:45]wFMCommunicate OK [11:34:45]SAM_PROTO_ClearQueue done [11:34:45]KKMCreateOFDPacket [11:34:45]OFDProtocolAddRootSTLVToBuf [11:34:45]FM_MakeSignedData [11:34:45]FM_MakeSignedData [11:34:45]SAM_PROTO_SignData [11:34:45]wFMCommunicate request_size=4 [11:34:45]MH_SAM_APDU [11:34:45]CAPDU: 80 0D 01 02 [11:34:45]Write to MH i2c: E2 08 00 09 71 80 0D 01 02 00 00 00 00 F3 [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:45]Read from MH i2c: E2 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 03 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 03 00 09 71 00 90 00 EE [11:34:45]RAPDU: 90 00 [11:34:45]wFMCommunicate OK [11:34:45]wFMCommunicate request_size=255 [11:34:45]MH_SAM_APDU [11:34:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E7 DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 27 C0 00 00 35 04 06 00 AD [11:34:45]Write to MH i2c: E2 02 01 0A 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E7 DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 27 C0 00 00 35 04 06 00 AD 00 00 68 [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 0A 71 00 90 00 EF [11:34:46]RAPDU: 90 00 [11:34:46]wFMCommunicate OK [11:34:46]wFMCommunicate request_size=10 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 0D 02 02 05 6F EC 87 FB 68 [11:34:46]Write to MH i2c: E2 0D 00 0B 71 80 0D 02 02 05 00 6F EC 87 FB 68 00 00 45 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 0B 71 00 90 00 F0 [11:34:46]RAPDU: 90 00 [11:34:46]wFMCommunicate OK [11:34:46]wFMCommunicate request_size=4 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 0D 03 02 [11:34:46]Write to MH i2c: E2 08 00 0C 71 80 0D 03 02 00 00 00 00 F8 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 0B 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 0B 00 0C 71 00 6D CE 57 18 9E DB 8C 39 90 00 E1 [11:34:46]RAPDU: 6D CE 57 18 9E DB 8C 39 90 00 [11:34:46]wFMCommunicate OK [11:34:46]SAM_PROTO_SignData done [11:34:46]FM_MakeSignedData done [11:34:46]CreateOFDProtocolMessage [11:34:46]wFMCommunicate request_size=4 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 11 00 00 [11:34:46]Write to MH i2c: E2 08 00 0D 71 80 11 00 00 00 00 00 00 F8 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 17 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 17 00 0D 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 45 [11:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:34:46]wFMCommunicate OK [11:34:46]CreateOFDProtocolMessage done [11:34:46]OFDSenderStorePacket 49191 [11:34:46]StoreOFDPacket docnum=49191 [11:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F0 2D 07 01 8D A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E7 DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 27 C0 00 00 35 04 06 00 AD 6F EC 87 FB 68 6D CE 57 18 9E DB 8C 39 [11:34:46]CheckFolder [11:34:46]dirname=/storage/ofd_packets [11:34:46]CheckFolder done [11:34:46]ProducePacketName [11:34:46]name=ofd_packets/00049191 [11:34:46]NVStorageSaveData ofd_packets/00049191 [11:34:46]File name is /storage/ofd_packets/00049191 [11:34:46]Write 301 bytes [11:34:46]NVStorageSaveData done [11:34:46]OFDSenderStorePacket done [11:34:46]KKMCreateOFDPacket done [11:34:46]NVStorageSaveData kkm_last_timestamp [11:34:46]File name is /storage/kkm_last_timestamp [11:34:46]Write 4 bytes [11:34:46]NVStorageSaveData done [11:34:46]ExternCall_PrintAddStr [11:34:46]wPrintStart [11:34:46]Write to MH i2c: 01 00 00 0E 71 7F [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 07 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 07 00 0E 71 00 00 00 00 00 FF 0F 94 [11:34:46]RasterBufferAndPrint [11:34:46]line Счет N : (1)216293 [11:34:46]line ИНН: 02508201610067 [11:34:46]line Контрольно-Кассовый Чек [11:34:46]line ПРОДАЖА [11:34:46]line ТРК (МРК, ГНК) : 22 [11:34:46]line Товар: 2710124130 [11:34:46]line Аи-92-К-5 [11:34:46]line 4.980 * 60.30 [11:34:46]line = 300.29 [11:34:46]line НДС 12% НСП 1% [11:34:46]line > о реализуемом товаре [11:34:46]line ОКРУГЛЕНИЕ: -0.29 [11:34:46]line ИТОГО: 300.00 [11:34:46]line Внесено: 300.00 [11:34:46]line СДАЧА: 0.00 [11:34:46]line НСП 1% : 2.66 [11:34:46]line НДС 12% : 31.89 [11:34:46]line Наличными: 300.00 [11:34:46]line Безнал.: 0.00 [11:34:46]line Место: АЗС № 102 "Партнер Нефть" [11:34:46]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:34:46]line СНО: Общий режим [11:34:46]line Чек 67 30.01.2024 11:35 [11:34:46]line Смена: 246 ФФД: 1.0 [11:34:46]line ЗНМ: 0300000040 [11:34:46]line РНМ: 0000000000092723 [11:34:46]line Версия ККМ: 001 [11:34:46]line ФМ: 0000000000875060 [11:34:46]line ФД: 49191 [11:34:46]line ФПД: 190696221309800 [11:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T113503&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49191&fm=190696221309800&tin=02508201610067®Number=0000000000092723&sum=30000 [11:34:46]OFD Sender: Processing packet 49191 [packets to send 12, broken 11] [11:34:46]ProducePacketName [11:34:46]name=ofd_packets/00049191 [11:34:46]OFD Sender: To server: pG, [11:34:46]CommunicateWithHost lk.salyk.kg:30040 [11:34:46]ConnectInit lk.salyk.kg [11:34:46]written 0, free lines is 4095 [11:34:46]Connected sock=10 [11:34:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F0 2D 07 01 8D A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E7 DE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 27 C0 00 00 35 04 06 00 AD 6F EC 87 FB 68 6D CE 57 18 9E DB 8C 39 [11:34: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 36 30 4F 00 00 00 9B C2 47 00 5D 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 36 30 10 04 04 00 27 C0 00 00 F4 03 04 00 DC 8A B8 65 B6 04 01 00 00 51 F0 1E 18 26 31 EE 88 [11:34:46]CommunicateWithHost err = 0 [11:34:46]CheckOFDResponse [11:34:46]1017 (14) - 77093643461234 [11:34:46]1041 (16) - 0000000000875060 [11:34:46]1040 (4) - 49191 [11:34:46]1012 (4) - 30.01.2024 05:36 [11:34:46]1206 (1) - 0 [11:34:46]OFD Sender: Remove packet 49191 [11:34:46]ProducePacketName [11:34:46]name=ofd_packets/00049191 [11:34:46]NVStorageDeleteData [11:34:47]Write to MH i2c: 01 00 00 39 71 AA [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: 01 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: 01 07 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: 01 07 00 39 71 00 00 00 00 00 F4 0C B1 [11:34:47]RasterBufferAndPrint [11:34:47]line [11:34:47]line [11:34:47]line [11:34:47]line [11:34:47]line [11:34:47]written 0, free lines is 3323 [11:34:47]MH_Cut [11:34:47]Write to MH i2c: D1 01 00 40 71 01 83 [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: D1 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: D1 01 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: D1 01 00 40 71 00 82 [11:34:47]Write to MH i2c: 01 00 00 41 71 B2 [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]OFD Sender: No OFD packet to send [11:34:47]*** Cut start [11:34:47]*** Partial cut [11:34:47]*** CUTSNS_PIN = 1 [11:34:47]*** CUTSNS_PIN = 0 [11:34:47]*** Brake cut motor [11:34:48]Read from MH i2c: 01 [11:34:48]MH_I2C_Read... [11:34:48]*** Stop cut motor [11:34:48]*** Cut end [11:34:48]Read from MH i2c: 01 07 00 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: 01 07 00 41 71 00 00 00 00 00 FF 0F C7 [11:34:48]process_action close_receipt done [11:34:48]requested_data is exist [11:34:48]produce_requested_data [11:34:48]requested_item fm.sn is exist - process it [11:34:48]wFMCommunicate request_size=4 [11:34:48]MH_SAM_APDU [11:34:48]CAPDU: 80 11 00 00 [11:34:48]Write to MH i2c: E2 08 00 42 71 80 11 00 00 00 00 00 00 2D [11:34:48]Write i2c OK [11:34:48]MH_I2C_Read... [11:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:48]Read from MH i2c: E2 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 17 00 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 17 00 42 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7A [11:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:34:48]wFMCommunicate OK [11:34:48]requested_item fd.num is exist - process it [11:34:48]SAM_PROTO_GetFieldsCounters [11:34:48]wFMCommunicate request_size=4 [11:34:48]MH_SAM_APDU [11:34:48]CAPDU: 80 13 00 00 [11:34:48]Write to MH i2c: E2 08 00 43 71 80 13 00 00 00 00 00 00 30 [11:34:48]Write i2c OK [11:34:48]MH_I2C_Read... [11:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:48]Read from MH i2c: E2 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 62 00 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 62 00 43 71 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 27 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [11:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 27 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:48]wFMCommunicate OK [11:34:48]SAM_PROTO_GetFieldsCounters done [11:34:48]requested_item shift.num is exist - process it [11:34:48]requested_item shift.opened is exist - process it [11:34:48]req_shift_opened [11:34:48]FM_GetShiftState [11:34:48]SAM_PROTO_GetShiftState [11:34:48]wFMCommunicate request_size=4 [11:34:48]MH_SAM_APDU [11:34:48]CAPDU: 80 13 01 00 [11:34:48]Write to MH i2c: E2 08 00 44 71 80 13 01 00 00 00 00 00 32 [11:34:48]Write i2c OK [11:34:48]MH_I2C_Read... [11:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:48]Read from MH i2c: E2 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 0E 00 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 0E 00 44 71 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5A [11:34:48]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:34:48]wFMCommunicate OK [11:34:48]SAM_PROTO_GetShiftState done [11:34:48]FM_GetShiftState done [11:34:48]req_shift_opened done [11:34:48]requested_item shift.open_date is exist - process it [11:34:48]req_shift_open_date [11:34:48]req_shift_open_date done [11:34:48]produce_requested_data done [11:34:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49191,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:34:48]process_action_free close_receipt [11:34:48]json_value_free [11:34:48]json_value_free done [11:34:48]process_json_proto returns [11:34:48]Send response to host [11:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49191,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:34:48]free response buf [11:34:48]execute_script done [11:34:48]execute_script returns [11:34:48]free content buf [11:34:48]Sock 7.Close socket [11:34:48]Sock 7.Thread stoped [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:15]accept exits with 9 [11:44:15]New connection [11:44:15]New thread 3066813796 created [11:44:15]Thread 3066670436 joined [11:44:15]Waiting for new connection... [11:44:15] Sock 9.Parse request [11:44:15]Sock 9.Check first char [11:44:15]Sock 9.First char is OK [11:44:15]request: POST /json_proto HTTP/1.0 [11:44:15]Method: POST [11:44:15]URL: /json_proto [11:44:15]Method is POST - this is cgi request [11:44:15]url: /json_proto [11:44:15]query_string will be loaded in cgi processing [11:44:15]execute_cgi json_proto POST (null) [11:44:15]execute_cgi path=json_proto method=POST [11:44:15]POST find Content-Length [11:44:15]Host: 172.17.56.67:8080 [11:44:15]Content-Length: 677 [11:44:15]Content-Type: application/json [11:44:15] [11:44:15]POST finish read [11:44:15]Found Content-Length = 677 [11:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:15]execute_script... [11:44:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:15]POST & json_proto [11:44:15]process_json_proto [11:44:15]json parsed OK: [11:44:15]protocol is kg_v1.0 [11:44:15]action value=close_receipt [11:44:15]process_action close_receipt [11:44:15]cmd_close_receipt [11:44:15]MH_GetDate [11:44:15]Write to MH i2c: F0 00 00 45 71 A5 [11:44:15]Write i2c OK [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: F0 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: F0 09 00 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: F0 09 00 45 71 00 22 E1 B8 65 26 5D 9E 65 54 [11:44:15]GetLastDocTimeStamp 1706614503 [11:44:15]current date 1706615074 [11:44:15]FM_GetShiftState [11:44:15]SAM_PROTO_GetShiftState [11:44:15]wFMCommunicate request_size=4 [11:44:15]MH_SAM_APDU [11:44:15]CAPDU: 80 13 01 00 [11:44:15]Write to MH i2c: E2 08 00 46 71 80 13 01 00 00 00 00 00 34 [11:44:15]Write i2c OK [11:44:15]MH_I2C_Read... [11:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:15]Read from MH i2c: E2 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 0E 00 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 0E 00 46 71 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5C [11:44:15]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:44:15]wFMCommunicate OK [11:44:15]SAM_PROTO_GetShiftState done [11:44:15]FM_GetShiftState done [11:44:15]opened in 1706572995 [11:44:15]opened+sec_in_day 1706659395 [11:44:15]quantity*price = 50049 [11:44:15]sum+1 = 50050 [11:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 68 30.01.2024 11:44 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49192 ФПД: 117336831386114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T114434&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49192&fm=117336831386114&tin=02508201610067®Number=0000000000092723&sum=50000 [11:44:17]StoreToDocumentArchive [11:44:17]shift 246 fd 49192 [11:44:17]save to /storage/0246/doc_00049192 [11:44:17]save last doc name /storage/0246/doc_00049192 to /storage/kkm_last_doc_name [11:44:17]save OK [11:44:17]Clear old archive folders... [11:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:17]tlvbuf is 011E65A0 [11:44:17]SAM_PROTO_ClearQueue [11:44:17]wFMCommunicate request_size=4 [11:44:17]MH_SAM_APDU [11:44:17]CAPDU: 80 09 00 00 [11:44:17]Write to MH i2c: E2 08 00 53 71 80 09 00 00 00 00 00 00 36 [11:44:17]Write i2c OK [11:44:17]MH_I2C_Read... [11:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:17]Read from MH i2c: E2 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 03 00 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 03 00 53 71 00 90 00 38 [11:44:17]RAPDU: 90 00 [11:44:17]wFMCommunicate OK [11:44:17]SAM_PROTO_ClearQueue done [11:44:17]KKMCreateOFDPacket [11:44:17]OFDProtocolAddRootSTLVToBuf [11:44:17]FM_MakeSignedData [11:44:17]FM_MakeSignedData [11:44:17]SAM_PROTO_SignData [11:44:17]wFMCommunicate request_size=4 [11:44:17]MH_SAM_APDU [11:44:17]CAPDU: 80 0D 01 02 [11:44:17]Write to MH i2c: E2 08 00 54 71 80 0D 01 02 00 00 00 00 3E [11:44:17]Write i2c OK [11:44:17]MH_I2C_Read... [11:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:17]Read from MH i2c: E2 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 03 00 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 03 00 54 71 00 90 00 39 [11:44:17]RAPDU: 90 00 [11:44:17]wFMCommunicate OK [11:44:17]wFMCommunicate request_size=255 [11:44:17]MH_SAM_APDU [11:44:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 22 E1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 C0 00 00 35 04 06 00 6A [11:44:17]Write to MH i2c: E2 02 01 55 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 22 E1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 C0 00 00 35 04 06 00 6A 00 00 1A [11:44:17]Write i2c OK [11:44:17]MH_I2C_Read... [11:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:17]Read from MH i2c: E2 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 03 00 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 03 00 55 71 00 90 00 3A [11:44:17]RAPDU: 90 00 [11:44:17]wFMCommunicate OK [11:44:17]wFMCommunicate request_size=10 [11:44:17]MH_SAM_APDU [11:44:17]CAPDU: 80 0D 02 02 05 B7 9C 27 62 02 [11:44:17]Write to MH i2c: E2 0D 00 56 71 80 0D 02 02 05 00 B7 9C 27 62 02 00 00 29 [11:44:17]Write i2c OK [11:44:17]MH_I2C_Read... [11:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:17]Read from MH i2c: E2 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 03 00 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 03 00 56 71 00 90 00 3B [11:44:17]RAPDU: 90 00 [11:44:17]wFMCommunicate OK [11:44:17]wFMCommunicate request_size=4 [11:44:17]MH_SAM_APDU [11:44:17]CAPDU: 80 0D 03 02 [11:44:17]Write to MH i2c: E2 08 00 57 71 80 0D 03 02 00 00 00 00 43 [11:44:17]Write i2c OK [11:44:17]MH_I2C_Read... [11:44:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:17]Read from MH i2c: E2 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 0B 00 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 0B 00 57 71 00 43 FF 7F 1B ED A6 DB 3C 90 00 CA [11:44:17]RAPDU: 43 FF 7F 1B ED A6 DB 3C 90 00 [11:44:17]wFMCommunicate OK [11:44:17]SAM_PROTO_SignData done [11:44:17]FM_MakeSignedData done [11:44:17]CreateOFDProtocolMessage [11:44:17]wFMCommunicate request_size=4 [11:44:17]MH_SAM_APDU [11:44:17]CAPDU: 80 11 00 00 [11:44:17]Write to MH i2c: E2 08 00 58 71 80 11 00 00 00 00 00 00 43 [11:44:17]Write i2c OK [11:44:17]MH_I2C_Read... [11:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:17]Read from MH i2c: E2 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 17 00 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: E2 17 00 58 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 90 [11:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:44:17]wFMCommunicate OK [11:44:17]CreateOFDProtocolMessage done [11:44:17]OFDSenderStorePacket 49192 [11:44:17]StoreOFDPacket docnum=49192 [11:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5E E3 07 01 B6 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 22 E1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 C0 00 00 35 04 06 00 6A B7 9C 27 62 02 43 FF 7F 1B ED A6 DB 3C [11:44:17]CheckFolder [11:44:17]dirname=/storage/ofd_packets [11:44:17]CheckFolder done [11:44:17]ProducePacketName [11:44:17]name=ofd_packets/00049192 [11:44:17]NVStorageSaveData ofd_packets/00049192 [11:44:17]File name is /storage/ofd_packets/00049192 [11:44:17]Write 301 bytes [11:44:17]NVStorageSaveData done [11:44:17]OFDSenderStorePacket done [11:44:17]KKMCreateOFDPacket done [11:44:17]NVStorageSaveData kkm_last_timestamp [11:44:17]File name is /storage/kkm_last_timestamp [11:44:17]Write 4 bytes [11:44:17]NVStorageSaveData done [11:44:17]ExternCall_PrintAddStr [11:44:17]wPrintStart [11:44:17]Write to MH i2c: 01 00 00 59 71 CA [11:44:17]OFD Sender: Processing packet 49192 [packets to send 12, broken 11] [11:44:17]ProducePacketName [11:44:17]name=ofd_packets/00049192 [11:44:17]OFD Sender: To server: pG, [11:44:17]CommunicateWithHost lk.salyk.kg:30040 [11:44:17]ConnectInit lk.salyk.kg [11:44:17]Write i2c OK [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: 01 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: 01 07 00 [11:44:17]MH_I2C_Read... [11:44:17]Read from MH i2c: 01 07 00 59 71 00 00 00 00 00 FF 0F DF [11:44:17]RasterBufferAndPrint [11:44:17]line Счет N : (1)216294 [11:44:17]line ИНН: 02508201610067 [11:44:17]line Контрольно-Кассовый Чек [11:44:17]line ПРОДАЖА [11:44:17]line ТРК (МРК, ГНК) : 22 [11:44:17]line Товар: 2710124130 [11:44:17]line Аи-92-К-5 [11:44:17]line 8.300 * 60.30 [11:44:17]line = 500.49 [11:44:17]line НДС 12% НСП 1% [11:44:17]line > о реализуемом товаре [11:44:17]line ОКРУГЛЕНИЕ: -0.49 [11:44:17]line ИТОГО: 500.00 [11:44:17]line Внесено: 500.00 [11:44:17]line СДАЧА: 0.00 [11:44:17]line НСП 1% : 4.43 [11:44:17]line НДС 12% : 53.15 [11:44:17]line Наличными: 500.00 [11:44:17]line Безнал.: 0.00 [11:44:17]line Место: АЗС № 102 "Партнер Нефть" [11:44:17]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:44:17]line СНО: Общий режим [11:44:17]line Чек 68 30.01.2024 11:44 [11:44:17]line Смена: 246 ФФД: 1.0 [11:44:17]line ЗНМ: 0300000040 [11:44:17]line РНМ: 0000000000092723 [11:44:17]line Версия ККМ: 001 [11:44:17]line ФМ: 0000000000875060 [11:44:17]line ФД: 49192 [11:44:17]line ФПД: 117336831386114 [11:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T114434&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49192&fm=117336831386114&tin=02508201610067®Number=0000000000092723&sum=50000 [11:44:17]Connected sock=10 [11:44: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 36 30 0F 01 00 00 5E E3 07 01 B6 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 22 E1 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 C0 00 00 35 04 06 00 6A B7 9C 27 62 02 43 FF 7F 1B ED A6 DB 3C [11:44:18]written 0, free lines is 4095 [11:44: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 36 30 4F 00 00 00 72 48 47 00 21 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 36 30 10 04 04 00 28 C0 00 00 F4 03 04 00 18 8D B8 65 B6 04 01 00 00 B5 FF 0B AF 8E 95 0A C9 [11:44:18]CommunicateWithHost err = 0 [11:44:18]CheckOFDResponse [11:44:18]1017 (14) - 77093643461234 [11:44:18]1041 (16) - 0000000000875060 [11:44:18]1040 (4) - 49192 [11:44:18]1012 (4) - 30.01.2024 05:46 [11:44:18]1206 (1) - 0 [11:44:18]OFD Sender: Remove packet 49192 [11:44:18]ProducePacketName [11:44:18]name=ofd_packets/00049192 [11:44:18]NVStorageDeleteData [11:44:18]Write to MH i2c: 01 00 00 84 71 F5 [11:44:18]Write i2c OK [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: 01 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: 01 07 00 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: 01 07 00 84 71 00 00 00 00 00 F4 0C FC [11:44:18]RasterBufferAndPrint [11:44:18]line [11:44:18]line [11:44:18]line [11:44:18]line [11:44:18]line [11:44:18]written 0, free lines is 3322 [11:44:18]MH_Cut [11:44:18]Write to MH i2c: D1 01 00 8B 71 01 CE [11:44:18]Write i2c OK [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: D1 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: D1 01 00 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: D1 01 00 8B 71 00 CD [11:44:18]Write to MH i2c: 01 00 00 8C 71 FD [11:44:18]Write i2c OK [11:44:18]MH_I2C_Read... [11:44:18]OFD Sender: No OFD packet to send [11:44:19]*** Cut start [11:44:19]*** Partial cut [11:44:19]*** CUTSNS_PIN = 1 [11:44:19]*** CUTSNS_PIN = 0 [11:44:19]*** Brake cut motor [11:44:19]Read from MH i2c: 01 [11:44:19]MH_I2C_Read... [11:44:19]*** Stop cut motor [11:44:19]*** Cut end [11:44:19]Read from MH i2c: 01 07 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: 01 07 00 8C 71 00 00 00 00 00 FF 0F 12 [11:44:19]process_action close_receipt done [11:44:19]requested_data is exist [11:44:19]produce_requested_data [11:44:19]requested_item fm.sn is exist - process it [11:44:19]wFMCommunicate request_size=4 [11:44:19]MH_SAM_APDU [11:44:19]CAPDU: 80 11 00 00 [11:44:19]Write to MH i2c: E2 08 00 8D 71 80 11 00 00 00 00 00 00 78 [11:44:19]Write i2c OK [11:44:19]MH_I2C_Read... [11:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:19]Read from MH i2c: E2 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 17 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 17 00 8D 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C5 [11:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:44:19]wFMCommunicate OK [11:44:19]requested_item fd.num is exist - process it [11:44:19]SAM_PROTO_GetFieldsCounters [11:44:19]wFMCommunicate request_size=4 [11:44:19]MH_SAM_APDU [11:44:19]CAPDU: 80 13 00 00 [11:44:19]Write to MH i2c: E2 08 00 8E 71 80 13 00 00 00 00 00 00 7B [11:44:19]Write i2c OK [11:44:19]MH_I2C_Read... [11:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:19]Read from MH i2c: E2 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 62 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 62 00 8E 71 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 28 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [11:44: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 28 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:19]wFMCommunicate OK [11:44:19]SAM_PROTO_GetFieldsCounters done [11:44:19]requested_item shift.num is exist - process it [11:44:19]requested_item shift.opened is exist - process it [11:44:19]req_shift_opened [11:44:19]FM_GetShiftState [11:44:19]SAM_PROTO_GetShiftState [11:44:19]wFMCommunicate request_size=4 [11:44:19]MH_SAM_APDU [11:44:19]CAPDU: 80 13 01 00 [11:44:19]Write to MH i2c: E2 08 00 8F 71 80 13 01 00 00 00 00 00 7D [11:44:19]Write i2c OK [11:44:19]MH_I2C_Read... [11:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:19]Read from MH i2c: E2 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 0E 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 0E 00 8F 71 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A5 [11:44:19]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:44:19]wFMCommunicate OK [11:44:19]SAM_PROTO_GetShiftState done [11:44:19]FM_GetShiftState done [11:44:19]req_shift_opened done [11:44:19]requested_item shift.open_date is exist - process it [11:44:19]req_shift_open_date [11:44:19]req_shift_open_date done [11:44:19]produce_requested_data done [11:44:19]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49192,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:44:19]process_action_free close_receipt [11:44:19]json_value_free [11:44:19]json_value_free done [11:44:19]process_json_proto returns [11:44:19]Send response to host [11:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49192,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:44:19]free response buf [11:44:19]execute_script done [11:44:19]execute_script returns [11:44:19]free content buf [11:44:19]Sock 9.Close socket [11:44:19]Sock 9.Thread stoped [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:50]accept exits with 7 [11:54:50]New connection [11:54:50]New thread 3066670436 created [11:54:50]Thread 3066813796 joined [11:54:50]Waiting for new connection... [11:54:50] Sock 7.Parse request [11:54:50]Sock 7.Check first char [11:54:50]Sock 7.First char is OK [11:54:50]request: POST /json_proto HTTP/1.0 [11:54:50]Method: POST [11:54:50]URL: /json_proto [11:54:50]Method is POST - this is cgi request [11:54:50]url: /json_proto [11:54:50]query_string will be loaded in cgi processing [11:54:50]execute_cgi json_proto POST (null) [11:54:50]execute_cgi path=json_proto method=POST [11:54:50]POST find Content-Length [11:54:50]Host: 172.17.56.67:8080 [11:54:50]Content-Length: 860 [11:54:50]Content-Type: application/json [11:54:50] [11:54:50]POST finish read [11:54:50]Found Content-Length = 860 [11:54:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:50]execute_script... [11:54:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:50]POST & json_proto [11:54:50]process_json_proto [11:54:50]json parsed OK: [11:54:50]protocol is kg_v1.0 [11:54:50]action value=close_receipt [11:54:50]process_action close_receipt [11:54:50]cmd_close_receipt [11:54:50]MH_GetDate [11:54:50]Write to MH i2c: F0 00 00 90 71 F0 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: F0 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: F0 09 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: F0 09 00 90 71 00 9C E3 B8 65 26 5D 9E 65 1B [11:54:50]GetLastDocTimeStamp 1706615074 [11:54:50]current date 1706615708 [11:54:50]FM_GetShiftState [11:54:50]SAM_PROTO_GetShiftState [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 13 01 00 [11:54:50]Write to MH i2c: E2 08 00 91 71 80 13 01 00 00 00 00 00 7F [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 0E 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 0E 00 91 71 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A7 [11:54:50]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:54:50]wFMCommunicate OK [11:54:50]SAM_PROTO_GetShiftState done [11:54:50]FM_GetShiftState done [11:54:50]opened in 1706572995 [11:54:50]opened+sec_in_day 1706659395 [11:54:50]quantity*price = 50048 [11:54:50]sum+1 = 50049 [11:54:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.48 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 0.00 Безнал.: 500.48 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 69 30.01.2024 11:55 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000875060 ФД: 49193 ФПД: 70787746624417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T115508&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49193&fm=70787746624417&tin=02508201610067®Number=0000000000092723&sum=50048 [11:54:51]StoreToDocumentArchive [11:54:51]shift 246 fd 49193 [11:54:51]save to /storage/0246/doc_00049193 [11:54:51]save last doc name /storage/0246/doc_00049193 to /storage/kkm_last_doc_name [11:54:51]save OK [11:54:51]Clear old archive folders... [11:54:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:51]tlvbuf is 011E5F60 [11:54:51]SAM_PROTO_ClearQueue [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 09 00 00 [11:54:51]Write to MH i2c: E2 08 00 9E 71 80 09 00 00 00 00 00 00 81 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 9E 71 00 90 00 83 [11:54:51]RAPDU: 90 00 [11:54:51]wFMCommunicate OK [11:54:51]SAM_PROTO_ClearQueue done [11:54:51]KKMCreateOFDPacket [11:54:51]OFDProtocolAddRootSTLVToBuf [11:54:51]FM_MakeSignedData [11:54:51]FM_MakeSignedData [11:54:51]SAM_PROTO_SignData [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 0D 01 02 [11:54:51]Write to MH i2c: E2 08 00 9F 71 80 0D 01 02 00 00 00 00 89 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 9F 71 00 90 00 84 [11:54:51]RAPDU: 90 00 [11:54:51]wFMCommunicate OK [11:54:51]wFMCommunicate request_size=255 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 9C E3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 29 C0 00 00 35 04 06 00 40 61 8E 7D [11:54:51]Write to MH i2c: E2 02 01 A0 71 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 9C E3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 29 C0 00 00 35 04 06 00 40 61 8E 7D 00 00 22 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 A0 71 00 90 00 85 [11:54:51]RAPDU: 90 00 [11:54:51]wFMCommunicate OK [11:54:51]wFMCommunicate request_size=7 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 0D 02 02 02 F3 A1 [11:54:51]Write to MH i2c: E2 0A 00 A1 71 80 0D 02 02 02 00 F3 A1 00 00 24 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 03 00 A1 71 00 90 00 86 [11:54:51]RAPDU: 90 00 [11:54:51]wFMCommunicate OK [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 0D 03 02 [11:54:51]Write to MH i2c: E2 08 00 A2 71 80 0D 03 02 00 00 00 00 8E [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 0B 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 0B 00 A2 71 00 FF D0 4F 84 CB 31 5E 8C 90 00 17 [11:54:51]RAPDU: FF D0 4F 84 CB 31 5E 8C 90 00 [11:54:51]wFMCommunicate OK [11:54:51]SAM_PROTO_SignData done [11:54:51]FM_MakeSignedData done [11:54:51]CreateOFDProtocolMessage [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 11 00 00 [11:54:51]Write to MH i2c: E2 08 00 A3 71 80 11 00 00 00 00 00 00 8E [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 17 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 17 00 A3 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DB [11:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:54:51]wFMCommunicate OK [11:54:51]CreateOFDProtocolMessage done [11:54:51]OFDSenderStorePacket 49193 [11:54:51]StoreOFDPacket docnum=49193 [11:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 DA 04 04 01 FA 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 9C E3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 29 C0 00 00 35 04 06 00 40 61 8E 7D F3 A1 FF D0 4F 84 CB 31 5E 8C [11:54:51]CheckFolder [11:54:51]dirname=/storage/ofd_packets [11:54:51]CheckFolder done [11:54:51]ProducePacketName [11:54:51]name=ofd_packets/00049193 [11:54:51]NVStorageSaveData ofd_packets/00049193 [11:54:51]File name is /storage/ofd_packets/00049193 [11:54:51]Write 298 bytes [11:54:51]NVStorageSaveData done [11:54:51]OFDSenderStorePacket done [11:54:51]KKMCreateOFDPacket done [11:54:51]NVStorageSaveData kkm_last_timestamp [11:54:51]File name is /storage/kkm_last_timestamp [11:54:51]Write 4 bytes [11:54:51]NVStorageSaveData done [11:54:51]ExternCall_PrintAddStr [11:54:51]wPrintStart [11:54:51]Write to MH i2c: 01 00 00 A4 71 15 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 A4 71 00 00 00 00 00 FF 0F 2A [11:54:51]RasterBufferAndPrint [11:54:51]line Счет N : (1)216295 [11:54:51]line ИНН: 02508201610067 [11:54:51]line Контрольно-Кассовый Чек [11:54:51]line ПРОДАЖА [11:54:51]line ТРК (МРК, ГНК) : 11 [11:54:51]line Товар: 2710194210 [11:54:51]line ДТ-К-5 [11:54:51]line 7.160 * 69.90 [11:54:51]line = 500.48 [11:54:51]line НДС 12% НСП 1% [11:54:51]line > о реализуемом товаре [11:54:51]line ИТОГО: 500.48 [11:54:51]line НСП 1% : 4.43 [11:54:51]line НДС 12% : 53.15 [11:54:51]line Наличными: 0.00 [11:54:51]line Безнал.: 500.48 [11:54:51]line Место: АЗС № 102 "Партнер Нефть" [11:54:51]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:54:51]line СНО: Общий режим [11:54:51]line Чек 69 30.01.2024 11:55 [11:54:51]line Смена: 246 ФФД: 1.0 [11:54:51]line ЗНМ: 0300000040 [11:54:51]line РНМ: 0000000000092723 [11:54:51]line Версия ККМ: 001 [11:54:51]line Платежная система: Кыргызкоммерцбанк [11:54:51]line ФМ: 0000000000875060 [11:54:51]line ФД: 49193 [11:54:51]line ФПД: 70787746624417 [11:54:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T115508&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49193&fm=70787746624417&tin=02508201610067®Number=0000000000092723&sum=50048 [11:54:52]OFD Sender: Processing packet 49193 [packets to send 12, broken 11] [11:54:52]ProducePacketName [11:54:52]name=ofd_packets/00049193 [11:54:52]OFD Sender: To server: pG, [11:54:52]CommunicateWithHost lk.salyk.kg:30040 [11:54:52]ConnectInit lk.salyk.kg [11:54:52]written 0, free lines is 4095 [11:54:52]Connected sock=10 [11:54: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 36 30 0C 01 00 00 DA 04 04 01 FA 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 9C E3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 29 C0 00 00 35 04 06 00 40 61 8E 7D F3 A1 FF D0 4F 84 CB 31 5E 8C [11:54: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 36 30 4F 00 00 00 E4 88 47 00 07 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 29 C0 00 00 F4 03 04 00 92 8F B8 65 B6 04 01 00 00 8E 79 F2 4F 76 47 88 D2 [11:54:52]CommunicateWithHost err = 0 [11:54:52]CheckOFDResponse [11:54:52]1017 (14) - 77093643461234 [11:54:52]1041 (16) - 0000000000875060 [11:54:52]1040 (4) - 49193 [11:54:52]1012 (4) - 30.01.2024 05:56 [11:54:52]1206 (1) - 0 [11:54:52]OFD Sender: Remove packet 49193 [11:54:52]ProducePacketName [11:54:52]name=ofd_packets/00049193 [11:54:52]NVStorageDeleteData [11:54:52]Write to MH i2c: 01 00 00 CE 71 3F [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 07 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 07 00 CE 71 00 00 00 00 00 1A 0D 6D [11:54:52]RasterBufferAndPrint [11:54:52]line [11:54:52]line [11:54:52]line [11:54:52]line [11:54:52]line [11:54:52]written 0, free lines is 3361 [11:54:52]MH_Cut [11:54:52]Write to MH i2c: D1 01 00 D5 71 01 18 [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: D1 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: D1 01 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: D1 01 00 D5 71 00 17 [11:54:52]Write to MH i2c: 01 00 00 D6 71 47 [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:53]OFD Sender: No OFD packet to send [11:54:53]*** Cut start [11:54:53]*** Partial cut [11:54:53]*** CUTSNS_PIN = 1 [11:54:53]*** CUTSNS_PIN = 0 [11:54:53]*** Brake cut motor [11:54:53]Read from MH i2c: 01 [11:54:53]MH_I2C_Read... [11:54:53]*** Stop cut motor [11:54:53]*** Cut end [11:54:53]Read from MH i2c: 01 07 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: 01 07 00 D6 71 00 00 00 00 00 FF 0F 5C [11:54:53]process_action close_receipt done [11:54:53]requested_data is exist [11:54:53]produce_requested_data [11:54:53]requested_item fm.sn is exist - process it [11:54:53]wFMCommunicate request_size=4 [11:54:53]MH_SAM_APDU [11:54:53]CAPDU: 80 11 00 00 [11:54:53]Write to MH i2c: E2 08 00 D7 71 80 11 00 00 00 00 00 00 C2 [11:54:53]Write i2c OK [11:54:53]MH_I2C_Read... [11:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:54]Read from MH i2c: E2 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 17 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 17 00 D7 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0F [11:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:54:54]wFMCommunicate OK [11:54:54]requested_item fd.num is exist - process it [11:54:54]SAM_PROTO_GetFieldsCounters [11:54:54]wFMCommunicate request_size=4 [11:54:54]MH_SAM_APDU [11:54:54]CAPDU: 80 13 00 00 [11:54:54]Write to MH i2c: E2 08 00 D8 71 80 13 00 00 00 00 00 00 C5 [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:54]Read from MH i2c: E2 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 62 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 62 00 D8 71 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 29 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [11:54: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 29 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:54]wFMCommunicate OK [11:54:54]SAM_PROTO_GetFieldsCounters done [11:54:54]requested_item shift.num is exist - process it [11:54:54]requested_item shift.opened is exist - process it [11:54:54]req_shift_opened [11:54:54]FM_GetShiftState [11:54:54]SAM_PROTO_GetShiftState [11:54:54]wFMCommunicate request_size=4 [11:54:54]MH_SAM_APDU [11:54:54]CAPDU: 80 13 01 00 [11:54:54]Write to MH i2c: E2 08 00 D9 71 80 13 01 00 00 00 00 00 C7 [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:54]Read from MH i2c: E2 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 0E 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 0E 00 D9 71 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 EF [11:54:54]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:54:54]wFMCommunicate OK [11:54:54]SAM_PROTO_GetShiftState done [11:54:54]FM_GetShiftState done [11:54:54]req_shift_opened done [11:54:54]requested_item shift.open_date is exist - process it [11:54:54]req_shift_open_date [11:54:54]req_shift_open_date done [11:54:54]produce_requested_data done [11:54:54]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49193,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:54:54]process_action_free close_receipt [11:54:54]json_value_free [11:54:54]json_value_free done [11:54:54]process_json_proto returns [11:54:54]Send response to host [11:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49193,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:54:54]free response buf [11:54:54]execute_script done [11:54:54]execute_script returns [11:54:54]free content buf [11:54:54]Sock 7.Close socket [11:54:54]Sock 7.Thread stoped [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:28]accept exits with 9 [11:56:28]New connection [11:56:28]New thread 3066813796 created [11:56:28]Thread 3066670436 joined [11:56:28]Waiting for new connection... [11:56:28] Sock 9.Parse request [11:56:28]Sock 9.Check first char [11:56:28]Sock 9.First char is OK [11:56:28]request: POST /json_proto HTTP/1.0 [11:56:28]Method: POST [11:56:28]URL: /json_proto [11:56:28]Method is POST - this is cgi request [11:56:28]url: /json_proto [11:56:28]query_string will be loaded in cgi processing [11:56:28]execute_cgi json_proto POST (null) [11:56:28]execute_cgi path=json_proto method=POST [11:56:28]POST find Content-Length [11:56:28]Host: 172.17.56.67:8080 [11:56:28]Content-Length: 677 [11:56:28]Content-Type: application/json [11:56:28] [11:56:28]POST finish read [11:56:28]Found Content-Length = 677 [11:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:28]execute_script... [11:56:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:28]POST & json_proto [11:56:28]process_json_proto [11:56:28]json parsed OK: [11:56:28]protocol is kg_v1.0 [11:56:28]action value=close_receipt [11:56:28]process_action close_receipt [11:56:28]cmd_close_receipt [11:56:28]MH_GetDate [11:56:28]Write to MH i2c: F0 00 00 DA 71 3A [11:56:28]Write i2c OK [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: F0 [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: F0 09 00 [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: F0 09 00 DA 71 00 FF E3 B8 65 26 5D 9E 65 C8 [11:56:28]GetLastDocTimeStamp 1706615708 [11:56:28]current date 1706615807 [11:56:28]FM_GetShiftState [11:56:28]SAM_PROTO_GetShiftState [11:56:28]wFMCommunicate request_size=4 [11:56:28]MH_SAM_APDU [11:56:28]CAPDU: 80 13 01 00 [11:56:28]Write to MH i2c: E2 08 00 DB 71 80 13 01 00 00 00 00 00 C9 [11:56:28]Write i2c OK [11:56:28]MH_I2C_Read... [11:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:29]Read from MH i2c: E2 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: E2 0E 00 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: E2 0E 00 DB 71 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F1 [11:56:29]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:56:29]wFMCommunicate OK [11:56:29]SAM_PROTO_GetShiftState done [11:56:29]FM_GetShiftState done [11:56:29]opened in 1706572995 [11:56:29]opened+sec_in_day 1706659395 [11:56:29]quantity*price = 30029 [11:56:29]sum+1 = 30030 [11:56:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 70 30.01.2024 11:56 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49194 ФПД: 170597739853063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T115647&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49194&fm=170597739853063&tin=02508201610067®Number=0000000000092723&sum=30000 [11:56:30]StoreToDocumentArchive [11:56:30]shift 246 fd 49194 [11:56:30]save to /storage/0246/doc_00049194 [11:56:30]save last doc name /storage/0246/doc_00049194 to /storage/kkm_last_doc_name [11:56:30]save OK [11:56:30]Clear old archive folders... [11:56:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:30]tlvbuf is 013B8790 [11:56:30]SAM_PROTO_ClearQueue [11:56:30]wFMCommunicate request_size=4 [11:56:30]MH_SAM_APDU [11:56:30]CAPDU: 80 09 00 00 [11:56:30]Write to MH i2c: E2 08 00 E8 71 80 09 00 00 00 00 00 00 CB [11:56:30]Write i2c OK [11:56:30]MH_I2C_Read... [11:56:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:30]Read from MH i2c: E2 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 03 00 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 03 00 E8 71 00 90 00 CD [11:56:30]RAPDU: 90 00 [11:56:30]wFMCommunicate OK [11:56:30]SAM_PROTO_ClearQueue done [11:56:30]KKMCreateOFDPacket [11:56:30]OFDProtocolAddRootSTLVToBuf [11:56:30]FM_MakeSignedData [11:56:30]FM_MakeSignedData [11:56:30]SAM_PROTO_SignData [11:56:30]wFMCommunicate request_size=4 [11:56:30]MH_SAM_APDU [11:56:30]CAPDU: 80 0D 01 02 [11:56:30]Write to MH i2c: E2 08 00 E9 71 80 0D 01 02 00 00 00 00 D3 [11:56:30]Write i2c OK [11:56:30]MH_I2C_Read... [11:56:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:30]Read from MH i2c: E2 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 03 00 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 03 00 E9 71 00 90 00 CE [11:56:30]RAPDU: 90 00 [11:56:30]wFMCommunicate OK [11:56:30]wFMCommunicate request_size=255 [11:56:30]MH_SAM_APDU [11:56:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FF E3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2A C0 00 00 35 04 06 00 9B [11:56:30]Write to MH i2c: E2 02 01 EA 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FF E3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2A C0 00 00 35 04 06 00 9B 00 00 59 [11:56:30]Write i2c OK [11:56:30]MH_I2C_Read... [11:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:30]Read from MH i2c: E2 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 03 00 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 03 00 EA 71 00 90 00 CF [11:56:30]RAPDU: 90 00 [11:56:30]wFMCommunicate OK [11:56:30]wFMCommunicate request_size=10 [11:56:30]MH_SAM_APDU [11:56:30]CAPDU: 80 0D 02 02 05 28 61 AE F5 07 [11:56:30]Write to MH i2c: E2 0D 00 EB 71 80 0D 02 02 05 00 28 61 AE F5 07 00 00 13 [11:56:30]Write i2c OK [11:56:30]MH_I2C_Read... [11:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:30]Read from MH i2c: E2 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 03 00 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 03 00 EB 71 00 90 00 D0 [11:56:30]RAPDU: 90 00 [11:56:30]wFMCommunicate OK [11:56:30]wFMCommunicate request_size=4 [11:56:30]MH_SAM_APDU [11:56:30]CAPDU: 80 0D 03 02 [11:56:30]Write to MH i2c: E2 08 00 EC 71 80 0D 03 02 00 00 00 00 D8 [11:56:30]Write i2c OK [11:56:30]MH_I2C_Read... [11:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:30]Read from MH i2c: E2 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 0B 00 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 0B 00 EC 71 00 5D 48 28 85 22 52 EA 73 90 00 FC [11:56:30]RAPDU: 5D 48 28 85 22 52 EA 73 90 00 [11:56:30]wFMCommunicate OK [11:56:30]SAM_PROTO_SignData done [11:56:30]FM_MakeSignedData done [11:56:30]CreateOFDProtocolMessage [11:56:30]wFMCommunicate request_size=4 [11:56:30]MH_SAM_APDU [11:56:30]CAPDU: 80 11 00 00 [11:56:30]Write to MH i2c: E2 08 00 ED 71 80 11 00 00 00 00 00 00 D8 [11:56:30]Write i2c OK [11:56:30]MH_I2C_Read... [11:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:30]Read from MH i2c: E2 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 17 00 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: E2 17 00 ED 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 25 [11:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:56:30]wFMCommunicate OK [11:56:30]CreateOFDProtocolMessage done [11:56:30]OFDSenderStorePacket 49194 [11:56:30]StoreOFDPacket docnum=49194 [11:56:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 18 DE 07 01 B2 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FF E3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2A C0 00 00 35 04 06 00 9B 28 61 AE F5 07 5D 48 28 85 22 52 EA 73 [11:56:30]CheckFolder [11:56:30]dirname=/storage/ofd_packets [11:56:30]CheckFolder done [11:56:30]ProducePacketName [11:56:30]name=ofd_packets/00049194 [11:56:30]NVStorageSaveData ofd_packets/00049194 [11:56:30]File name is /storage/ofd_packets/00049194 [11:56:30]Write 301 bytes [11:56:30]NVStorageSaveData done [11:56:30]OFDSenderStorePacket done [11:56:30]KKMCreateOFDPacket done [11:56:30]NVStorageSaveData kkm_last_timestamp [11:56:30]File name is /storage/kkm_last_timestamp [11:56:30]Write 4 bytes [11:56:30]NVStorageSaveData done [11:56:30]ExternCall_PrintAddStr [11:56:30]wPrintStart [11:56:30]Write to MH i2c: 01 00 00 EE 71 5F [11:56:30]Write i2c OK [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: 01 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: 01 07 00 [11:56:30]MH_I2C_Read... [11:56:30]Read from MH i2c: 01 07 00 EE 71 00 00 00 00 00 FF 0F 74 [11:56:30]RasterBufferAndPrint [11:56:30]line Счет N : (1)216296 [11:56:30]line ИНН: 02508201610067 [11:56:30]line Контрольно-Кассовый Чек [11:56:30]line ПРОДАЖА [11:56:30]line ТРК (МРК, ГНК) : 22 [11:56:30]line Товар: 2710124130 [11:56:30]line Аи-92-К-5 [11:56:30]line 4.980 * 60.30 [11:56:30]line = 300.29 [11:56:30]line НДС 12% НСП 1% [11:56:30]line > о реализуемом товаре [11:56:30]line ОКРУГЛЕНИЕ: -0.29 [11:56:30]line ИТОГО: 300.00 [11:56:30]line Внесено: 300.00 [11:56:30]line СДАЧА: 0.00 [11:56:30]line НСП 1% : 2.66 [11:56:30]line НДС 12% : 31.89 [11:56:30]line Наличными: 300.00 [11:56:30]line Безнал.: 0.00 [11:56:30]line Место: АЗС № 102 "Партнер Нефть" [11:56:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:56:30]line СНО: Общий режим [11:56:30]line Чек 70 30.01.2024 11:56 [11:56:30]line Смена: 246 ФФД: 1.0 [11:56:30]line ЗНМ: 0300000040 [11:56:30]line РНМ: 0000000000092723 [11:56:30]line Версия ККМ: 001 [11:56:30]line ФМ: 0000000000875060 [11:56:30]line ФД: 49194 [11:56:30]line ФПД: 170597739853063 [11:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T115647&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49194&fm=170597739853063&tin=02508201610067®Number=0000000000092723&sum=30000 [11:56:30]OFD Sender: Processing packet 49194 [packets to send 12, broken 11] [11:56:30]ProducePacketName [11:56:30]name=ofd_packets/00049194 [11:56:30]OFD Sender: To server: pG, [11:56:30]CommunicateWithHost lk.salyk.kg:30040 [11:56:30]ConnectInit lk.salyk.kg [11:56:30]written 0, free lines is 4095 [11:56:31]Connected sock=10 [11:56: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 36 30 0F 01 00 00 18 DE 07 01 B2 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FF E3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2A C0 00 00 35 04 06 00 9B 28 61 AE F5 07 5D 48 28 85 22 52 EA 73 [11:56: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 36 30 4F 00 00 00 90 22 47 00 1F C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2A C0 00 00 F4 03 04 00 F5 8F B8 65 B6 04 01 00 00 60 93 F8 2B FC D8 1C F5 [11:56:31]CommunicateWithHost err = 0 [11:56:31]CheckOFDResponse [11:56:31]1017 (14) - 77093643461234 [11:56:31]1041 (16) - 0000000000875060 [11:56:31]1040 (4) - 49194 [11:56:31]1012 (4) - 30.01.2024 05:58 [11:56:31]1206 (1) - 0 [11:56:31]OFD Sender: Remove packet 49194 [11:56:31]ProducePacketName [11:56:31]name=ofd_packets/00049194 [11:56:31]NVStorageDeleteData [11:56:31]Write to MH i2c: 01 00 00 19 72 8B [11:56:31]Write i2c OK [11:56:31]MH_I2C_Read... [11:56:31]Read from MH i2c: 01 [11:56:31]MH_I2C_Read... [11:56:31]Read from MH i2c: 01 07 00 [11:56:31]MH_I2C_Read... [11:56:31]Read from MH i2c: 01 07 00 19 72 00 00 00 00 00 EC 0C 8A [11:56:31]RasterBufferAndPrint [11:56:31]line [11:56:31]line [11:56:31]line [11:56:31]line [11:56:31]line [11:56:31]written 0, free lines is 3314 [11:56:31]MH_Cut [11:56:31]Write to MH i2c: D1 01 00 20 72 01 64 [11:56:31]Write i2c OK [11:56:31]MH_I2C_Read... [11:56:31]Read from MH i2c: D1 [11:56:31]MH_I2C_Read... [11:56:31]Read from MH i2c: D1 01 00 [11:56:31]MH_I2C_Read... [11:56:31]Read from MH i2c: D1 01 00 20 72 00 63 [11:56:31]Write to MH i2c: 01 00 00 21 72 93 [11:56:31]Write i2c OK [11:56:31]MH_I2C_Read... [11:56:31]OFD Sender: No OFD packet to send [11:56:32]*** Cut start [11:56:32]*** Partial cut [11:56:32]*** CUTSNS_PIN = 1 [11:56:32]*** CUTSNS_PIN = 0 [11:56:32]*** Brake cut motor [11:56:32]Read from MH i2c: 01 [11:56:32]MH_I2C_Read... [11:56:32]*** Stop cut motor [11:56:32]*** Cut end [11:56:32]Read from MH i2c: 01 07 00 [11:56:32]MH_I2C_Read... [11:56:32]Read from MH i2c: 01 07 00 21 72 00 00 00 00 00 FF 0F A8 [11:56:32]process_action close_receipt done [11:56:32]requested_data is exist [11:56:32]produce_requested_data [11:56:32]requested_item fm.sn is exist - process it [11:56:32]wFMCommunicate request_size=4 [11:56:32]MH_SAM_APDU [11:56:32]CAPDU: 80 11 00 00 [11:56:32]Write to MH i2c: E2 08 00 22 72 80 11 00 00 00 00 00 00 0E [11:56:32]Write i2c OK [11:56:32]MH_I2C_Read... [11:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:32]Read from MH i2c: E2 [11:56:32]MH_I2C_Read... [11:56:32]Read from MH i2c: E2 17 00 [11:56:32]MH_I2C_Read... [11:56:32]Read from MH i2c: E2 17 00 22 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5B [11:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:56:32]wFMCommunicate OK [11:56:32]requested_item fd.num is exist - process it [11:56:32]SAM_PROTO_GetFieldsCounters [11:56:32]wFMCommunicate request_size=4 [11:56:32]MH_SAM_APDU [11:56:32]CAPDU: 80 13 00 00 [11:56:32]Write to MH i2c: E2 08 00 23 72 80 13 00 00 00 00 00 00 11 [11:56:32]Write i2c OK [11:56:32]MH_I2C_Read... [11:56:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:32]Read from MH i2c: E2 [11:56:32]MH_I2C_Read... [11:56:32]Read from MH i2c: E2 62 00 [11:56:32]MH_I2C_Read... [11:56:32]Read from MH i2c: E2 62 00 23 72 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11:56: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:32]wFMCommunicate OK [11:56:32]SAM_PROTO_GetFieldsCounters done [11:56:32]requested_item shift.num is exist - process it [11:56:32]requested_item shift.opened is exist - process it [11:56:32]req_shift_opened [11:56:32]FM_GetShiftState [11:56:32]SAM_PROTO_GetShiftState [11:56:32]wFMCommunicate request_size=4 [11:56:32]MH_SAM_APDU [11:56:32]CAPDU: 80 13 01 00 [11:56:32]Write to MH i2c: E2 08 00 24 72 80 13 01 00 00 00 00 00 13 [11:56:32]Write i2c OK [11:56:32]MH_I2C_Read... [11:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:32]Read from MH i2c: E2 [11:56:32]MH_I2C_Read... [11:56:32]Read from MH i2c: E2 0E 00 [11:56:32]MH_I2C_Read... [11:56:32]Read from MH i2c: E2 0E 00 24 72 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3B [11:56:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:56:32]wFMCommunicate OK [11:56:32]SAM_PROTO_GetShiftState done [11:56:32]FM_GetShiftState done [11:56:32]req_shift_opened done [11:56:32]requested_item shift.open_date is exist - process it [11:56:32]req_shift_open_date [11:56:32]req_shift_open_date done [11:56:32]produce_requested_data done [11:56:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49194,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:56:32]process_action_free close_receipt [11:56:32]json_value_free [11:56:32]json_value_free done [11:56:32]process_json_proto returns [11:56:32]Send response to host [11:56:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49194,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:56:32]free response buf [11:56:32]execute_script done [11:56:32]execute_script returns [11:56:32]free content buf [11:56:32]Sock 9.Close socket [11:56:32]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:18]accept exits with 7 [11:58:18]New connection [11:58:18]New thread 3066670436 created [11:58:18]Thread 3066813796 joined [11:58:18]Waiting for new connection... [11:58:18] Sock 7.Parse request [11:58:18]Sock 7.Check first char [11:58:18]Sock 7.First char is OK [11:58:18]request: POST /json_proto HTTP/1.0 [11:58:18]Method: POST [11:58:18]URL: /json_proto [11:58:18]Method is POST - this is cgi request [11:58:18]url: /json_proto [11:58:18]query_string will be loaded in cgi processing [11:58:18]execute_cgi json_proto POST (null) [11:58:18]execute_cgi path=json_proto method=POST [11:58:18]POST find Content-Length [11:58:18]Host: 172.17.56.67:8080 [11:58:18]Content-Length: 677 [11:58:18]Content-Type: application/json [11:58:18] [11:58:18]POST finish read [11:58:18]Found Content-Length = 677 [11:58:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:18]execute_script... [11:58:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:18]POST & json_proto [11:58:18]process_json_proto [11:58:18]json parsed OK: [11:58:18]protocol is kg_v1.0 [11:58:18]action value=close_receipt [11:58:18]process_action close_receipt [11:58:18]cmd_close_receipt [11:58:18]MH_GetDate [11:58:18]Write to MH i2c: F0 00 00 25 72 86 [11:58:18]Write i2c OK [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: F0 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: F0 09 00 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: F0 09 00 25 72 00 6D E4 B8 65 26 5D 9E 65 83 [11:58:18]GetLastDocTimeStamp 1706615807 [11:58:18]current date 1706615917 [11:58:18]FM_GetShiftState [11:58:18]SAM_PROTO_GetShiftState [11:58:18]wFMCommunicate request_size=4 [11:58:18]MH_SAM_APDU [11:58:18]CAPDU: 80 13 01 00 [11:58:18]Write to MH i2c: E2 08 00 26 72 80 13 01 00 00 00 00 00 15 [11:58:18]Write i2c OK [11:58:18]MH_I2C_Read... [11:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:19]Read from MH i2c: E2 [11:58:19]MH_I2C_Read... [11:58:19]Read from MH i2c: E2 0E 00 [11:58:19]MH_I2C_Read... [11:58:19]Read from MH i2c: E2 0E 00 26 72 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3D [11:58:19]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:58:19]wFMCommunicate OK [11:58:19]SAM_PROTO_GetShiftState done [11:58:19]FM_GetShiftState done [11:58:19]opened in 1706572995 [11:58:19]opened+sec_in_day 1706659395 [11:58:19]quantity*price = 25024 [11:58:19]sum+1 = 25026 [11:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 71 30.01.2024 11:58 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49195 ФПД: 137321903306543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T115837&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49195&fm=137321903306543&tin=02508201610067®Number=0000000000092723&sum=25000 [11:58:20]StoreToDocumentArchive [11:58:20]shift 246 fd 49195 [11:58:20]save to /storage/0246/doc_00049195 [11:58:20]save last doc name /storage/0246/doc_00049195 to /storage/kkm_last_doc_name [11:58:20]save OK [11:58:20]Clear old archive folders... [11:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:20]tlvbuf is 013576D0 [11:58:20]SAM_PROTO_ClearQueue [11:58:20]wFMCommunicate request_size=4 [11:58:20]MH_SAM_APDU [11:58:20]CAPDU: 80 09 00 00 [11:58:20]Write to MH i2c: E2 08 00 33 72 80 09 00 00 00 00 00 00 17 [11:58:20]Write i2c OK [11:58:20]MH_I2C_Read... [11:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:20]Read from MH i2c: E2 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 03 00 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 03 00 33 72 00 90 00 19 [11:58:20]RAPDU: 90 00 [11:58:20]wFMCommunicate OK [11:58:20]SAM_PROTO_ClearQueue done [11:58:20]KKMCreateOFDPacket [11:58:20]OFDProtocolAddRootSTLVToBuf [11:58:20]FM_MakeSignedData [11:58:20]FM_MakeSignedData [11:58:20]SAM_PROTO_SignData [11:58:20]wFMCommunicate request_size=4 [11:58:20]MH_SAM_APDU [11:58:20]CAPDU: 80 0D 01 02 [11:58:20]Write to MH i2c: E2 08 00 34 72 80 0D 01 02 00 00 00 00 1F [11:58:20]Write i2c OK [11:58:20]MH_I2C_Read... [11:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:20]Read from MH i2c: E2 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 03 00 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 03 00 34 72 00 90 00 1A [11:58:20]RAPDU: 90 00 [11:58:20]wFMCommunicate OK [11:58:20]wFMCommunicate request_size=255 [11:58:20]MH_SAM_APDU [11:58:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6D E4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2B C0 00 00 35 04 06 00 7C [11:58:20]Write to MH i2c: E2 02 01 35 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6D E4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2B C0 00 00 35 04 06 00 7C 00 00 9A [11:58:20]Write i2c OK [11:58:20]MH_I2C_Read... [11:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:20]Read from MH i2c: E2 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 03 00 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 03 00 35 72 00 90 00 1B [11:58:20]RAPDU: 90 00 [11:58:20]wFMCommunicate OK [11:58:20]wFMCommunicate request_size=10 [11:58:20]MH_SAM_APDU [11:58:20]CAPDU: 80 0D 02 02 05 E4 BF 44 37 2F [11:58:20]Write to MH i2c: E2 0D 00 36 72 80 0D 02 02 05 00 E4 BF 44 37 2F 00 00 79 [11:58:20]Write i2c OK [11:58:20]MH_I2C_Read... [11:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:20]Read from MH i2c: E2 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 03 00 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 03 00 36 72 00 90 00 1C [11:58:20]RAPDU: 90 00 [11:58:20]wFMCommunicate OK [11:58:20]wFMCommunicate request_size=4 [11:58:20]MH_SAM_APDU [11:58:20]CAPDU: 80 0D 03 02 [11:58:20]Write to MH i2c: E2 08 00 37 72 80 0D 03 02 00 00 00 00 24 [11:58:20]Write i2c OK [11:58:20]MH_I2C_Read... [11:58:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:20]Read from MH i2c: E2 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 0B 00 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 0B 00 37 72 00 43 94 4B BD AD CC 5A 4D 90 00 24 [11:58:20]RAPDU: 43 94 4B BD AD CC 5A 4D 90 00 [11:58:20]wFMCommunicate OK [11:58:20]SAM_PROTO_SignData done [11:58:20]FM_MakeSignedData done [11:58:20]CreateOFDProtocolMessage [11:58:20]wFMCommunicate request_size=4 [11:58:20]MH_SAM_APDU [11:58:20]CAPDU: 80 11 00 00 [11:58:20]Write to MH i2c: E2 08 00 38 72 80 11 00 00 00 00 00 00 24 [11:58:20]Write i2c OK [11:58:20]MH_I2C_Read... [11:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:20]Read from MH i2c: E2 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 17 00 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: E2 17 00 38 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 71 [11:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:58:20]wFMCommunicate OK [11:58:20]CreateOFDProtocolMessage done [11:58:20]OFDSenderStorePacket 49195 [11:58:20]StoreOFDPacket docnum=49195 [11:58:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 03 7D 07 01 58 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6D E4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2B C0 00 00 35 04 06 00 7C E4 BF 44 37 2F 43 94 4B BD AD CC 5A 4D [11:58:20]CheckFolder [11:58:20]dirname=/storage/ofd_packets [11:58:20]CheckFolder done [11:58:20]ProducePacketName [11:58:20]name=ofd_packets/00049195 [11:58:20]NVStorageSaveData ofd_packets/00049195 [11:58:20]File name is /storage/ofd_packets/00049195 [11:58:20]Write 301 bytes [11:58:20]NVStorageSaveData done [11:58:20]OFDSenderStorePacket done [11:58:20]KKMCreateOFDPacket done [11:58:20]NVStorageSaveData kkm_last_timestamp [11:58:20]File name is /storage/kkm_last_timestamp [11:58:20]Write 4 bytes [11:58:20]NVStorageSaveData done [11:58:20]ExternCall_PrintAddStr [11:58:20]wPrintStart [11:58:20]Write to MH i2c: 01 00 00 39 72 AB [11:58:20]Write i2c OK [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: 01 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: 01 07 00 [11:58:20]MH_I2C_Read... [11:58:20]Read from MH i2c: 01 07 00 39 72 00 00 00 00 00 FF 0F C0 [11:58:20]RasterBufferAndPrint [11:58:20]line Счет N : (1)216297 [11:58:20]line ИНН: 02508201610067 [11:58:20]line Контрольно-Кассовый Чек [11:58:20]line ПРОДАЖА [11:58:20]line ТРК (МРК, ГНК) : 12 [11:58:20]line Товар: 2710124130 [11:58:20]line Аи-92-К-5 [11:58:20]line 4.150 * 60.30 [11:58:20]line = 250.25 [11:58:20]line НДС 12% НСП 1% [11:58:20]line > о реализуемом товаре [11:58:20]line ОКРУГЛЕНИЕ: -0.25 [11:58:20]line ИТОГО: 250.00 [11:58:20]line Внесено: 250.00 [11:58:20]line СДАЧА: 0.00 [11:58:20]line НСП 1% : 2.21 [11:58:20]line НДС 12% : 26.57 [11:58:20]line Наличными: 250.00 [11:58:20]line Безнал.: 0.00 [11:58:20]line Место: АЗС № 102 "Партнер Нефть" [11:58:20]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:58:20]line СНО: Общий режим [11:58:20]line Чек 71 30.01.2024 11:58 [11:58:20]line Смена: 246 ФФД: 1.0 [11:58:20]line ЗНМ: 0300000040 [11:58:20]line РНМ: 0000000000092723 [11:58:20]line Версия ККМ: 001 [11:58:20]line ФМ: 0000000000875060 [11:58:20]line ФД: 49195 [11:58:20]line ФПД: 137321903306543 [11:58:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T115837&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49195&fm=137321903306543&tin=02508201610067®Number=0000000000092723&sum=25000 [11:58:21]OFD Sender: Processing packet 49195 [packets to send 12, broken 11] [11:58:21]ProducePacketName [11:58:21]name=ofd_packets/00049195 [11:58:21]OFD Sender: To server: pG, [11:58:21]CommunicateWithHost lk.salyk.kg:30040 [11:58:21]ConnectInit lk.salyk.kg [11:58:21]written 0, free lines is 4095 [11:58:21]Connected sock=10 [11:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 03 7D 07 01 58 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6D E4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2B C0 00 00 35 04 06 00 7C E4 BF 44 37 2F 43 94 4B BD AD CC 5A 4D [11:58: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 36 30 4F 00 00 00 2A BC 47 00 4F 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 36 30 10 04 04 00 2B C0 00 00 F4 03 04 00 63 90 B8 65 B6 04 01 00 00 47 8C B3 89 1B 6E 5D F6 [11:58:21]CommunicateWithHost err = 0 [11:58:21]CheckOFDResponse [11:58:21]1017 (14) - 77093643461234 [11:58:21]1041 (16) - 0000000000875060 [11:58:21]1040 (4) - 49195 [11:58:21]1012 (4) - 30.01.2024 06:00 [11:58:21]1206 (1) - 0 [11:58:21]OFD Sender: Remove packet 49195 [11:58:21]ProducePacketName [11:58:21]name=ofd_packets/00049195 [11:58:21]NVStorageDeleteData [11:58:21]Write to MH i2c: 01 00 00 64 72 D6 [11:58:21]Write i2c OK [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: 01 [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: 01 07 00 [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: 01 07 00 64 72 00 00 00 00 00 E4 0C CD [11:58:21]RasterBufferAndPrint [11:58:21]line [11:58:21]line [11:58:21]line [11:58:21]line [11:58:21]line [11:58:21]written 0, free lines is 3306 [11:58:21]MH_Cut [11:58:21]Write to MH i2c: D1 01 00 6B 72 01 AF [11:58:21]Write i2c OK [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: D1 [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: D1 01 00 [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: D1 01 00 6B 72 00 AE [11:58:21]Write to MH i2c: 01 00 00 6C 72 DE [11:58:21]Write i2c OK [11:58:21]MH_I2C_Read... [11:58:21]OFD Sender: No OFD packet to send [11:58:22]*** Cut start [11:58:22]*** Partial cut [11:58:22]*** CUTSNS_PIN = 1 [11:58:22]*** CUTSNS_PIN = 0 [11:58:22]*** Brake cut motor [11:58:22]Read from MH i2c: 01 [11:58:22]MH_I2C_Read... [11:58:22]*** Stop cut motor [11:58:22]*** Cut end [11:58:22]Read from MH i2c: 01 07 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: 01 07 00 6C 72 00 00 00 00 00 FF 0F F3 [11:58:22]process_action close_receipt done [11:58:22]requested_data is exist [11:58:22]produce_requested_data [11:58:22]requested_item fm.sn is exist - process it [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 11 00 00 [11:58:22]Write to MH i2c: E2 08 00 6D 72 80 11 00 00 00 00 00 00 59 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 17 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 17 00 6D 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A6 [11:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:58:22]wFMCommunicate OK [11:58:22]requested_item fd.num is exist - process it [11:58:22]SAM_PROTO_GetFieldsCounters [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 13 00 00 [11:58:22]Write to MH i2c: E2 08 00 6E 72 80 13 00 00 00 00 00 00 5C [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 62 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 62 00 6E 72 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [11:58:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:22]wFMCommunicate OK [11:58:22]SAM_PROTO_GetFieldsCounters done [11:58:22]requested_item shift.num is exist - process it [11:58:22]requested_item shift.opened is exist - process it [11:58:22]req_shift_opened [11:58:22]FM_GetShiftState [11:58:22]SAM_PROTO_GetShiftState [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 13 01 00 [11:58:22]Write to MH i2c: E2 08 00 6F 72 80 13 01 00 00 00 00 00 5E [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 0E 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 0E 00 6F 72 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 86 [11:58:22]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:58:22]wFMCommunicate OK [11:58:22]SAM_PROTO_GetShiftState done [11:58:22]FM_GetShiftState done [11:58:22]req_shift_opened done [11:58:22]requested_item shift.open_date is exist - process it [11:58:22]req_shift_open_date [11:58:22]req_shift_open_date done [11:58:22]produce_requested_data done [11:58:22]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49195,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:58:22]process_action_free close_receipt [11:58:22]json_value_free [11:58:22]json_value_free done [11:58:22]process_json_proto returns [11:58:22]Send response to host [11:58:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49195,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:58:22]free response buf [11:58:22]execute_script done [11:58:22]execute_script returns [11:58:22]free content buf [11:58:22]Sock 7.Close socket [11:58:22]Sock 7.Thread stoped [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:53]accept exits with 9 [11:59:53]New connection [11:59:53]New thread 3066813796 created [11:59:53]Thread 3066670436 joined [11:59:53]Waiting for new connection... [11:59:53] Sock 9.Parse request [11:59:53]Sock 9.Check first char [11:59:53]Sock 9.First char is OK [11:59:53]request: POST /json_proto HTTP/1.0 [11:59:53]Method: POST [11:59:53]URL: /json_proto [11:59:53]Method is POST - this is cgi request [11:59:53]url: /json_proto [11:59:53]query_string will be loaded in cgi processing [11:59:53]execute_cgi json_proto POST (null) [11:59:53]execute_cgi path=json_proto method=POST [11:59:53]POST find Content-Length [11:59:53]Host: 172.17.56.67:8080 [11:59:53]Content-Length: 675 [11:59:53]Content-Type: application/json [11:59:53] [11:59:53]POST finish read [11:59:53]Found Content-Length = 675 [11:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:53]execute_script... [11:59:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:53]POST & json_proto [11:59:53]process_json_proto [11:59:53]json parsed OK: [11:59:53]protocol is kg_v1.0 [11:59:53]action value=close_receipt [11:59:53]process_action close_receipt [11:59:53]cmd_close_receipt [11:59:53]MH_GetDate [11:59:53]Write to MH i2c: F0 00 00 70 72 D1 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: F0 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: F0 09 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: F0 09 00 70 72 00 CB E4 B8 65 26 5D 9E 65 2C [11:59:53]GetLastDocTimeStamp 1706615917 [11:59:53]current date 1706616011 [11:59:53]FM_GetShiftState [11:59:53]SAM_PROTO_GetShiftState [11:59:53]wFMCommunicate request_size=4 [11:59:53]MH_SAM_APDU [11:59:53]CAPDU: 80 13 01 00 [11:59:53]Write to MH i2c: E2 08 00 71 72 80 13 01 00 00 00 00 00 60 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:53]Read from MH i2c: E2 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 0E 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 0E 00 71 72 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 88 [11:59:53]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:59:53]wFMCommunicate OK [11:59:53]SAM_PROTO_GetShiftState done [11:59:53]FM_GetShiftState done [11:59:53]opened in 1706572995 [11:59:53]opened+sec_in_day 1706659395 [11:59:53]quantity*price = 70039 [11:59:53]sum+1 = 70041 [11:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 72 30.01.2024 12:00 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49196 ФПД: 52865419041056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120011&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49196&fm=52865419041056&tin=02508201610067®Number=0000000000092723&sum=70000 [11:59:54]StoreToDocumentArchive [11:59:54]shift 246 fd 49196 [11:59:54]save to /storage/0246/doc_00049196 [11:59:54]save last doc name /storage/0246/doc_00049196 to /storage/kkm_last_doc_name [11:59:54]save OK [11:59:54]Clear old archive folders... [11:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:59:54]tlvbuf is 011CFE70 [11:59:54]SAM_PROTO_ClearQueue [11:59:54]wFMCommunicate request_size=4 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 09 00 00 [11:59:54]Write to MH i2c: E2 08 00 7E 72 80 09 00 00 00 00 00 00 62 [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 03 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 03 00 7E 72 00 90 00 64 [11:59:54]RAPDU: 90 00 [11:59:54]wFMCommunicate OK [11:59:54]SAM_PROTO_ClearQueue done [11:59:54]KKMCreateOFDPacket [11:59:54]OFDProtocolAddRootSTLVToBuf [11:59:54]FM_MakeSignedData [11:59:54]FM_MakeSignedData [11:59:54]SAM_PROTO_SignData [11:59:54]wFMCommunicate request_size=4 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 0D 01 02 [11:59:54]Write to MH i2c: E2 08 00 7F 72 80 0D 01 02 00 00 00 00 6A [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 03 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 03 00 7F 72 00 90 00 65 [11:59:54]RAPDU: 90 00 [11:59:54]wFMCommunicate OK [11:59:54]wFMCommunicate request_size=255 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 CB E4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2C C0 00 00 35 04 06 00 30 14 B0 85 [11:59:54]Write to MH i2c: E2 02 01 80 72 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 CB E4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2C C0 00 00 35 04 06 00 30 14 B0 85 00 00 29 [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 03 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 03 00 80 72 00 90 00 66 [11:59:54]RAPDU: 90 00 [11:59:54]wFMCommunicate OK [11:59:54]wFMCommunicate request_size=7 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 0D 02 02 02 D9 20 [11:59:54]Write to MH i2c: E2 0A 00 81 72 80 0D 02 02 02 00 D9 20 00 00 6A [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 03 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 03 00 81 72 00 90 00 67 [11:59:54]RAPDU: 90 00 [11:59:54]wFMCommunicate OK [11:59:54]wFMCommunicate request_size=4 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 0D 03 02 [11:59:54]Write to MH i2c: E2 08 00 82 72 80 0D 03 02 00 00 00 00 6F [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 0B 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 0B 00 82 72 00 BE DF 9B 2F 4B 1D EF D0 90 00 FE [11:59:54]RAPDU: BE DF 9B 2F 4B 1D EF D0 90 00 [11:59:54]wFMCommunicate OK [11:59:54]SAM_PROTO_SignData done [11:59:54]FM_MakeSignedData done [11:59:54]CreateOFDProtocolMessage [11:59:54]wFMCommunicate request_size=4 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 11 00 00 [11:59:54]Write to MH i2c: E2 08 00 83 72 80 11 00 00 00 00 00 00 6F [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 17 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 17 00 83 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BC [11:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:59:54]wFMCommunicate OK [11:59:54]CreateOFDProtocolMessage done [11:59:54]OFDSenderStorePacket 49196 [11:59:54]StoreOFDPacket docnum=49196 [11:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B2 AC 04 01 ED 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 CB E4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2C C0 00 00 35 04 06 00 30 14 B0 85 D9 20 BE DF 9B 2F 4B 1D EF D0 [11:59:54]CheckFolder [11:59:54]dirname=/storage/ofd_packets [11:59:54]CheckFolder done [11:59:54]ProducePacketName [11:59:54]name=ofd_packets/00049196 [11:59:54]NVStorageSaveData ofd_packets/00049196 [11:59:54]File name is /storage/ofd_packets/00049196 [11:59:54]Write 298 bytes [11:59:54]NVStorageSaveData done [11:59:54]OFDSenderStorePacket done [11:59:54]KKMCreateOFDPacket done [11:59:54]NVStorageSaveData kkm_last_timestamp [11:59:54]File name is /storage/kkm_last_timestamp [11:59:54]Write 4 bytes [11:59:54]NVStorageSaveData done [11:59:54]ExternCall_PrintAddStr [11:59:54]wPrintStart [11:59:54]Write to MH i2c: 01 00 00 84 72 F6 [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: 01 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: 01 07 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: 01 07 00 84 72 00 00 00 00 00 FF 0F 0B [11:59:54]RasterBufferAndPrint [11:59:54]line Счет N : (1)216298 [11:59:54]line ИНН: 02508201610067 [11:59:54]line Контрольно-Кассовый Чек [11:59:54]line ПРОДАЖА [11:59:54]line ТРК (МРК, ГНК) : 11 [11:59:54]line Товар: 2710194210 [11:59:54]line ДТ-К-5 [11:59:54]line 10.020 * 69.90 [11:59:54]line = 700.40 [11:59:54]line НДС 12% НСП 1% [11:59:54]line > о реализуемом товаре [11:59:54]line ОКРУГЛЕНИЕ: -0.40 [11:59:54]line ИТОГО: 700.00 [11:59:54]line Внесено: 700.00 [11:59:54]line СДАЧА: 0.00 [11:59:54]line НСП 1% : 6.20 [11:59:54]line НДС 12% : 74.38 [11:59:54]line Наличными: 700.00 [11:59:54]line Безнал.: 0.00 [11:59:54]line Место: АЗС № 102 "Партнер Нефть" [11:59:54]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:59:54]line СНО: Общий режим [11:59:54]line Чек 72 30.01.2024 12:00 [11:59:54]line Смена: 246 ФФД: 1.0 [11:59:54]line ЗНМ: 0300000040 [11:59:54]line РНМ: 0000000000092723 [11:59:55]line Версия ККМ: 001 [11:59:55]line ФМ: 0000000000875060 [11:59:55]line ФД: 49196 [11:59:55]line ФПД: 52865419041056 [11:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120011&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49196&fm=52865419041056&tin=02508201610067®Number=0000000000092723&sum=70000 [11:59:55]OFD Sender: Processing packet 49196 [packets to send 12, broken 11] [11:59:55]ProducePacketName [11:59:55]name=ofd_packets/00049196 [11:59:55]OFD Sender: To server: pG, [11:59:55]CommunicateWithHost lk.salyk.kg:30040 [11:59:55]ConnectInit lk.salyk.kg [11:59:55]written 0, free lines is 4095 [11:59:55]Connected sock=10 [11:59: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 36 30 0C 01 00 00 B2 AC 04 01 ED 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 CB E4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2C C0 00 00 35 04 06 00 30 14 B0 85 D9 20 BE DF 9B 2F 4B 1D EF D0 [11:59: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 36 30 4F 00 00 00 ED D4 47 00 D5 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2C C0 00 00 F4 03 04 00 C1 90 B8 65 B6 04 01 00 00 24 A4 D3 41 FD 2C 70 5A [11:59:55]CommunicateWithHost err = 0 [11:59:55]CheckOFDResponse [11:59:55]1017 (14) - 77093643461234 [11:59:55]1041 (16) - 0000000000875060 [11:59:55]1040 (4) - 49196 [11:59:55]1012 (4) - 30.01.2024 06:01 [11:59:55]1206 (1) - 0 [11:59:55]OFD Sender: Remove packet 49196 [11:59:55]ProducePacketName [11:59:55]name=ofd_packets/00049196 [11:59:55]NVStorageDeleteData [11:59:55]Write to MH i2c: 01 00 00 AF 72 21 [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: 01 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: 01 07 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: 01 07 00 AF 72 00 00 00 00 00 EC 0C 20 [11:59:55]RasterBufferAndPrint [11:59:55]line [11:59:55]line [11:59:55]line [11:59:55]line [11:59:55]line [11:59:55]written 0, free lines is 3314 [11:59:55]MH_Cut [11:59:55]Write to MH i2c: D1 01 00 B6 72 01 FA [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: D1 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: D1 01 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: D1 01 00 B6 72 00 F9 [11:59:55]Write to MH i2c: 01 00 00 B7 72 29 [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:56]OFD Sender: No OFD packet to send [11:59:56]*** Cut start [11:59:56]*** Partial cut [11:59:56]*** CUTSNS_PIN = 1 [11:59:56]*** CUTSNS_PIN = 0 [11:59:56]*** Brake cut motor [11:59:56]Read from MH i2c: 01 [11:59:56]MH_I2C_Read... [11:59:56]*** Stop cut motor [11:59:56]*** Cut end [11:59:56]Read from MH i2c: 01 07 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 07 00 B7 72 00 00 00 00 00 FF 0F 3E [11:59:56]process_action close_receipt done [11:59:56]requested_data is exist [11:59:56]produce_requested_data [11:59:56]requested_item fm.sn is exist - process it [11:59:56]wFMCommunicate request_size=4 [11:59:56]MH_SAM_APDU [11:59:56]CAPDU: 80 11 00 00 [11:59:56]Write to MH i2c: E2 08 00 B8 72 80 11 00 00 00 00 00 00 A4 [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:57]Read from MH i2c: E2 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: E2 17 00 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: E2 17 00 B8 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F1 [11:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:59:57]wFMCommunicate OK [11:59:57]requested_item fd.num is exist - process it [11:59:57]SAM_PROTO_GetFieldsCounters [11:59:57]wFMCommunicate request_size=4 [11:59:57]MH_SAM_APDU [11:59:57]CAPDU: 80 13 00 00 [11:59:57]Write to MH i2c: E2 08 00 B9 72 80 13 00 00 00 00 00 00 A7 [11:59:57]Write i2c OK [11:59:57]MH_I2C_Read... [11:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:57]Read from MH i2c: E2 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: E2 62 00 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: E2 62 00 B9 72 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:59: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:57]wFMCommunicate OK [11:59:57]SAM_PROTO_GetFieldsCounters done [11:59:57]requested_item shift.num is exist - process it [11:59:57]requested_item shift.opened is exist - process it [11:59:57]req_shift_opened [11:59:57]FM_GetShiftState [11:59:57]SAM_PROTO_GetShiftState [11:59:57]wFMCommunicate request_size=4 [11:59:57]MH_SAM_APDU [11:59:57]CAPDU: 80 13 01 00 [11:59:57]Write to MH i2c: E2 08 00 BA 72 80 13 01 00 00 00 00 00 A9 [11:59:57]Write i2c OK [11:59:57]MH_I2C_Read... [11:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:57]Read from MH i2c: E2 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: E2 0E 00 [11:59:57]MH_I2C_Read... [11:59:57]Read from MH i2c: E2 0E 00 BA 72 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D1 [11:59:57]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [11:59:57]wFMCommunicate OK [11:59:57]SAM_PROTO_GetShiftState done [11:59:57]FM_GetShiftState done [11:59:57]req_shift_opened done [11:59:57]requested_item shift.open_date is exist - process it [11:59:57]req_shift_open_date [11:59:57]req_shift_open_date done [11:59:57]produce_requested_data done [11:59:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49196,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [11:59:57]process_action_free close_receipt [11:59:57]json_value_free [11:59:57]json_value_free done [11:59:57]process_json_proto returns [11:59:57]Send response to host [11:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49196,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [11:59:57]free response buf [11:59:57]execute_script done [11:59:57]execute_script returns [11:59:57]free content buf [11:59:57]Sock 9.Close socket [11:59:57]Sock 9.Thread stoped [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:30]accept exits with 7 [12:01:30]New connection [12:01:30]New thread 3066670436 created [12:01:30]Thread 3066813796 joined [12:01:30]Waiting for new connection... [12:01:30] Sock 7.Parse request [12:01:30]Sock 7.Check first char [12:01:30]Sock 7.First char is OK [12:01:30]request: POST /json_proto HTTP/1.0 [12:01:30]Method: POST [12:01:30]URL: /json_proto [12:01:30]Method is POST - this is cgi request [12:01:30]url: /json_proto [12:01:30]query_string will be loaded in cgi processing [12:01:30]execute_cgi json_proto POST (null) [12:01:30]execute_cgi path=json_proto method=POST [12:01:30]POST find Content-Length [12:01:30]Host: 172.17.56.67:8080 [12:01:30]Content-Length: 677 [12:01:30]Content-Type: application/json [12:01:30] [12:01:30]POST finish read [12:01:30]Found Content-Length = 677 [12:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:30]execute_script... [12:01: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)216299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:30]POST & json_proto [12:01:30]process_json_proto [12:01:30]json parsed OK: [12:01:30]protocol is kg_v1.0 [12:01:30]action value=close_receipt [12:01:30]process_action close_receipt [12:01:30]cmd_close_receipt [12:01:30]MH_GetDate [12:01:30]Write to MH i2c: F0 00 00 BB 72 1C [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: F0 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: F0 09 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: F0 09 00 BB 72 00 2D E5 B8 65 26 5D 9E 65 DA [12:01:30]GetLastDocTimeStamp 1706616011 [12:01:30]current date 1706616109 [12:01:30]FM_GetShiftState [12:01:30]SAM_PROTO_GetShiftState [12:01:30]wFMCommunicate request_size=4 [12:01:30]MH_SAM_APDU [12:01:30]CAPDU: 80 13 01 00 [12:01:30]Write to MH i2c: E2 08 00 BC 72 80 13 01 00 00 00 00 00 AB [12:01:30]Write i2c OK [12:01:30]MH_I2C_Read... [12:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:30]Read from MH i2c: E2 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 0E 00 [12:01:30]MH_I2C_Read... [12:01:30]Read from MH i2c: E2 0E 00 BC 72 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D3 [12:01:30]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:01:30]wFMCommunicate OK [12:01:30]SAM_PROTO_GetShiftState done [12:01:30]FM_GetShiftState done [12:01:30]opened in 1706572995 [12:01:30]opened+sec_in_day 1706659395 [12:01:30]quantity*price = 50049 [12:01:30]sum+1 = 50050 [12:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 73 30.01.2024 12:01 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49197 ФПД: 65025416371179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120149&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49197&fm=65025416371179&tin=02508201610067®Number=0000000000092723&sum=50000 [12:01:31]StoreToDocumentArchive [12:01:31]shift 246 fd 49197 [12:01:31]save to /storage/0246/doc_00049197 [12:01:31]save last doc name /storage/0246/doc_00049197 to /storage/kkm_last_doc_name [12:01:31]save OK [12:01:31]Clear old archive folders... [12:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:31]tlvbuf is 011DD850 [12:01:31]SAM_PROTO_ClearQueue [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 09 00 00 [12:01:31]Write to MH i2c: E2 08 00 C9 72 80 09 00 00 00 00 00 00 AD [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 C9 72 00 90 00 AF [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]SAM_PROTO_ClearQueue done [12:01:31]KKMCreateOFDPacket [12:01:31]OFDProtocolAddRootSTLVToBuf [12:01:31]FM_MakeSignedData [12:01:31]FM_MakeSignedData [12:01:31]SAM_PROTO_SignData [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 01 02 [12:01:31]Write to MH i2c: E2 08 00 CA 72 80 0D 01 02 00 00 00 00 B5 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 CA 72 00 90 00 B0 [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]wFMCommunicate request_size=255 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2D E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2D C0 00 00 35 04 06 00 3B [12:01:31]Write to MH i2c: E2 02 01 CB 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2D E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2D C0 00 00 35 04 06 00 3B 00 00 7B [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 CB 72 00 90 00 B1 [12:01:32]RAPDU: 90 00 [12:01:32]wFMCommunicate OK [12:01:32]wFMCommunicate request_size=10 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 0D 02 02 05 23 E8 D8 1B EB [12:01:32]Write to MH i2c: E2 0D 00 CC 72 80 0D 02 02 05 00 23 E8 D8 1B EB 00 00 AB [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 CC 72 00 90 00 B2 [12:01:32]RAPDU: 90 00 [12:01:32]wFMCommunicate OK [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 0D 03 02 [12:01:32]Write to MH i2c: E2 08 00 CD 72 80 0D 03 02 00 00 00 00 BA [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0B 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0B 00 CD 72 00 23 11 DA B3 62 6E 57 FB 90 00 9E [12:01:32]RAPDU: 23 11 DA B3 62 6E 57 FB 90 00 [12:01:32]wFMCommunicate OK [12:01:32]SAM_PROTO_SignData done [12:01:32]FM_MakeSignedData done [12:01:32]CreateOFDProtocolMessage [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 11 00 00 [12:01:32]Write to MH i2c: E2 08 00 CE 72 80 11 00 00 00 00 00 00 BA [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 17 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 17 00 CE 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 07 [12:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:01:32]wFMCommunicate OK [12:01:32]CreateOFDProtocolMessage done [12:01:32]OFDSenderStorePacket 49197 [12:01:32]StoreOFDPacket docnum=49197 [12:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 79 92 07 01 91 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2D E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2D C0 00 00 35 04 06 00 3B 23 E8 D8 1B EB 23 11 DA B3 62 6E 57 FB [12:01:32]CheckFolder [12:01:32]dirname=/storage/ofd_packets [12:01:32]CheckFolder done [12:01:32]ProducePacketName [12:01:32]name=ofd_packets/00049197 [12:01:32]NVStorageSaveData ofd_packets/00049197 [12:01:32]File name is /storage/ofd_packets/00049197 [12:01:32]Write 301 bytes [12:01:32]NVStorageSaveData done [12:01:32]OFDSenderStorePacket done [12:01:32]KKMCreateOFDPacket done [12:01:32]NVStorageSaveData kkm_last_timestamp [12:01:32]File name is /storage/kkm_last_timestamp [12:01:32]Write 4 bytes [12:01:32]NVStorageSaveData done [12:01:32]ExternCall_PrintAddStr [12:01:32]wPrintStart [12:01:32]Write to MH i2c: 01 00 00 CF 72 41 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 CF 72 00 00 00 00 00 FF 0F 56 [12:01:32]RasterBufferAndPrint [12:01:32]line Счет N : (1)216299 [12:01:32]line ИНН: 02508201610067 [12:01:32]line Контрольно-Кассовый Чек [12:01:32]line ПРОДАЖА [12:01:32]line ТРК (МРК, ГНК) : 22 [12:01:32]line Товар: 2710124130 [12:01:32]line Аи-92-К-5 [12:01:32]line 8.300 * 60.30 [12:01:32]line = 500.49 [12:01:32]line НДС 12% НСП 1% [12:01:32]line > о реализуемом товаре [12:01:32]line ОКРУГЛЕНИЕ: -0.49 [12:01:32]line ИТОГО: 500.00 [12:01:32]line Внесено: 500.00 [12:01:32]line СДАЧА: 0.00 [12:01:32]line НСП 1% : 4.43 [12:01:32]line НДС 12% : 53.15 [12:01:32]line Наличными: 500.00 [12:01:32]line Безнал.: 0.00 [12:01:32]line Место: АЗС № 102 "Партнер Нефть" [12:01:32]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:01:32]line СНО: Общий режим [12:01:32]line Чек 73 30.01.2024 12:01 [12:01:32]line Смена: 246 ФФД: 1.0 [12:01:32]line ЗНМ: 0300000040 [12:01:32]line РНМ: 0000000000092723 [12:01:32]line Версия ККМ: 001 [12:01:32]line ФМ: 0000000000875060 [12:01:32]line ФД: 49197 [12:01:32]line ФПД: 65025416371179 [12:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120149&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49197&fm=65025416371179&tin=02508201610067®Number=0000000000092723&sum=50000 [12:01:32]OFD Sender: Processing packet 49197 [packets to send 12, broken 11] [12:01:32]ProducePacketName [12:01:32]name=ofd_packets/00049197 [12:01:32]OFD Sender: To server: pG, [12:01:32]CommunicateWithHost lk.salyk.kg:30040 [12:01:32]ConnectInit lk.salyk.kg [12:01:32]written 0, free lines is 4095 [12:01:32]Connected sock=10 [12:01:32]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 36 30 0F 01 00 00 79 92 07 01 91 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2D E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2D C0 00 00 35 04 06 00 3B 23 E8 D8 1B EB 23 11 DA B3 62 6E 57 FB [12:01: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 36 30 4F 00 00 00 5E 15 47 00 80 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2D C0 00 00 F4 03 04 00 22 91 B8 65 B6 04 01 00 00 D2 86 48 EE 82 47 43 F2 [12:01:33]CommunicateWithHost err = 0 [12:01:33]CheckOFDResponse [12:01:33]1017 (14) - 77093643461234 [12:01:33]1041 (16) - 0000000000875060 [12:01:33]1040 (4) - 49197 [12:01:33]1012 (4) - 30.01.2024 06:03 [12:01:33]1206 (1) - 0 [12:01:33]OFD Sender: Remove packet 49197 [12:01:33]ProducePacketName [12:01:33]name=ofd_packets/00049197 [12:01:33]NVStorageDeleteData [12:01:33]Write to MH i2c: 01 00 00 FA 72 6C [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 FA 72 00 00 00 00 00 E4 0C 63 [12:01:33]RasterBufferAndPrint [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]written 0, free lines is 3306 [12:01:33]MH_Cut [12:01:33]Write to MH i2c: D1 01 00 01 73 01 46 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: D1 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: D1 01 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: D1 01 00 01 73 00 45 [12:01:33]Write to MH i2c: 01 00 00 02 73 75 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]OFD Sender: No OFD packet to send [12:01:33]*** Cut start [12:01:33]*** Partial cut [12:01:33]*** CUTSNS_PIN = 1 [12:01:33]*** CUTSNS_PIN = 0 [12:01:34]*** Brake cut motor [12:01:34]Read from MH i2c: 01 [12:01:34]MH_I2C_Read... [12:01:34]*** Stop cut motor [12:01:34]*** Cut end [12:01:34]Read from MH i2c: 01 07 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: 01 07 00 02 73 00 00 00 00 00 FF 0F 8A [12:01:34]process_action close_receipt done [12:01:34]requested_data is exist [12:01:34]produce_requested_data [12:01:34]requested_item fm.sn is exist - process it [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 11 00 00 [12:01:34]Write to MH i2c: E2 08 00 03 73 80 11 00 00 00 00 00 00 F0 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 17 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 17 00 03 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3D [12:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:01:34]wFMCommunicate OK [12:01:34]requested_item fd.num is exist - process it [12:01:34]SAM_PROTO_GetFieldsCounters [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 13 00 00 [12:01:34]Write to MH i2c: E2 08 00 04 73 80 13 00 00 00 00 00 00 F3 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 62 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 62 00 04 73 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [12:01: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:34]wFMCommunicate OK [12:01:34]SAM_PROTO_GetFieldsCounters done [12:01:34]requested_item shift.num is exist - process it [12:01:34]requested_item shift.opened is exist - process it [12:01:34]req_shift_opened [12:01:34]FM_GetShiftState [12:01:34]SAM_PROTO_GetShiftState [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 13 01 00 [12:01:34]Write to MH i2c: E2 08 00 05 73 80 13 01 00 00 00 00 00 F5 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 0E 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 0E 00 05 73 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 1D [12:01:34]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:01:34]wFMCommunicate OK [12:01:34]SAM_PROTO_GetShiftState done [12:01:34]FM_GetShiftState done [12:01:34]req_shift_opened done [12:01:34]requested_item shift.open_date is exist - process it [12:01:34]req_shift_open_date [12:01:34]req_shift_open_date done [12:01:34]produce_requested_data done [12:01:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49197,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:01:34]process_action_free close_receipt [12:01:34]json_value_free [12:01:34]json_value_free done [12:01:34]process_json_proto returns [12:01:34]Send response to host [12:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49197,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:01:34]free response buf [12:01:34]execute_script done [12:01:34]execute_script returns [12:01:34]free content buf [12:01:34]Sock 7.Close socket [12:01:34]Sock 7.Thread stoped [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:04]accept exits with 9 [12:02:04]New connection [12:02:04]New thread 3066813796 created [12:02:04]Thread 3066670436 joined [12:02:04]Waiting for new connection... [12:02:04] Sock 9.Parse request [12:02:04]Sock 9.Check first char [12:02:04]Sock 9.First char is OK [12:02:04]request: POST /json_proto HTTP/1.0 [12:02:04]Method: POST [12:02:04]URL: /json_proto [12:02:04]Method is POST - this is cgi request [12:02:04]url: /json_proto [12:02:04]query_string will be loaded in cgi processing [12:02:04]execute_cgi json_proto POST (null) [12:02:04]execute_cgi path=json_proto method=POST [12:02:04]POST find Content-Length [12:02:04]Host: 172.17.56.67:8080 [12:02:04]Content-Length: 677 [12:02:04]Content-Type: application/json [12:02:04] [12:02:04]POST finish read [12:02:04]Found Content-Length = 677 [12:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:04]execute_script... [12:02:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:04]POST & json_proto [12:02:04]process_json_proto [12:02:04]json parsed OK: [12:02:04]protocol is kg_v1.0 [12:02:04]action value=close_receipt [12:02:04]process_action close_receipt [12:02:04]cmd_close_receipt [12:02:04]MH_GetDate [12:02:04]Write to MH i2c: F0 00 00 06 73 68 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 09 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 09 00 06 73 00 4F E5 B8 65 26 5D 9E 65 48 [12:02:04]GetLastDocTimeStamp 1706616109 [12:02:04]current date 1706616143 [12:02:04]FM_GetShiftState [12:02:04]SAM_PROTO_GetShiftState [12:02:04]wFMCommunicate request_size=4 [12:02:04]MH_SAM_APDU [12:02:04]CAPDU: 80 13 01 00 [12:02:04]Write to MH i2c: E2 08 00 07 73 80 13 01 00 00 00 00 00 F7 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:04]Read from MH i2c: E2 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 0E 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 0E 00 07 73 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 1F [12:02:04]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:02:04]wFMCommunicate OK [12:02:04]SAM_PROTO_GetShiftState done [12:02:04]FM_GetShiftState done [12:02:04]opened in 1706572995 [12:02:04]opened+sec_in_day 1706659395 [12:02:04]quantity*price = 50049 [12:02:04]sum+1 = 50050 [12:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 74 30.01.2024 12:02 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49198 ФПД: 193121729023940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120223&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49198&fm=193121729023940&tin=02508201610067®Number=0000000000092723&sum=50000 [12:02:06]StoreToDocumentArchive [12:02:06]shift 246 fd 49198 [12:02:06]save to /storage/0246/doc_00049198 [12:02:06]save last doc name /storage/0246/doc_00049198 to /storage/kkm_last_doc_name [12:02:06]save OK [12:02:06]Clear old archive folders... [12:02:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:06]tlvbuf is 01349DB0 [12:02:06]SAM_PROTO_ClearQueue [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 09 00 00 [12:02:06]Write to MH i2c: E2 08 00 14 73 80 09 00 00 00 00 00 00 F9 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 14 73 00 90 00 FB [12:02:06]RAPDU: 90 00 [12:02:06]wFMCommunicate OK [12:02:06]SAM_PROTO_ClearQueue done [12:02:06]KKMCreateOFDPacket [12:02:06]OFDProtocolAddRootSTLVToBuf [12:02:06]FM_MakeSignedData [12:02:06]FM_MakeSignedData [12:02:06]SAM_PROTO_SignData [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 0D 01 02 [12:02:06]Write to MH i2c: E2 08 00 15 73 80 0D 01 02 00 00 00 00 01 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 15 73 00 90 00 FC [12:02:06]RAPDU: 90 00 [12:02:06]wFMCommunicate OK [12:02:06]wFMCommunicate request_size=255 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 4F E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2E C0 00 00 35 04 06 00 AF [12:02:06]Write to MH i2c: E2 02 01 16 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 4F E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2E C0 00 00 35 04 06 00 AF 00 00 5F [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 16 73 00 90 00 FD [12:02:06]RAPDU: 90 00 [12:02:06]wFMCommunicate OK [12:02:06]wFMCommunicate request_size=10 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 0D 02 02 05 A4 A8 0E 8F C4 [12:02:06]Write to MH i2c: E2 0D 00 17 73 80 0D 02 02 05 00 A4 A8 0E 8F C4 00 00 BB [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 17 73 00 90 00 FE [12:02:06]RAPDU: 90 00 [12:02:06]wFMCommunicate OK [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 0D 03 02 [12:02:06]Write to MH i2c: E2 08 00 18 73 80 0D 03 02 00 00 00 00 06 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 0B 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 0B 00 18 73 00 69 9A D6 B9 16 53 6B 1B 90 00 88 [12:02:06]RAPDU: 69 9A D6 B9 16 53 6B 1B 90 00 [12:02:06]wFMCommunicate OK [12:02:06]SAM_PROTO_SignData done [12:02:06]FM_MakeSignedData done [12:02:06]CreateOFDProtocolMessage [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 11 00 00 [12:02:06]Write to MH i2c: E2 08 00 19 73 80 11 00 00 00 00 00 00 06 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 17 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 17 00 19 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 53 [12:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:02:06]wFMCommunicate OK [12:02:06]CreateOFDProtocolMessage done [12:02:06]OFDSenderStorePacket 49198 [12:02:06]StoreOFDPacket docnum=49198 [12:02:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 71 74 07 01 74 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 4F E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2E C0 00 00 35 04 06 00 AF A4 A8 0E 8F C4 69 9A D6 B9 16 53 6B 1B [12:02:06]CheckFolder [12:02:06]dirname=/storage/ofd_packets [12:02:06]CheckFolder done [12:02:06]ProducePacketName [12:02:06]name=ofd_packets/00049198 [12:02:06]NVStorageSaveData ofd_packets/00049198 [12:02:06]File name is /storage/ofd_packets/00049198 [12:02:06]Write 301 bytes [12:02:06]NVStorageSaveData done [12:02:06]OFDSenderStorePacket done [12:02:06]KKMCreateOFDPacket done [12:02:06]NVStorageSaveData kkm_last_timestamp [12:02:06]File name is /storage/kkm_last_timestamp [12:02:06]Write 4 bytes [12:02:06]NVStorageSaveData done [12:02:06]ExternCall_PrintAddStr [12:02:06]wPrintStart [12:02:06]Write to MH i2c: 01 00 00 1A 73 8D [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 1A 73 00 00 00 00 00 FF 0F A2 [12:02:06]RasterBufferAndPrint [12:02:06]line Счет N : (1)216300 [12:02:06]line ИНН: 02508201610067 [12:02:06]line Контрольно-Кассовый Чек [12:02:06]line ПРОДАЖА [12:02:06]line ТРК (МРК, ГНК) : 12 [12:02:06]line Товар: 2710124130 [12:02:06]line Аи-92-К-5 [12:02:06]line 8.300 * 60.30 [12:02:06]line = 500.49 [12:02:06]line НДС 12% НСП 1% [12:02:06]line > о реализуемом товаре [12:02:06]line ОКРУГЛЕНИЕ: -0.49 [12:02:06]line ИТОГО: 500.00 [12:02:06]line Внесено: 500.00 [12:02:06]line СДАЧА: 0.00 [12:02:06]line НСП 1% : 4.43 [12:02:06]line НДС 12% : 53.15 [12:02:06]line Наличными: 500.00 [12:02:06]line Безнал.: 0.00 [12:02:06]line Место: АЗС № 102 "Партнер Нефть" [12:02:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:02:06]line СНО: Общий режим [12:02:06]line Чек 74 30.01.2024 12:02 [12:02:06]line Смена: 246 ФФД: 1.0 [12:02:06]line ЗНМ: 0300000040 [12:02:06]line РНМ: 0000000000092723 [12:02:06]line Версия ККМ: 001 [12:02:06]line ФМ: 0000000000875060 [12:02:06]line ФД: 49198 [12:02:06]line ФПД: 193121729023940 [12:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120223&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49198&fm=193121729023940&tin=02508201610067®Number=0000000000092723&sum=50000 [12:02:06]OFD Sender: Processing packet 49198 [packets to send 12, broken 11] [12:02:06]ProducePacketName [12:02:06]name=ofd_packets/00049198 [12:02:06]OFD Sender: To server: pG, [12:02:06]CommunicateWithHost lk.salyk.kg:30040 [12:02:06]ConnectInit lk.salyk.kg [12:02:06]written 0, free lines is 4095 [12:02:07]Connected sock=10 [12:02: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 36 30 0F 01 00 00 71 74 07 01 74 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 4F E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2E C0 00 00 35 04 06 00 AF A4 A8 0E 8F C4 69 9A D6 B9 16 53 6B 1B [12:02: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 36 30 4F 00 00 00 D8 87 47 00 27 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2E C0 00 00 F4 03 04 00 45 91 B8 65 B6 04 01 00 00 ED A8 79 F1 C5 60 6B E7 [12:02:07]CommunicateWithHost err = 0 [12:02:07]CheckOFDResponse [12:02:07]1017 (14) - 77093643461234 [12:02:07]1041 (16) - 0000000000875060 [12:02:07]1040 (4) - 49198 [12:02:07]1012 (4) - 30.01.2024 06:03 [12:02:07]1206 (1) - 0 [12:02:07]OFD Sender: Remove packet 49198 [12:02:07]ProducePacketName [12:02:07]name=ofd_packets/00049198 [12:02:07]NVStorageDeleteData [12:02:07]Write to MH i2c: 01 00 00 45 73 B8 [12:02:07]Write i2c OK [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: 01 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: 01 07 00 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: 01 07 00 45 73 00 00 00 00 00 F5 0C C0 [12:02:07]RasterBufferAndPrint [12:02:07]line [12:02:07]line [12:02:07]line [12:02:07]line [12:02:07]line [12:02:07]written 0, free lines is 3323 [12:02:07]MH_Cut [12:02:07]Write to MH i2c: D1 01 00 4C 73 01 91 [12:02:07]Write i2c OK [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: D1 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: D1 01 00 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: D1 01 00 4C 73 00 90 [12:02:07]Write to MH i2c: 01 00 00 4D 73 C0 [12:02:07]Write i2c OK [12:02:07]MH_I2C_Read... [12:02:07]OFD Sender: No OFD packet to send [12:02:08]*** Cut start [12:02:08]*** Partial cut [12:02:08]*** CUTSNS_PIN = 1 [12:02:08]*** CUTSNS_PIN = 0 [12:02:08]*** Brake cut motor [12:02:08]Read from MH i2c: 01 [12:02:08]MH_I2C_Read... [12:02:08]*** Stop cut motor [12:02:08]*** Cut end [12:02:08]Read from MH i2c: 01 07 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: 01 07 00 4D 73 00 00 00 00 00 FF 0F D5 [12:02:08]process_action close_receipt done [12:02:08]requested_data is exist [12:02:08]produce_requested_data [12:02:08]requested_item fm.sn is exist - process it [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 11 00 00 [12:02:08]Write to MH i2c: E2 08 00 4E 73 80 11 00 00 00 00 00 00 3B [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 17 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 17 00 4E 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 88 [12:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:02:08]wFMCommunicate OK [12:02:08]requested_item fd.num is exist - process it [12:02:08]SAM_PROTO_GetFieldsCounters [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 13 00 00 [12:02:08]Write to MH i2c: E2 08 00 4F 73 80 13 00 00 00 00 00 00 3E [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 62 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 62 00 4F 73 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [12:02: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:08]wFMCommunicate OK [12:02:08]SAM_PROTO_GetFieldsCounters done [12:02:08]requested_item shift.num is exist - process it [12:02:08]requested_item shift.opened is exist - process it [12:02:08]req_shift_opened [12:02:08]FM_GetShiftState [12:02:08]SAM_PROTO_GetShiftState [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 13 01 00 [12:02:08]Write to MH i2c: E2 08 00 50 73 80 13 01 00 00 00 00 00 40 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 50 73 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 68 [12:02:08]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:02:08]wFMCommunicate OK [12:02:08]SAM_PROTO_GetShiftState done [12:02:08]FM_GetShiftState done [12:02:08]req_shift_opened done [12:02:08]requested_item shift.open_date is exist - process it [12:02:08]req_shift_open_date [12:02:08]req_shift_open_date done [12:02:08]produce_requested_data done [12:02:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49198,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:02:08]process_action_free close_receipt [12:02:08]json_value_free [12:02:08]json_value_free done [12:02:08]process_json_proto returns [12:02:08]Send response to host [12:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49198,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:02:08]free response buf [12:02:08]execute_script done [12:02:08]execute_script returns [12:02:08]free content buf [12:02:08]Sock 9.Close socket [12:02:08]Sock 9.Thread stoped [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]accept exits with 7 [12:03:07]New connection [12:03:07]New thread 3066670436 created [12:03:07]Thread 3066813796 joined [12:03:07]Waiting for new connection... [12:03:07] Sock 7.Parse request [12:03:07]Sock 7.Check first char [12:03:07]Sock 7.First char is OK [12:03:07]request: POST /json_proto HTTP/1.0 [12:03:07]Method: POST [12:03:07]URL: /json_proto [12:03:07]Method is POST - this is cgi request [12:03:07]url: /json_proto [12:03:07]query_string will be loaded in cgi processing [12:03:07]execute_cgi json_proto POST (null) [12:03:07]execute_cgi path=json_proto method=POST [12:03:07]POST find Content-Length [12:03:07]Host: 172.17.56.67:8080 [12:03:07]Content-Length: 677 [12:03:07]Content-Type: application/json [12:03:07] [12:03:07]POST finish read [12:03:07]Found Content-Length = 677 [12:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:07]execute_script... [12:03:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:07]POST & json_proto [12:03:07]process_json_proto [12:03:07]json parsed OK: [12:03:07]protocol is kg_v1.0 [12:03:07]action value=close_receipt [12:03:07]process_action close_receipt [12:03:07]cmd_close_receipt [12:03:07]MH_GetDate [12:03:07]Write to MH i2c: F0 00 00 51 73 B3 [12:03:07]Write i2c OK [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: F0 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: F0 09 00 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: F0 09 00 51 73 00 8D E5 B8 65 26 5D 9E 65 D1 [12:03:07]GetLastDocTimeStamp 1706616143 [12:03:07]current date 1706616205 [12:03:07]FM_GetShiftState [12:03:07]SAM_PROTO_GetShiftState [12:03:07]wFMCommunicate request_size=4 [12:03:07]MH_SAM_APDU [12:03:07]CAPDU: 80 13 01 00 [12:03:07]Write to MH i2c: E2 08 00 52 73 80 13 01 00 00 00 00 00 42 [12:03:07]Write i2c OK [12:03:07]MH_I2C_Read... [12:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:07]Read from MH i2c: E2 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: E2 0E 00 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: E2 0E 00 52 73 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6A [12:03:07]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:03:07]wFMCommunicate OK [12:03:07]SAM_PROTO_GetShiftState done [12:03:07]FM_GetShiftState done [12:03:07]opened in 1706572995 [12:03:07]opened+sec_in_day 1706659395 [12:03:07]quantity*price = 60058 [12:03:07]sum+1 = 60060 [12:03:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 75 30.01.2024 12:03 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49199 ФПД: 255467226318194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120325&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49199&fm=255467226318194&tin=02508201610067®Number=0000000000092723&sum=60000 [12:03:08]StoreToDocumentArchive [12:03:08]shift 246 fd 49199 [12:03:08]save to /storage/0246/doc_00049199 [12:03:08]save last doc name /storage/0246/doc_00049199 to /storage/kkm_last_doc_name [12:03:08]save OK [12:03:08]Clear old archive folders... [12:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:08]tlvbuf is 011EA5C0 [12:03:08]SAM_PROTO_ClearQueue [12:03:08]wFMCommunicate request_size=4 [12:03:08]MH_SAM_APDU [12:03:08]CAPDU: 80 09 00 00 [12:03:08]Write to MH i2c: E2 08 00 5F 73 80 09 00 00 00 00 00 00 44 [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:08]Read from MH i2c: E2 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 5F 73 00 90 00 46 [12:03:08]RAPDU: 90 00 [12:03:08]wFMCommunicate OK [12:03:08]SAM_PROTO_ClearQueue done [12:03:08]KKMCreateOFDPacket [12:03:08]OFDProtocolAddRootSTLVToBuf [12:03:08]FM_MakeSignedData [12:03:08]FM_MakeSignedData [12:03:08]SAM_PROTO_SignData [12:03:08]wFMCommunicate request_size=4 [12:03:08]MH_SAM_APDU [12:03:08]CAPDU: 80 0D 01 02 [12:03:08]Write to MH i2c: E2 08 00 60 73 80 0D 01 02 00 00 00 00 4C [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:08]Read from MH i2c: E2 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 60 73 00 90 00 47 [12:03:08]RAPDU: 90 00 [12:03:08]wFMCommunicate OK [12:03:08]wFMCommunicate request_size=255 [12:03:08]MH_SAM_APDU [12:03:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8D E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2F C0 00 00 35 04 06 00 E8 [12:03:08]Write to MH i2c: E2 02 01 61 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8D E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2F C0 00 00 35 04 06 00 E8 00 00 D8 [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:08]Read from MH i2c: E2 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 61 73 00 90 00 48 [12:03:08]RAPDU: 90 00 [12:03:08]wFMCommunicate OK [12:03:08]wFMCommunicate request_size=10 [12:03:08]MH_SAM_APDU [12:03:08]CAPDU: 80 0D 02 02 05 58 99 46 C5 72 [12:03:08]Write to MH i2c: E2 0D 00 62 73 80 0D 02 02 05 00 58 99 46 C5 72 00 00 C7 [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:08]Read from MH i2c: E2 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 62 73 00 90 00 49 [12:03:08]RAPDU: 90 00 [12:03:08]wFMCommunicate OK [12:03:08]wFMCommunicate request_size=4 [12:03:08]MH_SAM_APDU [12:03:08]CAPDU: 80 0D 03 02 [12:03:08]Write to MH i2c: E2 08 00 63 73 80 0D 03 02 00 00 00 00 51 [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:08]Read from MH i2c: E2 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 0B 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 0B 00 63 73 00 56 56 ED FA 0B 4B 0B F0 90 00 36 [12:03:08]RAPDU: 56 56 ED FA 0B 4B 0B F0 90 00 [12:03:08]wFMCommunicate OK [12:03:08]SAM_PROTO_SignData done [12:03:08]FM_MakeSignedData done [12:03:08]CreateOFDProtocolMessage [12:03:08]wFMCommunicate request_size=4 [12:03:08]MH_SAM_APDU [12:03:08]CAPDU: 80 11 00 00 [12:03:08]Write to MH i2c: E2 08 00 64 73 80 11 00 00 00 00 00 00 51 [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:08]Read from MH i2c: E2 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 17 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 17 00 64 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9E [12:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:03:08]wFMCommunicate OK [12:03:08]CreateOFDProtocolMessage done [12:03:08]OFDSenderStorePacket 49199 [12:03:08]StoreOFDPacket docnum=49199 [12:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C9 EE 07 01 9D C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8D E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2F C0 00 00 35 04 06 00 E8 58 99 46 C5 72 56 56 ED FA 0B 4B 0B F0 [12:03:08]CheckFolder [12:03:08]dirname=/storage/ofd_packets [12:03:08]CheckFolder done [12:03:08]ProducePacketName [12:03:08]name=ofd_packets/00049199 [12:03:08]NVStorageSaveData ofd_packets/00049199 [12:03:08]File name is /storage/ofd_packets/00049199 [12:03:08]Write 301 bytes [12:03:08]NVStorageSaveData done [12:03:08]OFDSenderStorePacket done [12:03:08]KKMCreateOFDPacket done [12:03:08]NVStorageSaveData kkm_last_timestamp [12:03:08]File name is /storage/kkm_last_timestamp [12:03:08]Write 4 bytes [12:03:08]NVStorageSaveData done [12:03:08]ExternCall_PrintAddStr [12:03:08]wPrintStart [12:03:08]Write to MH i2c: 01 00 00 65 73 D8 [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: 01 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: 01 07 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: 01 07 00 65 73 00 00 00 00 00 FF 0F ED [12:03:08]RasterBufferAndPrint [12:03:08]line Счет N : (1)216301 [12:03:08]line ИНН: 02508201610067 [12:03:08]line Контрольно-Кассовый Чек [12:03:08]line ПРОДАЖА [12:03:08]line ТРК (МРК, ГНК) : 22 [12:03:08]line Товар: 2710124130 [12:03:08]line Аи-92-К-5 [12:03:08]line 9.960 * 60.30 [12:03:08]line = 600.59 [12:03:08]line НДС 12% НСП 1% [12:03:08]line > о реализуемом товаре [12:03:08]line ОКРУГЛЕНИЕ: -0.59 [12:03:08]line ИТОГО: 600.00 [12:03:08]line Внесено: 600.00 [12:03:08]line СДАЧА: 0.00 [12:03:08]line НСП 1% : 5.31 [12:03:08]line НДС 12% : 63.78 [12:03:08]line Наличными: 600.00 [12:03:08]line Безнал.: 0.00 [12:03:08]line Место: АЗС № 102 "Партнер Нефть" [12:03:08]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:03:08]line СНО: Общий режим [12:03:08]line Чек 75 30.01.2024 12:03 [12:03:08]line Смена: 246 ФФД: 1.0 [12:03:08]line ЗНМ: 0300000040 [12:03:08]line РНМ: 0000000000092723 [12:03:08]line Версия ККМ: 001 [12:03:08]line ФМ: 0000000000875060 [12:03:08]line ФД: 49199 [12:03:08]line ФПД: 255467226318194 [12:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120325&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49199&fm=255467226318194&tin=02508201610067®Number=0000000000092723&sum=60000 [12:03:09]OFD Sender: Processing packet 49199 [packets to send 12, broken 11] [12:03:09]ProducePacketName [12:03:09]name=ofd_packets/00049199 [12:03:09]OFD Sender: To server: pG, [12:03:09]CommunicateWithHost lk.salyk.kg:30040 [12:03:09]ConnectInit lk.salyk.kg [12:03:09]written 0, free lines is 4095 [12:03:09]Connected sock=10 [12:03: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 36 30 0F 01 00 00 C9 EE 07 01 9D C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8D E5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2F C0 00 00 35 04 06 00 E8 58 99 46 C5 72 56 56 ED FA 0B 4B 0B F0 [12:03:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 BB 0F 47 00 69 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 2F C0 00 00 F4 03 04 00 83 91 B8 65 B6 04 01 00 00 AE FC D4 9D 2F 5D 5E 0E [12:03:09]CommunicateWithHost err = 0 [12:03:09]CheckOFDResponse [12:03:09]1017 (14) - 77093643461234 [12:03:09]1041 (16) - 0000000000875060 [12:03:09]1040 (4) - 49199 [12:03:09]1012 (4) - 30.01.2024 06:04 [12:03:09]1206 (1) - 0 [12:03:09]OFD Sender: Remove packet 49199 [12:03:09]ProducePacketName [12:03:09]name=ofd_packets/00049199 [12:03:09]NVStorageDeleteData [12:03:09]Write to MH i2c: 01 00 00 90 73 03 [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: 01 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: 01 07 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: 01 07 00 90 73 00 00 00 00 00 EC 0C 02 [12:03:09]RasterBufferAndPrint [12:03:09]line [12:03:09]line [12:03:09]line [12:03:09]line [12:03:09]line [12:03:09]written 0, free lines is 3315 [12:03:09]MH_Cut [12:03:09]Write to MH i2c: D1 01 00 97 73 01 DC [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: D1 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: D1 01 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: D1 01 00 97 73 00 DB [12:03:09]Write to MH i2c: 01 00 00 98 73 0B [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:10]OFD Sender: No OFD packet to send [12:03:10]*** Cut start [12:03:10]*** Partial cut [12:03:10]*** CUTSNS_PIN = 1 [12:03:10]*** CUTSNS_PIN = 0 [12:03:10]*** Brake cut motor [12:03:11]Read from MH i2c: 01 [12:03:11]MH_I2C_Read... [12:03:11]*** Stop cut motor [12:03:11]*** Cut end [12:03:11]Read from MH i2c: 01 07 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: 01 07 00 98 73 00 00 00 00 00 FF 0F 20 [12:03:11]process_action close_receipt done [12:03:11]requested_data is exist [12:03:11]produce_requested_data [12:03:11]requested_item fm.sn is exist - process it [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 11 00 00 [12:03:11]Write to MH i2c: E2 08 00 99 73 80 11 00 00 00 00 00 00 86 [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 17 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 17 00 99 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D3 [12:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:03:11]wFMCommunicate OK [12:03:11]requested_item fd.num is exist - process it [12:03:11]SAM_PROTO_GetFieldsCounters [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 13 00 00 [12:03:11]Write to MH i2c: E2 08 00 9A 73 80 13 00 00 00 00 00 00 89 [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 62 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 62 00 9A 73 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [12:03: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 2F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:11]wFMCommunicate OK [12:03:11]SAM_PROTO_GetFieldsCounters done [12:03:11]requested_item shift.num is exist - process it [12:03:11]requested_item shift.opened is exist - process it [12:03:11]req_shift_opened [12:03:11]FM_GetShiftState [12:03:11]SAM_PROTO_GetShiftState [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 13 01 00 [12:03:11]Write to MH i2c: E2 08 00 9B 73 80 13 01 00 00 00 00 00 8B [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0E 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0E 00 9B 73 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B3 [12:03:11]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:03:11]wFMCommunicate OK [12:03:11]SAM_PROTO_GetShiftState done [12:03:11]FM_GetShiftState done [12:03:11]req_shift_opened done [12:03:11]requested_item shift.open_date is exist - process it [12:03:11]req_shift_open_date [12:03:11]req_shift_open_date done [12:03:11]produce_requested_data done [12:03:11]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49199,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:03:11]process_action_free close_receipt [12:03:11]json_value_free [12:03:11]json_value_free done [12:03:11]process_json_proto returns [12:03:11]Send response to host [12:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49199,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:03:11]free response buf [12:03:11]execute_script done [12:03:11]execute_script returns [12:03:11]free content buf [12:03:11]Sock 7.Close socket [12:03:11]Sock 7.Thread stoped [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:54]accept exits with 9 [12:08:54]New connection [12:08:54]New thread 3066813796 created [12:08:54]Thread 3066670436 joined [12:08:54]Waiting for new connection... [12:08:54] Sock 9.Parse request [12:08:54]Sock 9.Check first char [12:08:54]Sock 9.First char is OK [12:08:54]request: POST /json_proto HTTP/1.0 [12:08:54]Method: POST [12:08:54]URL: /json_proto [12:08:54]Method is POST - this is cgi request [12:08:54]url: /json_proto [12:08:54]query_string will be loaded in cgi processing [12:08:54]execute_cgi json_proto POST (null) [12:08:54]execute_cgi path=json_proto method=POST [12:08:54]POST find Content-Length [12:08:54]Host: 172.17.56.67:8080 [12:08:54]Content-Length: 677 [12:08:54]Content-Type: application/json [12:08:54] [12:08:54]POST finish read [12:08:54]Found Content-Length = 677 [12:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [12:08:54]execute_script... [12:08: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)216302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [12:08:54]POST & json_proto [12:08:54]process_json_proto [12:08:54]json parsed OK: [12:08:54]protocol is kg_v1.0 [12:08:54]action value=close_receipt [12:08:54]process_action close_receipt [12:08:54]cmd_close_receipt [12:08:54]MH_GetDate [12:08:54]Write to MH i2c: F0 00 00 9C 73 FE [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: F0 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: F0 09 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: F0 09 00 9C 73 00 E9 E6 B8 65 26 5D 9E 65 79 [12:08:54]GetLastDocTimeStamp 1706616205 [12:08:54]current date 1706616553 [12:08:54]FM_GetShiftState [12:08:54]SAM_PROTO_GetShiftState [12:08:54]wFMCommunicate request_size=4 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 13 01 00 [12:08:54]Write to MH i2c: E2 08 00 9D 73 80 13 01 00 00 00 00 00 8D [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 0E 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 0E 00 9D 73 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B5 [12:08:54]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:08:54]wFMCommunicate OK [12:08:54]SAM_PROTO_GetShiftState done [12:08:54]FM_GetShiftState done [12:08:54]opened in 1706572995 [12:08:54]opened+sec_in_day 1706659395 [12:08:54]quantity*price = 20019 [12:08:54]sum+1 = 20021 [12:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 76 30.01.2024 12:09 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49200 ФПД: 92901255321069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120913&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49200&fm=92901255321069&tin=02508201610067®Number=0000000000092723&sum=20000 [12:08:55]StoreToDocumentArchive [12:08:55]shift 246 fd 49200 [12:08:55]save to /storage/0246/doc_00049200 [12:08:55]save last doc name /storage/0246/doc_00049200 to /storage/kkm_last_doc_name [12:08:55]save OK [12:08:55]Clear old archive folders... [12:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:55]tlvbuf is 011AD620 [12:08:55]SAM_PROTO_ClearQueue [12:08:55]wFMCommunicate request_size=4 [12:08:55]MH_SAM_APDU [12:08:55]CAPDU: 80 09 00 00 [12:08:55]Write to MH i2c: E2 08 00 AA 73 80 09 00 00 00 00 00 00 8F [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]*** iso7816_exchange 80 09 00 00... 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 AA 73 00 90 00 91 [12:08:55]RAPDU: 90 00 [12:08:55]wFMCommunicate OK [12:08:55]SAM_PROTO_ClearQueue done [12:08:55]KKMCreateOFDPacket [12:08:55]OFDProtocolAddRootSTLVToBuf [12:08:55]FM_MakeSignedData [12:08:55]FM_MakeSignedData [12:08:55]SAM_PROTO_SignData [12:08:55]wFMCommunicate request_size=4 [12:08:55]MH_SAM_APDU [12:08:55]CAPDU: 80 0D 01 02 [12:08:55]Write to MH i2c: E2 08 00 AB 73 80 0D 01 02 00 00 00 00 97 [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:56]Read from MH i2c: E2 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 03 00 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 03 00 AB 73 00 90 00 92 [12:08:56]RAPDU: 90 00 [12:08:56]wFMCommunicate OK [12:08:56]wFMCommunicate request_size=255 [12:08:56]MH_SAM_APDU [12:08:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E9 E6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 30 C0 00 00 35 04 06 00 54 [12:08:56]Write to MH i2c: E2 02 01 AC 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E9 E6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 30 C0 00 00 35 04 06 00 54 00 00 19 [12:08:56]Write i2c OK [12:08:56]MH_I2C_Read... [12:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:56]Read from MH i2c: E2 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 03 00 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 03 00 AC 73 00 90 00 93 [12:08:56]RAPDU: 90 00 [12:08:56]wFMCommunicate OK [12:08:56]wFMCommunicate request_size=10 [12:08:56]MH_SAM_APDU [12:08:56]CAPDU: 80 0D 02 02 05 7E 42 52 95 ED [12:08:56]Write to MH i2c: E2 0D 00 AD 73 80 0D 02 02 05 00 7E 42 52 95 ED 00 00 38 [12:08:56]Write i2c OK [12:08:56]MH_I2C_Read... [12:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:56]Read from MH i2c: E2 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 03 00 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 03 00 AD 73 00 90 00 94 [12:08:56]RAPDU: 90 00 [12:08:56]wFMCommunicate OK [12:08:56]wFMCommunicate request_size=4 [12:08:56]MH_SAM_APDU [12:08:56]CAPDU: 80 0D 03 02 [12:08:56]Write to MH i2c: E2 08 00 AE 73 80 0D 03 02 00 00 00 00 9C [12:08:56]Write i2c OK [12:08:56]MH_I2C_Read... [12:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:56]Read from MH i2c: E2 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 0B 00 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: E2 0B 00 AE 73 00 47 93 E2 1A E4 C3 99 87 90 00 3A [12:08:56]RAPDU: 47 93 E2 1A E4 C3 99 87 90 00 [12:08:56]wFMCommunicate OK [12:08:56]SAM_PROTO_SignData done [12:08:56]FM_MakeSignedData done [12:08:56]CreateOFDProtocolMessage [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 AF 73 80 11 00 00 00 00 00 00 9C [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 AF 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E9 [12:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:08:56]wFMCommunicate OK [12:08:56]CreateOFDProtocolMessage done [12:08:56]OFDSenderStorePacket 49200 [12:08:56]StoreOFDPacket docnum=49200 [12:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CC 5A 07 01 9F 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E9 E6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 30 C0 00 00 35 04 06 00 54 7E 42 52 95 ED 47 93 E2 1A E4 C3 99 87 [12:08:56]CheckFolder [12:08:56]dirname=/storage/ofd_packets [12:08:56]CheckFolder done [12:08:56]ProducePacketName [12:08:56]name=ofd_packets/00049200 [12:08:56]NVStorageSaveData ofd_packets/00049200 [12:08:56]File name is /storage/ofd_packets/00049200 [12:08:56]Write 301 bytes [12:08:56]NVStorageSaveData done [12:08:56]OFDSenderStorePacket done [12:08:56]KKMCreateOFDPacket done [12:08:56]NVStorageSaveData kkm_last_timestamp [12:08:56]File name is /storage/kkm_last_timestamp [12:08:56]Write 4 bytes [12:08:56]NVStorageSaveData done [12:08:56]ExternCall_PrintAddStr [12:08:56]wPrintStart [12:08:56]Write to MH i2c: 01 00 00 B0 73 23 [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 B0 73 00 00 00 00 00 FF 0F 38 [12:08:56]RasterBufferAndPrint [12:08:56]line Счет N : (1)216302 [12:08:56]line ИНН: 02508201610067 [12:08:56]line Контрольно-Кассовый Чек [12:08:56]line ПРОДАЖА [12:08:56]line ТРК (МРК, ГНК) : 22 [12:08:56]line Товар: 2710124130 [12:08:56]line Аи-92-К-5 [12:08:56]line 3.320 * 60.30 [12:08:56]line = 200.20 [12:08:56]line НДС 12% НСП 1% [12:08:56]line > о реализуемом товаре [12:08:56]line ОКРУГЛЕНИЕ: -0.20 [12:08:56]line ИТОГО: 200.00 [12:08:56]line Внесено: 200.00 [12:08:56]line СДАЧА: 0.00 [12:08:56]line НСП 1% : 1.77 [12:08:56]line НДС 12% : 21.26 [12:08:56]line Наличными: 200.00 [12:08:56]line Безнал.: 0.00 [12:08:56]line Место: АЗС № 102 "Партнер Нефть" [12:08:56]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:08:56]line СНО: Общий режим [12:08:56]line Чек 76 30.01.2024 12:09 [12:08:56]line Смена: 246 ФФД: 1.0 [12:08:56]line ЗНМ: 0300000040 [12:08:56]line РНМ: 0000000000092723 [12:08:56]line Версия ККМ: 001 [12:08:56]line ФМ: 0000000000875060 [12:08:56]line ФД: 49200 [12:08:56]line ФПД: 92901255321069 [12:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T120913&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49200&fm=92901255321069&tin=02508201610067®Number=0000000000092723&sum=20000 [12:08:56]OFD Sender: Processing packet 49200 [packets to send 12, broken 11] [12:08:56]ProducePacketName [12:08:56]name=ofd_packets/00049200 [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 36 30 0F 01 00 00 CC 5A 07 01 9F 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E9 E6 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 30 C0 00 00 35 04 06 00 54 7E 42 52 95 ED 47 93 E2 1A E4 C3 99 87 [12:08: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 36 30 4F 00 00 00 2F 3B 47 00 7E 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 36 30 10 04 04 00 30 C0 00 00 F4 03 04 00 DF 92 B8 65 B6 04 01 00 00 E6 AE 3D C9 26 79 E5 9D [12:08:57]CommunicateWithHost err = 0 [12:08:57]CheckOFDResponse [12:08:57]1017 (14) - 77093643461234 [12:08:57]1041 (16) - 0000000000875060 [12:08:57]1040 (4) - 49200 [12:08:57]1012 (4) - 30.01.2024 06:10 [12:08:57]1206 (1) - 0 [12:08:57]OFD Sender: Remove packet 49200 [12:08:57]ProducePacketName [12:08:57]name=ofd_packets/00049200 [12:08:57]NVStorageDeleteData [12:08:57]Write to MH i2c: 01 00 00 DB 73 4E [12:08:57]Write i2c OK [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: 01 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: 01 07 00 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: 01 07 00 DB 73 00 00 00 00 00 EA 0C 4B [12:08:57]RasterBufferAndPrint [12:08:57]line [12:08:57]line [12:08:57]line [12:08:57]line [12:08:57]line [12:08:57]written 0, free lines is 3312 [12:08:57]MH_Cut [12:08:57]Write to MH i2c: D1 01 00 E2 73 01 27 [12:08:57]Write i2c OK [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: D1 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: D1 01 00 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: D1 01 00 E2 73 00 26 [12:08:57]Write to MH i2c: 01 00 00 E3 73 56 [12:08:57]Write i2c OK [12:08:57]MH_I2C_Read... [12:08:57]OFD Sender: No OFD packet to send [12:08:57]*** Cut start [12:08:57]*** Partial cut [12:08:57]*** CUTSNS_PIN = 1 [12:08:57]*** CUTSNS_PIN = 0 [12:08:58]*** Brake cut motor [12:08:58]Read from MH i2c: 01 [12:08:58]MH_I2C_Read... [12:08:58]*** Stop cut motor [12:08:58]*** Cut end [12:08:58]Read from MH i2c: 01 07 00 [12:08:58]MH_I2C_Read... [12:08:58]Read from MH i2c: 01 07 00 E3 73 00 00 00 00 00 FF 0F 6B [12:08:58]process_action close_receipt done [12:08:58]requested_data is exist [12:08:58]produce_requested_data [12:08:58]requested_item fm.sn is exist - process it [12:08:58]wFMCommunicate request_size=4 [12:08:58]MH_SAM_APDU [12:08:58]CAPDU: 80 11 00 00 [12:08:58]Write to MH i2c: E2 08 00 E4 73 80 11 00 00 00 00 00 00 D1 [12:08:58]Write i2c OK [12:08:58]MH_I2C_Read... [12:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:58]Read from MH i2c: E2 [12:08:58]MH_I2C_Read... [12:08:58]Read from MH i2c: E2 17 00 [12:08:58]MH_I2C_Read... [12:08:58]Read from MH i2c: E2 17 00 E4 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1E [12:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:08:58]wFMCommunicate OK [12:08:58]requested_item fd.num is exist - process it [12:08:58]SAM_PROTO_GetFieldsCounters [12:08:58]wFMCommunicate request_size=4 [12:08:58]MH_SAM_APDU [12:08:58]CAPDU: 80 13 00 00 [12:08:58]Write to MH i2c: E2 08 00 E5 73 80 13 00 00 00 00 00 00 D4 [12:08:58]Write i2c OK [12:08:58]MH_I2C_Read... [12:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:58]Read from MH i2c: E2 [12:08:58]MH_I2C_Read... [12:08:58]Read from MH i2c: E2 62 00 [12:08:58]MH_I2C_Read... [12:08:58]Read from MH i2c: E2 62 00 E5 73 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 30 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [12:08: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 30 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:58]wFMCommunicate OK [12:08:58]SAM_PROTO_GetFieldsCounters done [12:08:58]requested_item shift.num is exist - process it [12:08:58]requested_item shift.opened is exist - process it [12:08:58]req_shift_opened [12:08:58]FM_GetShiftState [12:08:58]SAM_PROTO_GetShiftState [12:08:58]wFMCommunicate request_size=4 [12:08:58]MH_SAM_APDU [12:08:58]CAPDU: 80 13 01 00 [12:08:58]Write to MH i2c: E2 08 00 E6 73 80 13 01 00 00 00 00 00 D6 [12:08:58]Write i2c OK [12:08:58]MH_I2C_Read... [12:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:58]Read from MH i2c: E2 [12:08:58]MH_I2C_Read... [12:08:58]Read from MH i2c: E2 0E 00 [12:08:58]MH_I2C_Read... [12:08:58]Read from MH i2c: E2 0E 00 E6 73 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 FE [12:08:58]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:08:58]wFMCommunicate OK [12:08:58]SAM_PROTO_GetShiftState done [12:08:58]FM_GetShiftState done [12:08:58]req_shift_opened done [12:08:58]requested_item shift.open_date is exist - process it [12:08:58]req_shift_open_date [12:08:58]req_shift_open_date done [12:08:58]produce_requested_data done [12:08:58]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49200,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:08:58]process_action_free close_receipt [12:08:58]json_value_free [12:08:58]json_value_free done [12:08:58]process_json_proto returns [12:08:58]Send response to host [12:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49200,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:08:58]free response buf [12:08:58]execute_script done [12:08:58]execute_script returns [12:08:58]free content buf [12:08:58]Sock 9.Close socket [12:08:58]Sock 9.Thread stoped [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]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:46]accept exits with 7 [12:12:46]New connection [12:12:46]New thread 3066670436 created [12:12:46]Thread 3066813796 joined [12:12:46]Waiting for new connection... [12:12:46] Sock 7.Parse request [12:12:46]Sock 7.Check first char [12:12:46]Sock 7.First char is OK [12:12:46]request: POST /json_proto HTTP/1.0 [12:12:46]Method: POST [12:12:46]URL: /json_proto [12:12:46]Method is POST - this is cgi request [12:12:46]url: /json_proto [12:12:46]query_string will be loaded in cgi processing [12:12:46]execute_cgi json_proto POST (null) [12:12:46]execute_cgi path=json_proto method=POST [12:12:46]POST find Content-Length [12:12:46]Host: 172.17.56.67:8080 [12:12:46]Content-Length: 678 [12:12:46]Content-Type: application/json [12:12:46] [12:12:46]POST finish read [12:12:46]Found Content-Length = 678 [12:12:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 13.270, "sum" : 800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:46]execute_script... [12:12:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 13.270, "sum" : 800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:46]POST & json_proto [12:12:46]process_json_proto [12:12:46]json parsed OK: [12:12:46]protocol is kg_v1.0 [12:12:46]action value=close_receipt [12:12:46]process_action close_receipt [12:12:46]cmd_close_receipt [12:12:46]MH_GetDate [12:12:46]Write to MH i2c: F0 00 00 E7 73 49 [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: F0 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: F0 09 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: F0 09 00 E7 73 00 D1 E7 B8 65 26 5D 9E 65 AD [12:12:46]GetLastDocTimeStamp 1706616553 [12:12:46]current date 1706616785 [12:12:46]FM_GetShiftState [12:12:46]SAM_PROTO_GetShiftState [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 13 01 00 [12:12:46]Write to MH i2c: E2 08 00 E8 73 80 13 01 00 00 00 00 00 D8 [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 0E 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 0E 00 E8 73 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 00 [12:12:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:12:46]wFMCommunicate OK [12:12:46]SAM_PROTO_GetShiftState done [12:12:46]FM_GetShiftState done [12:12:46]opened in 1706572995 [12:12:46]opened+sec_in_day 1706659395 [12:12:46]quantity*price = 80018 [12:12:46]sum+1 = 80019 [12:12:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 77 30.01.2024 12:13 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49201 ФПД: 259567523144317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T121305&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49201&fm=259567523144317&tin=02508201610067®Number=0000000000092723&sum=80000 [12:12:47]StoreToDocumentArchive [12:12:47]shift 246 fd 49201 [12:12:47]save to /storage/0246/doc_00049201 [12:12:47]save last doc name /storage/0246/doc_00049201 to /storage/kkm_last_doc_name [12:12:47]save OK [12:12:47]Clear old archive folders... [12:12:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:47]tlvbuf is 013CCBD0 [12:12:47]SAM_PROTO_ClearQueue [12:12:47]wFMCommunicate request_size=4 [12:12:47]MH_SAM_APDU [12:12:47]CAPDU: 80 09 00 00 [12:12:47]Write to MH i2c: E2 08 00 F5 73 80 09 00 00 00 00 00 00 DA [12:12:47]Write i2c OK [12:12:47]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 03 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 03 00 F5 73 00 90 00 DC [12:12:48]RAPDU: 90 00 [12:12:48]wFMCommunicate OK [12:12:48]SAM_PROTO_ClearQueue done [12:12:48]KKMCreateOFDPacket [12:12:48]OFDProtocolAddRootSTLVToBuf [12:12:48]FM_MakeSignedData [12:12:48]FM_MakeSignedData [12:12:48]SAM_PROTO_SignData [12:12:48]wFMCommunicate request_size=4 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 0D 01 02 [12:12:48]Write to MH i2c: E2 08 00 F6 73 80 0D 01 02 00 00 00 00 E2 [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 03 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 03 00 F6 73 00 90 00 DD [12:12:48]RAPDU: 90 00 [12:12:48]wFMCommunicate OK [12:12:48]wFMCommunicate request_size=255 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D1 E7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 31 C0 00 00 35 04 06 00 EC [12:12:48]Write to MH i2c: E2 02 01 F7 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D1 E7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 31 C0 00 00 35 04 06 00 EC 00 00 DC [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 03 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 03 00 F7 73 00 90 00 DE [12:12:48]RAPDU: 90 00 [12:12:48]wFMCommunicate OK [12:12:48]wFMCommunicate request_size=10 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 0D 02 02 05 13 46 03 22 7D [12:12:48]Write to MH i2c: E2 0D 00 F8 73 80 0D 02 02 05 00 13 46 03 22 7D 00 00 EA [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 03 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 03 00 F8 73 00 90 00 DF [12:12:48]RAPDU: 90 00 [12:12:48]wFMCommunicate OK [12:12:48]wFMCommunicate request_size=4 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 0D 03 02 [12:12:48]Write to MH i2c: E2 08 00 F9 73 80 0D 03 02 00 00 00 00 E7 [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 0B 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 0B 00 F9 73 00 08 9A 85 2B A9 BD BC BF 90 00 1B [12:12:48]RAPDU: 08 9A 85 2B A9 BD BC BF 90 00 [12:12:48]wFMCommunicate OK [12:12:48]SAM_PROTO_SignData done [12:12:48]FM_MakeSignedData done [12:12:48]CreateOFDProtocolMessage [12:12:48]wFMCommunicate request_size=4 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 11 00 00 [12:12:48]Write to MH i2c: E2 08 00 FA 73 80 11 00 00 00 00 00 00 E7 [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 17 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 17 00 FA 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 34 [12:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:12:48]wFMCommunicate OK [12:12:48]CreateOFDProtocolMessage done [12:12:48]OFDSenderStorePacket 49201 [12:12:48]StoreOFDPacket docnum=49201 [12:12:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 47 DB 07 01 FD 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D1 E7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 31 C0 00 00 35 04 06 00 EC 13 46 03 22 7D 08 9A 85 2B A9 BD BC BF [12:12:48]CheckFolder [12:12:48]dirname=/storage/ofd_packets [12:12:48]CheckFolder done [12:12:48]ProducePacketName [12:12:48]name=ofd_packets/00049201 [12:12:48]NVStorageSaveData ofd_packets/00049201 [12:12:48]File name is /storage/ofd_packets/00049201 [12:12:48]Write 301 bytes [12:12:48]NVStorageSaveData done [12:12:48]OFDSenderStorePacket done [12:12:48]KKMCreateOFDPacket done [12:12:48]NVStorageSaveData kkm_last_timestamp [12:12:48]File name is /storage/kkm_last_timestamp [12:12:48]Write 4 bytes [12:12:48]NVStorageSaveData done [12:12:48]ExternCall_PrintAddStr [12:12:48]wPrintStart [12:12:48]Write to MH i2c: 01 00 00 FB 73 6E [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: 01 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: 01 07 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: 01 07 00 FB 73 00 00 00 00 00 FF 0F 83 [12:12:48]RasterBufferAndPrint [12:12:48]line Счет N : (1)216303 [12:12:48]line ИНН: 02508201610067 [12:12:48]line Контрольно-Кассовый Чек [12:12:48]line ПРОДАЖА [12:12:48]line ТРК (МРК, ГНК) : 12 [12:12:48]line Товар: 2710124130 [12:12:48]line Аи-92-К-5 [12:12:48]line 13.270 * 60.30 [12:12:48]line = 800.18 [12:12:48]line НДС 12% НСП 1% [12:12:48]line > о реализуемом товаре [12:12:48]line ОКРУГЛЕНИЕ: -0.18 [12:12:48]line ИТОГО: 800.00 [12:12:48]line Внесено: 800.00 [12:12:48]line СДАЧА: 0.00 [12:12:48]line НСП 1% : 7.08 [12:12:48]line НДС 12% : 84.97 [12:12:48]line Наличными: 800.00 [12:12:48]line Безнал.: 0.00 [12:12:48]line Место: АЗС № 102 "Партнер Нефть" [12:12:48]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:12:48]line СНО: Общий режим [12:12:48]line Чек 77 30.01.2024 12:13 [12:12:48]line Смена: 246 ФФД: 1.0 [12:12:48]line ЗНМ: 0300000040 [12:12:48]line РНМ: 0000000000092723 [12:12:48]line Версия ККМ: 001 [12:12:48]line ФМ: 0000000000875060 [12:12:48]line ФД: 49201 [12:12:48]line ФПД: 259567523144317 [12:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T121305&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49201&fm=259567523144317&tin=02508201610067®Number=0000000000092723&sum=80000 [12:12:48]written 0, free lines is 4095 [12:12:48]OFD Sender: Processing packet 49201 [packets to send 12, broken 11] [12:12:48]ProducePacketName [12:12:48]name=ofd_packets/00049201 [12:12:48]OFD Sender: To server: pG, [12:12:48]CommunicateWithHost lk.salyk.kg:30040 [12:12:48]ConnectInit lk.salyk.kg [12:12:48]Connected sock=9 [12:12: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 36 30 0F 01 00 00 47 DB 07 01 FD 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D1 E7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 31 C0 00 00 35 04 06 00 EC 13 46 03 22 7D 08 9A 85 2B A9 BD BC BF [12:12: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 36 30 4F 00 00 00 33 B1 47 00 CB 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 31 C0 00 00 F4 03 04 00 C7 93 B8 65 B6 04 01 00 00 8E F8 B2 E6 30 E5 0D 8B [12:12:49]CommunicateWithHost err = 0 [12:12:49]CheckOFDResponse [12:12:49]1017 (14) - 77093643461234 [12:12:49]1041 (16) - 0000000000875060 [12:12:49]1040 (4) - 49201 [12:12:49]1012 (4) - 30.01.2024 06:14 [12:12:49]1206 (1) - 0 [12:12:49]OFD Sender: Remove packet 49201 [12:12:49]ProducePacketName [12:12:49]name=ofd_packets/00049201 [12:12:49]NVStorageDeleteData [12:12:49]Write to MH i2c: 01 00 00 26 74 9A [12:12:49]Write i2c OK [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: 01 [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: 01 07 00 [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: 01 07 00 26 74 00 00 00 00 00 EA 0C 97 [12:12:49]RasterBufferAndPrint [12:12:49]line [12:12:49]line [12:12:49]line [12:12:49]line [12:12:49]line [12:12:49]written 0, free lines is 3313 [12:12:49]MH_Cut [12:12:49]Write to MH i2c: D1 01 00 2D 74 01 73 [12:12:49]Write i2c OK [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: D1 [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: D1 01 00 [12:12:49]MH_I2C_Read... [12:12:49]Read from MH i2c: D1 01 00 2D 74 00 72 [12:12:49]Write to MH i2c: 01 00 00 2E 74 A2 [12:12:49]Write i2c OK [12:12:49]MH_I2C_Read... [12:12:49]OFD Sender: No OFD packet to send [12:12:49]*** Cut start [12:12:49]*** Partial cut [12:12:49]*** CUTSNS_PIN = 1 [12:12:50]*** CUTSNS_PIN = 0 [12:12:50]*** Brake cut motor [12:12:50]Read from MH i2c: 01 [12:12:50]MH_I2C_Read... [12:12:50]*** Stop cut motor [12:12:50]*** Cut end [12:12:50]Read from MH i2c: 01 07 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: 01 07 00 2E 74 00 00 00 00 00 FF 0F B7 [12:12:50]process_action close_receipt done [12:12:50]requested_data is exist [12:12:50]produce_requested_data [12:12:50]requested_item fm.sn is exist - process it [12:12:50]wFMCommunicate request_size=4 [12:12:50]MH_SAM_APDU [12:12:50]CAPDU: 80 11 00 00 [12:12:50]Write to MH i2c: E2 08 00 2F 74 80 11 00 00 00 00 00 00 1D [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:50]Read from MH i2c: E2 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 17 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 17 00 2F 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6A [12:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:12:50]wFMCommunicate OK [12:12:50]requested_item fd.num is exist - process it [12:12:50]SAM_PROTO_GetFieldsCounters [12:12:50]wFMCommunicate request_size=4 [12:12:50]MH_SAM_APDU [12:12:50]CAPDU: 80 13 00 00 [12:12:50]Write to MH i2c: E2 08 00 30 74 80 13 00 00 00 00 00 00 20 [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:50]Read from MH i2c: E2 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 62 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 62 00 30 74 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 31 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [12:12: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 31 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:50]wFMCommunicate OK [12:12:50]SAM_PROTO_GetFieldsCounters done [12:12:50]requested_item shift.num is exist - process it [12:12:50]requested_item shift.opened is exist - process it [12:12:50]req_shift_opened [12:12:50]FM_GetShiftState [12:12:50]SAM_PROTO_GetShiftState [12:12:50]wFMCommunicate request_size=4 [12:12:50]MH_SAM_APDU [12:12:50]CAPDU: 80 13 01 00 [12:12:50]Write to MH i2c: E2 08 00 31 74 80 13 01 00 00 00 00 00 22 [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:50]Read from MH i2c: E2 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 0E 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 0E 00 31 74 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4A [12:12:50]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:12:50]wFMCommunicate OK [12:12:50]SAM_PROTO_GetShiftState done [12:12:50]FM_GetShiftState done [12:12:50]req_shift_opened done [12:12:50]requested_item shift.open_date is exist - process it [12:12:50]req_shift_open_date [12:12:50]req_shift_open_date done [12:12:50]produce_requested_data done [12:12:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49201,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:12:50]process_action_free close_receipt [12:12:50]json_value_free [12:12:50]json_value_free done [12:12:50]process_json_proto returns [12:12:50]Send response to host [12:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49201,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:12:50]free response buf [12:12:50]execute_script done [12:12:50]execute_script returns [12:12:50]free content buf [12:12:50]Sock 7.Close socket [12:12:50]Sock 7.Thread stoped [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:17]accept exits with 10 [12:13:17]New connection [12:13:17]New thread 3066813796 created [12:13:17]Thread 3066670436 joined [12:13:17]Waiting for new connection... [12:13:17] Sock 10.Parse request [12:13:17]Sock 10.Check first char [12:13:17]Sock 10.First char is OK [12:13:17]request: POST /json_proto HTTP/1.0 [12:13:17]Method: POST [12:13:17]URL: /json_proto [12:13:17]Method is POST - this is cgi request [12:13:17]url: /json_proto [12:13:17]query_string will be loaded in cgi processing [12:13:17]execute_cgi json_proto POST (null) [12:13:17]execute_cgi path=json_proto method=POST [12:13:17]POST find Content-Length [12:13:17]Host: 172.17.56.67:8080 [12:13:17]Content-Length: 679 [12:13:17]Content-Type: application/json [12:13:17] [12:13:17]POST finish read [12:13:17]Found Content-Length = 679 [12:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:17]execute_script... [12:13:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:17]POST & json_proto [12:13:17]process_json_proto [12:13:17]json parsed OK: [12:13:17]protocol is kg_v1.0 [12:13:17]action value=close_receipt [12:13:17]process_action close_receipt [12:13:17]cmd_close_receipt [12:13:17]MH_GetDate [12:13:17]Write to MH i2c: F0 00 00 32 74 95 [12:13:17]Write i2c OK [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: F0 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: F0 09 00 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: F0 09 00 32 74 00 F0 E7 B8 65 26 5D 9E 65 18 [12:13:17]GetLastDocTimeStamp 1706616785 [12:13:17]current date 1706616816 [12:13:17]FM_GetShiftState [12:13:17]SAM_PROTO_GetShiftState [12:13:17]wFMCommunicate request_size=4 [12:13:17]MH_SAM_APDU [12:13:17]CAPDU: 80 13 01 00 [12:13:17]Write to MH i2c: E2 08 00 33 74 80 13 01 00 00 00 00 00 24 [12:13:17]Write i2c OK [12:13:17]MH_I2C_Read... [12:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:17]Read from MH i2c: E2 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: E2 0E 00 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: E2 0E 00 33 74 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 4C [12:13:17]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:13:17]wFMCommunicate OK [12:13:17]SAM_PROTO_GetShiftState done [12:13:17]FM_GetShiftState done [12:13:17]opened in 1706572995 [12:13:17]opened+sec_in_day 1706659395 [12:13:17]quantity*price = 100026 [12:13:17]sum+1 = 100028 [12:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 78 30.01.2024 12:13 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49202 ФПД: 233615561269423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T121336&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49202&fm=233615561269423&tin=02508201610067®Number=0000000000092723&sum=100000 [12:13:19]StoreToDocumentArchive [12:13:19]shift 246 fd 49202 [12:13:19]save to /storage/0246/doc_00049202 [12:13:19]save last doc name /storage/0246/doc_00049202 to /storage/kkm_last_doc_name [12:13:19]save OK [12:13:19]Clear old archive folders... [12:13:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:13:19]tlvbuf is 011E5CD0 [12:13:19]SAM_PROTO_ClearQueue [12:13:19]wFMCommunicate request_size=4 [12:13:19]MH_SAM_APDU [12:13:19]CAPDU: 80 09 00 00 [12:13:19]Write to MH i2c: E2 08 00 40 74 80 09 00 00 00 00 00 00 26 [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:19]Read from MH i2c: E2 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 03 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 03 00 40 74 00 90 00 28 [12:13:19]RAPDU: 90 00 [12:13:19]wFMCommunicate OK [12:13:19]SAM_PROTO_ClearQueue done [12:13:19]KKMCreateOFDPacket [12:13:19]OFDProtocolAddRootSTLVToBuf [12:13:19]FM_MakeSignedData [12:13:19]FM_MakeSignedData [12:13:19]SAM_PROTO_SignData [12:13:19]wFMCommunicate request_size=4 [12:13:19]MH_SAM_APDU [12:13:19]CAPDU: 80 0D 01 02 [12:13:19]Write to MH i2c: E2 08 00 41 74 80 0D 01 02 00 00 00 00 2E [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:19]Read from MH i2c: E2 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 03 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 03 00 41 74 00 90 00 29 [12:13:19]RAPDU: 90 00 [12:13:19]wFMCommunicate OK [12:13:19]wFMCommunicate request_size=255 [12:13:19]MH_SAM_APDU [12:13:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F0 E7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 32 C0 00 00 35 04 06 00 D4 78 DC 8B [12:13:19]Write to MH i2c: E2 02 01 42 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F0 E7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 32 C0 00 00 35 04 06 00 D4 78 DC 8B 00 00 95 [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:19]Read from MH i2c: E2 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 03 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 03 00 42 74 00 90 00 2A [12:13:19]RAPDU: 90 00 [12:13:19]wFMCommunicate OK [12:13:19]wFMCommunicate request_size=7 [12:13:19]MH_SAM_APDU [12:13:19]CAPDU: 80 0D 02 02 02 20 AF [12:13:19]Write to MH i2c: E2 0A 00 43 74 80 0D 02 02 02 00 20 AF 00 00 04 [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:19]Read from MH i2c: E2 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 03 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 03 00 43 74 00 90 00 2B [12:13:19]RAPDU: 90 00 [12:13:19]wFMCommunicate OK [12:13:19]wFMCommunicate request_size=4 [12:13:19]MH_SAM_APDU [12:13:19]CAPDU: 80 0D 03 02 [12:13:19]Write to MH i2c: E2 08 00 44 74 80 0D 03 02 00 00 00 00 33 [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:19]Read from MH i2c: E2 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 0B 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 0B 00 44 74 00 D2 C4 83 86 F7 65 7D 12 90 00 BE [12:13:19]RAPDU: D2 C4 83 86 F7 65 7D 12 90 00 [12:13:19]wFMCommunicate OK [12:13:19]SAM_PROTO_SignData done [12:13:19]FM_MakeSignedData done [12:13:19]CreateOFDProtocolMessage [12:13:19]wFMCommunicate request_size=4 [12:13:19]MH_SAM_APDU [12:13:19]CAPDU: 80 11 00 00 [12:13:19]Write to MH i2c: E2 08 00 45 74 80 11 00 00 00 00 00 00 33 [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:19]Read from MH i2c: E2 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 17 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: E2 17 00 45 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 80 [12:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:13:19]wFMCommunicate OK [12:13:19]CreateOFDProtocolMessage done [12:13:19]OFDSenderStorePacket 49202 [12:13:19]StoreOFDPacket docnum=49202 [12:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 45 B0 04 01 40 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F0 E7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 32 C0 00 00 35 04 06 00 D4 78 DC 8B 20 AF D2 C4 83 86 F7 65 7D 12 [12:13:19]CheckFolder [12:13:19]dirname=/storage/ofd_packets [12:13:19]CheckFolder done [12:13:19]ProducePacketName [12:13:19]name=ofd_packets/00049202 [12:13:19]NVStorageSaveData ofd_packets/00049202 [12:13:19]File name is /storage/ofd_packets/00049202 [12:13:19]Write 298 bytes [12:13:19]NVStorageSaveData done [12:13:19]OFDSenderStorePacket done [12:13:19]KKMCreateOFDPacket done [12:13:19]NVStorageSaveData kkm_last_timestamp [12:13:19]File name is /storage/kkm_last_timestamp [12:13:19]Write 4 bytes [12:13:19]NVStorageSaveData done [12:13:19]ExternCall_PrintAddStr [12:13:19]wPrintStart [12:13:19]Write to MH i2c: 01 00 00 46 74 BA [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 07 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 07 00 46 74 00 00 00 00 00 FF 0F CF [12:13:19]RasterBufferAndPrint [12:13:19]line Счет N : (1)216304 [12:13:19]line ИНН: 02508201610067 [12:13:19]line Контрольно-Кассовый Чек [12:13:19]line ПРОДАЖА [12:13:19]line ТРК (МРК, ГНК) : 21 [12:13:19]line Товар: 2710194210 [12:13:19]line ДТ-К-5 [12:13:19]line 14.310 * 69.90 [12:13:19]line = 1000.27 [12:13:19]line НДС 12% НСП 1% [12:13:19]line > о реализуемом товаре [12:13:19]line ОКРУГЛЕНИЕ: -0.27 [12:13:19]line ИТОГО: 1000.00 [12:13:19]line Внесено: 1000.00 [12:13:19]line СДАЧА: 0.00 [12:13:19]line НСП 1% : 8.85 [12:13:19]line НДС 12% : 106.22 [12:13:19]line Наличными: 1000.00 [12:13:19]line Безнал.: 0.00 [12:13:19]line Место: АЗС № 102 "Партнер Нефть" [12:13:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:13:19]line СНО: Общий режим [12:13:19]line Чек 78 30.01.2024 12:13 [12:13:19]line Смена: 246 ФФД: 1.0 [12:13:19]line ЗНМ: 0300000040 [12:13:19]line РНМ: 0000000000092723 [12:13:19]line Версия ККМ: 001 [12:13:19]line ФМ: 0000000000875060 [12:13:19]line ФД: 49202 [12:13:19]line ФПД: 233615561269423 [12:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T121336&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49202&fm=233615561269423&tin=02508201610067®Number=0000000000092723&sum=100000 [12:13:19]OFD Sender: Processing packet 49202 [packets to send 12, broken 11] [12:13:19]ProducePacketName [12:13:19]name=ofd_packets/00049202 [12:13:19]OFD Sender: To server: pG, [12:13:19]CommunicateWithHost lk.salyk.kg:30040 [12:13:19]ConnectInit lk.salyk.kg [12:13:19]written 0, free lines is 4095 [12:13:19]Connected sock=9 [12:13: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 36 30 0C 01 00 00 45 B0 04 01 40 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F0 E7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 32 C0 00 00 35 04 06 00 D4 78 DC 8B 20 AF D2 C4 83 86 F7 65 7D 12 [12:13: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 36 30 4F 00 00 00 B8 24 47 00 06 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 36 30 10 04 04 00 32 C0 00 00 F4 03 04 00 E6 93 B8 65 B6 04 01 00 00 5D 71 51 37 50 C5 08 94 [12:13:20]CommunicateWithHost err = 0 [12:13:20]CheckOFDResponse [12:13:20]1017 (14) - 77093643461234 [12:13:20]1041 (16) - 0000000000875060 [12:13:20]1040 (4) - 49202 [12:13:20]1012 (4) - 30.01.2024 06:15 [12:13:20]1206 (1) - 0 [12:13:20]OFD Sender: Remove packet 49202 [12:13:20]ProducePacketName [12:13:20]name=ofd_packets/00049202 [12:13:20]NVStorageDeleteData [12:13:20]Write to MH i2c: 01 00 00 71 74 E5 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: 01 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: 01 07 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: 01 07 00 71 74 00 00 00 00 00 F2 0C EA [12:13:20]RasterBufferAndPrint [12:13:20]line [12:13:20]line [12:13:20]line [12:13:20]line [12:13:20]line [12:13:20]written 0, free lines is 3320 [12:13:20]MH_Cut [12:13:20]Write to MH i2c: D1 01 00 78 74 01 BE [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: D1 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: D1 01 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: D1 01 00 78 74 00 BD [12:13:20]Write to MH i2c: 01 00 00 79 74 ED [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]OFD Sender: No OFD packet to send [12:13:21]*** Cut start [12:13:21]*** Partial cut [12:13:21]*** CUTSNS_PIN = 1 [12:13:21]*** CUTSNS_PIN = 0 [12:13:21]*** Brake cut motor [12:13:21]Read from MH i2c: 01 [12:13:21]MH_I2C_Read... [12:13:21]*** Stop cut motor [12:13:21]*** Cut end [12:13:21]Read from MH i2c: 01 07 00 [12:13:21]MH_I2C_Read... [12:13:21]Read from MH i2c: 01 07 00 79 74 00 00 00 00 00 FF 0F 02 [12:13:21]process_action close_receipt done [12:13:21]requested_data is exist [12:13:21]produce_requested_data [12:13:21]requested_item fm.sn is exist - process it [12:13:21]wFMCommunicate request_size=4 [12:13:21]MH_SAM_APDU [12:13:21]CAPDU: 80 11 00 00 [12:13:21]Write to MH i2c: E2 08 00 7A 74 80 11 00 00 00 00 00 00 68 [12:13:21]Write i2c OK [12:13:21]MH_I2C_Read... [12:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:21]Read from MH i2c: E2 [12:13:21]MH_I2C_Read... [12:13:21]Read from MH i2c: E2 17 00 [12:13:21]MH_I2C_Read... [12:13:21]Read from MH i2c: E2 17 00 7A 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B5 [12:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:13:21]wFMCommunicate OK [12:13:21]requested_item fd.num is exist - process it [12:13:21]SAM_PROTO_GetFieldsCounters [12:13:21]wFMCommunicate request_size=4 [12:13:21]MH_SAM_APDU [12:13:21]CAPDU: 80 13 00 00 [12:13:21]Write to MH i2c: E2 08 00 7B 74 80 13 00 00 00 00 00 00 6B [12:13:21]Write i2c OK [12:13:21]MH_I2C_Read... [12:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:21]Read from MH i2c: E2 [12:13:21]MH_I2C_Read... [12:13:21]Read from MH i2c: E2 62 00 [12:13:21]MH_I2C_Read... [12:13:21]Read from MH i2c: E2 62 00 7B 74 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 32 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [12:13: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 32 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:21]wFMCommunicate OK [12:13:21]SAM_PROTO_GetFieldsCounters done [12:13:21]requested_item shift.num is exist - process it [12:13:21]requested_item shift.opened is exist - process it [12:13:21]req_shift_opened [12:13:21]FM_GetShiftState [12:13:21]SAM_PROTO_GetShiftState [12:13:21]wFMCommunicate request_size=4 [12:13:21]MH_SAM_APDU [12:13:21]CAPDU: 80 13 01 00 [12:13:21]Write to MH i2c: E2 08 00 7C 74 80 13 01 00 00 00 00 00 6D [12:13:21]Write i2c OK [12:13:21]MH_I2C_Read... [12:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:21]Read from MH i2c: E2 [12:13:21]MH_I2C_Read... [12:13:21]Read from MH i2c: E2 0E 00 [12:13:21]MH_I2C_Read... [12:13:21]Read from MH i2c: E2 0E 00 7C 74 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 95 [12:13:21]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:13:21]wFMCommunicate OK [12:13:21]SAM_PROTO_GetShiftState done [12:13:21]FM_GetShiftState done [12:13:21]req_shift_opened done [12:13:21]requested_item shift.open_date is exist - process it [12:13:21]req_shift_open_date [12:13:21]req_shift_open_date done [12:13:21]produce_requested_data done [12:13:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49202,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:13:21]process_action_free close_receipt [12:13:21]json_value_free [12:13:21]json_value_free done [12:13:21]process_json_proto returns [12:13:21]Send response to host [12:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49202,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:13:21]free response buf [12:13:21]execute_script done [12:13:21]execute_script returns [12:13:21]free content buf [12:13:21]Sock 10.Close socket [12:13:21]Sock 10.Thread stoped [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:42]accept exits with 7 [12:18:42]New connection [12:18:42]New thread 3066670436 created [12:18:42]Thread 3066813796 joined [12:18:42]Waiting for new connection... [12:18:42] Sock 7.Parse request [12:18:42]Sock 7.Check first char [12:18:42]Sock 7.First char is OK [12:18:42]request: POST /json_proto HTTP/1.0 [12:18:42]Method: POST [12:18:42]URL: /json_proto [12:18:42]Method is POST - this is cgi request [12:18:42]url: /json_proto [12:18:42]query_string will be loaded in cgi processing [12:18:42]execute_cgi json_proto POST (null) [12:18:42]execute_cgi path=json_proto method=POST [12:18:42]POST find Content-Length [12:18:42]Host: 172.17.56.67:8080 [12:18:42]Content-Length: 677 [12:18:42]Content-Type: application/json [12:18:42] [12:18:42]POST finish read [12:18:42]Found Content-Length = 677 [12:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:42]execute_script... [12:18: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)216305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:42]POST & json_proto [12:18:42]process_json_proto [12:18:42]json parsed OK: [12:18:42]protocol is kg_v1.0 [12:18:42]action value=close_receipt [12:18:42]process_action close_receipt [12:18:42]cmd_close_receipt [12:18:42]MH_GetDate [12:18:42]Write to MH i2c: F0 00 00 7D 74 E0 [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: F0 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: F0 09 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: F0 09 00 7D 74 00 34 E9 B8 65 26 5D 9E 65 A9 [12:18:42]GetLastDocTimeStamp 1706616816 [12:18:42]current date 1706617140 [12:18:42]FM_GetShiftState [12:18:42]SAM_PROTO_GetShiftState [12:18:42]wFMCommunicate request_size=4 [12:18:42]MH_SAM_APDU [12:18:42]CAPDU: 80 13 01 00 [12:18:42]Write to MH i2c: E2 08 00 7E 74 80 13 01 00 00 00 00 00 6F [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:42]Read from MH i2c: E2 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 0E 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 0E 00 7E 74 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 97 [12:18:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:18:42]wFMCommunicate OK [12:18:42]SAM_PROTO_GetShiftState done [12:18:42]FM_GetShiftState done [12:18:42]opened in 1706572995 [12:18:42]opened+sec_in_day 1706659395 [12:18:42]quantity*price = 30029 [12:18:42]sum+1 = 30030 [12:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 79 30.01.2024 12:19 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49203 ФПД: 10250209950363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T121900&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49203&fm=10250209950363&tin=02508201610067®Number=0000000000092723&sum=30000 [12:18:43]StoreToDocumentArchive [12:18:43]shift 246 fd 49203 [12:18:43]save to /storage/0246/doc_00049203 [12:18:43]save last doc name /storage/0246/doc_00049203 to /storage/kkm_last_doc_name [12:18:43]save OK [12:18:43]Clear old archive folders... [12:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:43]tlvbuf is 0119A280 [12:18:43]SAM_PROTO_ClearQueue [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 09 00 00 [12:18:43]Write to MH i2c: E2 08 00 8B 74 80 09 00 00 00 00 00 00 71 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 8B 74 00 90 00 73 [12:18:43]RAPDU: 90 00 [12:18:43]wFMCommunicate OK [12:18:43]SAM_PROTO_ClearQueue done [12:18:43]KKMCreateOFDPacket [12:18:43]OFDProtocolAddRootSTLVToBuf [12:18:43]FM_MakeSignedData [12:18:43]FM_MakeSignedData [12:18:43]SAM_PROTO_SignData [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 0D 01 02 [12:18:43]Write to MH i2c: E2 08 00 8C 74 80 0D 01 02 00 00 00 00 79 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 8C 74 00 90 00 74 [12:18:43]RAPDU: 90 00 [12:18:43]wFMCommunicate OK [12:18:43]wFMCommunicate request_size=255 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 34 E9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 33 C0 00 00 35 04 06 00 09 [12:18:43]Write to MH i2c: E2 02 01 8D 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 34 E9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 33 C0 00 00 35 04 06 00 09 00 00 BA [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 8D 74 00 90 00 75 [12:18:43]RAPDU: 90 00 [12:18:43]wFMCommunicate OK [12:18:43]wFMCommunicate request_size=10 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 0D 02 02 05 52 90 1F 7A 9B [12:18:43]Write to MH i2c: E2 0D 00 8E 74 80 0D 02 02 05 00 52 90 1F 7A 9B 00 00 9C [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 03 00 8E 74 00 90 00 76 [12:18:43]RAPDU: 90 00 [12:18:43]wFMCommunicate OK [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 0D 03 02 [12:18:43]Write to MH i2c: E2 08 00 8F 74 80 0D 03 02 00 00 00 00 7E [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 0B 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 0B 00 8F 74 00 B8 FD C5 B1 51 5A 74 ED 90 00 B6 [12:18:43]RAPDU: B8 FD C5 B1 51 5A 74 ED 90 00 [12:18:43]wFMCommunicate OK [12:18:43]SAM_PROTO_SignData done [12:18:43]FM_MakeSignedData done [12:18:43]CreateOFDProtocolMessage [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 11 00 00 [12:18:43]Write to MH i2c: E2 08 00 90 74 80 11 00 00 00 00 00 00 7E [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 17 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 17 00 90 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CB [12:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:18:43]wFMCommunicate OK [12:18:43]CreateOFDProtocolMessage done [12:18:43]OFDSenderStorePacket 49203 [12:18:43]StoreOFDPacket docnum=49203 [12:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FA 72 07 01 7B 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 34 E9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 33 C0 00 00 35 04 06 00 09 52 90 1F 7A 9B B8 FD C5 B1 51 5A 74 ED [12:18:43]CheckFolder [12:18:43]dirname=/storage/ofd_packets [12:18:43]CheckFolder done [12:18:43]ProducePacketName [12:18:43]name=ofd_packets/00049203 [12:18:43]NVStorageSaveData ofd_packets/00049203 [12:18:43]File name is /storage/ofd_packets/00049203 [12:18:43]Write 301 bytes [12:18:43]NVStorageSaveData done [12:18:43]OFDSenderStorePacket done [12:18:43]KKMCreateOFDPacket done [12:18:43]NVStorageSaveData kkm_last_timestamp [12:18:43]File name is /storage/kkm_last_timestamp [12:18:43]Write 4 bytes [12:18:43]NVStorageSaveData done [12:18:43]ExternCall_PrintAddStr [12:18:43]wPrintStart [12:18:43]Write to MH i2c: 01 00 00 91 74 05 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: 01 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: 01 07 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: 01 07 00 91 74 00 00 00 00 00 FF 0F 1A [12:18:43]RasterBufferAndPrint [12:18:43]line Счет N : (1)216305 [12:18:43]line ИНН: 02508201610067 [12:18:43]line Контрольно-Кассовый Чек [12:18:43]line ПРОДАЖА [12:18:43]line ТРК (МРК, ГНК) : 12 [12:18:43]line Товар: 2710124130 [12:18:43]line Аи-92-К-5 [12:18:43]line 4.980 * 60.30 [12:18:43]line = 300.29 [12:18:43]line НДС 12% НСП 1% [12:18:43]line > о реализуемом товаре [12:18:43]line ОКРУГЛЕНИЕ: -0.29 [12:18:43]line ИТОГО: 300.00 [12:18:43]line Внесено: 300.00 [12:18:43]line СДАЧА: 0.00 [12:18:43]line НСП 1% : 2.66 [12:18:43]line НДС 12% : 31.89 [12:18:43]line Наличными: 300.00 [12:18:43]line Безнал.: 0.00 [12:18:43]line Место: АЗС № 102 "Партнер Нефть" [12:18:43]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:18:43]line СНО: Общий режим [12:18:43]line Чек 79 30.01.2024 12:19 [12:18:43]line Смена: 246 ФФД: 1.0 [12:18:43]line ЗНМ: 0300000040 [12:18:43]line РНМ: 0000000000092723 [12:18:43]line Версия ККМ: 001 [12:18:43]line ФМ: 0000000000875060 [12:18:43]line ФД: 49203 [12:18:43]line ФПД: 10250209950363 [12:18:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T121900&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49203&fm=10250209950363&tin=02508201610067®Number=0000000000092723&sum=30000 [12:18:44]OFD Sender: Processing packet 49203 [packets to send 12, broken 11] [12:18:44]ProducePacketName [12:18:44]name=ofd_packets/00049203 [12:18:44]OFD Sender: To server: pG, [12:18:44]CommunicateWithHost lk.salyk.kg:30040 [12:18:44]ConnectInit lk.salyk.kg [12:18:44]written 0, free lines is 4095 [12:18:44]Connected sock=10 [12:18: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 36 30 0F 01 00 00 FA 72 07 01 7B 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 34 E9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 33 C0 00 00 35 04 06 00 09 52 90 1F 7A 9B B8 FD C5 B1 51 5A 74 ED [12:18: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 36 30 4F 00 00 00 14 00 47 00 56 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 36 30 10 04 04 00 33 C0 00 00 F4 03 04 00 2A 95 B8 65 B6 04 01 00 00 2B DF C1 12 0A 3B 8F 94 [12:18:44]CommunicateWithHost err = 0 [12:18:44]CheckOFDResponse [12:18:44]1017 (14) - 77093643461234 [12:18:44]1041 (16) - 0000000000875060 [12:18:44]1040 (4) - 49203 [12:18:44]1012 (4) - 30.01.2024 06:20 [12:18:44]1206 (1) - 0 [12:18:44]OFD Sender: Remove packet 49203 [12:18:44]ProducePacketName [12:18:44]name=ofd_packets/00049203 [12:18:44]NVStorageDeleteData [12:18:44]Write to MH i2c: 01 00 00 BC 74 30 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: 01 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: 01 07 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: 01 07 00 BC 74 00 00 00 00 00 E6 0C 29 [12:18:44]RasterBufferAndPrint [12:18:44]line [12:18:44]line [12:18:44]line [12:18:44]line [12:18:44]line [12:18:44]written 0, free lines is 3308 [12:18:44]MH_Cut [12:18:44]Write to MH i2c: D1 01 00 C3 74 01 09 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: D1 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: D1 01 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: D1 01 00 C3 74 00 08 [12:18:44]Write to MH i2c: 01 00 00 C4 74 38 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]OFD Sender: No OFD packet to send [12:18:45]*** Cut start [12:18:45]*** Partial cut [12:18:45]*** CUTSNS_PIN = 1 [12:18:45]*** CUTSNS_PIN = 0 [12:18:45]*** Brake cut motor [12:18:45]Read from MH i2c: 01 [12:18:45]MH_I2C_Read... [12:18:45]*** Stop cut motor [12:18:45]*** Cut end [12:18:45]Read from MH i2c: 01 07 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: 01 07 00 C4 74 00 00 00 00 00 FF 0F 4D [12:18:45]process_action close_receipt done [12:18:45]requested_data is exist [12:18:45]produce_requested_data [12:18:45]requested_item fm.sn is exist - process it [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 11 00 00 [12:18:45]Write to MH i2c: E2 08 00 C5 74 80 11 00 00 00 00 00 00 B3 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 17 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 17 00 C5 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 00 [12:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:18:45]wFMCommunicate OK [12:18:45]requested_item fd.num is exist - process it [12:18:45]SAM_PROTO_GetFieldsCounters [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 13 00 00 [12:18:45]Write to MH i2c: E2 08 00 C6 74 80 13 00 00 00 00 00 00 B6 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 62 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 62 00 C6 74 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 33 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [12:18: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 33 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_GetFieldsCounters done [12:18:46]requested_item shift.num is exist - process it [12:18:46]requested_item shift.opened is exist - process it [12:18:46]req_shift_opened [12:18:46]FM_GetShiftState [12:18:46]SAM_PROTO_GetShiftState [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 13 01 00 [12:18:46]Write to MH i2c: E2 08 00 C7 74 80 13 01 00 00 00 00 00 B8 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0E 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0E 00 C7 74 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E0 [12:18:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_GetShiftState done [12:18:46]FM_GetShiftState done [12:18:46]req_shift_opened done [12:18:46]requested_item shift.open_date is exist - process it [12:18:46]req_shift_open_date [12:18:46]req_shift_open_date done [12:18:46]produce_requested_data done [12:18:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49203,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:18:46]process_action_free close_receipt [12:18:46]json_value_free [12:18:46]json_value_free done [12:18:46]process_json_proto returns [12:18:46]Send response to host [12:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49203,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:18:46]free response buf [12:18:46]execute_script done [12:18:46]execute_script returns [12:18:46]free content buf [12:18:46]Sock 7.Close socket [12:18:46]Sock 7.Thread stoped [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:31]accept exits with 9 [12:20:31]New connection [12:20:31]New thread 3066813796 created [12:20:31]Thread 3066670436 joined [12:20:31]Waiting for new connection... [12:20:31] Sock 9.Parse request [12:20:31]Sock 9.Check first char [12:20:31]Sock 9.First char is OK [12:20:31]request: POST /json_proto HTTP/1.0 [12:20:31]Method: POST [12:20:31]URL: /json_proto [12:20:31]Method is POST - this is cgi request [12:20:31]url: /json_proto [12:20:31]query_string will be loaded in cgi processing [12:20:31]execute_cgi json_proto POST (null) [12:20:31]execute_cgi path=json_proto method=POST [12:20:31]POST find Content-Length [12:20:31]Host: 172.17.56.67:8080 [12:20:31]Content-Length: 682 [12:20:31]Content-Type: application/json [12:20:31] [12:20:31]POST finish read [12:20:31]Found Content-Length = 682 [12:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:31]execute_script... [12:20: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)216306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:31]POST & json_proto [12:20:31]process_json_proto [12:20:31]json parsed OK: [12:20:31]protocol is kg_v1.0 [12:20:31]action value=close_receipt [12:20:31]process_action close_receipt [12:20:31]cmd_close_receipt [12:20:31]MH_GetDate [12:20:31]Write to MH i2c: F0 00 00 C8 74 2B [12:20:31]Write i2c OK [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: F0 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: F0 09 00 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: F0 09 00 C8 74 00 A1 E9 B8 65 26 5D 9E 65 61 [12:20:31]GetLastDocTimeStamp 1706617140 [12:20:31]current date 1706617249 [12:20:31]FM_GetShiftState [12:20:31]SAM_PROTO_GetShiftState [12:20:31]wFMCommunicate request_size=4 [12:20:31]MH_SAM_APDU [12:20:31]CAPDU: 80 13 01 00 [12:20:31]Write to MH i2c: E2 08 00 C9 74 80 13 01 00 00 00 00 00 BA [12:20:31]Write i2c OK [12:20:31]MH_I2C_Read... [12:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:31]Read from MH i2c: E2 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: E2 0E 00 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: E2 0E 00 C9 74 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E2 [12:20:31]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:20:31]wFMCommunicate OK [12:20:31]SAM_PROTO_GetShiftState done [12:20:31]FM_GetShiftState done [12:20:31]opened in 1706572995 [12:20:31]opened+sec_in_day 1706659395 [12:20:31]quantity*price = 100037 [12:20:31]sum+1 = 100039 [12:20:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 80 30.01.2024 12:20 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49204 ФПД: 93763566835586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T122049&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49204&fm=93763566835586&tin=02508201610067®Number=0000000000092723&sum=100000 [12:20:32]StoreToDocumentArchive [12:20:32]shift 246 fd 49204 [12:20:32]save to /storage/0246/doc_00049204 [12:20:32]save last doc name /storage/0246/doc_00049204 to /storage/kkm_last_doc_name [12:20:32]save OK [12:20:32]Clear old archive folders... [12:20:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:32]tlvbuf is B6F36930 [12:20:32]SAM_PROTO_ClearQueue [12:20:32]wFMCommunicate request_size=4 [12:20:32]MH_SAM_APDU [12:20:32]CAPDU: 80 09 00 00 [12:20:32]Write to MH i2c: E2 08 00 D6 74 80 09 00 00 00 00 00 00 BC [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:32]Read from MH i2c: E2 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 03 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 03 00 D6 74 00 90 00 BE [12:20:32]RAPDU: 90 00 [12:20:32]wFMCommunicate OK [12:20:32]SAM_PROTO_ClearQueue done [12:20:32]KKMCreateOFDPacket [12:20:32]OFDProtocolAddRootSTLVToBuf [12:20:32]FM_MakeSignedData [12:20:32]FM_MakeSignedData [12:20:32]SAM_PROTO_SignData [12:20:32]wFMCommunicate request_size=4 [12:20:32]MH_SAM_APDU [12:20:32]CAPDU: 80 0D 01 02 [12:20:32]Write to MH i2c: E2 08 00 D7 74 80 0D 01 02 00 00 00 00 C4 [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:32]Read from MH i2c: E2 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 03 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 03 00 D7 74 00 90 00 BF [12:20:32]RAPDU: 90 00 [12:20:32]wFMCommunicate OK [12:20:32]wFMCommunicate request_size=255 [12:20:32]MH_SAM_APDU [12:20:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 E9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 34 C0 00 00 35 04 06 00 55 [12:20:32]Write to MH i2c: E2 02 01 D8 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 E9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 34 C0 00 00 35 04 06 00 55 00 00 6A [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:32]Read from MH i2c: E2 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 03 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 03 00 D8 74 00 90 00 C0 [12:20:32]RAPDU: 90 00 [12:20:32]wFMCommunicate OK [12:20:32]wFMCommunicate request_size=10 [12:20:32]MH_SAM_APDU [12:20:32]CAPDU: 80 0D 02 02 05 47 08 18 17 82 [12:20:32]Write to MH i2c: E2 0D 00 D9 74 80 0D 02 02 05 00 47 08 18 17 82 00 00 D1 [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:32]Read from MH i2c: E2 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 03 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 03 00 D9 74 00 90 00 C1 [12:20:32]RAPDU: 90 00 [12:20:32]wFMCommunicate OK [12:20:32]wFMCommunicate request_size=4 [12:20:32]MH_SAM_APDU [12:20:32]CAPDU: 80 0D 03 02 [12:20:32]Write to MH i2c: E2 08 00 DA 74 80 0D 03 02 00 00 00 00 C9 [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:32]Read from MH i2c: E2 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 0B 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 0B 00 DA 74 00 0B 83 DD B3 EB 8C 58 4B 90 00 02 [12:20:32]RAPDU: 0B 83 DD B3 EB 8C 58 4B 90 00 [12:20:32]wFMCommunicate OK [12:20:32]SAM_PROTO_SignData done [12:20:32]FM_MakeSignedData done [12:20:32]CreateOFDProtocolMessage [12:20:32]wFMCommunicate request_size=4 [12:20:32]MH_SAM_APDU [12:20:32]CAPDU: 80 11 00 00 [12:20:32]Write to MH i2c: E2 08 00 DB 74 80 11 00 00 00 00 00 00 C9 [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:32]Read from MH i2c: E2 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 17 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 17 00 DB 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 16 [12:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:20:32]wFMCommunicate OK [12:20:32]CreateOFDProtocolMessage done [12:20:32]OFDSenderStorePacket 49204 [12:20:32]StoreOFDPacket docnum=49204 [12:20:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F1 97 07 01 FC C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 E9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 34 C0 00 00 35 04 06 00 55 47 08 18 17 82 0B 83 DD B3 EB 8C 58 4B [12:20:32]CheckFolder [12:20:32]dirname=/storage/ofd_packets [12:20:32]CheckFolder done [12:20:32]ProducePacketName [12:20:32]name=ofd_packets/00049204 [12:20:32]NVStorageSaveData ofd_packets/00049204 [12:20:32]File name is /storage/ofd_packets/00049204 [12:20:32]Write 301 bytes [12:20:32]NVStorageSaveData done [12:20:32]OFDSenderStorePacket done [12:20:32]KKMCreateOFDPacket done [12:20:32]NVStorageSaveData kkm_last_timestamp [12:20:32]File name is /storage/kkm_last_timestamp [12:20:32]Write 4 bytes [12:20:32]NVStorageSaveData done [12:20:32]ExternCall_PrintAddStr [12:20:32]wPrintStart [12:20:32]Write to MH i2c: 01 00 00 DC 74 50 [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: 01 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: 01 07 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: 01 07 00 DC 74 00 00 00 00 00 FF 0F 65 [12:20:32]RasterBufferAndPrint [12:20:32]line Счет N : (1)216306 [12:20:32]line ИНН: 02508201610067 [12:20:32]line Контрольно-Кассовый Чек [12:20:32]line ПРОДАЖА [12:20:32]line ТРК (МРК, ГНК) : 12 [12:20:32]line Товар: 2710124130 [12:20:32]line Аи-92-К-5 [12:20:32]line 16.590 * 60.30 [12:20:32]line = 1000.38 [12:20:32]line НДС 12% НСП 1% [12:20:32]line > о реализуемом товаре [12:20:32]line ОКРУГЛЕНИЕ: -0.38 [12:20:32]line ИТОГО: 1000.00 [12:20:32]line Внесено: 1000.00 [12:20:32]line СДАЧА: 0.00 [12:20:32]line НСП 1% : 8.85 [12:20:32]line НДС 12% : 106.23 [12:20:32]line Наличными: 1000.00 [12:20:32]line Безнал.: 0.00 [12:20:32]line Место: АЗС № 102 "Партнер Нефть" [12:20:32]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:20:32]line СНО: Общий режим [12:20:32]line Чек 80 30.01.2024 12:20 [12:20:32]line Смена: 246 ФФД: 1.0 [12:20:32]line ЗНМ: 0300000040 [12:20:32]line РНМ: 0000000000092723 [12:20:32]line Версия ККМ: 001 [12:20:32]line ФМ: 0000000000875060 [12:20:32]line ФД: 49204 [12:20:32]line ФПД: 93763566835586 [12:20:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T122049&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49204&fm=93763566835586&tin=02508201610067®Number=0000000000092723&sum=100000 [12:20:33]OFD Sender: Processing packet 49204 [packets to send 12, broken 11] [12:20:33]ProducePacketName [12:20:33]name=ofd_packets/00049204 [12:20:33]OFD Sender: To server: pG, [12:20:33]CommunicateWithHost lk.salyk.kg:30040 [12:20:33]ConnectInit lk.salyk.kg [12:20:33]written 0, free lines is 4095 [12:20:33]Connected sock=10 [12:20: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 36 30 0F 01 00 00 F1 97 07 01 FC C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 E9 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 34 C0 00 00 35 04 06 00 55 47 08 18 17 82 0B 83 DD B3 EB 8C 58 4B [12:20: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 36 30 4F 00 00 00 F2 46 47 00 B4 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 34 C0 00 00 F4 03 04 00 97 95 B8 65 B6 04 01 00 00 98 31 D8 B7 86 01 E5 5F [12:20:33]CommunicateWithHost err = 0 [12:20:33]CheckOFDResponse [12:20:33]1017 (14) - 77093643461234 [12:20:33]1041 (16) - 0000000000875060 [12:20:33]1040 (4) - 49204 [12:20:33]1012 (4) - 30.01.2024 06:22 [12:20:33]1206 (1) - 0 [12:20:33]OFD Sender: Remove packet 49204 [12:20:33]ProducePacketName [12:20:33]name=ofd_packets/00049204 [12:20:33]NVStorageDeleteData [12:20:33]Write to MH i2c: 01 00 00 07 75 7C [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: 01 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: 01 07 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: 01 07 00 07 75 00 00 00 00 00 ED 0C 7C [12:20:33]RasterBufferAndPrint [12:20:33]line [12:20:33]line [12:20:33]line [12:20:33]line [12:20:33]line [12:20:33]written 0, free lines is 3315 [12:20:33]MH_Cut [12:20:33]Write to MH i2c: D1 01 00 0E 75 01 55 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: D1 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: D1 01 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: D1 01 00 0E 75 00 54 [12:20:33]Write to MH i2c: 01 00 00 0F 75 84 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:34]OFD Sender: No OFD packet to send [12:20:34]*** Cut start [12:20:34]*** Partial cut [12:20:34]*** CUTSNS_PIN = 1 [12:20:34]*** CUTSNS_PIN = 0 [12:20:34]*** Brake cut motor [12:20:34]Read from MH i2c: 01 [12:20:34]MH_I2C_Read... [12:20:35]*** Stop cut motor [12:20:35]*** Cut end [12:20:35]Read from MH i2c: 01 07 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: 01 07 00 0F 75 00 00 00 00 00 FF 0F 99 [12:20:35]process_action close_receipt done [12:20:35]requested_data is exist [12:20:35]produce_requested_data [12:20:35]requested_item fm.sn is exist - process it [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 11 00 00 [12:20:35]Write to MH i2c: E2 08 00 10 75 80 11 00 00 00 00 00 00 FF [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:35]Read from MH i2c: E2 17 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 17 00 10 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4C [12:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:20:35]wFMCommunicate OK [12:20:35]requested_item fd.num is exist - process it [12:20:35]SAM_PROTO_GetFieldsCounters [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 13 00 00 [12:20:35]Write to MH i2c: E2 08 00 11 75 80 13 00 00 00 00 00 00 02 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 62 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 62 00 11 75 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 34 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [12:20:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 34 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:35]wFMCommunicate OK [12:20:35]SAM_PROTO_GetFieldsCounters done [12:20:35]requested_item shift.num is exist - process it [12:20:35]requested_item shift.opened is exist - process it [12:20:35]req_shift_opened [12:20:35]FM_GetShiftState [12:20:35]SAM_PROTO_GetShiftState [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 13 01 00 [12:20:35]Write to MH i2c: E2 08 00 12 75 80 13 01 00 00 00 00 00 04 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 0E 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 0E 00 12 75 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2C [12:20:35]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:20:35]wFMCommunicate OK [12:20:35]SAM_PROTO_GetShiftState done [12:20:35]FM_GetShiftState done [12:20:35]req_shift_opened done [12:20:35]requested_item shift.open_date is exist - process it [12:20:35]req_shift_open_date [12:20:35]req_shift_open_date done [12:20:35]produce_requested_data done [12:20:35]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49204,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:20:35]process_action_free close_receipt [12:20:35]json_value_free [12:20:35]json_value_free done [12:20:35]process_json_proto returns [12:20:35]Send response to host [12:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49204,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:20:35]free response buf [12:20:35]execute_script done [12:20:35]execute_script returns [12:20:35]free content buf [12:20:35]Sock 9.Close socket [12:20:35]Sock 9.Thread stoped [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:19]accept exits with 7 [12:23:19]New connection [12:23:19]New thread 3066670436 created [12:23:19]Thread 3066813796 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.56.67:8080 [12:23:19]Content-Length: 677 [12:23:19]Content-Type: application/json [12:23:19] [12:23:19]POST finish read [12:23:19]Found Content-Length = 677 [12:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:19]execute_script... [12:23:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12: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=close_receipt [12:23:19]process_action close_receipt [12:23:19]cmd_close_receipt [12:23:19]MH_GetDate [12:23:19]Write to MH i2c: F0 00 00 13 75 77 [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: F0 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: F0 09 00 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: F0 09 00 13 75 00 4A EA B8 65 26 5D 9E 65 57 [12:23:19]GetLastDocTimeStamp 1706617249 [12:23:19]current date 1706617418 [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 14 75 80 13 01 00 00 00 00 00 06 [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 14 75 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2E [12:23:19]RAPDU: 09 00 01 C3 3C B8 65 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]opened in 1706572995 [12:23:19]opened+sec_in_day 1706659395 [12:23:19]quantity*price = 25024 [12:23:19]sum+1 = 25026 [12:23:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 81 30.01.2024 12:23 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49205 ФПД: 73196974249641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T122338&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49205&fm=73196974249641&tin=02508201610067®Number=0000000000092723&sum=25000 [12:23:20]StoreToDocumentArchive [12:23:20]shift 246 fd 49205 [12:23:20]save to /storage/0246/doc_00049205 [12:23:20]save last doc name /storage/0246/doc_00049205 to /storage/kkm_last_doc_name [12:23:20]save OK [12:23:20]Clear old archive folders... [12:23:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:20]tlvbuf is B6EB8950 [12:23:20]SAM_PROTO_ClearQueue [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 09 00 00 [12:23:20]Write to MH i2c: E2 08 00 21 75 80 09 00 00 00 00 00 00 08 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 21 75 00 90 00 0A [12:23:20]RAPDU: 90 00 [12:23:20]wFMCommunicate OK [12:23:20]SAM_PROTO_ClearQueue done [12:23:20]KKMCreateOFDPacket [12:23:20]OFDProtocolAddRootSTLVToBuf [12:23:20]FM_MakeSignedData [12:23:20]FM_MakeSignedData [12:23:20]SAM_PROTO_SignData [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 0D 01 02 [12:23:20]Write to MH i2c: E2 08 00 22 75 80 0D 01 02 00 00 00 00 10 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 03 00 22 75 00 90 00 0B [12:23:20]RAPDU: 90 00 [12:23:20]wFMCommunicate OK [12:23:20]wFMCommunicate request_size=255 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 4A EA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 35 C0 00 00 35 04 06 00 42 [12:23:20]Write to MH i2c: E2 02 01 23 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 4A EA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 35 C0 00 00 35 04 06 00 42 00 00 48 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 23 75 00 90 00 0C [12:23:21]RAPDU: 90 00 [12:23:21]wFMCommunicate OK [12:23:21]wFMCommunicate request_size=10 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 0D 02 02 05 92 7F A6 16 A9 [12:23:21]Write to MH i2c: E2 0D 00 24 75 80 0D 02 02 05 00 92 7F A6 16 A9 00 00 93 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 24 75 00 90 00 0D [12:23:21]RAPDU: 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 0D 03 02 [12:23:21]Write to MH i2c: E2 08 00 25 75 80 0D 03 02 00 00 00 00 15 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 0B 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 0B 00 25 75 00 A1 E0 BC 1B 38 2E 07 51 90 00 2C [12:23:21]RAPDU: A1 E0 BC 1B 38 2E 07 51 90 00 [12:23:21]wFMCommunicate OK [12:23:21]SAM_PROTO_SignData done [12:23:21]FM_MakeSignedData done [12:23:21]CreateOFDProtocolMessage [12:23:21]wFMCommunicate request_size=4 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 11 00 00 [12:23:21]Write to MH i2c: E2 08 00 26 75 80 11 00 00 00 00 00 00 15 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 17 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 17 00 26 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 62 [12:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:23:21]wFMCommunicate OK [12:23:21]CreateOFDProtocolMessage done [12:23:21]OFDSenderStorePacket 49205 [12:23:21]StoreOFDPacket docnum=49205 [12:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 AB D0 07 01 4D CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 4A EA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 35 C0 00 00 35 04 06 00 42 92 7F A6 16 A9 A1 E0 BC 1B 38 2E 07 51 [12:23:21]CheckFolder [12:23:21]dirname=/storage/ofd_packets [12:23:21]CheckFolder done [12:23:21]ProducePacketName [12:23:21]name=ofd_packets/00049205 [12:23:21]NVStorageSaveData ofd_packets/00049205 [12:23:21]File name is /storage/ofd_packets/00049205 [12:23:21]Write 301 bytes [12:23:21]NVStorageSaveData done [12:23:21]OFDSenderStorePacket done [12:23:21]KKMCreateOFDPacket done [12:23:21]NVStorageSaveData kkm_last_timestamp [12:23:21]File name is /storage/kkm_last_timestamp [12:23:21]Write 4 bytes [12:23:21]NVStorageSaveData done [12:23:21]ExternCall_PrintAddStr [12:23:21]wPrintStart [12:23:21]Write to MH i2c: 01 00 00 27 75 9C [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 07 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 07 00 27 75 00 00 00 00 00 FF 0F B1 [12:23:21]RasterBufferAndPrint [12:23:21]line Счет N : (1)216307 [12:23:21]line ИНН: 02508201610067 [12:23:21]line Контрольно-Кассовый Чек [12:23:21]line ПРОДАЖА [12:23:21]line ТРК (МРК, ГНК) : 22 [12:23:21]line Товар: 2710124130 [12:23:21]line Аи-92-К-5 [12:23:21]line 4.150 * 60.30 [12:23:21]line = 250.25 [12:23:21]line НДС 12% НСП 1% [12:23:21]line > о реализуемом товаре [12:23:21]line ОКРУГЛЕНИЕ: -0.25 [12:23:21]line ИТОГО: 250.00 [12:23:21]line Внесено: 250.00 [12:23:21]line СДАЧА: 0.00 [12:23:21]line НСП 1% : 2.21 [12:23:21]line НДС 12% : 26.57 [12:23:21]line Наличными: 250.00 [12:23:21]line Безнал.: 0.00 [12:23:21]line Место: АЗС № 102 "Партнер Нефть" [12:23:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:23:21]line СНО: Общий режим [12:23:21]line Чек 81 30.01.2024 12:23 [12:23:21]line Смена: 246 ФФД: 1.0 [12:23:21]line ЗНМ: 0300000040 [12:23:21]line РНМ: 0000000000092723 [12:23:21]line Версия ККМ: 001 [12:23:21]line ФМ: 0000000000875060 [12:23:21]line ФД: 49205 [12:23:21]line ФПД: 73196974249641 [12:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T122338&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49205&fm=73196974249641&tin=02508201610067®Number=0000000000092723&sum=25000 [12:23:21]OFD Sender: Processing packet 49205 [packets to send 12, broken 11] [12:23:21]ProducePacketName [12:23:21]name=ofd_packets/00049205 [12:23:21]OFD Sender: To server: pG, [12:23:21]CommunicateWithHost lk.salyk.kg:30040 [12:23:21]ConnectInit lk.salyk.kg [12:23:21]written 0, free lines is 4095 [12:23:21]Connected sock=10 [12:23: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 36 30 0F 01 00 00 AB D0 07 01 4D CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 4A EA B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 35 C0 00 00 35 04 06 00 42 92 7F A6 16 A9 A1 E0 BC 1B 38 2E 07 51 [12: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 36 30 4F 00 00 00 1F 26 47 00 4C BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 35 C0 00 00 F4 03 04 00 3F 96 B8 65 B6 04 01 00 00 E9 A5 94 FC 20 AF 0D 70 [12:23:21]CommunicateWithHost err = 0 [12:23:21]CheckOFDResponse [12:23:21]1017 (14) - 77093643461234 [12:23:21]1041 (16) - 0000000000875060 [12:23:21]1040 (4) - 49205 [12:23:21]1012 (4) - 30.01.2024 06:25 [12:23:21]1206 (1) - 0 [12:23:21]OFD Sender: Remove packet 49205 [12:23:21]ProducePacketName [12:23:21]name=ofd_packets/00049205 [12:23:21]NVStorageDeleteData [12:23:21]Write to MH i2c: 01 00 00 52 75 C7 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 07 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 07 00 52 75 00 00 00 00 00 E8 0C C2 [12:23:21]RasterBufferAndPrint [12:23:21]line [12:23:21]line [12:23:21]line [12:23:21]line [12:23:21]line [12:23:21]written 0, free lines is 3310 [12:23:21]MH_Cut [12:23:21]Write to MH i2c: D1 01 00 59 75 01 A0 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: D1 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: D1 01 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: D1 01 00 59 75 00 9F [12:23:21]Write to MH i2c: 01 00 00 5A 75 CF [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:22]OFD Sender: No OFD packet to send [12:23:22]*** Cut start [12:23:22]*** Partial cut [12:23:22]*** CUTSNS_PIN = 1 [12:23:22]*** CUTSNS_PIN = 0 [12:23:22]*** Brake cut motor [12:23:23]Read from MH i2c: 01 [12:23:23]MH_I2C_Read... [12:23:23]*** Stop cut motor [12:23:23]*** Cut end [12:23:23]Read from MH i2c: 01 07 00 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: 01 07 00 5A 75 00 00 00 00 00 FF 0F E4 [12:23:23]process_action close_receipt done [12:23:23]requested_data is exist [12:23:23]produce_requested_data [12:23:23]requested_item fm.sn is exist - process it [12:23:23]wFMCommunicate request_size=4 [12:23:23]MH_SAM_APDU [12:23:23]CAPDU: 80 11 00 00 [12:23:23]Write to MH i2c: E2 08 00 5B 75 80 11 00 00 00 00 00 00 4A [12:23:23]Write i2c OK [12:23:23]MH_I2C_Read... [12:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:23]Read from MH i2c: E2 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: E2 17 00 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: E2 17 00 5B 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 97 [12:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:23:23]wFMCommunicate OK [12:23:23]requested_item fd.num is exist - process it [12:23:23]SAM_PROTO_GetFieldsCounters [12:23:23]wFMCommunicate request_size=4 [12:23:23]MH_SAM_APDU [12:23:23]CAPDU: 80 13 00 00 [12:23:23]Write to MH i2c: E2 08 00 5C 75 80 13 00 00 00 00 00 00 4D [12:23:23]Write i2c OK [12:23:23]MH_I2C_Read... [12:23:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:23]Read from MH i2c: E2 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: E2 62 00 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: E2 62 00 5C 75 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 35 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [12:23: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 35 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:23]wFMCommunicate OK [12:23:23]SAM_PROTO_GetFieldsCounters done [12:23:23]requested_item shift.num is exist - process it [12:23:23]requested_item shift.opened is exist - process it [12:23:23]req_shift_opened [12:23:23]FM_GetShiftState [12:23:23]SAM_PROTO_GetShiftState [12:23:23]wFMCommunicate request_size=4 [12:23:23]MH_SAM_APDU [12:23:23]CAPDU: 80 13 01 00 [12:23:23]Write to MH i2c: E2 08 00 5D 75 80 13 01 00 00 00 00 00 4F [12:23:23]Write i2c OK [12:23:23]MH_I2C_Read... [12:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:23]Read from MH i2c: E2 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: E2 0E 00 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: E2 0E 00 5D 75 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 77 [12:23:23]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:23:23]wFMCommunicate OK [12:23:23]SAM_PROTO_GetShiftState done [12:23:23]FM_GetShiftState done [12:23:23]req_shift_opened done [12:23:23]requested_item shift.open_date is exist - process it [12:23:23]req_shift_open_date [12:23:23]req_shift_open_date done [12:23:23]produce_requested_data done [12:23:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49205,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:23:23]process_action_free close_receipt [12:23:23]json_value_free [12:23:23]json_value_free done [12:23:23]process_json_proto returns [12:23:23]Send response to host [12:23:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49205,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:23:23]free response buf [12:23:23]execute_script done [12:23:23]execute_script returns [12:23:23]free content buf [12:23:23]Sock 7.Close socket [12:23:23]Sock 7.Thread stoped [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:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:28]accept exits with 9 [12:27:28]New connection [12:27:28]New thread 3066813796 created [12:27:28]Thread 3066670436 joined [12:27:28]Waiting for new connection... [12:27:28] Sock 9.Parse request [12:27:28]Sock 9.Check first char [12:27:28]Sock 9.First char is OK [12:27:28]request: POST /json_proto HTTP/1.0 [12:27:28]Method: POST [12:27:28]URL: /json_proto [12:27:28]Method is POST - this is cgi request [12:27:28]url: /json_proto [12:27:28]query_string will be loaded in cgi processing [12:27:28]execute_cgi json_proto POST (null) [12:27:28]execute_cgi path=json_proto method=POST [12:27:28]POST find Content-Length [12:27:28]Host: 172.17.56.67:8080 [12:27:28]Content-Length: 682 [12:27:28]Content-Type: application/json [12:27:28] [12:27:28]POST finish read [12:27:28]Found Content-Length = 682 [12:27:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 33.170, "sum" : 2000.15, "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" ] } } [12:27:28]execute_script... [12:27:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 33.170, "sum" : 2000.15, "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" ] } } [12:27:28]POST & json_proto [12:27:28]process_json_proto [12:27:28]json parsed OK: [12:27:28]protocol is kg_v1.0 [12:27:28]action value=close_receipt [12:27:28]process_action close_receipt [12:27:28]cmd_close_receipt [12:27:28]MH_GetDate [12:27:28]Write to MH i2c: F0 00 00 5E 75 C2 [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: F0 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: F0 09 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: F0 09 00 5E 75 00 43 EB B8 65 26 5D 9E 65 9C [12:27:28]GetLastDocTimeStamp 1706617418 [12:27:28]current date 1706617667 [12:27:28]FM_GetShiftState [12:27:28]SAM_PROTO_GetShiftState [12:27:28]wFMCommunicate request_size=4 [12:27:28]MH_SAM_APDU [12:27:28]CAPDU: 80 13 01 00 [12:27:28]Write to MH i2c: E2 08 00 5F 75 80 13 01 00 00 00 00 00 51 [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:28]Read from MH i2c: E2 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 0E 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 0E 00 5F 75 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 79 [12:27:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:27:28]wFMCommunicate OK [12:27:28]SAM_PROTO_GetShiftState done [12:27:28]FM_GetShiftState done [12:27:28]opened in 1706572995 [12:27:28]opened+sec_in_day 1706659395 [12:27:28]quantity*price = 200015 [12:27:28]sum+1 = 200016 [12:27:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 82 30.01.2024 12:27 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49206 ФПД: 210648475123986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T122747&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49206&fm=210648475123986&tin=02508201610067®Number=0000000000092723&sum=200000 [12:27:29]StoreToDocumentArchive [12:27:29]shift 246 fd 49206 [12:27:29]save to /storage/0246/doc_00049206 [12:27:29]save last doc name /storage/0246/doc_00049206 to /storage/kkm_last_doc_name [12:27:29]save OK [12:27:29]Clear old archive folders... [12:27:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:29]tlvbuf is 013CC650 [12:27:29]SAM_PROTO_ClearQueue [12:27:29]wFMCommunicate request_size=4 [12:27:29]MH_SAM_APDU [12:27:29]CAPDU: 80 09 00 00 [12:27:29]Write to MH i2c: E2 08 00 6C 75 80 09 00 00 00 00 00 00 53 [12:27:29]Write i2c OK [12:27:29]MH_I2C_Read... [12:27:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:29]Read from MH i2c: E2 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: E2 03 00 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: E2 03 00 6C 75 00 90 00 55 [12:27:29]RAPDU: 90 00 [12:27:29]wFMCommunicate OK [12:27:29]SAM_PROTO_ClearQueue done [12:27:29]KKMCreateOFDPacket [12:27:29]OFDProtocolAddRootSTLVToBuf [12:27:29]FM_MakeSignedData [12:27:29]FM_MakeSignedData [12:27:29]SAM_PROTO_SignData [12:27:29]wFMCommunicate request_size=4 [12:27:29]MH_SAM_APDU [12:27:29]CAPDU: 80 0D 01 02 [12:27:29]Write to MH i2c: E2 08 00 6D 75 80 0D 01 02 00 00 00 00 5B [12:27:29]Write i2c OK [12:27:29]MH_I2C_Read... [12:27:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:29]Read from MH i2c: E2 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: E2 03 00 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: E2 03 00 6D 75 00 90 00 56 [12:27:29]RAPDU: 90 00 [12:27:29]wFMCommunicate OK [12:27:29]wFMCommunicate request_size=255 [12:27:29]MH_SAM_APDU [12:27:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 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 F8 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 52 00 00 00 F4 03 04 00 43 EB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 36 C0 00 00 35 04 06 00 BF [12:27:29]Write to MH i2c: E2 02 01 6E 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 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 F8 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 52 00 00 00 F4 03 04 00 43 EB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 36 C0 00 00 35 04 06 00 BF 00 00 96 [12:27:29]Write i2c OK [12:27:29]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 6E 75 00 90 00 57 [12:27:30]RAPDU: 90 00 [12:27:30]wFMCommunicate OK [12:27:30]wFMCommunicate request_size=10 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 0D 02 02 05 95 6B 88 41 12 [12:27:30]Write to MH i2c: E2 0D 00 6F 75 80 0D 02 02 05 00 95 6B 88 41 12 00 00 43 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 03 00 6F 75 00 90 00 58 [12:27:30]RAPDU: 90 00 [12:27:30]wFMCommunicate OK [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 0D 03 02 [12:27:30]Write to MH i2c: E2 08 00 70 75 80 0D 03 02 00 00 00 00 60 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0B 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0B 00 70 75 00 64 E4 3A 14 8B 5F 28 98 90 00 A1 [12:27:30]RAPDU: 64 E4 3A 14 8B 5F 28 98 90 00 [12:27:30]wFMCommunicate OK [12:27:30]SAM_PROTO_SignData done [12:27:30]FM_MakeSignedData done [12:27:30]CreateOFDProtocolMessage [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 11 00 00 [12:27:30]Write to MH i2c: E2 08 00 71 75 80 11 00 00 00 00 00 00 60 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 17 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 17 00 71 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AD [12:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:27:30]wFMCommunicate OK [12:27:30]CreateOFDProtocolMessage done [12:27:30]OFDSenderStorePacket 49206 [12:27:30]StoreOFDPacket docnum=49206 [12:27:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D9 6D 07 01 60 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 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 F8 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 52 00 00 00 F4 03 04 00 43 EB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 36 C0 00 00 35 04 06 00 BF 95 6B 88 41 12 64 E4 3A 14 8B 5F 28 98 [12:27:30]CheckFolder [12:27:30]dirname=/storage/ofd_packets [12:27:30]CheckFolder done [12:27:30]ProducePacketName [12:27:30]name=ofd_packets/00049206 [12:27:30]NVStorageSaveData ofd_packets/00049206 [12:27:30]File name is /storage/ofd_packets/00049206 [12:27:30]Write 301 bytes [12:27:30]NVStorageSaveData done [12:27:30]OFDSenderStorePacket done [12:27:30]KKMCreateOFDPacket done [12:27:30]NVStorageSaveData kkm_last_timestamp [12:27:30]File name is /storage/kkm_last_timestamp [12:27:30]Write 4 bytes [12:27:30]NVStorageSaveData done [12:27:30]ExternCall_PrintAddStr [12:27:30]wPrintStart [12:27:30]Write to MH i2c: 01 00 00 72 75 E7 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: 01 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: 01 07 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: 01 07 00 72 75 00 00 00 00 00 FF 0F FC [12:27:30]RasterBufferAndPrint [12:27:30]line Счет N : (1)216308 [12:27:30]line ИНН: 02508201610067 [12:27:30]line Контрольно-Кассовый Чек [12:27:30]line ПРОДАЖА [12:27:30]line ТРК (МРК, ГНК) : 12 [12:27:30]line Товар: 2710124130 [12:27:30]line Аи-92-К-5 [12:27:30]line 33.170 * 60.30 [12:27:30]line = 2000.15 [12:27:30]line НДС 12% НСП 1% [12:27:30]line > о реализуемом товаре [12:27:30]line ОКРУГЛЕНИЕ: -0.15 [12:27:30]line ИТОГО: 2000.00 [12:27:30]line Внесено: 2000.00 [12:27:30]line СДАЧА: 0.00 [12:27:30]line НСП 1% : 17.70 [12:27:30]line НДС 12% : 212.40 [12:27:30]line Наличными: 2000.00 [12:27:30]line Безнал.: 0.00 [12:27:30]line Место: АЗС № 102 "Партнер Нефть" [12:27:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:27:30]line СНО: Общий режим [12:27:30]line Чек 82 30.01.2024 12:27 [12:27:30]line Смена: 246 ФФД: 1.0 [12:27:30]line ЗНМ: 0300000040 [12:27:30]line РНМ: 0000000000092723 [12:27:30]line Версия ККМ: 001 [12:27:30]line ФМ: 0000000000875060 [12:27:30]line ФД: 49206 [12:27:30]line ФПД: 210648475123986 [12:27:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T122747&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49206&fm=210648475123986&tin=02508201610067®Number=0000000000092723&sum=200000 [12:27:30]OFD Sender: Processing packet 49206 [packets to send 12, broken 11] [12:27:30]ProducePacketName [12:27:30]name=ofd_packets/00049206 [12:27:30]OFD Sender: To server: pG, [12:27:30]CommunicateWithHost lk.salyk.kg:30040 [12:27:30]ConnectInit lk.salyk.kg [12:27:30]written 0, free lines is 4095 [12:27:30]Connected sock=10 [12:27: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 36 30 0F 01 00 00 D9 6D 07 01 60 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 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 F8 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 52 00 00 00 F4 03 04 00 43 EB B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 36 C0 00 00 35 04 06 00 BF 95 6B 88 41 12 64 E4 3A 14 8B 5F 28 98 [12:27: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 36 30 4F 00 00 00 E0 15 47 00 C4 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 36 30 10 04 04 00 36 C0 00 00 F4 03 04 00 39 97 B8 65 B6 04 01 00 00 4A 37 82 2A FC 49 D9 F8 [12:27:31]CommunicateWithHost err = 0 [12:27:31]CheckOFDResponse [12:27:31]1017 (14) - 77093643461234 [12:27:31]1041 (16) - 0000000000875060 [12:27:31]1040 (4) - 49206 [12:27:31]1012 (4) - 30.01.2024 06:29 [12:27:31]1206 (1) - 0 [12:27:31]OFD Sender: Remove packet 49206 [12:27:31]ProducePacketName [12:27:31]name=ofd_packets/00049206 [12:27:31]NVStorageDeleteData [12:27:31]Write to MH i2c: 01 00 00 9D 75 12 [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 07 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: 01 07 00 9D 75 00 00 00 00 00 ED 0C 12 [12:27:31]RasterBufferAndPrint [12:27:31]line [12:27:31]line [12:27:31]line [12:27:31]line [12:27:31]line [12:27:31]written 0, free lines is 3315 [12:27:31]MH_Cut [12:27:31]Write to MH i2c: D1 01 00 A4 75 01 EB [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: D1 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: D1 01 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: D1 01 00 A4 75 00 EA [12:27:31]Write to MH i2c: 01 00 00 A5 75 1A [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]OFD Sender: No OFD packet to send [12:27:31]*** Cut start [12:27:31]*** Partial cut [12:27:31]*** CUTSNS_PIN = 1 [12:27:31]*** CUTSNS_PIN = 0 [12:27:32]*** Brake cut motor [12:27:32]Read from MH i2c: 01 [12:27:32]MH_I2C_Read... [12:27:32]*** Stop cut motor [12:27:32]*** Cut end [12:27:32]Read from MH i2c: 01 07 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 A5 75 00 00 00 00 00 FF 0F 2F [12:27:32]process_action close_receipt done [12:27:32]requested_data is exist [12:27:32]produce_requested_data [12:27:32]requested_item fm.sn is exist - process it [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 11 00 00 [12:27:32]Write to MH i2c: E2 08 00 A6 75 80 11 00 00 00 00 00 00 95 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 17 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 17 00 A6 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E2 [12:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:27:32]wFMCommunicate OK [12:27:32]requested_item fd.num is exist - process it [12:27:32]SAM_PROTO_GetFieldsCounters [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 13 00 00 [12:27:32]Write to MH i2c: E2 08 00 A7 75 80 13 00 00 00 00 00 00 98 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 62 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 62 00 A7 75 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 36 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [12:27: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 36 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:32]wFMCommunicate OK [12:27:32]SAM_PROTO_GetFieldsCounters done [12:27:32]requested_item shift.num is exist - process it [12:27:32]requested_item shift.opened is exist - process it [12:27:32]req_shift_opened [12:27:32]FM_GetShiftState [12:27:32]SAM_PROTO_GetShiftState [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 13 01 00 [12:27:32]Write to MH i2c: E2 08 00 A8 75 80 13 01 00 00 00 00 00 9A [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 0E 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 0E 00 A8 75 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C2 [12:27:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:27:32]wFMCommunicate OK [12:27:32]SAM_PROTO_GetShiftState done [12:27:32]FM_GetShiftState done [12:27:32]req_shift_opened done [12:27:32]requested_item shift.open_date is exist - process it [12:27:32]req_shift_open_date [12:27:32]req_shift_open_date done [12:27:32]produce_requested_data done [12:27:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49206,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:27:32]process_action_free close_receipt [12:27:32]json_value_free [12:27:32]json_value_free done [12:27:32]process_json_proto returns [12:27:32]Send response to host [12:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49206,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:27:32]free response buf [12:27:32]execute_script done [12:27:32]execute_script returns [12:27:32]free content buf [12:27:32]Sock 9.Close socket [12:27:32]Sock 9.Thread stoped [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:20]accept exits with 7 [12:31:20]New connection [12:31:20]New thread 3066670436 created [12:31:20]Thread 3066813796 joined [12:31:20]Waiting for new connection... [12:31:20] Sock 7.Parse request [12:31:20]Sock 7.Check first char [12:31:20]Sock 7.First char is OK [12:31:20]request: POST /json_proto HTTP/1.0 [12:31:20]Method: POST [12:31:20]URL: /json_proto [12:31:20]Method is POST - this is cgi request [12:31:20]url: /json_proto [12:31:20]query_string will be loaded in cgi processing [12:31:20]execute_cgi json_proto POST (null) [12:31:20]execute_cgi path=json_proto method=POST [12:31:20]POST find Content-Length [12:31:20]Host: 172.17.56.67:8080 [12:31:20]Content-Length: 682 [12:31:20]Content-Type: application/json [12:31:20] [12:31:20]POST finish read [12:31:20]Found Content-Length = 682 [12:31:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:20]execute_script... [12:31:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:20]POST & json_proto [12:31:20]process_json_proto [12:31:20]json parsed OK: [12:31:20]protocol is kg_v1.0 [12:31:20]action value=close_receipt [12:31:20]process_action close_receipt [12:31:20]cmd_close_receipt [12:31:20]MH_GetDate [12:31:20]Write to MH i2c: F0 00 00 A9 75 0D [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 09 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: F0 09 00 A9 75 00 2B EC B8 65 26 5D 9E 65 D0 [12:31:20]GetLastDocTimeStamp 1706617667 [12:31:20]current date 1706617899 [12:31:20]FM_GetShiftState [12:31:20]SAM_PROTO_GetShiftState [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 13 01 00 [12:31:20]Write to MH i2c: E2 08 00 AA 75 80 13 01 00 00 00 00 00 9C [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0E 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0E 00 AA 75 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C4 [12:31:20]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:31:20]wFMCommunicate OK [12:31:20]SAM_PROTO_GetShiftState done [12:31:20]FM_GetShiftState done [12:31:20]opened in 1706572995 [12:31:20]opened+sec_in_day 1706659395 [12:31:20]quantity*price = 100037 [12:31:20]sum+1 = 100039 [12:31:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 83 30.01.2024 12:31 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49207 ФПД: 104946430098348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T123139&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49207&fm=104946430098348&tin=02508201610067®Number=0000000000092723&sum=100000 [12:31:21]StoreToDocumentArchive [12:31:21]shift 246 fd 49207 [12:31:21]save to /storage/0246/doc_00049207 [12:31:21]save last doc name /storage/0246/doc_00049207 to /storage/kkm_last_doc_name [12:31:21]save OK [12:31:21]Clear old archive folders... [12:31:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:21]tlvbuf is 011EA0F0 [12:31:21]SAM_PROTO_ClearQueue [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 09 00 00 [12:31:21]Write to MH i2c: E2 08 00 B7 75 80 09 00 00 00 00 00 00 9E [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 B7 75 00 90 00 A0 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]SAM_PROTO_ClearQueue done [12:31:21]KKMCreateOFDPacket [12:31:21]OFDProtocolAddRootSTLVToBuf [12:31:21]FM_MakeSignedData [12:31:21]FM_MakeSignedData [12:31:21]SAM_PROTO_SignData [12:31:21]wFMCommunicate request_size=4 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 01 02 [12:31:21]Write to MH i2c: E2 08 00 B8 75 80 0D 01 02 00 00 00 00 A6 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]OFD Sender: No OFD packet to send [12:31:21]Read from MH i2c: E2 [12:31:21]MH_I2C_Read... [12:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:21]Read from MH i2c: E2 03 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: E2 03 00 B8 75 00 90 00 A1 [12:31:21]RAPDU: 90 00 [12:31:21]wFMCommunicate OK [12:31:21]wFMCommunicate request_size=255 [12:31:21]MH_SAM_APDU [12:31:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 2B EC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 37 C0 00 00 35 04 06 00 5F [12:31:21]Write to MH i2c: E2 02 01 B9 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 2B EC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 37 C0 00 00 35 04 06 00 5F 00 00 E9 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 03 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 03 00 B9 75 00 90 00 A2 [12:31:22]RAPDU: 90 00 [12:31:22]wFMCommunicate OK [12:31:22]wFMCommunicate request_size=10 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 0D 02 02 05 72 BE AF BB AC [12:31:22]Write to MH i2c: E2 0D 00 BA 75 80 0D 02 02 05 00 72 BE AF BB AC 00 00 F9 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 03 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 03 00 BA 75 00 90 00 A3 [12:31:22]RAPDU: 90 00 [12:31:22]wFMCommunicate OK [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 0D 03 02 [12:31:22]Write to MH i2c: E2 08 00 BB 75 80 0D 03 02 00 00 00 00 AB [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0B 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0B 00 BB 75 00 47 1F 62 1B 76 BB 17 F8 90 00 CF [12:31:22]RAPDU: 47 1F 62 1B 76 BB 17 F8 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_SignData done [12:31:22]FM_MakeSignedData done [12:31:22]CreateOFDProtocolMessage [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 11 00 00 [12:31:22]Write to MH i2c: E2 08 00 BC 75 80 11 00 00 00 00 00 00 AB [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 BC 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F8 [12:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:31:22]wFMCommunicate OK [12:31:22]CreateOFDProtocolMessage done [12:31:22]OFDSenderStorePacket 49207 [12:31:22]StoreOFDPacket docnum=49207 [12:31:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 82 35 07 01 F8 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 2B EC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 37 C0 00 00 35 04 06 00 5F 72 BE AF BB AC 47 1F 62 1B 76 BB 17 F8 [12:31:22]CheckFolder [12:31:22]dirname=/storage/ofd_packets [12:31:22]CheckFolder done [12:31:22]ProducePacketName [12:31:22]name=ofd_packets/00049207 [12:31:22]NVStorageSaveData ofd_packets/00049207 [12:31:22]File name is /storage/ofd_packets/00049207 [12:31:22]Write 301 bytes [12:31:22]NVStorageSaveData done [12:31:22]OFDSenderStorePacket done [12:31:22]KKMCreateOFDPacket done [12:31:22]NVStorageSaveData kkm_last_timestamp [12:31:22]File name is /storage/kkm_last_timestamp [12:31:22]Write 4 bytes [12:31:22]NVStorageSaveData done [12:31:22]ExternCall_PrintAddStr [12:31:22]wPrintStart [12:31:22]Write to MH i2c: 01 00 00 BD 75 32 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 BD 75 00 00 00 00 00 FF 0F 47 [12:31:22]RasterBufferAndPrint [12:31:22]line Счет N : (1)216309 [12:31:22]line ИНН: 02508201610067 [12:31:22]line Контрольно-Кассовый Чек [12:31:22]line ПРОДАЖА [12:31:22]line ТРК (МРК, ГНК) : 22 [12:31:22]line Товар: 2710124130 [12:31:22]line Аи-92-К-5 [12:31:22]line 16.590 * 60.30 [12:31:22]line = 1000.38 [12:31:22]line НДС 12% НСП 1% [12:31:22]line > о реализуемом товаре [12:31:22]line ОКРУГЛЕНИЕ: -0.38 [12:31:22]line ИТОГО: 1000.00 [12:31:22]line Внесено: 1000.00 [12:31:22]line СДАЧА: 0.00 [12:31:22]line НСП 1% : 8.85 [12:31:22]line НДС 12% : 106.23 [12:31:22]line Наличными: 1000.00 [12:31:22]line Безнал.: 0.00 [12:31:22]line Место: АЗС № 102 "Партнер Нефть" [12:31:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:31:22]line СНО: Общий режим [12:31:22]line Чек 83 30.01.2024 12:31 [12:31:22]line Смена: 246 ФФД: 1.0 [12:31:22]line ЗНМ: 0300000040 [12:31:22]line РНМ: 0000000000092723 [12:31:22]line Версия ККМ: 001 [12:31:22]line ФМ: 0000000000875060 [12:31:22]line ФД: 49207 [12:31:22]line ФПД: 104946430098348 [12:31:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T123139&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49207&fm=104946430098348&tin=02508201610067®Number=0000000000092723&sum=100000 [12:31:22]OFD Sender: Processing packet 49207 [packets to send 12, broken 11] [12:31:22]ProducePacketName [12:31:22]name=ofd_packets/00049207 [12:31:22]OFD Sender: To server: pG, [12:31:22]CommunicateWithHost lk.salyk.kg:30040 [12:31:22]ConnectInit lk.salyk.kg [12:31:22]written 0, free lines is 4095 [12:31:22]Connected sock=10 [12:31: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 36 30 0F 01 00 00 82 35 07 01 F8 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 2B EC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 37 C0 00 00 35 04 06 00 5F 72 BE AF BB AC 47 1F 62 1B 76 BB 17 F8 [12:31: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 36 30 4F 00 00 00 EB FA 47 00 4A 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 36 30 10 04 04 00 37 C0 00 00 F4 03 04 00 20 98 B8 65 B6 04 01 00 00 4E 37 54 C0 C8 41 67 41 [12:31:22]CommunicateWithHost err = 0 [12:31:22]CheckOFDResponse [12:31:22]1017 (14) - 77093643461234 [12:31:22]1041 (16) - 0000000000875060 [12:31:22]1040 (4) - 49207 [12:31:22]1012 (4) - 30.01.2024 06:33 [12:31:22]1206 (1) - 0 [12:31:22]OFD Sender: Remove packet 49207 [12:31:22]ProducePacketName [12:31:22]name=ofd_packets/00049207 [12:31:22]NVStorageDeleteData [12:31:23]Write to MH i2c: 01 00 00 E8 75 5D [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: 01 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: 01 07 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: 01 07 00 E8 75 00 00 00 00 00 F6 0C 66 [12:31:23]RasterBufferAndPrint [12:31:23]line [12:31:23]line [12:31:23]line [12:31:23]line [12:31:23]line [12:31:23]written 0, free lines is 3324 [12:31:23]MH_Cut [12:31:23]Write to MH i2c: D1 01 00 EF 75 01 36 [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: D1 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: D1 01 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: D1 01 00 EF 75 00 35 [12:31:23]Write to MH i2c: 01 00 00 F0 75 65 [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]OFD Sender: No OFD packet to send [12:31:23]*** Cut start [12:31:23]*** Partial cut [12:31:23]*** CUTSNS_PIN = 1 [12:31:23]*** CUTSNS_PIN = 0 [12:31:23]*** Brake cut motor [12:31:24]Read from MH i2c: 01 [12:31:24]MH_I2C_Read... [12:31:24]*** Stop cut motor [12:31:24]*** Cut end [12:31:24]Read from MH i2c: 01 07 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 F0 75 00 00 00 00 00 FF 0F 7A [12:31:24]process_action close_receipt done [12:31:24]requested_data is exist [12:31:24]produce_requested_data [12:31:24]requested_item fm.sn is exist - process it [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 11 00 00 [12:31:24]Write to MH i2c: E2 08 00 F1 75 80 11 00 00 00 00 00 00 E0 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 F1 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2D [12:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:31:24]wFMCommunicate OK [12:31:24]requested_item fd.num is exist - process it [12:31:24]SAM_PROTO_GetFieldsCounters [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 13 00 00 [12:31:24]Write to MH i2c: E2 08 00 F2 75 80 13 00 00 00 00 00 00 E3 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 62 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 62 00 F2 75 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 37 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12:31: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 37 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:24]wFMCommunicate OK [12:31:24]SAM_PROTO_GetFieldsCounters done [12:31:24]requested_item shift.num is exist - process it [12:31:24]requested_item shift.opened is exist - process it [12:31:24]req_shift_opened [12:31:24]FM_GetShiftState [12:31:24]SAM_PROTO_GetShiftState [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 13 01 00 [12:31:24]Write to MH i2c: E2 08 00 F3 75 80 13 01 00 00 00 00 00 E5 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 0E 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 0E 00 F3 75 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 0D [12:31:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:31:24]wFMCommunicate OK [12:31:24]SAM_PROTO_GetShiftState done [12:31:24]FM_GetShiftState done [12:31:24]req_shift_opened done [12:31:24]requested_item shift.open_date is exist - process it [12:31:24]req_shift_open_date [12:31:24]req_shift_open_date done [12:31:24]produce_requested_data done [12:31:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49207,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:31:24]process_action_free close_receipt [12:31:24]json_value_free [12:31:24]json_value_free done [12:31:24]process_json_proto returns [12:31:24]Send response to host [12:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49207,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:31:24]free response buf [12:31:24]execute_script done [12:31:24]execute_script returns [12:31:24]free content buf [12:31:24]Sock 7.Close socket [12:31:24]Sock 7.Thread stoped [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:37]accept exits with 9 [12:39:37]New connection [12:39:37]New thread 3066813796 created [12:39:37]Thread 3066670436 joined [12:39:37]Waiting for new connection... [12:39:37] Sock 9.Parse request [12:39:37]Sock 9.Check first char [12:39:37]Sock 9.First char is OK [12:39:37]request: POST /json_proto HTTP/1.0 [12:39:37]Method: POST [12:39:37]URL: /json_proto [12:39:37]Method is POST - this is cgi request [12:39:37]url: /json_proto [12:39:37]query_string will be loaded in cgi processing [12:39:37]execute_cgi json_proto POST (null) [12:39:37]execute_cgi path=json_proto method=POST [12:39:37]POST find Content-Length [12:39:37]Host: 172.17.56.67:8080 [12:39:37]Content-Length: 678 [12:39:37]Content-Type: application/json [12:39:37] [12:39:37]POST finish read [12:39:37]Found Content-Length = 678 [12:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 11.610, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:37]execute_script... [12:39: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)216310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 11.610, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:37]POST & json_proto [12:39:37]process_json_proto [12:39:37]json parsed OK: [12:39:37]protocol is kg_v1.0 [12:39:37]action value=close_receipt [12:39:37]process_action close_receipt [12:39:37]cmd_close_receipt [12:39:37]MH_GetDate [12:39:37]Write to MH i2c: F0 00 00 F4 75 58 [12:39:37]Write i2c OK [12:39:37]MH_I2C_Read... [12:39:37]Read from MH i2c: F0 [12:39:37]MH_I2C_Read... [12:39:37]Read from MH i2c: F0 09 00 [12:39:37]MH_I2C_Read... [12:39:37]Read from MH i2c: F0 09 00 F4 75 00 1C EE B8 65 26 5D 9E 65 0E [12:39:37]GetLastDocTimeStamp 1706617899 [12:39:37]current date 1706618396 [12:39:37]FM_GetShiftState [12:39:37]SAM_PROTO_GetShiftState [12:39:37]wFMCommunicate request_size=4 [12:39:37]MH_SAM_APDU [12:39:37]CAPDU: 80 13 01 00 [12:39:37]Write to MH i2c: E2 08 00 F5 75 80 13 01 00 00 00 00 00 E7 [12:39:37]Write i2c OK [12:39:37]MH_I2C_Read... [12:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:38]Read from MH i2c: E2 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 0E 00 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 0E 00 F5 75 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 0F [12:39:38]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:39:38]wFMCommunicate OK [12:39:38]SAM_PROTO_GetShiftState done [12:39:38]FM_GetShiftState done [12:39:38]opened in 1706572995 [12:39:38]opened+sec_in_day 1706659395 [12:39:38]quantity*price = 70008 [12:39:38]sum+1 = 70009 [12:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 84 30.01.2024 12:39 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49208 ФПД: 14749585790091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T123956&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49208&fm=14749585790091&tin=02508201610067®Number=0000000000092723&sum=70000 [12:39:39]StoreToDocumentArchive [12:39:39]shift 246 fd 49208 [12:39:39]save to /storage/0246/doc_00049208 [12:39:39]save last doc name /storage/0246/doc_00049208 to /storage/kkm_last_doc_name [12:39:39]save OK [12:39:39]Clear old archive folders... [12:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:39]tlvbuf is 013CCD50 [12:39:39]SAM_PROTO_ClearQueue [12:39:39]wFMCommunicate request_size=4 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 09 00 00 [12:39:39]Write to MH i2c: E2 08 00 02 76 80 09 00 00 00 00 00 00 EA [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 02 76 00 90 00 EC [12:39:39]RAPDU: 90 00 [12:39:39]wFMCommunicate OK [12:39:39]SAM_PROTO_ClearQueue done [12:39:39]KKMCreateOFDPacket [12:39:39]OFDProtocolAddRootSTLVToBuf [12:39:39]FM_MakeSignedData [12:39:39]FM_MakeSignedData [12:39:39]SAM_PROTO_SignData [12:39:39]wFMCommunicate request_size=4 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 0D 01 02 [12:39:39]Write to MH i2c: E2 08 00 03 76 80 0D 01 02 00 00 00 00 F2 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 03 76 00 90 00 ED [12:39:39]RAPDU: 90 00 [12:39:39]wFMCommunicate OK [12:39:39]wFMCommunicate request_size=255 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1C EE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 38 C0 00 00 35 04 06 00 0D [12:39:39]Write to MH i2c: E2 02 01 04 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1C EE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 38 C0 00 00 35 04 06 00 0D 00 00 B8 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 04 76 00 90 00 EE [12:39:39]RAPDU: 90 00 [12:39:39]wFMCommunicate OK [12:39:39]wFMCommunicate request_size=10 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 0D 02 02 05 6A 27 D2 54 8B [12:39:39]Write to MH i2c: E2 0D 00 05 76 80 0D 02 02 05 00 6A 27 D2 54 8B 00 00 41 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 05 76 00 90 00 EF [12:39:39]RAPDU: 90 00 [12:39:39]wFMCommunicate OK [12:39:39]wFMCommunicate request_size=4 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 0D 03 02 [12:39:39]Write to MH i2c: E2 08 00 06 76 80 0D 03 02 00 00 00 00 F7 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 0B 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 0B 00 06 76 00 0A 48 99 7C B0 90 21 18 90 00 D8 [12:39:39]RAPDU: 0A 48 99 7C B0 90 21 18 90 00 [12:39:39]wFMCommunicate OK [12:39:39]SAM_PROTO_SignData done [12:39:39]FM_MakeSignedData done [12:39:39]CreateOFDProtocolMessage [12:39:39]wFMCommunicate request_size=4 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 11 00 00 [12:39:39]Write to MH i2c: E2 08 00 07 76 80 11 00 00 00 00 00 00 F7 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 17 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 17 00 07 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 44 [12:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:39:39]wFMCommunicate OK [12:39:39]CreateOFDProtocolMessage done [12:39:39]OFDSenderStorePacket 49208 [12:39:39]StoreOFDPacket docnum=49208 [12:39:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 01 07 07 01 E7 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1C EE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 38 C0 00 00 35 04 06 00 0D 6A 27 D2 54 8B 0A 48 99 7C B0 90 21 18 [12:39:39]CheckFolder [12:39:39]dirname=/storage/ofd_packets [12:39:39]CheckFolder done [12:39:39]ProducePacketName [12:39:39]name=ofd_packets/00049208 [12:39:39]NVStorageSaveData ofd_packets/00049208 [12:39:39]File name is /storage/ofd_packets/00049208 [12:39:39]Write 301 bytes [12:39:39]NVStorageSaveData done [12:39:39]OFDSenderStorePacket done [12:39:39]KKMCreateOFDPacket done [12:39:39]NVStorageSaveData kkm_last_timestamp [12:39:39]File name is /storage/kkm_last_timestamp [12:39:39]Write 4 bytes [12:39:39]NVStorageSaveData done [12:39:39]ExternCall_PrintAddStr [12:39:39]wPrintStart [12:39:39]Write to MH i2c: 01 00 00 08 76 7E [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: 01 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: 01 07 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: 01 07 00 08 76 00 00 00 00 00 FF 0F 93 [12:39:39]RasterBufferAndPrint [12:39:39]line Счет N : (1)216310 [12:39:39]line ИНН: 02508201610067 [12:39:39]line Контрольно-Кассовый Чек [12:39:39]line ПРОДАЖА [12:39:39]line ТРК (МРК, ГНК) : 22 [12:39:39]line Товар: 2710124130 [12:39:39]line Аи-92-К-5 [12:39:39]line 11.610 * 60.30 [12:39:39]line = 700.08 [12:39:39]line НДС 12% НСП 1% [12:39:39]line > о реализуемом товаре [12:39:39]line ОКРУГЛЕНИЕ: -0.08 [12:39:39]line ИТОГО: 700.00 [12:39:39]line Внесено: 700.00 [12:39:39]line СДАЧА: 0.00 [12:39:39]line НСП 1% : 6.19 [12:39:39]line НДС 12% : 74.34 [12:39:39]line Наличными: 700.00 [12:39:39]line Безнал.: 0.00 [12:39:39]line Место: АЗС № 102 "Партнер Нефть" [12:39:39]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:39:39]line СНО: Общий режим [12:39:39]line Чек 84 30.01.2024 12:39 [12:39:39]line Смена: 246 ФФД: 1.0 [12:39:39]line ЗНМ: 0300000040 [12:39:39]line РНМ: 0000000000092723 [12:39:39]line Версия ККМ: 001 [12:39:39]line ФМ: 0000000000875060 [12:39:39]line ФД: 49208 [12:39:39]line ФПД: 14749585790091 [12:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T123956&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49208&fm=14749585790091&tin=02508201610067®Number=0000000000092723&sum=70000 [12:39:40]OFD Sender: Processing packet 49208 [packets to send 12, broken 11] [12:39:40]ProducePacketName [12:39:40]name=ofd_packets/00049208 [12:39:40]OFD Sender: To server: pG, [12:39:40]CommunicateWithHost lk.salyk.kg:30040 [12:39:40]ConnectInit lk.salyk.kg [12:39:40]written 0, free lines is 4095 [12:39:40]Connected sock=11 [12:39: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 36 30 0F 01 00 00 01 07 07 01 E7 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1C EE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 38 C0 00 00 35 04 06 00 0D 6A 27 D2 54 8B 0A 48 99 7C B0 90 21 18 [12:39: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 36 30 4F 00 00 00 EA FB 47 00 1F 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 36 30 10 04 04 00 38 C0 00 00 F4 03 04 00 12 9A B8 65 B6 04 01 00 00 31 BE 0D 1E 7C A7 4D C6 [12:39:40]CommunicateWithHost err = 0 [12:39:40]CheckOFDResponse [12:39:40]1017 (14) - 77093643461234 [12:39:40]1041 (16) - 0000000000875060 [12:39:40]1040 (4) - 49208 [12:39:40]1012 (4) - 30.01.2024 06:41 [12:39:40]1206 (1) - 0 [12:39:40]OFD Sender: Remove packet 49208 [12:39:40]ProducePacketName [12:39:40]name=ofd_packets/00049208 [12:39:40]NVStorageDeleteData [12:39:40]Write to MH i2c: 01 00 00 33 76 A9 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 07 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 07 00 33 76 00 00 00 00 00 F1 0C AD [12:39:40]RasterBufferAndPrint [12:39:40]line [12:39:40]line [12:39:40]line [12:39:40]line [12:39:40]line [12:39:40]written 0, free lines is 3319 [12:39:40]MH_Cut [12:39:40]Write to MH i2c: D1 01 00 3A 76 01 82 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: D1 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: D1 01 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: D1 01 00 3A 76 00 81 [12:39:40]Write to MH i2c: 01 00 00 3B 76 B1 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]OFD Sender: No OFD packet to send [12:39:41]*** Cut start [12:39:41]*** Partial cut [12:39:41]*** CUTSNS_PIN = 1 [12:39:41]*** CUTSNS_PIN = 0 [12:39:41]*** Brake cut motor [12:39:41]Read from MH i2c: 01 [12:39:41]MH_I2C_Read... [12:39:41]*** Stop cut motor [12:39:41]*** Cut end [12:39:41]Read from MH i2c: 01 07 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: 01 07 00 3B 76 00 00 00 00 00 FF 0F C6 [12:39:41]process_action close_receipt done [12:39:41]requested_data is exist [12:39:41]produce_requested_data [12:39:41]requested_item fm.sn is exist - process it [12:39:41]wFMCommunicate request_size=4 [12:39:41]MH_SAM_APDU [12:39:41]CAPDU: 80 11 00 00 [12:39:41]Write to MH i2c: E2 08 00 3C 76 80 11 00 00 00 00 00 00 2C [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:41]Read from MH i2c: E2 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 17 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 17 00 3C 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 79 [12:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:39:41]wFMCommunicate OK [12:39:41]requested_item fd.num is exist - process it [12:39:41]SAM_PROTO_GetFieldsCounters [12:39:41]wFMCommunicate request_size=4 [12:39:41]MH_SAM_APDU [12:39:41]CAPDU: 80 13 00 00 [12:39:41]Write to MH i2c: E2 08 00 3D 76 80 13 00 00 00 00 00 00 2F [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:41]Read from MH i2c: E2 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 62 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 62 00 3D 76 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 38 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [12:39: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 38 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:41]wFMCommunicate OK [12:39:41]SAM_PROTO_GetFieldsCounters done [12:39:41]requested_item shift.num is exist - process it [12:39:41]requested_item shift.opened is exist - process it [12:39:41]req_shift_opened [12:39:41]FM_GetShiftState [12:39:41]SAM_PROTO_GetShiftState [12:39:41]wFMCommunicate request_size=4 [12:39:41]MH_SAM_APDU [12:39:41]CAPDU: 80 13 01 00 [12:39:41]Write to MH i2c: E2 08 00 3E 76 80 13 01 00 00 00 00 00 31 [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:41]Read from MH i2c: E2 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 0E 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 0E 00 3E 76 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 59 [12:39:41]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:39:41]wFMCommunicate OK [12:39:41]SAM_PROTO_GetShiftState done [12:39:41]FM_GetShiftState done [12:39:41]req_shift_opened done [12:39:41]requested_item shift.open_date is exist - process it [12:39:41]req_shift_open_date [12:39:41]req_shift_open_date done [12:39:41]produce_requested_data done [12:39:41]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49208,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:39:41]process_action_free close_receipt [12:39:41]json_value_free [12:39:41]json_value_free done [12:39:41]process_json_proto returns [12:39:41]Send response to host [12:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49208,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:39:41]free response buf [12:39:41]execute_script done [12:39:41]execute_script returns [12:39:41]free content buf [12:39:41]Sock 9.Close socket [12:39:41]Sock 9.Thread stoped [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:29]accept exits with 7 [12:42:29]New connection [12:42:29]New thread 3066670436 created [12:42:29]Thread 3066813796 joined [12:42:29]Waiting for new connection... [12:42:29] Sock 7.Parse request [12:42:29]Sock 7.Check first char [12:42:29]Sock 7.First char is OK [12:42:29]request: POST /json_proto HTTP/1.0 [12:42:29]Method: POST [12:42:29]URL: /json_proto [12:42:29]Method is POST - this is cgi request [12:42:29]url: /json_proto [12:42:29]query_string will be loaded in cgi processing [12:42:29]execute_cgi json_proto POST (null) [12:42:29]execute_cgi path=json_proto method=POST [12:42:29]POST find Content-Length [12:42:29]Host: 172.17.56.67:8080 [12:42:29]Content-Length: 677 [12:42:29]Content-Type: application/json [12:42:29] [12:42:29]POST finish read [12:42:29]Found Content-Length = 677 [12:42:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:29]execute_script... [12:42:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:29]POST & json_proto [12:42:29]process_json_proto [12:42:29]json parsed OK: [12:42:29]protocol is kg_v1.0 [12:42:29]action value=close_receipt [12:42:29]process_action close_receipt [12:42:29]cmd_close_receipt [12:42:29]MH_GetDate [12:42:29]Write to MH i2c: F0 00 00 3F 76 A4 [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: F0 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: F0 09 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: F0 09 00 3F 76 00 C8 EE B8 65 26 5D 9E 65 06 [12:42:29]GetLastDocTimeStamp 1706618396 [12:42:29]current date 1706618568 [12:42:29]FM_GetShiftState [12:42:29]SAM_PROTO_GetShiftState [12:42:29]wFMCommunicate request_size=4 [12:42:29]MH_SAM_APDU [12:42:29]CAPDU: 80 13 01 00 [12:42:29]Write to MH i2c: E2 08 00 40 76 80 13 01 00 00 00 00 00 33 [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:29]Read from MH i2c: E2 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 0E 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 0E 00 40 76 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 5B [12:42:29]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:42:29]wFMCommunicate OK [12:42:29]SAM_PROTO_GetShiftState done [12:42:29]FM_GetShiftState done [12:42:29]opened in 1706572995 [12:42:29]opened+sec_in_day 1706659395 [12:42:29]quantity*price = 50049 [12:42:29]sum+1 = 50050 [12:42:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 85 30.01.2024 12:42 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49209 ФПД: 271226906045825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T124248&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49209&fm=271226906045825&tin=02508201610067®Number=0000000000092723&sum=50000 [12:42:30]StoreToDocumentArchive [12:42:30]shift 246 fd 49209 [12:42:30]save to /storage/0246/doc_00049209 [12:42:30]save last doc name /storage/0246/doc_00049209 to /storage/kkm_last_doc_name [12:42:30]save OK [12:42:30]Clear old archive folders... [12:42:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:30]tlvbuf is 011DB220 [12:42:30]SAM_PROTO_ClearQueue [12:42:30]wFMCommunicate request_size=4 [12:42:30]MH_SAM_APDU [12:42:30]CAPDU: 80 09 00 00 [12:42:30]Write to MH i2c: E2 08 00 4D 76 80 09 00 00 00 00 00 00 35 [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 03 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 03 00 4D 76 00 90 00 37 [12:42:30]RAPDU: 90 00 [12:42:30]wFMCommunicate OK [12:42:30]SAM_PROTO_ClearQueue done [12:42:30]KKMCreateOFDPacket [12:42:30]OFDProtocolAddRootSTLVToBuf [12:42:30]FM_MakeSignedData [12:42:30]FM_MakeSignedData [12:42:30]SAM_PROTO_SignData [12:42:30]wFMCommunicate request_size=4 [12:42:30]MH_SAM_APDU [12:42:30]CAPDU: 80 0D 01 02 [12:42:30]Write to MH i2c: E2 08 00 4E 76 80 0D 01 02 00 00 00 00 3D [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 03 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 03 00 4E 76 00 90 00 38 [12:42:30]RAPDU: 90 00 [12:42:30]wFMCommunicate OK [12:42:30]wFMCommunicate request_size=255 [12:42:30]MH_SAM_APDU [12:42:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 C8 EE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 39 C0 00 00 35 04 06 00 F6 [12:42:30]Write to MH i2c: E2 02 01 4F 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 C8 EE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 39 C0 00 00 35 04 06 00 F6 00 00 7A [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 03 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 03 00 4F 76 00 90 00 39 [12:42:30]RAPDU: 90 00 [12:42:30]wFMCommunicate OK [12:42:30]wFMCommunicate request_size=10 [12:42:30]MH_SAM_APDU [12:42:30]CAPDU: 80 0D 02 02 05 AD EF 63 6D 81 [12:42:30]Write to MH i2c: E2 0D 00 50 76 80 0D 02 02 05 00 AD EF 63 6D 81 00 00 37 [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 03 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 03 00 50 76 00 90 00 3A [12:42:30]RAPDU: 90 00 [12:42:30]wFMCommunicate OK [12:42:30]wFMCommunicate request_size=4 [12:42:30]MH_SAM_APDU [12:42:30]CAPDU: 80 0D 03 02 [12:42:30]Write to MH i2c: E2 08 00 51 76 80 0D 03 02 00 00 00 00 42 [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 0B 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 0B 00 51 76 00 C9 3E 49 9F EF 83 C3 2F 90 00 96 [12:42:30]RAPDU: C9 3E 49 9F EF 83 C3 2F 90 00 [12:42:30]wFMCommunicate OK [12:42:30]SAM_PROTO_SignData done [12:42:30]FM_MakeSignedData done [12:42:30]CreateOFDProtocolMessage [12:42:30]wFMCommunicate request_size=4 [12:42:30]MH_SAM_APDU [12:42:30]CAPDU: 80 11 00 00 [12:42:30]Write to MH i2c: E2 08 00 52 76 80 11 00 00 00 00 00 00 42 [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 17 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 17 00 52 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8F [12:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:42:30]wFMCommunicate OK [12:42:30]CreateOFDProtocolMessage done [12:42:30]OFDSenderStorePacket 49209 [12:42:30]StoreOFDPacket docnum=49209 [12:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 09 B2 07 01 21 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 C8 EE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 39 C0 00 00 35 04 06 00 F6 AD EF 63 6D 81 C9 3E 49 9F EF 83 C3 2F [12:42:30]CheckFolder [12:42:30]dirname=/storage/ofd_packets [12:42:30]CheckFolder done [12:42:30]ProducePacketName [12:42:30]name=ofd_packets/00049209 [12:42:30]NVStorageSaveData ofd_packets/00049209 [12:42:30]File name is /storage/ofd_packets/00049209 [12:42:30]Write 301 bytes [12:42:30]NVStorageSaveData done [12:42:30]OFDSenderStorePacket done [12:42:30]KKMCreateOFDPacket done [12:42:30]NVStorageSaveData kkm_last_timestamp [12:42:30]File name is /storage/kkm_last_timestamp [12:42:30]Write 4 bytes [12:42:30]NVStorageSaveData done [12:42:30]ExternCall_PrintAddStr [12:42:30]wPrintStart [12:42:30]Write to MH i2c: 01 00 00 53 76 C9 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 07 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 07 00 53 76 00 00 00 00 00 FF 0F DE [12:42:31]RasterBufferAndPrint [12:42:31]line Счет N : (1)216311 [12:42:31]line ИНН: 02508201610067 [12:42:31]line Контрольно-Кассовый Чек [12:42:31]line ПРОДАЖА [12:42:31]line ТРК (МРК, ГНК) : 22 [12:42:31]line Товар: 2710124130 [12:42:31]line Аи-92-К-5 [12:42:31]line 8.300 * 60.30 [12:42:31]line = 500.49 [12:42:31]line НДС 12% НСП 1% [12:42:31]line > о реализуемом товаре [12:42:31]line ОКРУГЛЕНИЕ: -0.49 [12:42:31]line ИТОГО: 500.00 [12:42:31]line Внесено: 500.00 [12:42:31]line СДАЧА: 0.00 [12:42:31]line НСП 1% : 4.43 [12:42:31]line НДС 12% : 53.15 [12:42:31]line Наличными: 500.00 [12:42:31]line Безнал.: 0.00 [12:42:31]line Место: АЗС № 102 "Партнер Нефть" [12:42:31]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:42:31]line СНО: Общий режим [12:42:31]line Чек 85 30.01.2024 12:42 [12:42:31]line Смена: 246 ФФД: 1.0 [12:42:31]line ЗНМ: 0300000040 [12:42:31]line РНМ: 0000000000092723 [12:42:31]line Версия ККМ: 001 [12:42:31]line ФМ: 0000000000875060 [12:42:31]line ФД: 49209 [12:42:31]line ФПД: 271226906045825 [12:42:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T124248&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49209&fm=271226906045825&tin=02508201610067®Number=0000000000092723&sum=50000 [12:42:31]OFD Sender: Processing packet 49209 [packets to send 12, broken 11] [12:42:31]ProducePacketName [12:42:31]name=ofd_packets/00049209 [12:42:31]OFD Sender: To server: pG, [12:42:31]CommunicateWithHost lk.salyk.kg:30040 [12:42:31]ConnectInit lk.salyk.kg [12:42:31]written 0, free lines is 4095 [12:42:31]Connected sock=10 [12:42: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 36 30 0F 01 00 00 09 B2 07 01 21 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 C8 EE B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 39 C0 00 00 35 04 06 00 F6 AD EF 63 6D 81 C9 3E 49 9F EF 83 C3 2F [12:42: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 36 30 4F 00 00 00 1E 9A 47 00 1D 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 36 30 10 04 04 00 39 C0 00 00 F4 03 04 00 BD 9A B8 65 B6 04 01 00 00 36 21 DD B0 A2 B4 13 7E [12:42:31]CommunicateWithHost err = 0 [12:42:31]CheckOFDResponse [12:42:31]1017 (14) - 77093643461234 [12:42:31]1041 (16) - 0000000000875060 [12:42:31]1040 (4) - 49209 [12:42:31]1012 (4) - 30.01.2024 06:44 [12:42:31]1206 (1) - 0 [12:42:31]OFD Sender: Remove packet 49209 [12:42:31]ProducePacketName [12:42:31]name=ofd_packets/00049209 [12:42:31]NVStorageDeleteData [12:42:31]Write to MH i2c: 01 00 00 7E 76 F4 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 07 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 07 00 7E 76 00 00 00 00 00 EC 0C F3 [12:42:31]RasterBufferAndPrint [12:42:31]line [12:42:31]line [12:42:31]line [12:42:31]line [12:42:31]line [12:42:31]written 0, free lines is 3314 [12:42:31]MH_Cut [12:42:31]Write to MH i2c: D1 01 00 85 76 01 CD [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: D1 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: D1 01 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: D1 01 00 85 76 00 CC [12:42:31]Write to MH i2c: 01 00 00 86 76 FC [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:32]OFD Sender: No OFD packet to send [12:42:32]*** Cut start [12:42:32]*** Partial cut [12:42:32]*** CUTSNS_PIN = 1 [12:42:32]*** CUTSNS_PIN = 0 [12:42:32]*** Brake cut motor [12:42:33]Read from MH i2c: 01 [12:42:33]MH_I2C_Read... [12:42:33]*** Stop cut motor [12:42:33]*** Cut end [12:42:33]Read from MH i2c: 01 07 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: 01 07 00 86 76 00 00 00 00 00 FF 0F 11 [12:42:33]process_action close_receipt done [12:42:33]requested_data is exist [12:42:33]produce_requested_data [12:42:33]requested_item fm.sn is exist - process it [12:42:33]wFMCommunicate request_size=4 [12:42:33]MH_SAM_APDU [12:42:33]CAPDU: 80 11 00 00 [12:42:33]Write to MH i2c: E2 08 00 87 76 80 11 00 00 00 00 00 00 77 [12:42:33]Write i2c OK [12:42:33]MH_I2C_Read... [12:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:33]Read from MH i2c: E2 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 17 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 17 00 87 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C4 [12:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:42:33]wFMCommunicate OK [12:42:33]requested_item fd.num is exist - process it [12:42:33]SAM_PROTO_GetFieldsCounters [12:42:33]wFMCommunicate request_size=4 [12:42:33]MH_SAM_APDU [12:42:33]CAPDU: 80 13 00 00 [12:42:33]Write to MH i2c: E2 08 00 88 76 80 13 00 00 00 00 00 00 7A [12:42:33]Write i2c OK [12:42:33]MH_I2C_Read... [12:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:33]Read from MH i2c: E2 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 62 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 62 00 88 76 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 39 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [12:42: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 39 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:33]wFMCommunicate OK [12:42:33]SAM_PROTO_GetFieldsCounters done [12:42:33]requested_item shift.num is exist - process it [12:42:33]requested_item shift.opened is exist - process it [12:42:33]req_shift_opened [12:42:33]FM_GetShiftState [12:42:33]SAM_PROTO_GetShiftState [12:42:33]wFMCommunicate request_size=4 [12:42:33]MH_SAM_APDU [12:42:33]CAPDU: 80 13 01 00 [12:42:33]Write to MH i2c: E2 08 00 89 76 80 13 01 00 00 00 00 00 7C [12:42:33]Write i2c OK [12:42:33]MH_I2C_Read... [12:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:33]Read from MH i2c: E2 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 0E 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 0E 00 89 76 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A4 [12:42:33]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:42:33]wFMCommunicate OK [12:42:33]SAM_PROTO_GetShiftState done [12:42:33]FM_GetShiftState done [12:42:33]req_shift_opened done [12:42:33]requested_item shift.open_date is exist - process it [12:42:33]req_shift_open_date [12:42:33]req_shift_open_date done [12:42:33]produce_requested_data done [12:42:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49209,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:42:33]process_action_free close_receipt [12:42:33]json_value_free [12:42:33]json_value_free done [12:42:33]process_json_proto returns [12:42:33]Send response to host [12:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49209,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:42:33]free response buf [12:42:33]execute_script done [12:42:33]execute_script returns [12:42:33]free content buf [12:42:33]Sock 7.Close socket [12:42:33]Sock 7.Thread stoped [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]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:13]accept exits with 9 [12:46:13]New connection [12:46:13]New thread 3066813796 created [12:46:13]Thread 3066670436 joined [12:46:13]Waiting for new connection... [12:46:13] Sock 9.Parse request [12:46:13]Sock 9.Check first char [12:46:13]Sock 9.First char is OK [12:46:13]request: POST /json_proto HTTP/1.0 [12:46:13]Method: POST [12:46:13]URL: /json_proto [12:46:13]Method is POST - this is cgi request [12:46:13]url: /json_proto [12:46:13]query_string will be loaded in cgi processing [12:46:13]execute_cgi json_proto POST (null) [12:46:13]execute_cgi path=json_proto method=POST [12:46:13]POST find Content-Length [12:46:13]Host: 172.17.56.67:8080 [12:46:13]Content-Length: 679 [12:46:13]Content-Type: application/json [12:46:13] [12:46:13]POST finish read [12:46:13]Found Content-Length = 679 [12:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "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" ] } } [12:46:13]execute_script... [12:46:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "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" ] } } [12:46:13]POST & json_proto [12:46:13]process_json_proto [12:46:13]json parsed OK: [12:46:13]protocol is kg_v1.0 [12:46:13]action value=close_receipt [12:46:13]process_action close_receipt [12:46:13]cmd_close_receipt [12:46:13]MH_GetDate [12:46:13]Write to MH i2c: F0 00 00 8A 76 EF [12:46:13]Write i2c OK [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: F0 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: F0 09 00 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: F0 09 00 8A 76 00 A8 EF B8 65 26 5D 9E 65 32 [12:46:13]GetLastDocTimeStamp 1706618568 [12:46:13]current date 1706618792 [12:46:13]FM_GetShiftState [12:46:13]SAM_PROTO_GetShiftState [12:46:13]wFMCommunicate request_size=4 [12:46:13]MH_SAM_APDU [12:46:13]CAPDU: 80 13 01 00 [12:46:13]Write to MH i2c: E2 08 00 8B 76 80 13 01 00 00 00 00 00 7E [12:46:13]Write i2c OK [12:46:13]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 8B 76 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A6 [12:46:14]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_GetShiftState done [12:46:14]FM_GetShiftState done [12:46:14]opened in 1706572995 [12:46:14]opened+sec_in_day 1706659395 [12:46:14]quantity*price = 200053 [12:46:14]sum+1 = 200055 [12:46:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 86 30.01.2024 12:46 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49210 ФПД: 4270862877820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T124632&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49210&fm=4270862877820&tin=02508201610067®Number=0000000000092723&sum=200000 [12:46:15]StoreToDocumentArchive [12:46:15]shift 246 fd 49210 [12:46:15]save to /storage/0246/doc_00049210 [12:46:15]save last doc name /storage/0246/doc_00049210 to /storage/kkm_last_doc_name [12:46:15]save OK [12:46:15]Clear old archive folders... [12:46:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:46:15]tlvbuf is 011DADF0 [12:46:15]SAM_PROTO_ClearQueue [12:46:15]wFMCommunicate request_size=4 [12:46:15]MH_SAM_APDU [12:46:15]CAPDU: 80 09 00 00 [12:46:15]Write to MH i2c: E2 08 00 98 76 80 09 00 00 00 00 00 00 80 [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:15]Read from MH i2c: E2 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 98 76 00 90 00 82 [12:46:15]RAPDU: 90 00 [12:46:15]wFMCommunicate OK [12:46:15]SAM_PROTO_ClearQueue done [12:46:15]KKMCreateOFDPacket [12:46:15]OFDProtocolAddRootSTLVToBuf [12:46:15]FM_MakeSignedData [12:46:15]FM_MakeSignedData [12:46:15]SAM_PROTO_SignData [12:46:15]wFMCommunicate request_size=4 [12:46:15]MH_SAM_APDU [12:46:15]CAPDU: 80 0D 01 02 [12:46:15]Write to MH i2c: E2 08 00 99 76 80 0D 01 02 00 00 00 00 88 [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:15]Read from MH i2c: E2 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 99 76 00 90 00 83 [12:46:15]RAPDU: 90 00 [12:46:15]wFMCommunicate OK [12:46:15]wFMCommunicate request_size=255 [12:46:15]MH_SAM_APDU [12:46:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 56 00 00 00 F4 03 04 00 A8 EF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3A C0 00 00 35 04 06 00 03 E2 63 43 [12:46:15]Write to MH i2c: E2 02 01 9A 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 56 00 00 00 F4 03 04 00 A8 EF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3A C0 00 00 35 04 06 00 03 E2 63 43 00 00 6B [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:15]Read from MH i2c: E2 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 9A 76 00 90 00 84 [12:46:15]RAPDU: 90 00 [12:46:15]wFMCommunicate OK [12:46:15]wFMCommunicate request_size=7 [12:46:15]MH_SAM_APDU [12:46:15]CAPDU: 80 0D 02 02 02 C4 7C [12:46:15]Write to MH i2c: E2 0A 00 9B 76 80 0D 02 02 02 00 C4 7C 00 00 CF [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:15]Read from MH i2c: E2 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 9B 76 00 90 00 85 [12:46:15]RAPDU: 90 00 [12:46:15]wFMCommunicate OK [12:46:15]wFMCommunicate request_size=4 [12:46:15]MH_SAM_APDU [12:46:15]CAPDU: 80 0D 03 02 [12:46:15]Write to MH i2c: E2 08 00 9C 76 80 0D 03 02 00 00 00 00 8D [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:15]Read from MH i2c: E2 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 0B 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 0B 00 9C 76 00 8F 6D 8D BC B1 3D 6A 66 90 00 91 [12:46:15]RAPDU: 8F 6D 8D BC B1 3D 6A 66 90 00 [12:46:15]wFMCommunicate OK [12:46:15]SAM_PROTO_SignData done [12:46:15]FM_MakeSignedData done [12:46:15]CreateOFDProtocolMessage [12:46:15]wFMCommunicate request_size=4 [12:46:15]MH_SAM_APDU [12:46:15]CAPDU: 80 11 00 00 [12:46:15]Write to MH i2c: E2 08 00 9D 76 80 11 00 00 00 00 00 00 8D [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:15]Read from MH i2c: E2 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 17 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 17 00 9D 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DA [12:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:46:15]wFMCommunicate OK [12:46:15]CreateOFDProtocolMessage done [12:46:15]OFDSenderStorePacket 49210 [12:46:15]StoreOFDPacket docnum=49210 [12:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 6E FD 04 01 4C 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 56 00 00 00 F4 03 04 00 A8 EF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3A C0 00 00 35 04 06 00 03 E2 63 43 C4 7C 8F 6D 8D BC B1 3D 6A 66 [12:46:15]CheckFolder [12:46:15]dirname=/storage/ofd_packets [12:46:15]CheckFolder done [12:46:15]ProducePacketName [12:46:15]name=ofd_packets/00049210 [12:46:15]NVStorageSaveData ofd_packets/00049210 [12:46:15]File name is /storage/ofd_packets/00049210 [12:46:15]Write 298 bytes [12:46:15]NVStorageSaveData done [12:46:15]OFDSenderStorePacket done [12:46:15]KKMCreateOFDPacket done [12:46:15]NVStorageSaveData kkm_last_timestamp [12:46:15]File name is /storage/kkm_last_timestamp [12:46:15]Write 4 bytes [12:46:15]NVStorageSaveData done [12:46:15]ExternCall_PrintAddStr [12:46:15]wPrintStart [12:46:15]Write to MH i2c: 01 00 00 9E 76 14 [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: 01 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: 01 07 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: 01 07 00 9E 76 00 00 00 00 00 FF 0F 29 [12:46:15]RasterBufferAndPrint [12:46:15]line Счет N : (1)216312 [12:46:15]line ИНН: 02508201610067 [12:46:15]line Контрольно-Кассовый Чек [12:46:15]line ПРОДАЖА [12:46:15]line ТРК (МРК, ГНК) : 11 [12:46:15]line Товар: 2710194210 [12:46:15]line ДТ-К-5 [12:46:15]line 28.620 * 69.90 [12:46:15]line = 2000.54 [12:46:15]line НДС 12% НСП 1% [12:46:15]line > о реализуемом товаре [12:46:15]line ОКРУГЛЕНИЕ: -0.54 [12:46:15]line ИТОГО: 2000.00 [12:46:15]line Внесено: 2000.00 [12:46:15]line СДАЧА: 0.00 [12:46:15]line НСП 1% : 17.70 [12:46:15]line НДС 12% : 212.45 [12:46:15]line Наличными: 2000.00 [12:46:15]line Безнал.: 0.00 [12:46:15]line Место: АЗС № 102 "Партнер Нефть" [12:46:15]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:46:15]line СНО: Общий режим [12:46:15]line Чек 86 30.01.2024 12:46 [12:46:15]line Смена: 246 ФФД: 1.0 [12:46:15]line ЗНМ: 0300000040 [12:46:15]line РНМ: 0000000000092723 [12:46:15]line Версия ККМ: 001 [12:46:15]line ФМ: 0000000000875060 [12:46:15]line ФД: 49210 [12:46:15]line ФПД: 4270862877820 [12:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T124632&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49210&fm=4270862877820&tin=02508201610067®Number=0000000000092723&sum=200000 [12:46:15]OFD Sender: Processing packet 49210 [packets to send 12, broken 11] [12:46:15]ProducePacketName [12:46:15]name=ofd_packets/00049210 [12:46:15]OFD Sender: To server: pG, [12:46:15]CommunicateWithHost lk.salyk.kg:30040 [12:46:15]ConnectInit lk.salyk.kg [12:46:15]written 0, free lines is 4095 [12:46:16]Connected sock=10 [12:46: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 36 30 0C 01 00 00 6E FD 04 01 4C 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 56 00 00 00 F4 03 04 00 A8 EF B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3A C0 00 00 35 04 06 00 03 E2 63 43 C4 7C 8F 6D 8D BC B1 3D 6A 66 [12:46: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 36 30 4F 00 00 00 F6 35 47 00 33 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 36 30 10 04 04 00 3A C0 00 00 F4 03 04 00 9E 9B B8 65 B6 04 01 00 00 16 72 F9 A7 9F 08 A6 F7 [12:46:16]CommunicateWithHost err = 0 [12:46:16]CheckOFDResponse [12:46:16]1017 (14) - 77093643461234 [12:46:16]1041 (16) - 0000000000875060 [12:46:16]1040 (4) - 49210 [12:46:16]1012 (4) - 30.01.2024 06:47 [12:46:16]1206 (1) - 0 [12:46:16]OFD Sender: Remove packet 49210 [12:46:16]ProducePacketName [12:46:16]name=ofd_packets/00049210 [12:46:16]NVStorageDeleteData [12:46:16]Write to MH i2c: 01 00 00 C9 76 3F [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: 01 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: 01 07 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: 01 07 00 C9 76 00 00 00 00 00 EC 0C 3E [12:46:16]RasterBufferAndPrint [12:46:16]line [12:46:16]line [12:46:16]line [12:46:16]line [12:46:16]line [12:46:16]written 0, free lines is 3314 [12:46:16]MH_Cut [12:46:16]Write to MH i2c: D1 01 00 D0 76 01 18 [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: D1 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: D1 01 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: D1 01 00 D0 76 00 17 [12:46:16]Write to MH i2c: 01 00 00 D1 76 47 [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]OFD Sender: No OFD packet to send [12:46:17]*** Cut start [12:46:17]*** Partial cut [12:46:17]*** CUTSNS_PIN = 1 [12:46:17]*** CUTSNS_PIN = 0 [12:46:17]*** Brake cut motor [12:46:17]Read from MH i2c: 01 [12:46:17]MH_I2C_Read... [12:46:17]*** Stop cut motor [12:46:17]*** Cut end [12:46:17]Read from MH i2c: 01 07 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: 01 07 00 D1 76 00 00 00 00 00 FF 0F 5C [12:46:17]process_action close_receipt done [12:46:17]requested_data is exist [12:46:17]produce_requested_data [12:46:17]requested_item fm.sn is exist - process it [12:46:17]wFMCommunicate request_size=4 [12:46:17]MH_SAM_APDU [12:46:17]CAPDU: 80 11 00 00 [12:46:17]Write to MH i2c: E2 08 00 D2 76 80 11 00 00 00 00 00 00 C2 [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:17]Read from MH i2c: E2 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 17 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 17 00 D2 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0F [12:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:46:17]wFMCommunicate OK [12:46:17]requested_item fd.num is exist - process it [12:46:17]SAM_PROTO_GetFieldsCounters [12:46:17]wFMCommunicate request_size=4 [12:46:17]MH_SAM_APDU [12:46:17]CAPDU: 80 13 00 00 [12:46:17]Write to MH i2c: E2 08 00 D3 76 80 13 00 00 00 00 00 00 C5 [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:17]Read from MH i2c: E2 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 62 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 62 00 D3 76 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:46: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:17]wFMCommunicate OK [12:46:17]SAM_PROTO_GetFieldsCounters done [12:46:17]requested_item shift.num is exist - process it [12:46:17]requested_item shift.opened is exist - process it [12:46:17]req_shift_opened [12:46:17]FM_GetShiftState [12:46:17]SAM_PROTO_GetShiftState [12:46:17]wFMCommunicate request_size=4 [12:46:17]MH_SAM_APDU [12:46:17]CAPDU: 80 13 01 00 [12:46:17]Write to MH i2c: E2 08 00 D4 76 80 13 01 00 00 00 00 00 C7 [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:17]Read from MH i2c: E2 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 0E 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 0E 00 D4 76 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 EF [12:46:17]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [12:46:17]wFMCommunicate OK [12:46:17]SAM_PROTO_GetShiftState done [12:46:17]FM_GetShiftState done [12:46:17]req_shift_opened done [12:46:17]requested_item shift.open_date is exist - process it [12:46:17]req_shift_open_date [12:46:17]req_shift_open_date done [12:46:17]produce_requested_data done [12:46:17]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49210,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [12:46:17]process_action_free close_receipt [12:46:17]json_value_free [12:46:17]json_value_free done [12:46:17]process_json_proto returns [12:46:17]Send response to host [12:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49210,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [12:46:17]free response buf [12:46:17]execute_script done [12:46:17]execute_script returns [12:46:17]free content buf [12:46:17]Sock 9.Close socket [12:46:17]Sock 9.Thread stoped [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51: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:00]accept exits with 7 [13:02:00]New connection [13:02:00]New thread 3066670436 created [13:02:00]Thread 3066813796 joined [13:02:00]Waiting for new connection... [13:02:00] Sock 7.Parse request [13:02:00]Sock 7.Check first char [13:02:00]Sock 7.First char is OK [13:02:00]request: POST /json_proto HTTP/1.0 [13:02:00]Method: POST [13:02:00]URL: /json_proto [13:02:00]Method is POST - this is cgi request [13:02:00]url: /json_proto [13:02:00]query_string will be loaded in cgi processing [13:02:00]execute_cgi json_proto POST (null) [13:02:00]execute_cgi path=json_proto method=POST [13:02:00]POST find Content-Length [13:02:00]Host: 172.17.56.67:8080 [13:02:00]Content-Length: 679 [13:02:00]Content-Type: application/json [13:02:00] [13:02:00]POST finish read [13:02:00]Found Content-Length = 679 [13:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:00]execute_script... [13:02:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:00]POST & json_proto [13:02:00]process_json_proto [13:02:00]json parsed OK: [13:02:00]protocol is kg_v1.0 [13:02:00]action value=close_receipt [13:02:00]process_action close_receipt [13:02:00]cmd_close_receipt [13:02:00]MH_GetDate [13:02:00]Write to MH i2c: F0 00 00 D5 76 3A [13:02:00]Write i2c OK [13:02:00]MH_I2C_Read... [13:02:00]Read from MH i2c: F0 [13:02:00]MH_I2C_Read... [13:02:00]Read from MH i2c: F0 09 00 [13:02:00]MH_I2C_Read... [13:02:00]Read from MH i2c: F0 09 00 D5 76 00 5B F3 B8 65 26 5D 9E 65 34 [13:02:00]GetLastDocTimeStamp 1706618792 [13:02:00]current date 1706619739 [13:02:00]FM_GetShiftState [13:02:00]SAM_PROTO_GetShiftState [13:02:00]wFMCommunicate request_size=4 [13:02:00]MH_SAM_APDU [13:02:00]CAPDU: 80 13 01 00 [13:02:00]Write to MH i2c: E2 08 00 D6 76 80 13 01 00 00 00 00 00 C9 [13:02:00]Write i2c OK [13:02:00]MH_I2C_Read... [13:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:00]Read from MH i2c: E2 [13:02:00]MH_I2C_Read... [13:02:00]Read from MH i2c: E2 0E 00 [13:02:00]MH_I2C_Read... [13:02:00]Read from MH i2c: E2 0E 00 D6 76 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F1 [13:02:00]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:02:00]wFMCommunicate OK [13:02:00]SAM_PROTO_GetShiftState done [13:02:00]FM_GetShiftState done [13:02:00]opened in 1706572995 [13:02:00]opened+sec_in_day 1706659395 [13:02:00]quantity*price = 200053 [13:02:00]sum+1 = 200055 [13:02:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 87 30.01.2024 13:02 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49211 ФПД: 45786497779872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T130219&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49211&fm=45786497779872&tin=02508201610067®Number=0000000000092723&sum=200000 [13:02:01]StoreToDocumentArchive [13:02:01]shift 246 fd 49211 [13:02:01]save to /storage/0246/doc_00049211 [13:02:01]save last doc name /storage/0246/doc_00049211 to /storage/kkm_last_doc_name [13:02:01]save OK [13:02:01]Clear old archive folders... [13:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:02:01]tlvbuf is 011F8410 [13:02:01]SAM_PROTO_ClearQueue [13:02:01]wFMCommunicate request_size=4 [13:02:01]MH_SAM_APDU [13:02:01]CAPDU: 80 09 00 00 [13:02:01]Write to MH i2c: E2 08 00 E3 76 80 09 00 00 00 00 00 00 CB [13:02:01]Write i2c OK [13:02:01]MH_I2C_Read... [13:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:01]Read from MH i2c: E2 [13:02:01]MH_I2C_Read... [13:02:01]Read from MH i2c: E2 03 00 [13:02:01]MH_I2C_Read... [13:02:01]Read from MH i2c: E2 03 00 E3 76 00 90 00 CD [13:02:01]RAPDU: 90 00 [13:02:01]wFMCommunicate OK [13:02:01]SAM_PROTO_ClearQueue done [13:02:01]KKMCreateOFDPacket [13:02:01]OFDProtocolAddRootSTLVToBuf [13:02:01]FM_MakeSignedData [13:02:01]FM_MakeSignedData [13:02:01]SAM_PROTO_SignData [13:02:01]wFMCommunicate request_size=4 [13:02:01]MH_SAM_APDU [13:02:01]CAPDU: 80 0D 01 02 [13:02:01]Write to MH i2c: E2 08 00 E4 76 80 0D 01 02 00 00 00 00 D3 [13:02:01]Write i2c OK [13:02:01]MH_I2C_Read... [13:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:02]Read from MH i2c: E2 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 03 00 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 03 00 E4 76 00 90 00 CE [13:02:02]RAPDU: 90 00 [13:02:02]wFMCommunicate OK [13:02:02]wFMCommunicate request_size=255 [13:02:02]MH_SAM_APDU [13:02:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 57 00 00 00 F4 03 04 00 5B F3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3B C0 00 00 35 04 06 00 29 A4 7F EF [13:02:02]Write to MH i2c: E2 02 01 E5 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 57 00 00 00 F4 03 04 00 5B F3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3B C0 00 00 35 04 06 00 29 A4 7F EF 00 00 1F [13:02:02]Write i2c OK [13:02:02]MH_I2C_Read... [13:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:02]Read from MH i2c: E2 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 03 00 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 03 00 E5 76 00 90 00 CF [13:02:02]RAPDU: 90 00 [13:02:02]wFMCommunicate OK [13:02:02]wFMCommunicate request_size=7 [13:02:02]MH_SAM_APDU [13:02:02]CAPDU: 80 0D 02 02 02 88 A0 [13:02:02]Write to MH i2c: E2 0A 00 E6 76 80 0D 02 02 02 00 88 A0 00 00 02 [13:02:02]Write i2c OK [13:02:02]MH_I2C_Read... [13:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:02]Read from MH i2c: E2 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 03 00 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 03 00 E6 76 00 90 00 D0 [13:02:02]RAPDU: 90 00 [13:02:02]wFMCommunicate OK [13:02:02]wFMCommunicate request_size=4 [13:02:02]MH_SAM_APDU [13:02:02]CAPDU: 80 0D 03 02 [13:02:02]Write to MH i2c: E2 08 00 E7 76 80 0D 03 02 00 00 00 00 D8 [13:02:02]Write i2c OK [13:02:02]MH_I2C_Read... [13:02:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:02]Read from MH i2c: E2 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 0B 00 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 0B 00 E7 76 00 70 DA 37 21 59 D6 4B FE 90 00 F3 [13:02:02]RAPDU: 70 DA 37 21 59 D6 4B FE 90 00 [13:02:02]wFMCommunicate OK [13:02:02]SAM_PROTO_SignData done [13:02:02]FM_MakeSignedData done [13:02:02]CreateOFDProtocolMessage [13:02:02]wFMCommunicate request_size=4 [13:02:02]MH_SAM_APDU [13:02:02]CAPDU: 80 11 00 00 [13:02:02]Write to MH i2c: E2 08 00 E8 76 80 11 00 00 00 00 00 00 D8 [13:02:02]Write i2c OK [13:02:02]MH_I2C_Read... [13:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:02]Read from MH i2c: E2 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 17 00 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: E2 17 00 E8 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 25 [13:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:02:02]wFMCommunicate OK [13:02:02]CreateOFDProtocolMessage done [13:02:02]OFDSenderStorePacket 49211 [13:02:02]StoreOFDPacket docnum=49211 [13:02:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 24 50 04 01 EF 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 57 00 00 00 F4 03 04 00 5B F3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3B C0 00 00 35 04 06 00 29 A4 7F EF 88 A0 70 DA 37 21 59 D6 4B FE [13:02:02]CheckFolder [13:02:02]dirname=/storage/ofd_packets [13:02:02]CheckFolder done [13:02:02]ProducePacketName [13:02:02]name=ofd_packets/00049211 [13:02:02]NVStorageSaveData ofd_packets/00049211 [13:02:02]File name is /storage/ofd_packets/00049211 [13:02:02]Write 298 bytes [13:02:02]NVStorageSaveData done [13:02:02]OFDSenderStorePacket done [13:02:02]KKMCreateOFDPacket done [13:02:02]NVStorageSaveData kkm_last_timestamp [13:02:02]File name is /storage/kkm_last_timestamp [13:02:02]Write 4 bytes [13:02:02]NVStorageSaveData done [13:02:02]ExternCall_PrintAddStr [13:02:02]wPrintStart [13:02:02]Write to MH i2c: 01 00 00 E9 76 5F [13:02:02]Write i2c OK [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 07 00 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 07 00 E9 76 00 00 00 00 00 FF 0F 74 [13:02:02]RasterBufferAndPrint [13:02:02]line Счет N : (1)216313 [13:02:02]line ИНН: 02508201610067 [13:02:02]line Контрольно-Кассовый Чек [13:02:02]line ПРОДАЖА [13:02:02]line ТРК (МРК, ГНК) : 21 [13:02:02]line Товар: 2710194210 [13:02:02]line ДТ-К-5 [13:02:02]line 28.620 * 69.90 [13:02:02]line = 2000.54 [13:02:02]line НДС 12% НСП 1% [13:02:02]line > о реализуемом товаре [13:02:02]line ОКРУГЛЕНИЕ: -0.54 [13:02:02]line ИТОГО: 2000.00 [13:02:02]line Внесено: 2000.00 [13:02:02]line СДАЧА: 0.00 [13:02:02]line НСП 1% : 17.70 [13:02:02]line НДС 12% : 212.45 [13:02:02]line Наличными: 2000.00 [13:02:02]line Безнал.: 0.00 [13:02:02]line Место: АЗС № 102 "Партнер Нефть" [13:02:02]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:02:02]line СНО: Общий режим [13:02:02]line Чек 87 30.01.2024 13:02 [13:02:02]line Смена: 246 ФФД: 1.0 [13:02:02]line ЗНМ: 0300000040 [13:02:02]line РНМ: 0000000000092723 [13:02:02]line Версия ККМ: 001 [13:02:02]line ФМ: 0000000000875060 [13:02:02]line ФД: 49211 [13:02:02]line ФПД: 45786497779872 [13:02:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T130219&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49211&fm=45786497779872&tin=02508201610067®Number=0000000000092723&sum=200000 [13:02:02]OFD Sender: Processing packet 49211 [packets to send 12, broken 11] [13:02:02]ProducePacketName [13:02:02]name=ofd_packets/00049211 [13:02:02]OFD Sender: To server: pG, [13:02:02]CommunicateWithHost lk.salyk.kg:30040 [13:02:02]ConnectInit lk.salyk.kg [13:02:02]written 0, free lines is 4095 [13:02:02]Connected sock=9 [13:02:02]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 36 30 0C 01 00 00 24 50 04 01 EF 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 57 00 00 00 F4 03 04 00 5B F3 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3B C0 00 00 35 04 06 00 29 A4 7F EF 88 A0 70 DA 37 21 59 D6 4B FE [13:02: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 36 30 4F 00 00 00 52 64 47 00 9D 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 36 30 10 04 04 00 3B C0 00 00 F4 03 04 00 51 9F B8 65 B6 04 01 00 00 FD A9 78 1D 7A F8 20 42 [13:02:03]CommunicateWithHost err = 0 [13:02:03]CheckOFDResponse [13:02:03]1017 (14) - 77093643461234 [13:02:03]1041 (16) - 0000000000875060 [13:02:03]1040 (4) - 49211 [13:02:03]1012 (4) - 30.01.2024 07:03 [13:02:03]1206 (1) - 0 [13:02:03]OFD Sender: Remove packet 49211 [13:02:03]ProducePacketName [13:02:03]name=ofd_packets/00049211 [13:02:03]NVStorageDeleteData [13:02:03]Write to MH i2c: 01 00 00 14 77 8B [13:02:03]Write i2c OK [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: 01 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: 01 07 00 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: 01 07 00 14 77 00 00 00 00 00 F6 0C 94 [13:02:03]RasterBufferAndPrint [13:02:03]line [13:02:03]line [13:02:03]line [13:02:03]line [13:02:03]line [13:02:03]written 0, free lines is 3324 [13:02:03]MH_Cut [13:02:03]Write to MH i2c: D1 01 00 1B 77 01 64 [13:02:03]Write i2c OK [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: D1 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: D1 01 00 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: D1 01 00 1B 77 00 63 [13:02:03]Write to MH i2c: 01 00 00 1C 77 93 [13:02:03]Write i2c OK [13:02:03]MH_I2C_Read... [13:02:03]OFD Sender: No OFD packet to send [13:02:03]*** Cut start [13:02:03]*** Partial cut [13:02:03]*** CUTSNS_PIN = 1 [13:02:03]*** CUTSNS_PIN = 0 [13:02:04]*** Brake cut motor [13:02:04]Read from MH i2c: 01 [13:02:04]MH_I2C_Read... [13:02:04]*** Stop cut motor [13:02:04]*** Cut end [13:02:04]Read from MH i2c: 01 07 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: 01 07 00 1C 77 00 00 00 00 00 FF 0F A8 [13:02:04]process_action close_receipt done [13:02:04]requested_data is exist [13:02:04]produce_requested_data [13:02:04]requested_item fm.sn is exist - process it [13:02:04]wFMCommunicate request_size=4 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 11 00 00 [13:02:04]Write to MH i2c: E2 08 00 1D 77 80 11 00 00 00 00 00 00 0E [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:04]Read from MH i2c: E2 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 17 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 17 00 1D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5B [13:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:02:04]wFMCommunicate OK [13:02:04]requested_item fd.num is exist - process it [13:02:04]SAM_PROTO_GetFieldsCounters [13:02:04]wFMCommunicate request_size=4 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 13 00 00 [13:02:04]Write to MH i2c: E2 08 00 1E 77 80 13 00 00 00 00 00 00 11 [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:04]Read from MH i2c: E2 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 62 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 62 00 1E 77 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [13:02: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:04]wFMCommunicate OK [13:02:04]SAM_PROTO_GetFieldsCounters done [13:02:04]requested_item shift.num is exist - process it [13:02:04]requested_item shift.opened is exist - process it [13:02:04]req_shift_opened [13:02:04]FM_GetShiftState [13:02:04]SAM_PROTO_GetShiftState [13:02:04]wFMCommunicate request_size=4 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 13 01 00 [13:02:04]Write to MH i2c: E2 08 00 1F 77 80 13 01 00 00 00 00 00 13 [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:04]Read from MH i2c: E2 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 0E 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 0E 00 1F 77 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3B [13:02:04]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:02:04]wFMCommunicate OK [13:02:04]SAM_PROTO_GetShiftState done [13:02:04]FM_GetShiftState done [13:02:04]req_shift_opened done [13:02:04]requested_item shift.open_date is exist - process it [13:02:04]req_shift_open_date [13:02:04]req_shift_open_date done [13:02:04]produce_requested_data done [13:02:04]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49211,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [13:02:04]process_action_free close_receipt [13:02:04]json_value_free [13:02:04]json_value_free done [13:02:04]process_json_proto returns [13:02:04]Send response to host [13:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49211,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [13:02:04]free response buf [13:02:04]execute_script done [13:02:04]execute_script returns [13:02:04]free content buf [13:02:04]Sock 7.Close socket [13:02:04]Sock 7.Thread stoped [13:02:08]OFD Sender: No OFD packet to send [13:02:10]int [13:02:10]Write to MH i2c: 01 00 00 20 77 97 [13:02:10]*** FLAG_PRN_KEY set [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 07 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 07 00 20 77 00 08 00 00 00 FF 0F B4 [13:02:10]state=0 [13:02:10]Key pressed [13:02:10]Feed [13:02:10]Write to MH i2c: D8 00 00 21 77 6F [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: D8 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: D8 01 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: D8 01 00 21 77 00 70 [13:02:10]int [13:02:10]Write to MH i2c: 01 00 00 22 77 99 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 07 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 07 00 22 77 00 48 00 00 00 3C 00 24 [13:02:10]state=2 [13:02:10]Key pressed [13:02:10]int [13:02:10]Write to MH i2c: 01 00 00 23 77 9A [13:02:10]*** FLAG_PRN_KEY reset [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 07 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 07 00 23 77 00 00 00 00 00 F7 0F A7 [13:02:10]state=2 [13:02:10]Stop feed [13:02:12]int [13:02:12]Write to MH i2c: 01 00 00 24 77 9B [13:02:12]*** FLAG_PRN_KEY set [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 24 77 00 08 00 00 00 FF 0F B8 [13:02:12]state=0 [13:02:12]Key pressed [13:02:12]Feed [13:02:12]Write to MH i2c: D8 00 00 25 77 73 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: D8 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: D8 01 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: D8 01 00 25 77 00 74 [13:02:12]int [13:02:12]Write to MH i2c: 01 00 00 26 77 9D [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 26 77 00 48 00 00 00 3C 00 28 [13:02:12]state=2 [13:02:12]Key pressed [13:02:12]int [13:02:12]Write to MH i2c: 01 00 00 27 77 9E [13:02:12]*** FLAG_PRN_KEY reset [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 27 77 00 00 00 00 00 F6 0F AA [13:02:12]state=2 [13:02:12]Stop feed [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:50]accept exits with 10 [13:05:50]New connection [13:05:50]New thread 3066813796 created [13:05:50]Thread 3066670436 joined [13:05:50]Waiting for new connection... [13:05:50] Sock 10.Parse request [13:05:50]Sock 10.Check first char [13:05:50]Sock 10.First char is OK [13:05:50]request: POST /json_proto HTTP/1.0 [13:05:50]Method: POST [13:05:50]URL: /json_proto [13:05:50]Method is POST - this is cgi request [13:05:50]url: /json_proto [13:05:50]query_string will be loaded in cgi processing [13:05:50]execute_cgi json_proto POST (null) [13:05:50]execute_cgi path=json_proto method=POST [13:05:50]POST find Content-Length [13:05:50]Host: 172.17.56.67:8080 [13:05:50]Content-Length: 677 [13:05:50]Content-Type: application/json [13:05:50] [13:05:50]POST finish read [13:05:50]Found Content-Length = 677 [13:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:50]execute_script... [13:05:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:50]POST & json_proto [13:05:50]process_json_proto [13:05:50]json parsed OK: [13:05:50]protocol is kg_v1.0 [13:05:50]action value=close_receipt [13:05:50]process_action close_receipt [13:05:50]cmd_close_receipt [13:05:50]MH_GetDate [13:05:50]Write to MH i2c: F0 00 00 28 77 8E [13:05:50]Write i2c OK [13:05:50]MH_I2C_Read... [13:05:50]Read from MH i2c: F0 [13:05:50]MH_I2C_Read... [13:05:50]Read from MH i2c: F0 09 00 [13:05:50]MH_I2C_Read... [13:05:50]Read from MH i2c: F0 09 00 28 77 00 41 F4 B8 65 26 5D 9E 65 6F [13:05:50]GetLastDocTimeStamp 1706619739 [13:05:50]current date 1706619969 [13:05:50]FM_GetShiftState [13:05:50]SAM_PROTO_GetShiftState [13:05:50]wFMCommunicate request_size=4 [13:05:50]MH_SAM_APDU [13:05:50]CAPDU: 80 13 01 00 [13:05:50]Write to MH i2c: E2 08 00 29 77 80 13 01 00 00 00 00 00 1D [13:05:50]Write i2c OK [13:05:50]MH_I2C_Read... [13:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:50]Read from MH i2c: E2 [13:05:50]MH_I2C_Read... [13:05:50]Read from MH i2c: E2 0E 00 [13:05:50]MH_I2C_Read... [13:05:50]Read from MH i2c: E2 0E 00 29 77 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 45 [13:05:50]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:05:50]wFMCommunicate OK [13:05:50]SAM_PROTO_GetShiftState done [13:05:50]FM_GetShiftState done [13:05:50]opened in 1706572995 [13:05:50]opened+sec_in_day 1706659395 [13:05:50]quantity*price = 20019 [13:05:50]sum+1 = 20021 [13:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 88 30.01.2024 13:06 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49212 ФПД: 114021736535695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T130609&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49212&fm=114021736535695&tin=02508201610067®Number=0000000000092723&sum=20000 [13:05:51]StoreToDocumentArchive [13:05:51]shift 246 fd 49212 [13:05:51]save to /storage/0246/doc_00049212 [13:05:51]save last doc name /storage/0246/doc_00049212 to /storage/kkm_last_doc_name [13:05:51]save OK [13:05:51]Clear old archive folders... [13:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:51]tlvbuf is 0128F850 [13:05:51]SAM_PROTO_ClearQueue [13:05:51]wFMCommunicate request_size=4 [13:05:51]MH_SAM_APDU [13:05:51]CAPDU: 80 09 00 00 [13:05:51]Write to MH i2c: E2 08 00 36 77 80 09 00 00 00 00 00 00 1F [13:05:51]Write i2c OK [13:05:51]MH_I2C_Read... [13:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:51]Read from MH i2c: E2 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 03 00 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 03 00 36 77 00 90 00 21 [13:05:51]RAPDU: 90 00 [13:05:51]wFMCommunicate OK [13:05:51]SAM_PROTO_ClearQueue done [13:05:51]KKMCreateOFDPacket [13:05:51]OFDProtocolAddRootSTLVToBuf [13:05:51]FM_MakeSignedData [13:05:51]FM_MakeSignedData [13:05:51]SAM_PROTO_SignData [13:05:51]wFMCommunicate request_size=4 [13:05:51]MH_SAM_APDU [13:05:51]CAPDU: 80 0D 01 02 [13:05:51]Write to MH i2c: E2 08 00 37 77 80 0D 01 02 00 00 00 00 27 [13:05:51]Write i2c OK [13:05:51]MH_I2C_Read... [13:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:51]Read from MH i2c: E2 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 03 00 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 03 00 37 77 00 90 00 22 [13:05:51]RAPDU: 90 00 [13:05:51]wFMCommunicate OK [13:05:51]wFMCommunicate request_size=255 [13:05:51]MH_SAM_APDU [13:05:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 41 F4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3C C0 00 00 35 04 06 00 67 [13:05:51]Write to MH i2c: E2 02 01 38 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 41 F4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3C C0 00 00 35 04 06 00 67 00 00 3A [13:05:51]Write i2c OK [13:05:51]MH_I2C_Read... [13:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:52]Read from MH i2c: E2 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 03 00 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 03 00 38 77 00 90 00 23 [13:05:52]RAPDU: 90 00 [13:05:52]wFMCommunicate OK [13:05:52]wFMCommunicate request_size=10 [13:05:52]MH_SAM_APDU [13:05:52]CAPDU: 80 0D 02 02 05 B3 C1 1A 56 8F [13:05:52]Write to MH i2c: E2 0D 00 39 77 80 0D 02 02 05 00 B3 C1 1A 56 8F 00 00 A7 [13:05:52]Write i2c OK [13:05:52]MH_I2C_Read... [13:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:52]Read from MH i2c: E2 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 03 00 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 03 00 39 77 00 90 00 24 [13:05:52]RAPDU: 90 00 [13:05:52]wFMCommunicate OK [13:05:52]wFMCommunicate request_size=4 [13:05:52]MH_SAM_APDU [13:05:52]CAPDU: 80 0D 03 02 [13:05:52]Write to MH i2c: E2 08 00 3A 77 80 0D 03 02 00 00 00 00 2C [13:05:52]Write i2c OK [13:05:52]MH_I2C_Read... [13:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:52]Read from MH i2c: E2 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 0B 00 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 0B 00 3A 77 00 D4 E7 58 1F A3 D7 18 D6 90 00 C7 [13:05:52]RAPDU: D4 E7 58 1F A3 D7 18 D6 90 00 [13:05:52]wFMCommunicate OK [13:05:52]SAM_PROTO_SignData done [13:05:52]FM_MakeSignedData done [13:05:52]CreateOFDProtocolMessage [13:05:52]wFMCommunicate request_size=4 [13:05:52]MH_SAM_APDU [13:05:52]CAPDU: 80 11 00 00 [13:05:52]Write to MH i2c: E2 08 00 3B 77 80 11 00 00 00 00 00 00 2C [13:05:52]Write i2c OK [13:05:52]MH_I2C_Read... [13:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:52]Read from MH i2c: E2 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 17 00 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: E2 17 00 3B 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 79 [13:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:05:52]wFMCommunicate OK [13:05:52]CreateOFDProtocolMessage done [13:05:52]OFDSenderStorePacket 49212 [13:05:52]StoreOFDPacket docnum=49212 [13:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 79 40 07 01 E3 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 41 F4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3C C0 00 00 35 04 06 00 67 B3 C1 1A 56 8F D4 E7 58 1F A3 D7 18 D6 [13:05:52]CheckFolder [13:05:52]dirname=/storage/ofd_packets [13:05:52]CheckFolder done [13:05:52]ProducePacketName [13:05:52]name=ofd_packets/00049212 [13:05:52]NVStorageSaveData ofd_packets/00049212 [13:05:52]File name is /storage/ofd_packets/00049212 [13:05:52]Write 301 bytes [13:05:52]NVStorageSaveData done [13:05:52]OFDSenderStorePacket done [13:05:52]KKMCreateOFDPacket done [13:05:52]NVStorageSaveData kkm_last_timestamp [13:05:52]File name is /storage/kkm_last_timestamp [13:05:52]Write 4 bytes [13:05:52]NVStorageSaveData done [13:05:52]ExternCall_PrintAddStr [13:05:52]wPrintStart [13:05:52]Write to MH i2c: 01 00 00 3C 77 B3 [13:05:52]Write i2c OK [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: 01 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: 01 07 00 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: 01 07 00 3C 77 00 00 00 00 00 FF 0F C8 [13:05:52]RasterBufferAndPrint [13:05:52]line Счет N : (1)216314 [13:05:52]line ИНН: 02508201610067 [13:05:52]line Контрольно-Кассовый Чек [13:05:52]line ПРОДАЖА [13:05:52]line ТРК (МРК, ГНК) : 12 [13:05:52]line Товар: 2710124130 [13:05:52]line Аи-92-К-5 [13:05:52]line 3.320 * 60.30 [13:05:52]line = 200.20 [13:05:52]line НДС 12% НСП 1% [13:05:52]line > о реализуемом товаре [13:05:52]line ОКРУГЛЕНИЕ: -0.20 [13:05:52]line ИТОГО: 200.00 [13:05:52]line Внесено: 200.00 [13:05:52]line СДАЧА: 0.00 [13:05:52]line НСП 1% : 1.77 [13:05:52]line НДС 12% : 21.26 [13:05:52]line Наличными: 200.00 [13:05:52]line Безнал.: 0.00 [13:05:52]line Место: АЗС № 102 "Партнер Нефть" [13:05:52]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:05:52]line СНО: Общий режим [13:05:52]line Чек 88 30.01.2024 13:06 [13:05:52]line Смена: 246 ФФД: 1.0 [13:05:52]line ЗНМ: 0300000040 [13:05:52]line РНМ: 0000000000092723 [13:05:52]line Версия ККМ: 001 [13:05:52]line ФМ: 0000000000875060 [13:05:52]line ФД: 49212 [13:05:52]line ФПД: 114021736535695 [13:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T130609&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49212&fm=114021736535695&tin=02508201610067®Number=0000000000092723&sum=20000 [13:05:52]OFD Sender: Processing packet 49212 [packets to send 12, broken 11] [13:05:52]ProducePacketName [13:05:52]name=ofd_packets/00049212 [13:05:52]OFD Sender: To server: pG, [13:05:52]CommunicateWithHost lk.salyk.kg:30040 [13:05:52]ConnectInit lk.salyk.kg [13:05:52]written 0, free lines is 4095 [13:05:52]Connected sock=9 [13:05: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 36 30 0F 01 00 00 79 40 07 01 E3 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 41 F4 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3C C0 00 00 35 04 06 00 67 B3 C1 1A 56 8F D4 E7 58 1F A3 D7 18 D6 [13:05: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 36 30 4F 00 00 00 3D 37 47 00 55 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3C C0 00 00 F4 03 04 00 37 A0 B8 65 B6 04 01 00 00 E9 3D AE 08 E1 B9 F1 8B [13:05:52]CommunicateWithHost err = 0 [13:05:52]CheckOFDResponse [13:05:52]1017 (14) - 77093643461234 [13:05:52]1041 (16) - 0000000000875060 [13:05:52]1040 (4) - 49212 [13:05:52]1012 (4) - 30.01.2024 07:07 [13:05:52]1206 (1) - 0 [13:05:52]OFD Sender: Remove packet 49212 [13:05:52]ProducePacketName [13:05:52]name=ofd_packets/00049212 [13:05:52]NVStorageDeleteData [13:05:53]Write to MH i2c: 01 00 00 67 77 DE [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: 01 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: 01 07 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: 01 07 00 67 77 00 00 00 00 00 F0 0C E1 [13:05:53]RasterBufferAndPrint [13:05:53]line [13:05:53]line [13:05:53]line [13:05:53]line [13:05:53]line [13:05:53]written 0, free lines is 3318 [13:05:53]MH_Cut [13:05:53]Write to MH i2c: D1 01 00 6E 77 01 B7 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: D1 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: D1 01 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: D1 01 00 6E 77 00 B6 [13:05:53]Write to MH i2c: 01 00 00 6F 77 E6 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]OFD Sender: No OFD packet to send [13:05:53]*** Cut start [13:05:53]*** Partial cut [13:05:53]*** CUTSNS_PIN = 1 [13:05:53]*** CUTSNS_PIN = 0 [13:05:54]*** Brake cut motor [13:05:54]Read from MH i2c: 01 [13:05:54]MH_I2C_Read... [13:05:54]*** Stop cut motor [13:05:54]*** Cut end [13:05:54]Read from MH i2c: 01 07 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: 01 07 00 6F 77 00 00 00 00 00 FF 0F FB [13:05:54]process_action close_receipt done [13:05:54]requested_data is exist [13:05:54]produce_requested_data [13:05:54]requested_item fm.sn is exist - process it [13:05:54]wFMCommunicate request_size=4 [13:05:54]MH_SAM_APDU [13:05:54]CAPDU: 80 11 00 00 [13:05:54]Write to MH i2c: E2 08 00 70 77 80 11 00 00 00 00 00 00 61 [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:54]Read from MH i2c: E2 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 17 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 17 00 70 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AE [13:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:05:54]wFMCommunicate OK [13:05:54]requested_item fd.num is exist - process it [13:05:54]SAM_PROTO_GetFieldsCounters [13:05:54]wFMCommunicate request_size=4 [13:05:54]MH_SAM_APDU [13:05:54]CAPDU: 80 13 00 00 [13:05:54]Write to MH i2c: E2 08 00 71 77 80 13 00 00 00 00 00 00 64 [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:54]Read from MH i2c: E2 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 62 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 62 00 71 77 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [13:05: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:54]wFMCommunicate OK [13:05:54]SAM_PROTO_GetFieldsCounters done [13:05:54]requested_item shift.num is exist - process it [13:05:54]requested_item shift.opened is exist - process it [13:05:54]req_shift_opened [13:05:54]FM_GetShiftState [13:05:54]SAM_PROTO_GetShiftState [13:05:54]wFMCommunicate request_size=4 [13:05:54]MH_SAM_APDU [13:05:54]CAPDU: 80 13 01 00 [13:05:54]Write to MH i2c: E2 08 00 72 77 80 13 01 00 00 00 00 00 66 [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:54]Read from MH i2c: E2 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 0E 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 0E 00 72 77 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8E [13:05:54]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:05:54]wFMCommunicate OK [13:05:54]SAM_PROTO_GetShiftState done [13:05:54]FM_GetShiftState done [13:05:54]req_shift_opened done [13:05:54]requested_item shift.open_date is exist - process it [13:05:54]req_shift_open_date [13:05:54]req_shift_open_date done [13:05:54]produce_requested_data done [13:05:54]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49212,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [13:05:54]process_action_free close_receipt [13:05:54]json_value_free [13:05:54]json_value_free done [13:05:54]process_json_proto returns [13:05:54]Send response to host [13:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49212,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [13:05:54]free response buf [13:05:54]execute_script done [13:05:54]execute_script returns [13:05:54]free content buf [13:05:54]Sock 10.Close socket [13:05:54]Sock 10.Thread stoped [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]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:05]accept exits with 7 [13:10:05]New connection [13:10:05]New thread 3066670436 created [13:10:05]Thread 3066813796 joined [13:10:05]Waiting for new connection... [13:10:05] Sock 7.Parse request [13:10:05]Sock 7.Check first char [13:10:05]Sock 7.First char is OK [13:10:05]request: POST /json_proto HTTP/1.0 [13:10:05]Method: POST [13:10:05]URL: /json_proto [13:10:05]Method is POST - this is cgi request [13:10:05]url: /json_proto [13:10:05]query_string will be loaded in cgi processing [13:10:05]execute_cgi json_proto POST (null) [13:10:05]execute_cgi path=json_proto method=POST [13:10:05]POST find Content-Length [13:10:05]Host: 172.17.56.67:8080 [13:10:05]Content-Length: 679 [13:10:05]Content-Type: application/json [13:10:05] [13:10:05]POST finish read [13:10:05]Found Content-Length = 679 [13:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:05]execute_script... [13:10: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)216315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:05]POST & json_proto [13:10:05]process_json_proto [13:10:05]json parsed OK: [13:10:05]protocol is kg_v1.0 [13:10:05]action value=close_receipt [13:10:05]process_action close_receipt [13:10:05]cmd_close_receipt [13:10:05]MH_GetDate [13:10:05]Write to MH i2c: F0 00 00 73 77 D9 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: F0 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: F0 09 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: F0 09 00 73 77 00 40 F5 B8 65 26 5D 9E 65 BA [13:10:05]GetLastDocTimeStamp 1706619969 [13:10:05]current date 1706620224 [13:10:05]FM_GetShiftState [13:10:05]SAM_PROTO_GetShiftState [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 13 01 00 [13:10:05]Write to MH i2c: E2 08 00 74 77 80 13 01 00 00 00 00 00 68 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 0E 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 0E 00 74 77 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 90 [13:10:05]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:10:05]wFMCommunicate OK [13:10:05]SAM_PROTO_GetShiftState done [13:10:05]FM_GetShiftState done [13:10:05]opened in 1706572995 [13:10:05]opened+sec_in_day 1706659395 [13:10:05]quantity*price = 100026 [13:10:05]sum+1 = 100028 [13:10:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 89 30.01.2024 13:10 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49213 ФПД: 168345312363217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T131024&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49213&fm=168345312363217&tin=02508201610067®Number=0000000000092723&sum=100000 [13:10:06]StoreToDocumentArchive [13:10:06]shift 246 fd 49213 [13:10:06]save to /storage/0246/doc_00049213 [13:10:06]save last doc name /storage/0246/doc_00049213 to /storage/kkm_last_doc_name [13:10:06]save OK [13:10:06]Clear old archive folders... [13:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:10:06]tlvbuf is 013CC9C0 [13:10:06]SAM_PROTO_ClearQueue [13:10:06]wFMCommunicate request_size=4 [13:10:06]MH_SAM_APDU [13:10:06]CAPDU: 80 09 00 00 [13:10:06]Write to MH i2c: E2 08 00 81 77 80 09 00 00 00 00 00 00 6A [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:06]Read from MH i2c: E2 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 03 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 03 00 81 77 00 90 00 6C [13:10:06]RAPDU: 90 00 [13:10:06]wFMCommunicate OK [13:10:06]SAM_PROTO_ClearQueue done [13:10:06]KKMCreateOFDPacket [13:10:06]OFDProtocolAddRootSTLVToBuf [13:10:06]FM_MakeSignedData [13:10:06]FM_MakeSignedData [13:10:06]SAM_PROTO_SignData [13:10:06]wFMCommunicate request_size=4 [13:10:06]MH_SAM_APDU [13:10:06]CAPDU: 80 0D 01 02 [13:10:06]Write to MH i2c: E2 08 00 82 77 80 0D 01 02 00 00 00 00 72 [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 82 77 00 90 00 6D [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]wFMCommunicate request_size=255 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 40 F5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3D C0 00 00 35 04 06 00 99 1B F2 8B [13:10:07]Write to MH i2c: E2 02 01 83 77 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 40 F5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3D C0 00 00 35 04 06 00 99 1B F2 8B 00 00 CB [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 83 77 00 90 00 6E [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]wFMCommunicate request_size=7 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 0D 02 02 02 02 D1 [13:10:07]Write to MH i2c: E2 0A 00 84 77 80 0D 02 02 02 00 02 D1 00 00 4C [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 84 77 00 90 00 6F [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 0D 03 02 [13:10:07]Write to MH i2c: E2 08 00 85 77 80 0D 03 02 00 00 00 00 77 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 0B 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 0B 00 85 77 00 33 0B BD 39 03 29 54 F4 90 00 20 [13:10:07]RAPDU: 33 0B BD 39 03 29 54 F4 90 00 [13:10:07]wFMCommunicate OK [13:10:07]SAM_PROTO_SignData done [13:10:07]FM_MakeSignedData done [13:10:07]CreateOFDProtocolMessage [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 11 00 00 [13:10:07]Write to MH i2c: E2 08 00 86 77 80 11 00 00 00 00 00 00 77 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 17 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 17 00 86 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C4 [13:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:10:07]wFMCommunicate OK [13:10:07]CreateOFDProtocolMessage done [13:10:07]OFDSenderStorePacket 49213 [13:10:07]StoreOFDPacket docnum=49213 [13:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 D9 A1 04 01 4B 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 40 F5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3D C0 00 00 35 04 06 00 99 1B F2 8B 02 D1 33 0B BD 39 03 29 54 F4 [13:10:07]CheckFolder [13:10:07]dirname=/storage/ofd_packets [13:10:07]CheckFolder done [13:10:07]ProducePacketName [13:10:07]name=ofd_packets/00049213 [13:10:07]NVStorageSaveData ofd_packets/00049213 [13:10:07]File name is /storage/ofd_packets/00049213 [13:10:07]Write 298 bytes [13:10:07]NVStorageSaveData done [13:10:07]OFDSenderStorePacket done [13:10:07]KKMCreateOFDPacket done [13:10:07]NVStorageSaveData kkm_last_timestamp [13:10:07]File name is /storage/kkm_last_timestamp [13:10:07]Write 4 bytes [13:10:07]NVStorageSaveData done [13:10:07]ExternCall_PrintAddStr [13:10:07]wPrintStart [13:10:07]Write to MH i2c: 01 00 00 87 77 FE [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: 01 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: 01 07 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: 01 07 00 87 77 00 00 00 00 00 FF 0F 13 [13:10:07]RasterBufferAndPrint [13:10:07]line Счет N : (1)216315 [13:10:07]line ИНН: 02508201610067 [13:10:07]line Контрольно-Кассовый Чек [13:10:07]line ПРОДАЖА [13:10:07]line ТРК (МРК, ГНК) : 21 [13:10:07]line Товар: 2710194210 [13:10:07]line ДТ-К-5 [13:10:07]line 14.310 * 69.90 [13:10:07]line = 1000.27 [13:10:07]line НДС 12% НСП 1% [13:10:07]line > о реализуемом товаре [13:10:07]line ОКРУГЛЕНИЕ: -0.27 [13:10:07]line ИТОГО: 1000.00 [13:10:07]line Внесено: 1000.00 [13:10:07]line СДАЧА: 0.00 [13:10:07]line НСП 1% : 8.85 [13:10:07]line НДС 12% : 106.22 [13:10:07]line Наличными: 1000.00 [13:10:07]line Безнал.: 0.00 [13:10:07]line Место: АЗС № 102 "Партнер Нефть" [13:10:07]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:10:07]line СНО: Общий режим [13:10:07]line Чек 89 30.01.2024 13:10 [13:10:07]line Смена: 246 ФФД: 1.0 [13:10:07]line ЗНМ: 0300000040 [13:10:07]line РНМ: 0000000000092723 [13:10:07]line Версия ККМ: 001 [13:10:07]line ФМ: 0000000000875060 [13:10:07]line ФД: 49213 [13:10:07]line ФПД: 168345312363217 [13:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T131024&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49213&fm=168345312363217&tin=02508201610067®Number=0000000000092723&sum=100000 [13:10:07]OFD Sender: Processing packet 49213 [packets to send 12, broken 11] [13:10:07]ProducePacketName [13:10:07]name=ofd_packets/00049213 [13:10:07]OFD Sender: To server: pG, [13:10:07]CommunicateWithHost lk.salyk.kg:30040 [13:10:07]ConnectInit lk.salyk.kg [13:10:07]written 0, free lines is 4095 [13:10:07]Connected sock=10 [13:10: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 36 30 0C 01 00 00 D9 A1 04 01 4B 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 40 F5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3D C0 00 00 35 04 06 00 99 1B F2 8B 02 D1 33 0B BD 39 03 29 54 F4 [13:10: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 36 30 4F 00 00 00 F6 C3 47 00 41 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 36 30 10 04 04 00 3D C0 00 00 F4 03 04 00 36 A1 B8 65 B6 04 01 00 00 CE 39 6C 6B 34 F6 CE B7 [13:10:08]CommunicateWithHost err = 0 [13:10:08]CheckOFDResponse [13:10:08]1017 (14) - 77093643461234 [13:10:08]1041 (16) - 0000000000875060 [13:10:08]1040 (4) - 49213 [13:10:08]1012 (4) - 30.01.2024 07:11 [13:10:08]1206 (1) - 0 [13:10:08]OFD Sender: Remove packet 49213 [13:10:08]ProducePacketName [13:10:08]name=ofd_packets/00049213 [13:10:08]NVStorageDeleteData [13:10:08]Write to MH i2c: 01 00 00 B2 77 29 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 B2 77 00 00 00 00 00 00 0D 3D [13:10:08]RasterBufferAndPrint [13:10:08]line [13:10:08]line [13:10:08]line [13:10:08]line [13:10:08]line [13:10:08]written 0, free lines is 3337 [13:10:08]MH_Cut [13:10:08]Write to MH i2c: D1 01 00 B9 77 01 02 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: D1 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: D1 01 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: D1 01 00 B9 77 00 01 [13:10:08]Write to MH i2c: 01 00 00 BA 77 31 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]OFD Sender: No OFD packet to send [13:10:08]*** Cut start [13:10:08]*** Partial cut [13:10:08]*** CUTSNS_PIN = 1 [13:10:08]*** CUTSNS_PIN = 0 [13:10:09]*** Brake cut motor [13:10:09]Read from MH i2c: 01 [13:10:09]MH_I2C_Read... [13:10:09]*** Stop cut motor [13:10:09]*** Cut end [13:10:09]Read from MH i2c: 01 07 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 07 00 BA 77 00 00 00 00 00 FF 0F 46 [13:10:09]process_action close_receipt done [13:10:09]requested_data is exist [13:10:09]produce_requested_data [13:10:09]requested_item fm.sn is exist - process it [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 11 00 00 [13:10:09]Write to MH i2c: E2 08 00 BB 77 80 11 00 00 00 00 00 00 AC [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 17 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 17 00 BB 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F9 [13:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:10:09]wFMCommunicate OK [13:10:09]requested_item fd.num is exist - process it [13:10:09]SAM_PROTO_GetFieldsCounters [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 13 00 00 [13:10:09]Write to MH i2c: E2 08 00 BC 77 80 13 00 00 00 00 00 00 AF [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 62 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 62 00 BC 77 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [13:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:09]wFMCommunicate OK [13:10:09]SAM_PROTO_GetFieldsCounters done [13:10:09]requested_item shift.num is exist - process it [13:10:09]requested_item shift.opened is exist - process it [13:10:09]req_shift_opened [13:10:09]FM_GetShiftState [13:10:09]SAM_PROTO_GetShiftState [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 13 01 00 [13:10:09]Write to MH i2c: E2 08 00 BD 77 80 13 01 00 00 00 00 00 B1 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 0E 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 0E 00 BD 77 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D9 [13:10:09]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:10:09]wFMCommunicate OK [13:10:09]SAM_PROTO_GetShiftState done [13:10:09]FM_GetShiftState done [13:10:09]req_shift_opened done [13:10:09]requested_item shift.open_date is exist - process it [13:10:09]req_shift_open_date [13:10:09]req_shift_open_date done [13:10:09]produce_requested_data done [13:10:09]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49213,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [13:10:09]process_action_free close_receipt [13:10:09]json_value_free [13:10:09]json_value_free done [13:10:09]process_json_proto returns [13:10:09]Send response to host [13:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49213,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [13:10:09]free response buf [13:10:09]execute_script done [13:10:09]execute_script returns [13:10:09]free content buf [13:10:09]Sock 7.Close socket [13:10:09]Sock 7.Thread stoped [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:51]accept exits with 9 [13:11:51]New connection [13:11:51]New thread 3066813796 created [13:11:51]Thread 3066670436 joined [13:11:51]Waiting for new connection... [13:11:51] Sock 9.Parse request [13:11:51]Sock 9.Check first char [13:11:51]Sock 9.First char is OK [13:11:51]request: POST /json_proto HTTP/1.0 [13:11:51]Method: POST [13:11:51]URL: /json_proto [13:11:51]Method is POST - this is cgi request [13:11:51]url: /json_proto [13:11:51]query_string will be loaded in cgi processing [13:11:51]execute_cgi json_proto POST (null) [13:11:51]execute_cgi path=json_proto method=POST [13:11:51]POST find Content-Length [13:11:51]Host: 172.17.56.67:8080 [13:11:51]Content-Length: 677 [13:11:51]Content-Type: application/json [13:11:51] [13:11:51]POST finish read [13:11:51]Found Content-Length = 677 [13:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.030, "sum" : 303.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 303.00, "total" : 303.00, "payments": [ { "type": 0, "sum" : 303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:51]execute_script... [13: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)216316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.030, "sum" : 303.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 303.00, "total" : 303.00, "payments": [ { "type": 0, "sum" : 303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:51]POST & json_proto [13:11:51]process_json_proto [13:11:51]json parsed OK: [13:11:51]protocol is kg_v1.0 [13:11:51]action value=close_receipt [13:11:51]process_action close_receipt [13:11:51]cmd_close_receipt [13:11:51]MH_GetDate [13:11:51]Write to MH i2c: F0 00 00 BE 77 24 [13:11:51]Write i2c OK [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: F0 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: F0 09 00 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: F0 09 00 BE 77 00 AA F5 B8 65 26 5D 9E 65 6F [13:11:51]GetLastDocTimeStamp 1706620224 [13:11:51]current date 1706620330 [13:11:51]FM_GetShiftState [13:11:51]SAM_PROTO_GetShiftState [13:11:51]wFMCommunicate request_size=4 [13:11:51]MH_SAM_APDU [13:11:51]CAPDU: 80 13 01 00 [13:11:51]Write to MH i2c: E2 08 00 BF 77 80 13 01 00 00 00 00 00 B3 [13:11:51]Write i2c OK [13:11:51]MH_I2C_Read... [13:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:51]Read from MH i2c: E2 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 0E 00 [13:11:51]MH_I2C_Read... [13:11:51]Read from MH i2c: E2 0E 00 BF 77 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 DB [13:11:51]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:11:51]wFMCommunicate OK [13:11:51]SAM_PROTO_GetShiftState done [13:11:51]FM_GetShiftState done [13:11:51]opened in 1706572995 [13:11:51]opened+sec_in_day 1706659395 [13:11:51]quantity*price = 30330 [13:11:51]sum+1 = 30332 [13:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 303.00 Внесено: 303.00 СДАЧА: 0.00 НСП 1% : 2.68 НДС 12% : 32.21 Наличными: 303.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 90 30.01.2024 13:12 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49214 ФПД: 125225905797136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T131210&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49214&fm=125225905797136&tin=02508201610067®Number=0000000000092723&sum=30300 [13:11:52]StoreToDocumentArchive [13:11:52]shift 246 fd 49214 [13:11:52]save to /storage/0246/doc_00049214 [13:11:52]save last doc name /storage/0246/doc_00049214 to /storage/kkm_last_doc_name [13:11:52]save OK [13:11:52]Clear old archive folders... [13:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:52]tlvbuf is 011CF7D0 [13:11:52]SAM_PROTO_ClearQueue [13:11:52]wFMCommunicate request_size=4 [13:11:52]MH_SAM_APDU [13:11:52]CAPDU: 80 09 00 00 [13:11:52]Write to MH i2c: E2 08 00 CC 77 80 09 00 00 00 00 00 00 B5 [13:11:52]Write i2c OK [13:11:52]MH_I2C_Read... [13:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:52]Read from MH i2c: E2 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 03 00 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 03 00 CC 77 00 90 00 B7 [13:11:52]RAPDU: 90 00 [13:11:52]wFMCommunicate OK [13:11:52]SAM_PROTO_ClearQueue done [13:11:52]KKMCreateOFDPacket [13:11:52]OFDProtocolAddRootSTLVToBuf [13:11:52]FM_MakeSignedData [13:11:52]FM_MakeSignedData [13:11:52]SAM_PROTO_SignData [13:11:52]wFMCommunicate request_size=4 [13:11:52]MH_SAM_APDU [13:11:52]CAPDU: 80 0D 01 02 [13:11:52]Write to MH i2c: E2 08 00 CD 77 80 0D 01 02 00 00 00 00 BD [13:11:52]Write i2c OK [13:11:52]MH_I2C_Read... [13:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:52]Read from MH i2c: E2 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 03 00 [13:11:52]MH_I2C_Read... [13:11:52]Read from MH i2c: E2 03 00 CD 77 00 90 00 B8 [13:11:52]RAPDU: 90 00 [13:11:52]wFMCommunicate OK [13:11:52]wFMCommunicate request_size=255 [13:11:52]MH_SAM_APDU [13:11:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 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 AA F5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3E C0 00 00 35 04 06 00 71 [13:11:52]Write to MH i2c: E2 02 01 CE 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 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 AA F5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3E C0 00 00 35 04 06 00 71 00 00 DB [13:11:52]Write i2c OK [13:11:52]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 03 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 03 00 CE 77 00 90 00 B9 [13:11:53]RAPDU: 90 00 [13:11:53]wFMCommunicate OK [13:11:53]wFMCommunicate request_size=10 [13:11:53]MH_SAM_APDU [13:11:53]CAPDU: 80 0D 02 02 05 E4 6D A1 B8 10 [13:11:53]Write to MH i2c: E2 0D 00 CF 77 80 0D 02 02 05 00 E4 6D A1 B8 10 00 00 84 [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 03 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 03 00 CF 77 00 90 00 BA [13:11:53]RAPDU: 90 00 [13:11:53]wFMCommunicate OK [13:11:53]wFMCommunicate request_size=4 [13:11:53]MH_SAM_APDU [13:11:53]CAPDU: 80 0D 03 02 [13:11:53]Write to MH i2c: E2 08 00 D0 77 80 0D 03 02 00 00 00 00 C2 [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 0B 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 0B 00 D0 77 00 8A F2 7A 2A 7A E1 4B B8 90 00 41 [13:11:53]RAPDU: 8A F2 7A 2A 7A E1 4B B8 90 00 [13:11:53]wFMCommunicate OK [13:11:53]SAM_PROTO_SignData done [13:11:53]FM_MakeSignedData done [13:11:53]CreateOFDProtocolMessage [13:11:53]wFMCommunicate request_size=4 [13:11:53]MH_SAM_APDU [13:11:53]CAPDU: 80 11 00 00 [13:11:53]Write to MH i2c: E2 08 00 D1 77 80 11 00 00 00 00 00 00 C2 [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:53]Read from MH i2c: E2 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 17 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: E2 17 00 D1 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0F [13:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:11:53]wFMCommunicate OK [13:11:53]CreateOFDProtocolMessage done [13:11:53]OFDSenderStorePacket 49214 [13:11:53]StoreOFDPacket docnum=49214 [13:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D7 66 07 01 37 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 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 AA F5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3E C0 00 00 35 04 06 00 71 E4 6D A1 B8 10 8A F2 7A 2A 7A E1 4B B8 [13:11:53]CheckFolder [13:11:53]dirname=/storage/ofd_packets [13:11:53]CheckFolder done [13:11:53]ProducePacketName [13:11:53]name=ofd_packets/00049214 [13:11:53]NVStorageSaveData ofd_packets/00049214 [13:11:53]File name is /storage/ofd_packets/00049214 [13:11:53]Write 301 bytes [13:11:53]NVStorageSaveData done [13:11:53]OFDSenderStorePacket done [13:11:53]KKMCreateOFDPacket done [13:11:53]NVStorageSaveData kkm_last_timestamp [13:11:53]File name is /storage/kkm_last_timestamp [13:11:53]Write 4 bytes [13:11:53]NVStorageSaveData done [13:11:53]ExternCall_PrintAddStr [13:11:53]wPrintStart [13:11:53]Write to MH i2c: 01 00 00 D2 77 49 [13:11:53]Write i2c OK [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: 01 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: 01 07 00 [13:11:53]MH_I2C_Read... [13:11:53]Read from MH i2c: 01 07 00 D2 77 00 00 00 00 00 FF 0F 5E [13:11:53]RasterBufferAndPrint [13:11:53]line Счет N : (1)216316 [13:11:53]line ИНН: 02508201610067 [13:11:53]line Контрольно-Кассовый Чек [13:11:53]line ПРОДАЖА [13:11:53]line ТРК (МРК, ГНК) : 12 [13:11:53]line Товар: 2710124130 [13:11:53]line Аи-92-К-5 [13:11:53]line 5.030 * 60.30 [13:11:53]line = 303.31 [13:11:53]line НДС 12% НСП 1% [13:11:53]line > о реализуемом товаре [13:11:53]line ОКРУГЛЕНИЕ: -0.31 [13:11:53]line ИТОГО: 303.00 [13:11:53]line Внесено: 303.00 [13:11:53]line СДАЧА: 0.00 [13:11:53]line НСП 1% : 2.68 [13:11:53]line НДС 12% : 32.21 [13:11:53]line Наличными: 303.00 [13:11:53]line Безнал.: 0.00 [13:11:53]line Место: АЗС № 102 "Партнер Нефть" [13:11:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:11:53]line СНО: Общий режим [13:11:53]line Чек 90 30.01.2024 13:12 [13:11:53]line Смена: 246 ФФД: 1.0 [13:11:53]line ЗНМ: 0300000040 [13:11:53]line РНМ: 0000000000092723 [13:11:53]line Версия ККМ: 001 [13:11:53]line ФМ: 0000000000875060 [13:11:53]line ФД: 49214 [13:11:53]line ФПД: 125225905797136 [13:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T131210&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49214&fm=125225905797136&tin=02508201610067®Number=0000000000092723&sum=30300 [13:11:53]OFD Sender: Processing packet 49214 [packets to send 12, broken 11] [13:11:53]ProducePacketName [13:11:53]name=ofd_packets/00049214 [13:11:53]OFD Sender: To server: pG, [13:11:53]CommunicateWithHost lk.salyk.kg:30040 [13:11:53]ConnectInit lk.salyk.kg [13:11:53]written 0, free lines is 4095 [13:11:53]Connected sock=10 [13: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 36 30 0F 01 00 00 D7 66 07 01 37 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 7B 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 0C 00 00 00 00 07 04 06 00 5C 76 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 AA F5 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3E C0 00 00 35 04 06 00 71 E4 6D A1 B8 10 8A F2 7A 2A 7A E1 4B B8 [13: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 36 30 4F 00 00 00 CB 7C 47 00 4E 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 36 30 10 04 04 00 3E C0 00 00 F4 03 04 00 A0 A1 B8 65 B6 04 01 00 00 0B 4C 62 9B 37 B7 BB F4 [13:11:53]CommunicateWithHost err = 0 [13:11:53]CheckOFDResponse [13:11:53]1017 (14) - 77093643461234 [13:11:53]1041 (16) - 0000000000875060 [13:11:53]1040 (4) - 49214 [13:11:53]1012 (4) - 30.01.2024 07:13 [13:11:53]1206 (1) - 0 [13:11:53]OFD Sender: Remove packet 49214 [13:11:53]ProducePacketName [13:11:53]name=ofd_packets/00049214 [13:11:53]NVStorageDeleteData [13:11:54]Write to MH i2c: 01 00 00 FD 77 74 [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 07 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: 01 07 00 FD 77 00 00 00 00 00 EF 0C 76 [13:11:54]RasterBufferAndPrint [13:11:54]line [13:11:54]line [13:11:54]line [13:11:54]line [13:11:54]line [13:11:54]written 0, free lines is 3317 [13:11:54]MH_Cut [13:11:54]Write to MH i2c: D1 01 00 04 78 01 4E [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: D1 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: D1 01 00 [13:11:54]MH_I2C_Read... [13:11:54]Read from MH i2c: D1 01 00 04 78 00 4D [13:11:54]Write to MH i2c: 01 00 00 05 78 7D [13:11:54]Write i2c OK [13:11:54]MH_I2C_Read... [13:11:54]OFD Sender: No OFD packet to send [13:11:54]*** Cut start [13:11:54]*** Partial cut [13:11:54]*** CUTSNS_PIN = 1 [13:11:54]*** CUTSNS_PIN = 0 [13:11:55]*** Brake cut motor [13:11:55]Read from MH i2c: 01 [13:11:55]MH_I2C_Read... [13:11:55]*** Stop cut motor [13:11:55]*** Cut end [13:11:55]Read from MH i2c: 01 07 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: 01 07 00 05 78 00 00 00 00 00 FF 0F 92 [13:11:55]process_action close_receipt done [13:11:55]requested_data is exist [13:11:55]produce_requested_data [13:11:55]requested_item fm.sn is exist - process it [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 11 00 00 [13:11:55]Write to MH i2c: E2 08 00 06 78 80 11 00 00 00 00 00 00 F8 [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 17 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 17 00 06 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 45 [13:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:11:55]wFMCommunicate OK [13:11:55]requested_item fd.num is exist - process it [13:11:55]SAM_PROTO_GetFieldsCounters [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 13 00 00 [13:11:55]Write to MH i2c: E2 08 00 07 78 80 13 00 00 00 00 00 00 FB [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 62 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 62 00 07 78 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [13:11: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:55]wFMCommunicate OK [13:11:55]SAM_PROTO_GetFieldsCounters done [13:11:55]requested_item shift.num is exist - process it [13:11:55]requested_item shift.opened is exist - process it [13:11:55]req_shift_opened [13:11:55]FM_GetShiftState [13:11:55]SAM_PROTO_GetShiftState [13:11:55]wFMCommunicate request_size=4 [13:11:55]MH_SAM_APDU [13:11:55]CAPDU: 80 13 01 00 [13:11:55]Write to MH i2c: E2 08 00 08 78 80 13 01 00 00 00 00 00 FD [13:11:55]Write i2c OK [13:11:55]MH_I2C_Read... [13:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:55]Read from MH i2c: E2 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 0E 00 [13:11:55]MH_I2C_Read... [13:11:55]Read from MH i2c: E2 0E 00 08 78 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 25 [13:11:55]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:11:55]wFMCommunicate OK [13:11:55]SAM_PROTO_GetShiftState done [13:11:55]FM_GetShiftState done [13:11:55]req_shift_opened done [13:11:55]requested_item shift.open_date is exist - process it [13:11:55]req_shift_open_date [13:11:55]req_shift_open_date done [13:11:55]produce_requested_data done [13:11:55]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49214,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [13:11:55]process_action_free close_receipt [13:11:55]json_value_free [13:11:55]json_value_free done [13:11:55]process_json_proto returns [13:11:55]Send response to host [13:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49214,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [13:11:55]free response buf [13:11:55]execute_script done [13:11:55]execute_script returns [13:11:55]free content buf [13:11:55]Sock 9.Close socket [13:11:55]Sock 9.Thread stoped [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [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: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:38]accept exits with 7 [13:19:38]New connection [13:19:38]New thread 3066670436 created [13:19:38]Thread 3066813796 joined [13:19:38]Waiting for new connection... [13:19:38] Sock 7.Parse request [13:19:38]Sock 7.Check first char [13:19:38]Sock 7.First char is OK [13:19:38]request: POST /json_proto HTTP/1.0 [13:19:38]Method: POST [13:19:38]URL: /json_proto [13:19:38]Method is POST - this is cgi request [13:19:38]url: /json_proto [13:19:38]query_string will be loaded in cgi processing [13:19:38]execute_cgi json_proto POST (null) [13:19:38]execute_cgi path=json_proto method=POST [13:19:38]POST find Content-Length [13:19:38]Host: 172.17.56.67:8080 [13:19:38]Content-Length: 677 [13:19:38]Content-Type: application/json [13:19:38] [13:19:38]POST finish read [13:19:38]Found Content-Length = 677 [13:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:38]execute_script... [13:19:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:38]POST & json_proto [13:19:38]process_json_proto [13:19:38]json parsed OK: [13:19:38]protocol is kg_v1.0 [13:19:38]action value=close_receipt [13:19:38]process_action close_receipt [13:19:38]cmd_close_receipt [13:19:38]MH_GetDate [13:19:38]Write to MH i2c: F0 00 00 09 78 70 [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: F0 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: F0 09 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: F0 09 00 09 78 00 7D F7 B8 65 26 5D 9E 65 90 [13:19:38]GetLastDocTimeStamp 1706620330 [13:19:38]current date 1706620797 [13:19:38]FM_GetShiftState [13:19:38]SAM_PROTO_GetShiftState [13:19:38]wFMCommunicate request_size=4 [13:19:38]MH_SAM_APDU [13:19:38]CAPDU: 80 13 01 00 [13:19:38]Write to MH i2c: E2 08 00 0A 78 80 13 01 00 00 00 00 00 FF [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:38]Read from MH i2c: E2 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 0E 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 0E 00 0A 78 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 27 [13:19:38]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:19:38]wFMCommunicate OK [13:19:38]SAM_PROTO_GetShiftState done [13:19:38]FM_GetShiftState done [13:19:38]opened in 1706572995 [13:19:38]opened+sec_in_day 1706659395 [13:19:38]quantity*price = 50049 [13:19:38]sum+1 = 50050 [13:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 91 30.01.2024 13:19 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49215 ФПД: 78073640058874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T131957&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49215&fm=78073640058874&tin=02508201610067®Number=0000000000092723&sum=50000 [13:19:39]StoreToDocumentArchive [13:19:39]shift 246 fd 49215 [13:19:39]save to /storage/0246/doc_00049215 [13:19:39]save last doc name /storage/0246/doc_00049215 to /storage/kkm_last_doc_name [13:19:39]save OK [13:19:39]Clear old archive folders... [13:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:39]tlvbuf is 01384B80 [13:19:39]SAM_PROTO_ClearQueue [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 09 00 00 [13:19:39]Write to MH i2c: E2 08 00 17 78 80 09 00 00 00 00 00 00 01 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 17 78 00 90 00 03 [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]SAM_PROTO_ClearQueue done [13:19:39]KKMCreateOFDPacket [13:19:39]OFDProtocolAddRootSTLVToBuf [13:19:39]FM_MakeSignedData [13:19:39]FM_MakeSignedData [13:19:39]SAM_PROTO_SignData [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 01 02 [13:19:39]Write to MH i2c: E2 08 00 18 78 80 0D 01 02 00 00 00 00 09 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 18 78 00 90 00 04 [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]wFMCommunicate request_size=255 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 7D F7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3F C0 00 00 35 04 06 00 47 [13:19:39]Write to MH i2c: E2 02 01 19 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 7D F7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3F C0 00 00 35 04 06 00 47 00 00 61 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]OFD Sender: No OFD packet to send [13:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 19 78 00 90 00 05 [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]wFMCommunicate request_size=10 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 02 02 05 01 EF 94 FF FA [13:19:39]Write to MH i2c: E2 0D 00 1A 78 80 0D 02 02 05 00 01 EF 94 FF FA 00 00 93 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 1A 78 00 90 00 06 [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 03 02 [13:19:39]Write to MH i2c: E2 08 00 1B 78 80 0D 03 02 00 00 00 00 0E [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:40]Read from MH i2c: E2 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 0B 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 0B 00 1B 78 00 38 45 15 3B D7 55 E8 76 90 00 66 [13:19:40]RAPDU: 38 45 15 3B D7 55 E8 76 90 00 [13:19:40]wFMCommunicate OK [13:19:40]SAM_PROTO_SignData done [13:19:40]FM_MakeSignedData done [13:19:40]CreateOFDProtocolMessage [13:19:40]wFMCommunicate request_size=4 [13:19:40]MH_SAM_APDU [13:19:40]CAPDU: 80 11 00 00 [13:19:40]Write to MH i2c: E2 08 00 1C 78 80 11 00 00 00 00 00 00 0E [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:40]Read from MH i2c: E2 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 17 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: E2 17 00 1C 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5B [13:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:19:40]wFMCommunicate OK [13:19:40]CreateOFDProtocolMessage done [13:19:40]OFDSenderStorePacket 49215 [13:19:40]StoreOFDPacket docnum=49215 [13:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 65 87 07 01 21 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 7D F7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3F C0 00 00 35 04 06 00 47 01 EF 94 FF FA 38 45 15 3B D7 55 E8 76 [13:19:40]CheckFolder [13:19:40]dirname=/storage/ofd_packets [13:19:40]CheckFolder done [13:19:40]ProducePacketName [13:19:40]name=ofd_packets/00049215 [13:19:40]NVStorageSaveData ofd_packets/00049215 [13:19:40]File name is /storage/ofd_packets/00049215 [13:19:40]Write 301 bytes [13:19:40]NVStorageSaveData done [13:19:40]OFDSenderStorePacket done [13:19:40]KKMCreateOFDPacket done [13:19:40]NVStorageSaveData kkm_last_timestamp [13:19:40]File name is /storage/kkm_last_timestamp [13:19:40]Write 4 bytes [13:19:40]NVStorageSaveData done [13:19:40]ExternCall_PrintAddStr [13:19:40]wPrintStart [13:19:40]Write to MH i2c: 01 00 00 1D 78 95 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 1D 78 00 00 00 00 00 FF 0F AA [13:19:40]RasterBufferAndPrint [13:19:40]line Счет N : (1)216317 [13:19:40]line ИНН: 02508201610067 [13:19:40]line Контрольно-Кассовый Чек [13:19:40]line ПРОДАЖА [13:19:40]line ТРК (МРК, ГНК) : 12 [13:19:40]line Товар: 2710124130 [13:19:40]line Аи-92-К-5 [13:19:40]line 8.300 * 60.30 [13:19:40]line = 500.49 [13:19:40]line НДС 12% НСП 1% [13:19:40]line > о реализуемом товаре [13:19:40]line ОКРУГЛЕНИЕ: -0.49 [13:19:40]line ИТОГО: 500.00 [13:19:40]line Внесено: 500.00 [13:19:40]line СДАЧА: 0.00 [13:19:40]line НСП 1% : 4.43 [13:19:40]line НДС 12% : 53.15 [13:19:40]line Наличными: 500.00 [13:19:40]line Безнал.: 0.00 [13:19:40]line Место: АЗС № 102 "Партнер Нефть" [13:19:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:19:40]line СНО: Общий режим [13:19:40]line Чек 91 30.01.2024 13:19 [13:19:40]line Смена: 246 ФФД: 1.0 [13:19:40]line ЗНМ: 0300000040 [13:19:40]line РНМ: 0000000000092723 [13:19:40]line Версия ККМ: 001 [13:19:40]line ФМ: 0000000000875060 [13:19:40]line ФД: 49215 [13:19:40]line ФПД: 78073640058874 [13:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T131957&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49215&fm=78073640058874&tin=02508201610067®Number=0000000000092723&sum=50000 [13:19:40]OFD Sender: Processing packet 49215 [packets to send 12, broken 11] [13:19:40]ProducePacketName [13:19:40]name=ofd_packets/00049215 [13:19:40]OFD Sender: To server: pG, [13:19:40]CommunicateWithHost lk.salyk.kg:30040 [13:19:40]ConnectInit lk.salyk.kg [13:19:40]written 0, free lines is 4095 [13:19:40]Connected sock=10 [13:19: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 36 30 0F 01 00 00 65 87 07 01 21 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 7D F7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 3F C0 00 00 35 04 06 00 47 01 EF 94 FF FA 38 45 15 3B D7 55 E8 76 [13:19: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 36 30 4F 00 00 00 18 05 47 00 F8 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 36 30 10 04 04 00 3F C0 00 00 F4 03 04 00 72 A3 B8 65 B6 04 01 00 00 C6 DB 8C 0A 09 96 86 CA [13:19:40]CommunicateWithHost err = 0 [13:19:40]CheckOFDResponse [13:19:40]1017 (14) - 77093643461234 [13:19:40]1041 (16) - 0000000000875060 [13:19:40]1040 (4) - 49215 [13:19:40]1012 (4) - 30.01.2024 07:21 [13:19:40]1206 (1) - 0 [13:19:40]OFD Sender: Remove packet 49215 [13:19:40]ProducePacketName [13:19:40]name=ofd_packets/00049215 [13:19:40]NVStorageDeleteData [13:19:40]Write to MH i2c: 01 00 00 48 78 C0 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 48 78 00 00 00 00 00 F4 0C C7 [13:19:40]RasterBufferAndPrint [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]written 0, free lines is 3322 [13:19:40]MH_Cut [13:19:40]Write to MH i2c: D1 01 00 4F 78 01 99 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 01 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 01 00 4F 78 00 98 [13:19:40]Write to MH i2c: 01 00 00 50 78 C8 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:41]OFD Sender: No OFD packet to send [13:19:41]*** Cut start [13:19:41]*** Partial cut [13:19:41]*** CUTSNS_PIN = 1 [13:19:41]*** CUTSNS_PIN = 0 [13:19:41]*** Brake cut motor [13:19:42]Read from MH i2c: 01 [13:19:42]MH_I2C_Read... [13:19:42]*** Stop cut motor [13:19:42]*** Cut end [13:19:42]Read from MH i2c: 01 07 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: 01 07 00 50 78 00 00 00 00 00 FF 0F DD [13:19:42]process_action close_receipt done [13:19:42]requested_data is exist [13:19:42]produce_requested_data [13:19:42]requested_item fm.sn is exist - process it [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 11 00 00 [13:19:42]Write to MH i2c: E2 08 00 51 78 80 11 00 00 00 00 00 00 43 [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 17 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 17 00 51 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 90 [13:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:19:42]wFMCommunicate OK [13:19:42]requested_item fd.num is exist - process it [13:19:42]SAM_PROTO_GetFieldsCounters [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 13 00 00 [13:19:42]Write to MH i2c: E2 08 00 52 78 80 13 00 00 00 00 00 00 46 [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 62 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 62 00 52 78 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [13:19: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 3F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:42]wFMCommunicate OK [13:19:42]SAM_PROTO_GetFieldsCounters done [13:19:42]requested_item shift.num is exist - process it [13:19:42]requested_item shift.opened is exist - process it [13:19:42]req_shift_opened [13:19:42]FM_GetShiftState [13:19:42]SAM_PROTO_GetShiftState [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 13 01 00 [13:19:42]Write to MH i2c: E2 08 00 53 78 80 13 01 00 00 00 00 00 48 [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 0E 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 0E 00 53 78 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 70 [13:19:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:19:42]wFMCommunicate OK [13:19:42]SAM_PROTO_GetShiftState done [13:19:42]FM_GetShiftState done [13:19:42]req_shift_opened done [13:19:42]requested_item shift.open_date is exist - process it [13:19:42]req_shift_open_date [13:19:42]req_shift_open_date done [13:19:42]produce_requested_data done [13:19:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49215,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [13:19:42]process_action_free close_receipt [13:19:42]json_value_free [13:19:42]json_value_free done [13:19:42]process_json_proto returns [13:19:42]Send response to host [13:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49215,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [13:19:42]free response buf [13:19:42]execute_script done [13:19:42]execute_script returns [13:19:42]free content buf [13:19:42]Sock 7.Close socket [13:19:42]Sock 7.Thread stoped [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:28]accept exits with 9 [13:21:28]New connection [13:21:28]New thread 3066813796 created [13:21:28]Thread 3066670436 joined [13:21:28]Waiting for new connection... [13:21:28] Sock 9.Parse request [13:21:28]Sock 9.Check first char [13:21:28]Sock 9.First char is OK [13:21:28]request: POST /json_proto HTTP/1.0 [13:21:28]Method: POST [13:21:28]URL: /json_proto [13:21:28]Method is POST - this is cgi request [13:21:28]url: /json_proto [13:21:28]query_string will be loaded in cgi processing [13:21:28]execute_cgi json_proto POST (null) [13:21:28]execute_cgi path=json_proto method=POST [13:21:28]POST find Content-Length [13:21:28]Host: 172.17.56.67:8080 [13:21:28]Content-Length: 674 [13:21:28]Content-Type: application/json [13:21:28] [13:21:28]POST finish read [13:21:28]Found Content-Length = 674 [13:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 8.590, "sum" : 600.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:28]execute_script... [13:21:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 8.590, "sum" : 600.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:28]POST & json_proto [13:21:28]process_json_proto [13:21:28]json parsed OK: [13:21:28]protocol is kg_v1.0 [13:21:28]action value=close_receipt [13:21:28]process_action close_receipt [13:21:28]cmd_close_receipt [13:21:28]MH_GetDate [13:21:28]Write to MH i2c: F0 00 00 54 78 BB [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 09 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 09 00 54 78 00 EB F7 B8 65 26 5D 9E 65 49 [13:21:28]GetLastDocTimeStamp 1706620797 [13:21:28]current date 1706620907 [13:21:28]FM_GetShiftState [13:21:28]SAM_PROTO_GetShiftState [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 13 01 00 [13:21:28]Write to MH i2c: E2 08 00 55 78 80 13 01 00 00 00 00 00 4A [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0E 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0E 00 55 78 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 72 [13:21:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:21:28]wFMCommunicate OK [13:21:28]SAM_PROTO_GetShiftState done [13:21:28]FM_GetShiftState done [13:21:28]opened in 1706572995 [13:21:28]opened+sec_in_day 1706659395 [13:21:28]quantity*price = 60044 [13:21:28]sum+1 = 60045 [13:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 92 30.01.2024 13:21 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49216 ФПД: 210079397307515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T132147&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49216&fm=210079397307515&tin=02508201610067®Number=0000000000092723&sum=60000 [13:21:29]StoreToDocumentArchive [13:21:29]shift 246 fd 49216 [13:21:29]save to /storage/0246/doc_00049216 [13:21:29]save last doc name /storage/0246/doc_00049216 to /storage/kkm_last_doc_name [13:21:29]save OK [13:21:29]Clear old archive folders... [13:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:29]tlvbuf is 011DAD70 [13:21:29]SAM_PROTO_ClearQueue [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 09 00 00 [13:21:29]Write to MH i2c: E2 08 00 62 78 80 09 00 00 00 00 00 00 4C [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 62 78 00 90 00 4E [13:21:29]RAPDU: 90 00 [13:21:29]wFMCommunicate OK [13:21:29]SAM_PROTO_ClearQueue done [13:21:29]KKMCreateOFDPacket [13:21:29]OFDProtocolAddRootSTLVToBuf [13:21:29]FM_MakeSignedData [13:21:29]FM_MakeSignedData [13:21:29]SAM_PROTO_SignData [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 0D 01 02 [13:21:29]Write to MH i2c: E2 08 00 63 78 80 0D 01 02 00 00 00 00 54 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 63 78 00 90 00 4F [13:21:29]RAPDU: 90 00 [13:21:29]wFMCommunicate OK [13:21:29]wFMCommunicate request_size=255 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 21 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 8C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EB F7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 40 C0 00 00 35 04 06 00 BF 10 EB D9 [13:21:29]Write to MH i2c: E2 02 01 64 78 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 21 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 8C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EB F7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 40 C0 00 00 35 04 06 00 BF 10 EB D9 00 00 C4 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 03 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 03 00 64 78 00 90 00 50 [13:21:30]RAPDU: 90 00 [13:21:30]wFMCommunicate OK [13:21:30]wFMCommunicate request_size=7 [13:21:30]MH_SAM_APDU [13:21:30]CAPDU: 80 0D 02 02 02 E4 7B [13:21:30]Write to MH i2c: E2 0A 00 65 78 80 0D 02 02 02 00 E4 7B 00 00 BA [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 03 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 03 00 65 78 00 90 00 51 [13:21:30]RAPDU: 90 00 [13:21:30]wFMCommunicate OK [13:21:30]wFMCommunicate request_size=4 [13:21:30]MH_SAM_APDU [13:21:30]CAPDU: 80 0D 03 02 [13:21:30]Write to MH i2c: E2 08 00 66 78 80 0D 03 02 00 00 00 00 59 [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 0B 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 0B 00 66 78 00 13 55 22 84 7F 42 12 EC 90 00 27 [13:21:30]RAPDU: 13 55 22 84 7F 42 12 EC 90 00 [13:21:30]wFMCommunicate OK [13:21:30]SAM_PROTO_SignData done [13:21:30]FM_MakeSignedData done [13:21:30]CreateOFDProtocolMessage [13:21:30]wFMCommunicate request_size=4 [13:21:30]MH_SAM_APDU [13:21:30]CAPDU: 80 11 00 00 [13:21:30]Write to MH i2c: E2 08 00 67 78 80 11 00 00 00 00 00 00 59 [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 17 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 17 00 67 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A6 [13:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:21:30]wFMCommunicate OK [13:21:30]CreateOFDProtocolMessage done [13:21:30]OFDSenderStorePacket 49216 [13:21:30]StoreOFDPacket docnum=49216 [13:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 2B E4 04 01 83 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 21 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 8C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EB F7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 40 C0 00 00 35 04 06 00 BF 10 EB D9 E4 7B 13 55 22 84 7F 42 12 EC [13:21:30]CheckFolder [13:21:30]dirname=/storage/ofd_packets [13:21:30]CheckFolder done [13:21:30]ProducePacketName [13:21:30]name=ofd_packets/00049216 [13:21:30]NVStorageSaveData ofd_packets/00049216 [13:21:30]File name is /storage/ofd_packets/00049216 [13:21:30]Write 298 bytes [13:21:30]NVStorageSaveData done [13:21:30]OFDSenderStorePacket done [13:21:30]KKMCreateOFDPacket done [13:21:30]NVStorageSaveData kkm_last_timestamp [13:21:30]File name is /storage/kkm_last_timestamp [13:21:30]Write 4 bytes [13:21:30]NVStorageSaveData done [13:21:30]ExternCall_PrintAddStr [13:21:30]wPrintStart [13:21:30]Write to MH i2c: 01 00 00 68 78 E0 [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 07 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 07 00 68 78 00 00 00 00 00 FF 0F F5 [13:21:30]RasterBufferAndPrint [13:21:30]line Счет N : (1)216318 [13:21:30]line ИНН: 02508201610067 [13:21:30]line Контрольно-Кассовый Чек [13:21:30]line ПРОДАЖА [13:21:30]line ТРК (МРК, ГНК) : 11 [13:21:30]line Товар: 2710194210 [13:21:30]line ДТ-К-5 [13:21:30]line 8.590 * 69.90 [13:21:30]line = 600.44 [13:21:30]line НДС 12% НСП 1% [13:21:30]line > о реализуемом товаре [13:21:30]line ОКРУГЛЕНИЕ: -0.44 [13:21:30]line ИТОГО: 600.00 [13:21:30]line Внесено: 600.00 [13:21:30]line СДАЧА: 0.00 [13:21:30]line НСП 1% : 5.31 [13:21:30]line НДС 12% : 63.76 [13:21:30]line Наличными: 600.00 [13:21:30]line Безнал.: 0.00 [13:21:30]line Место: АЗС № 102 "Партнер Нефть" [13:21:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:21:30]line СНО: Общий режим [13:21:30]line Чек 92 30.01.2024 13:21 [13:21:30]line Смена: 246 ФФД: 1.0 [13:21:30]line ЗНМ: 0300000040 [13:21:30]line РНМ: 0000000000092723 [13:21:30]line Версия ККМ: 001 [13:21:30]line ФМ: 0000000000875060 [13:21:30]line ФД: 49216 [13:21:30]line ФПД: 210079397307515 [13:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T132147&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49216&fm=210079397307515&tin=02508201610067®Number=0000000000092723&sum=60000 [13:21:30]OFD Sender: Processing packet 49216 [packets to send 12, broken 11] [13:21:30]ProducePacketName [13:21:30]name=ofd_packets/00049216 [13:21:30]OFD Sender: To server: pG, [13:21:30]CommunicateWithHost lk.salyk.kg:30040 [13:21:30]ConnectInit lk.salyk.kg [13:21:30]written 0, free lines is 4095 [13:21:30]Connected sock=10 [13:21: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 36 30 0C 01 00 00 2B E4 04 01 83 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 21 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 8C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EB F7 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 40 C0 00 00 35 04 06 00 BF 10 EB D9 E4 7B 13 55 22 84 7F 42 12 EC [13:21: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 36 30 4F 00 00 00 B5 B9 47 00 DD 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 36 30 10 04 04 00 40 C0 00 00 F4 03 04 00 E1 A3 B8 65 B6 04 01 00 00 DF 61 3F 9F 4D B4 3A 64 [13:21:30]CommunicateWithHost err = 0 [13:21:30]CheckOFDResponse [13:21:30]1017 (14) - 77093643461234 [13:21:30]1041 (16) - 0000000000875060 [13:21:30]1040 (4) - 49216 [13:21:30]1012 (4) - 30.01.2024 07:23 [13:21:30]1206 (1) - 0 [13:21:30]OFD Sender: Remove packet 49216 [13:21:30]ProducePacketName [13:21:30]name=ofd_packets/00049216 [13:21:30]NVStorageDeleteData [13:21:31]Write to MH i2c: 01 00 00 93 78 0B [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: 01 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: 01 07 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: 01 07 00 93 78 00 00 00 00 00 F2 0C 10 [13:21:31]RasterBufferAndPrint [13:21:31]line [13:21:31]line [13:21:31]line [13:21:31]line [13:21:31]line [13:21:31]written 0, free lines is 3320 [13:21:31]MH_Cut [13:21:31]Write to MH i2c: D1 01 00 9A 78 01 E4 [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: D1 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: D1 01 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: D1 01 00 9A 78 00 E3 [13:21:31]Write to MH i2c: 01 00 00 9B 78 13 [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]OFD Sender: No OFD packet to send [13:21:31]*** Cut start [13:21:31]*** Partial cut [13:21:31]*** CUTSNS_PIN = 1 [13:21:31]*** CUTSNS_PIN = 0 [13:21:32]*** Brake cut motor [13:21:32]Read from MH i2c: 01 [13:21:32]MH_I2C_Read... [13:21:32]*** Stop cut motor [13:21:32]*** Cut end [13:21:32]Read from MH i2c: 01 07 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: 01 07 00 9B 78 00 00 00 00 00 FF 0F 28 [13:21:32]process_action close_receipt done [13:21:32]requested_data is exist [13:21:32]produce_requested_data [13:21:32]requested_item fm.sn is exist - process it [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 11 00 00 [13:21:32]Write to MH i2c: E2 08 00 9C 78 80 11 00 00 00 00 00 00 8E [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 17 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 17 00 9C 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DB [13:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:21:32]wFMCommunicate OK [13:21:32]requested_item fd.num is exist - process it [13:21:32]SAM_PROTO_GetFieldsCounters [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 13 00 00 [13:21:32]Write to MH i2c: E2 08 00 9D 78 80 13 00 00 00 00 00 00 91 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 62 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 62 00 9D 78 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 40 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [13:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 40 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_GetFieldsCounters done [13:21:32]requested_item shift.num is exist - process it [13:21:32]requested_item shift.opened is exist - process it [13:21:32]req_shift_opened [13:21:32]FM_GetShiftState [13:21:32]SAM_PROTO_GetShiftState [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 13 01 00 [13:21:32]Write to MH i2c: E2 08 00 9E 78 80 13 01 00 00 00 00 00 93 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 0E 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 0E 00 9E 78 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 BB [13:21:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_GetShiftState done [13:21:32]FM_GetShiftState done [13:21:32]req_shift_opened done [13:21:32]requested_item shift.open_date is exist - process it [13:21:32]req_shift_open_date [13:21:32]req_shift_open_date done [13:21:32]produce_requested_data done [13:21:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49216,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [13:21:32]process_action_free close_receipt [13:21:32]json_value_free [13:21:32]json_value_free done [13:21:32]process_json_proto returns [13:21:32]Send response to host [13:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49216,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [13:21:32]free response buf [13:21:32]execute_script done [13:21:32]execute_script returns [13:21:32]free content buf [13:21:32]Sock 9.Close socket [13:21:32]Sock 9.Thread stoped [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23: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:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33: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:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:42:58]accept exits with 7 [13:42:58]New connection [13:42:58]New thread 3066670436 created [13:42:58]Thread 3066813796 joined [13:42:58]Waiting for new connection... [13:42:58] Sock 7.Parse request [13:42:58]Sock 7.Check first char [13:42:58]Sock 7.First char is OK [13:42:58]request: POST /json_proto HTTP/1.0 [13:42:58]Method: POST [13:42:58]URL: /json_proto [13:42:58]Method is POST - this is cgi request [13:42:58]url: /json_proto [13:42:58]query_string will be loaded in cgi processing [13:42:58]execute_cgi json_proto POST (null) [13:42:58]execute_cgi path=json_proto method=POST [13:42:58]POST find Content-Length [13:42:58]Host: 172.17.56.67:8080 [13:42:58]Content-Length: 679 [13:42:58]Content-Type: application/json [13:42:58] [13:42:58]POST finish read [13:42:58]Found Content-Length = 679 [13:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:58]execute_script... [13:42: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)216319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:58]POST & json_proto [13:42:58]process_json_proto [13:42:58]json parsed OK: [13:42:58]protocol is kg_v1.0 [13:42:58]action value=close_receipt [13:42:58]process_action close_receipt [13:42:58]cmd_close_receipt [13:42:58]MH_GetDate [13:42:58]Write to MH i2c: F0 00 00 9F 78 06 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: F0 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: F0 09 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: F0 09 00 9F 78 00 F5 FC B8 65 26 5D 9E 65 A3 [13:42:58]GetLastDocTimeStamp 1706620907 [13:42:58]current date 1706622197 [13:42:58]FM_GetShiftState [13:42:58]SAM_PROTO_GetShiftState [13:42:58]wFMCommunicate request_size=4 [13:42:58]MH_SAM_APDU [13:42:58]CAPDU: 80 13 01 00 [13:42:58]Write to MH i2c: E2 08 00 A0 78 80 13 01 00 00 00 00 00 95 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:58]Read from MH i2c: E2 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 0E 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: E2 0E 00 A0 78 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 BD [13:42:58]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:42:58]wFMCommunicate OK [13:42:58]SAM_PROTO_GetShiftState done [13:42:58]FM_GetShiftState done [13:42:58]opened in 1706572995 [13:42:58]opened+sec_in_day 1706659395 [13:42:58]quantity*price = 150005 [13:42:58]sum+1 = 150006 [13:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 93 30.01.2024 13:43 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49217 ФПД: 243360266760186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T134317&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49217&fm=243360266760186&tin=02508201610067®Number=0000000000092723&sum=150000 [13:42:59]StoreToDocumentArchive [13:42:59]shift 246 fd 49217 [13:42:59]save to /storage/0246/doc_00049217 [13:42:59]save last doc name /storage/0246/doc_00049217 to /storage/kkm_last_doc_name [13:42:59]save OK [13:42:59]Clear old archive folders... [13:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:42:59]tlvbuf is 011E5E70 [13:42:59]SAM_PROTO_ClearQueue [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 09 00 00 [13:42:59]Write to MH i2c: E2 08 00 AD 78 80 09 00 00 00 00 00 00 97 [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 AD 78 00 90 00 99 [13:42:59]RAPDU: 90 00 [13:42:59]wFMCommunicate OK [13:42:59]SAM_PROTO_ClearQueue done [13:42:59]KKMCreateOFDPacket [13:42:59]OFDProtocolAddRootSTLVToBuf [13:42:59]FM_MakeSignedData [13:42:59]FM_MakeSignedData [13:42:59]SAM_PROTO_SignData [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 0D 01 02 [13:42:59]Write to MH i2c: E2 08 00 AE 78 80 0D 01 02 00 00 00 00 9F [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 03 00 AE 78 00 90 00 9A [13:42:59]RAPDU: 90 00 [13:42:59]wFMCommunicate OK [13:42:59]wFMCommunicate request_size=255 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F5 FC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 41 C0 00 00 35 04 06 00 DD 55 BA 40 [13:42:59]Write to MH i2c: E2 02 01 AF 78 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F5 FC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 41 C0 00 00 35 04 06 00 DD 55 BA 40 00 00 74 [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:00]Read from MH i2c: E2 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 03 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 03 00 AF 78 00 90 00 9B [13:43:00]RAPDU: 90 00 [13:43:00]wFMCommunicate OK [13:43:00]wFMCommunicate request_size=7 [13:43:00]MH_SAM_APDU [13:43:00]CAPDU: 80 0D 02 02 02 AF FA [13:43:00]Write to MH i2c: E2 0A 00 B0 78 80 0D 02 02 02 00 AF FA 00 00 4F [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:00]Read from MH i2c: E2 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 03 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 03 00 B0 78 00 90 00 9C [13:43:00]RAPDU: 90 00 [13:43:00]wFMCommunicate OK [13:43:00]wFMCommunicate request_size=4 [13:43:00]MH_SAM_APDU [13:43:00]CAPDU: 80 0D 03 02 [13:43:00]Write to MH i2c: E2 08 00 B1 78 80 0D 03 02 00 00 00 00 A4 [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:00]Read from MH i2c: E2 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 0B 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 0B 00 B1 78 00 A4 4A 6D EA 45 86 A0 0B 90 00 60 [13:43:00]RAPDU: A4 4A 6D EA 45 86 A0 0B 90 00 [13:43:00]wFMCommunicate OK [13:43:00]SAM_PROTO_SignData done [13:43:00]FM_MakeSignedData done [13:43:00]CreateOFDProtocolMessage [13:43:00]wFMCommunicate request_size=4 [13:43:00]MH_SAM_APDU [13:43:00]CAPDU: 80 11 00 00 [13:43:00]Write to MH i2c: E2 08 00 B2 78 80 11 00 00 00 00 00 00 A4 [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:00]Read from MH i2c: E2 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 17 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: E2 17 00 B2 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F1 [13:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:43:00]wFMCommunicate OK [13:43:00]CreateOFDProtocolMessage done [13:43:00]OFDSenderStorePacket 49217 [13:43:00]StoreOFDPacket docnum=49217 [13:43:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 9C C0 04 01 8B D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F5 FC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 41 C0 00 00 35 04 06 00 DD 55 BA 40 AF FA A4 4A 6D EA 45 86 A0 0B [13:43:00]CheckFolder [13:43:00]dirname=/storage/ofd_packets [13:43:00]CheckFolder done [13:43:00]ProducePacketName [13:43:00]name=ofd_packets/00049217 [13:43:00]NVStorageSaveData ofd_packets/00049217 [13:43:00]File name is /storage/ofd_packets/00049217 [13:43:00]Write 298 bytes [13:43:00]NVStorageSaveData done [13:43:00]OFDSenderStorePacket done [13:43:00]KKMCreateOFDPacket done [13:43:00]NVStorageSaveData kkm_last_timestamp [13:43:00]File name is /storage/kkm_last_timestamp [13:43:00]Write 4 bytes [13:43:00]NVStorageSaveData done [13:43:00]ExternCall_PrintAddStr [13:43:00]wPrintStart [13:43:00]Write to MH i2c: 01 00 00 B3 78 2B [13:43:00]Write i2c OK [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: 01 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: 01 07 00 [13:43:00]MH_I2C_Read... [13:43:00]Read from MH i2c: 01 07 00 B3 78 00 00 00 00 00 FF 0F 40 [13:43:00]RasterBufferAndPrint [13:43:00]line Счет N : (1)216319 [13:43:00]line ИНН: 02508201610067 [13:43:00]line Контрольно-Кассовый Чек [13:43:00]line ПРОДАЖА [13:43:00]line ТРК (МРК, ГНК) : 11 [13:43:00]line Товар: 2710194210 [13:43:00]line ДТ-К-5 [13:43:00]line 21.460 * 69.90 [13:43:00]line = 1500.05 [13:43:00]line НДС 12% НСП 1% [13:43:00]line > о реализуемом товаре [13:43:00]line ОКРУГЛЕНИЕ: -0.05 [13:43:00]line ИТОГО: 1500.00 [13:43:00]line Внесено: 1500.00 [13:43:00]line СДАЧА: 0.00 [13:43:00]line НСП 1% : 13.27 [13:43:00]line НДС 12% : 159.30 [13:43:00]line Наличными: 1500.00 [13:43:00]line Безнал.: 0.00 [13:43:00]line Место: АЗС № 102 "Партнер Нефть" [13:43:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:43:00]line СНО: Общий режим [13:43:00]line Чек 93 30.01.2024 13:43 [13:43:00]line Смена: 246 ФФД: 1.0 [13:43:00]line ЗНМ: 0300000040 [13:43:00]line РНМ: 0000000000092723 [13:43:00]line Версия ККМ: 001 [13:43:00]line ФМ: 0000000000875060 [13:43:00]line ФД: 49217 [13:43:00]line ФПД: 243360266760186 [13:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T134317&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49217&fm=243360266760186&tin=02508201610067®Number=0000000000092723&sum=150000 [13:43:00]OFD Sender: Processing packet 49217 [packets to send 12, broken 11] [13:43:00]ProducePacketName [13:43:00]name=ofd_packets/00049217 [13:43:00]OFD Sender: To server: pG, [13:43:00]CommunicateWithHost lk.salyk.kg:30040 [13:43:00]ConnectInit lk.salyk.kg [13:43:00]written 0, free lines is 4095 [13:43:00]Connected sock=10 [13:43: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 36 30 0C 01 00 00 9C C0 04 01 8B D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F5 FC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 41 C0 00 00 35 04 06 00 DD 55 BA 40 AF FA A4 4A 6D EA 45 86 A0 0B [13:43: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 36 30 4F 00 00 00 A6 06 47 00 2D 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 36 30 10 04 04 00 41 C0 00 00 F4 03 04 00 EB A8 B8 65 B6 04 01 00 00 AA 3F 88 AA 89 14 BE DB [13:43:01]CommunicateWithHost err = 0 [13:43:01]CheckOFDResponse [13:43:01]1017 (14) - 77093643461234 [13:43:01]1041 (16) - 0000000000875060 [13:43:01]1040 (4) - 49217 [13:43:01]1012 (4) - 30.01.2024 07:44 [13:43:01]1206 (1) - 0 [13:43:01]OFD Sender: Remove packet 49217 [13:43:01]ProducePacketName [13:43:01]name=ofd_packets/00049217 [13:43:01]NVStorageDeleteData [13:43:01]Write to MH i2c: 01 00 00 DE 78 56 [13:43:01]Write i2c OK [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: 01 [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: 01 07 00 [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: 01 07 00 DE 78 00 00 00 00 00 01 0D 6B [13:43:01]RasterBufferAndPrint [13:43:01]line [13:43:01]line [13:43:01]line [13:43:01]line [13:43:01]line [13:43:01]written 0, free lines is 3335 [13:43:01]MH_Cut [13:43:01]Write to MH i2c: D1 01 00 E5 78 01 2F [13:43:01]Write i2c OK [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: D1 [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: D1 01 00 [13:43:01]MH_I2C_Read... [13:43:01]Read from MH i2c: D1 01 00 E5 78 00 2E [13:43:01]Write to MH i2c: 01 00 00 E6 78 5E [13:43:01]Write i2c OK [13:43:01]MH_I2C_Read... [13:43:01]OFD Sender: No OFD packet to send [13:43:01]*** Cut start [13:43:01]*** Partial cut [13:43:01]*** CUTSNS_PIN = 1 [13:43:01]*** CUTSNS_PIN = 0 [13:43:02]*** Brake cut motor [13:43:02]Read from MH i2c: 01 [13:43:02]MH_I2C_Read... [13:43:02]*** Stop cut motor [13:43:02]*** Cut end [13:43:02]Read from MH i2c: 01 07 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: 01 07 00 E6 78 00 00 00 00 00 FF 0F 73 [13:43:02]process_action close_receipt done [13:43:02]requested_data is exist [13:43:02]produce_requested_data [13:43:02]requested_item fm.sn is exist - process it [13:43:02]wFMCommunicate request_size=4 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 11 00 00 [13:43:02]Write to MH i2c: E2 08 00 E7 78 80 11 00 00 00 00 00 00 D9 [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 17 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 17 00 E7 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 26 [13:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:43:02]wFMCommunicate OK [13:43:02]requested_item fd.num is exist - process it [13:43:02]SAM_PROTO_GetFieldsCounters [13:43:02]wFMCommunicate request_size=4 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 13 00 00 [13:43:02]Write to MH i2c: E2 08 00 E8 78 80 13 00 00 00 00 00 00 DC [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 62 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 62 00 E8 78 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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 41 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [13:43: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 41 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:02]wFMCommunicate OK [13:43:02]SAM_PROTO_GetFieldsCounters done [13:43:02]requested_item shift.num is exist - process it [13:43:02]requested_item shift.opened is exist - process it [13:43:02]req_shift_opened [13:43:02]FM_GetShiftState [13:43:02]SAM_PROTO_GetShiftState [13:43:02]wFMCommunicate request_size=4 [13:43:02]MH_SAM_APDU [13:43:02]CAPDU: 80 13 01 00 [13:43:02]Write to MH i2c: E2 08 00 E9 78 80 13 01 00 00 00 00 00 DE [13:43:02]Write i2c OK [13:43:02]MH_I2C_Read... [13:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:02]Read from MH i2c: E2 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 0E 00 [13:43:02]MH_I2C_Read... [13:43:02]Read from MH i2c: E2 0E 00 E9 78 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 06 [13:43:02]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:43:02]wFMCommunicate OK [13:43:02]SAM_PROTO_GetShiftState done [13:43:02]FM_GetShiftState done [13:43:02]req_shift_opened done [13:43:02]requested_item shift.open_date is exist - process it [13:43:02]req_shift_open_date [13:43:02]req_shift_open_date done [13:43:02]produce_requested_data done [13:43:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49217,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [13:43:02]process_action_free close_receipt [13:43:02]json_value_free [13:43:02]json_value_free done [13:43:02]process_json_proto returns [13:43:02]Send response to host [13:43:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49217,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [13:43:02]free response buf [13:43:02]execute_script done [13:43:02]execute_script returns [13:43:02]free content buf [13:43:02]Sock 7.Close socket [13:43:02]Sock 7.Thread stoped [13:43:05]accept exits with 9 [13:43:05]New connection [13:43:05]New thread 3066813796 created [13:43:05]Thread 3066670436 joined [13:43:05]Waiting for new connection... [13:43:05] Sock 9.Parse request [13:43:05]Sock 9.Check first char [13:43:05]Sock 9.First char is OK [13:43:05]request: POST /json_proto HTTP/1.0 [13:43:05]Method: POST [13:43:05]URL: /json_proto [13:43:05]Method is POST - this is cgi request [13:43:05]url: /json_proto [13:43:05]query_string will be loaded in cgi processing [13:43:05]execute_cgi json_proto POST (null) [13:43:05]execute_cgi path=json_proto method=POST [13:43:05]POST find Content-Length [13:43:05]Host: 172.17.56.67:8080 [13:43:05]Content-Length: 677 [13:43:05]Content-Type: application/json [13:43:05] [13:43:05]POST finish read [13:43:05]Found Content-Length = 677 [13:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:05]execute_script... [13:43:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:05]POST & json_proto [13:43:05]process_json_proto [13:43:05]json parsed OK: [13:43:05]protocol is kg_v1.0 [13:43:05]action value=close_receipt [13:43:05]process_action close_receipt [13:43:05]cmd_close_receipt [13:43:05]MH_GetDate [13:43:05]Write to MH i2c: F0 00 00 EA 78 51 [13:43:05]Write i2c OK [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: F0 [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: F0 09 00 [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: F0 09 00 EA 78 00 FC FC B8 65 26 5D 9E 65 F5 [13:43:05]GetLastDocTimeStamp 1706622197 [13:43:05]current date 1706622204 [13:43:05]FM_GetShiftState [13:43:05]SAM_PROTO_GetShiftState [13:43:05]wFMCommunicate request_size=4 [13:43:05]MH_SAM_APDU [13:43:05]CAPDU: 80 13 01 00 [13:43:05]Write to MH i2c: E2 08 00 EB 78 80 13 01 00 00 00 00 00 E0 [13:43:05]Write i2c OK [13:43:05]MH_I2C_Read... [13:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:05]Read from MH i2c: E2 [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: E2 0E 00 [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: E2 0E 00 EB 78 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 08 [13:43:05]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:43:05]wFMCommunicate OK [13:43:05]SAM_PROTO_GetShiftState done [13:43:05]FM_GetShiftState done [13:43:05]opened in 1706572995 [13:43:05]opened+sec_in_day 1706659395 [13:43:05]quantity*price = 20019 [13:43:05]sum+1 = 20021 [13:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 94 30.01.2024 13:43 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49218 ФПД: 94861262272784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T134324&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49218&fm=94861262272784&tin=02508201610067®Number=0000000000092723&sum=20000 [13:43:06]StoreToDocumentArchive [13:43:06]shift 246 fd 49218 [13:43:06]save to /storage/0246/doc_00049218 [13:43:06]save last doc name /storage/0246/doc_00049218 to /storage/kkm_last_doc_name [13:43:06]save OK [13:43:06]Clear old archive folders... [13:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:06]tlvbuf is 013064B0 [13:43:06]SAM_PROTO_ClearQueue [13:43:06]wFMCommunicate request_size=4 [13:43:06]MH_SAM_APDU [13:43:06]CAPDU: 80 09 00 00 [13:43:06]Write to MH i2c: E2 08 00 F8 78 80 09 00 00 00 00 00 00 E2 [13:43:06]Write i2c OK [13:43:06]MH_I2C_Read... [13:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:06]Read from MH i2c: E2 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: E2 03 00 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: E2 03 00 F8 78 00 90 00 E4 [13:43:06]RAPDU: 90 00 [13:43:06]wFMCommunicate OK [13:43:06]SAM_PROTO_ClearQueue done [13:43:06]KKMCreateOFDPacket [13:43:06]OFDProtocolAddRootSTLVToBuf [13:43:06]FM_MakeSignedData [13:43:06]FM_MakeSignedData [13:43:06]SAM_PROTO_SignData [13:43:06]wFMCommunicate request_size=4 [13:43:06]MH_SAM_APDU [13:43:06]CAPDU: 80 0D 01 02 [13:43:06]Write to MH i2c: E2 08 00 F9 78 80 0D 01 02 00 00 00 00 EA [13:43:06]Write i2c OK [13:43:06]MH_I2C_Read... [13:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:06]Read from MH i2c: E2 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: E2 03 00 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: E2 03 00 F9 78 00 90 00 E5 [13:43:06]RAPDU: 90 00 [13:43:06]wFMCommunicate OK [13:43:06]wFMCommunicate request_size=255 [13:43:06]MH_SAM_APDU [13:43:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FC FC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 42 C0 00 00 35 04 06 00 56 [13:43:06]Write to MH i2c: E2 02 01 FA 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FC FC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 42 C0 00 00 35 04 06 00 56 00 00 BB [13:43:06]Write i2c OK [13:43:06]MH_I2C_Read... [13:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:07]Read from MH i2c: E2 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 03 00 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 03 00 FA 78 00 90 00 E6 [13:43:07]RAPDU: 90 00 [13:43:07]wFMCommunicate OK [13:43:07]wFMCommunicate request_size=10 [13:43:07]MH_SAM_APDU [13:43:07]CAPDU: 80 0D 02 02 05 46 9B D7 39 10 [13:43:07]Write to MH i2c: E2 0D 00 FB 78 80 0D 02 02 05 00 46 9B D7 39 10 00 00 F8 [13:43:07]Write i2c OK [13:43:07]MH_I2C_Read... [13:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:07]Read from MH i2c: E2 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 03 00 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 03 00 FB 78 00 90 00 E7 [13:43:07]RAPDU: 90 00 [13:43:07]wFMCommunicate OK [13:43:07]wFMCommunicate request_size=4 [13:43:07]MH_SAM_APDU [13:43:07]CAPDU: 80 0D 03 02 [13:43:07]Write to MH i2c: E2 08 00 FC 78 80 0D 03 02 00 00 00 00 EF [13:43:07]Write i2c OK [13:43:07]MH_I2C_Read... [13:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:07]Read from MH i2c: E2 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 0B 00 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 0B 00 FC 78 00 0F 44 59 CF 1A 6A 14 48 90 00 4B [13:43:07]RAPDU: 0F 44 59 CF 1A 6A 14 48 90 00 [13:43:07]wFMCommunicate OK [13:43:07]SAM_PROTO_SignData done [13:43:07]FM_MakeSignedData done [13:43:07]CreateOFDProtocolMessage [13:43:07]wFMCommunicate request_size=4 [13:43:07]MH_SAM_APDU [13:43:07]CAPDU: 80 11 00 00 [13:43:07]Write to MH i2c: E2 08 00 FD 78 80 11 00 00 00 00 00 00 EF [13:43:07]Write i2c OK [13:43:07]MH_I2C_Read... [13:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:07]Read from MH i2c: E2 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 17 00 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 17 00 FD 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [13:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:43:07]wFMCommunicate OK [13:43:07]CreateOFDProtocolMessage done [13:43:07]OFDSenderStorePacket 49218 [13:43:07]StoreOFDPacket docnum=49218 [13:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D6 E3 07 01 7E C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FC FC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 42 C0 00 00 35 04 06 00 56 46 9B D7 39 10 0F 44 59 CF 1A 6A 14 48 [13:43:07]CheckFolder [13:43:07]dirname=/storage/ofd_packets [13:43:07]CheckFolder done [13:43:07]ProducePacketName [13:43:07]name=ofd_packets/00049218 [13:43:07]NVStorageSaveData ofd_packets/00049218 [13:43:07]File name is /storage/ofd_packets/00049218 [13:43:07]Write 301 bytes [13:43:07]NVStorageSaveData done [13:43:07]OFDSenderStorePacket done [13:43:07]KKMCreateOFDPacket done [13:43:07]NVStorageSaveData kkm_last_timestamp [13:43:07]File name is /storage/kkm_last_timestamp [13:43:07]Write 4 bytes [13:43:07]NVStorageSaveData done [13:43:07]ExternCall_PrintAddStr [13:43:07]wPrintStart [13:43:07]Write to MH i2c: 01 00 00 FE 78 76 [13:43:07]Write i2c OK [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: 01 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: 01 07 00 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: 01 07 00 FE 78 00 00 00 00 00 FF 0F 8B [13:43:07]RasterBufferAndPrint [13:43:07]line Счет N : (1)216320 [13:43:07]line ИНН: 02508201610067 [13:43:07]line Контрольно-Кассовый Чек [13:43:07]line ПРОДАЖА [13:43:07]line ТРК (МРК, ГНК) : 22 [13:43:07]line Товар: 2710124130 [13:43:07]line Аи-92-К-5 [13:43:07]line 3.320 * 60.30 [13:43:07]line = 200.20 [13:43:07]line НДС 12% НСП 1% [13:43:07]line > о реализуемом товаре [13:43:07]line ОКРУГЛЕНИЕ: -0.20 [13:43:07]line ИТОГО: 200.00 [13:43:07]line Внесено: 200.00 [13:43:07]line СДАЧА: 0.00 [13:43:07]line НСП 1% : 1.77 [13:43:07]line НДС 12% : 21.26 [13:43:07]line Наличными: 200.00 [13:43:07]line Безнал.: 0.00 [13:43:07]line Место: АЗС № 102 "Партнер Нефть" [13:43:07]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:43:07]line СНО: Общий режим [13:43:07]line Чек 94 30.01.2024 13:43 [13:43:07]line Смена: 246 ФФД: 1.0 [13:43:07]line ЗНМ: 0300000040 [13:43:07]line РНМ: 0000000000092723 [13:43:07]line Версия ККМ: 001 [13:43:07]line ФМ: 0000000000875060 [13:43:07]line ФД: 49218 [13:43:07]line ФПД: 94861262272784 [13:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T134324&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49218&fm=94861262272784&tin=02508201610067®Number=0000000000092723&sum=20000 [13:43:07]OFD Sender: Processing packet 49218 [packets to send 12, broken 11] [13:43:07]ProducePacketName [13:43:07]name=ofd_packets/00049218 [13:43:07]OFD Sender: To server: pG, [13:43:07]CommunicateWithHost lk.salyk.kg:30040 [13:43:07]ConnectInit lk.salyk.kg [13:43:07]written 0, free lines is 4095 [13:43:07]Connected sock=10 [13:43:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D6 E3 07 01 7E C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FC FC B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 42 C0 00 00 35 04 06 00 56 46 9B D7 39 10 0F 44 59 CF 1A 6A 14 48 [13:43: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 36 30 4F 00 00 00 49 D9 47 00 D4 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 42 C0 00 00 F4 03 04 00 F2 A8 B8 65 B6 04 01 00 00 8F F3 63 D6 47 DD 62 2F [13:43:07]CommunicateWithHost err = 0 [13:43:07]CheckOFDResponse [13:43:07]1017 (14) - 77093643461234 [13:43:07]1041 (16) - 0000000000875060 [13:43:07]1040 (4) - 49218 [13:43:07]1012 (4) - 30.01.2024 07:44 [13:43:07]1206 (1) - 0 [13:43:07]OFD Sender: Remove packet 49218 [13:43:07]ProducePacketName [13:43:07]name=ofd_packets/00049218 [13:43:07]NVStorageDeleteData [13:43:08]Write to MH i2c: 01 00 00 29 79 A2 [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 07 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 07 00 29 79 00 00 00 00 00 03 0D B9 [13:43:08]RasterBufferAndPrint [13:43:08]line [13:43:08]line [13:43:08]line [13:43:08]line [13:43:08]line [13:43:08]written 0, free lines is 3340 [13:43:08]MH_Cut [13:43:08]Write to MH i2c: D1 01 00 30 79 01 7B [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: D1 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: D1 01 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: D1 01 00 30 79 00 7A [13:43:08]Write to MH i2c: 01 00 00 31 79 AA [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]OFD Sender: No OFD packet to send [13:43:08]*** Cut start [13:43:08]*** Partial cut [13:43:08]*** CUTSNS_PIN = 1 [13:43:08]*** CUTSNS_PIN = 0 [13:43:09]*** Brake cut motor [13:43:09]Read from MH i2c: 01 [13:43:09]MH_I2C_Read... [13:43:09]*** Stop cut motor [13:43:09]*** Cut end [13:43:09]Read from MH i2c: 01 07 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: 01 07 00 31 79 00 00 00 00 00 FF 0F BF [13:43:09]process_action close_receipt done [13:43:09]requested_data is exist [13:43:09]produce_requested_data [13:43:09]requested_item fm.sn is exist - process it [13:43:09]wFMCommunicate request_size=4 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 11 00 00 [13:43:09]Write to MH i2c: E2 08 00 32 79 80 11 00 00 00 00 00 00 25 [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 17 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 17 00 32 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 72 [13:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:43:09]wFMCommunicate OK [13:43:09]requested_item fd.num is exist - process it [13:43:09]SAM_PROTO_GetFieldsCounters [13:43:09]wFMCommunicate request_size=4 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 13 00 00 [13:43:09]Write to MH i2c: E2 08 00 33 79 80 13 00 00 00 00 00 00 28 [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:09]Read from MH i2c: E2 62 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 62 00 33 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 42 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:43:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 42 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:09]wFMCommunicate OK [13:43:09]SAM_PROTO_GetFieldsCounters done [13:43:09]requested_item shift.num is exist - process it [13:43:09]requested_item shift.opened is exist - process it [13:43:09]req_shift_opened [13:43:09]FM_GetShiftState [13:43:09]SAM_PROTO_GetShiftState [13:43:09]wFMCommunicate request_size=4 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 13 01 00 [13:43:09]Write to MH i2c: E2 08 00 34 79 80 13 01 00 00 00 00 00 2A [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 0E 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 0E 00 34 79 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 52 [13:43:09]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [13:43:09]wFMCommunicate OK [13:43:09]SAM_PROTO_GetShiftState done [13:43:09]FM_GetShiftState done [13:43:09]req_shift_opened done [13:43:09]requested_item shift.open_date is exist - process it [13:43:09]req_shift_open_date [13:43:09]req_shift_open_date done [13:43:09]produce_requested_data done [13:43:09]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49218,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [13:43:09]process_action_free close_receipt [13:43:09]json_value_free [13:43:09]json_value_free done [13:43:09]process_json_proto returns [13:43:09]Send response to host [13:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49218,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [13:43:09]free response buf [13:43:09]execute_script done [13:43:09]execute_script returns [13:43:09]free content buf [13:43:09]Sock 9.Close socket [13:43:09]Sock 9.Thread stoped [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53: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 [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:04]accept exits with 7 [14:03:04]New connection [14:03:04]New thread 3066670436 created [14:03:04]Thread 3066813796 joined [14:03:04]Waiting for new connection... [14:03:04] Sock 7.Parse request [14:03:04]Sock 7.Check first char [14:03:04]Sock 7.First char is OK [14:03:04]request: POST /json_proto HTTP/1.0 [14:03:04]Method: POST [14:03:04]URL: /json_proto [14:03:04]Method is POST - this is cgi request [14:03:04]url: /json_proto [14:03:04]query_string will be loaded in cgi processing [14:03:04]execute_cgi json_proto POST (null) [14:03:04]execute_cgi path=json_proto method=POST [14:03:04]POST find Content-Length [14:03:04]Host: 172.17.56.67:8080 [14:03:04]Content-Length: 805 [14:03:04]Content-Type: application/json [14:03:04] [14:03:04]POST finish read [14:03:04]Found Content-Length = 805 [14:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:04]execute_script... [14:03:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:04]POST & json_proto [14:03:04]process_json_proto [14:03:04]json parsed OK: [14:03:04]protocol is kg_v1.0 [14:03:04]action value=close_receipt [14:03:04]process_action close_receipt [14:03:04]cmd_close_receipt [14:03:04]MH_GetDate [14:03:04]Write to MH i2c: F0 00 00 35 79 9D [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: F0 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: F0 09 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: F0 09 00 35 79 00 AB 01 B9 65 26 5D 9E 65 F6 [14:03:04]GetLastDocTimeStamp 1706622204 [14:03:04]current date 1706623403 [14:03:04]FM_GetShiftState [14:03:04]SAM_PROTO_GetShiftState [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 13 01 00 [14:03:04]Write to MH i2c: E2 08 00 36 79 80 13 01 00 00 00 00 00 2C [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 0E 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 0E 00 36 79 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 54 [14:03:04]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:03:04]wFMCommunicate OK [14:03:04]SAM_PROTO_GetShiftState done [14:03:04]FM_GetShiftState done [14:03:04]opened in 1706572995 [14:03:04]opened+sec_in_day 1706659395 [14:03:04]quantity*price = 30029 [14:03:04]sum+1 = 30030 [14:03:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.29 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.29 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 95 30.01.2024 14:03 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875060 ФД: 49219 ФПД: 239234079117183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T140323&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49219&fm=239234079117183&tin=02508201610067®Number=0000000000092723&sum=30029 [14:03:05]StoreToDocumentArchive [14:03:05]shift 246 fd 49219 [14:03:05]save to /storage/0246/doc_00049219 [14:03:05]save last doc name /storage/0246/doc_00049219 to /storage/kkm_last_doc_name [14:03:05]save OK [14:03:05]Clear old archive folders... [14:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:05]tlvbuf is 013EDB70 [14:03:05]SAM_PROTO_ClearQueue [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 09 00 00 [14:03:05]Write to MH i2c: E2 08 00 43 79 80 09 00 00 00 00 00 00 2E [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 43 79 00 90 00 30 [14:03:05]RAPDU: 90 00 [14:03:05]wFMCommunicate OK [14:03:05]SAM_PROTO_ClearQueue done [14:03:05]KKMCreateOFDPacket [14:03:05]OFDProtocolAddRootSTLVToBuf [14:03:05]FM_MakeSignedData [14:03:05]FM_MakeSignedData [14:03:05]SAM_PROTO_SignData [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 0D 01 02 [14:03:05]Write to MH i2c: E2 08 00 44 79 80 0D 01 02 00 00 00 00 36 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 44 79 00 90 00 31 [14:03:05]RAPDU: 90 00 [14:03:05]wFMCommunicate OK [14:03:05]wFMCommunicate request_size=255 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AB 01 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 43 C0 00 00 35 04 06 00 D9 [14:03:05]Write to MH i2c: E2 02 01 45 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AB 01 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 43 C0 00 00 35 04 06 00 D9 00 00 31 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 45 79 00 90 00 32 [14:03:06]RAPDU: 90 00 [14:03:06]wFMCommunicate OK [14:03:06]wFMCommunicate request_size=10 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 0D 02 02 05 95 06 4D CF 7F [14:03:06]Write to MH i2c: E2 0D 00 46 79 80 0D 02 02 05 00 95 06 4D CF 7F 00 00 79 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 46 79 00 90 00 33 [14:03:06]RAPDU: 90 00 [14:03:06]wFMCommunicate OK [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 0D 03 02 [14:03:06]Write to MH i2c: E2 08 00 47 79 80 0D 03 02 00 00 00 00 3B [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0B 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0B 00 47 79 00 DA 47 B9 C6 E6 B6 69 77 90 00 58 [14:03:06]RAPDU: DA 47 B9 C6 E6 B6 69 77 90 00 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_SignData done [14:03:06]FM_MakeSignedData done [14:03:06]CreateOFDProtocolMessage [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 11 00 00 [14:03:06]Write to MH i2c: E2 08 00 48 79 80 11 00 00 00 00 00 00 3B [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 48 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 88 [14:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:03:06]wFMCommunicate OK [14:03:06]CreateOFDProtocolMessage done [14:03:06]OFDSenderStorePacket 49219 [14:03:06]StoreOFDPacket docnum=49219 [14:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 26 2C 07 01 95 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AB 01 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 43 C0 00 00 35 04 06 00 D9 95 06 4D CF 7F DA 47 B9 C6 E6 B6 69 77 [14:03:06]CheckFolder [14:03:06]dirname=/storage/ofd_packets [14:03:06]CheckFolder done [14:03:06]ProducePacketName [14:03:06]name=ofd_packets/00049219 [14:03:06]NVStorageSaveData ofd_packets/00049219 [14:03:06]File name is /storage/ofd_packets/00049219 [14:03:06]Write 301 bytes [14:03:06]NVStorageSaveData done [14:03:06]OFDSenderStorePacket done [14:03:06]KKMCreateOFDPacket done [14:03:06]NVStorageSaveData kkm_last_timestamp [14:03:06]File name is /storage/kkm_last_timestamp [14:03:06]Write 4 bytes [14:03:06]NVStorageSaveData done [14:03:06]ExternCall_PrintAddStr [14:03:06]wPrintStart [14:03:06]Write to MH i2c: 01 00 00 49 79 C2 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 07 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 07 00 49 79 00 00 00 00 00 FF 0F D7 [14:03:06]RasterBufferAndPrint [14:03:06]line Счет N : (1)216321 [14:03:06]line ИНН: 02508201610067 [14:03:06]line Контрольно-Кассовый Чек [14:03:06]line ПРОДАЖА [14:03:06]line ТРК (МРК, ГНК) : 22 [14:03:06]line Товар: 2710124130 [14:03:06]line Аи-92-К-5 [14:03:06]line 4.980 * 60.30 [14:03:06]line = 300.29 [14:03:06]line НДС 12% НСП 1% [14:03:06]line > о реализуемом товаре [14:03:06]line ИТОГО: 300.29 [14:03:06]line НСП 1% : 2.66 [14:03:06]line НДС 12% : 31.89 [14:03:06]line Наличными: 0.00 [14:03:06]line Безнал.: 300.29 [14:03:06]line Место: АЗС № 102 "Партнер Нефть" [14:03:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:03:06]line СНО: Общий режим [14:03:06]line Чек 95 30.01.2024 14:03 [14:03:06]line Смена: 246 ФФД: 1.0 [14:03:06]line ЗНМ: 0300000040 [14:03:06]line РНМ: 0000000000092723 [14:03:06]line Версия ККМ: 001 [14:03:06]line Платежная система: О! деньги [14:03:06]line ФМ: 0000000000875060 [14:03:06]line ФД: 49219 [14:03:06]line ФПД: 239234079117183 [14:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T140323&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49219&fm=239234079117183&tin=02508201610067®Number=0000000000092723&sum=30029 [14:03:06]OFD Sender: Processing packet 49219 [packets to send 12, broken 11] [14:03:06]ProducePacketName [14:03:06]name=ofd_packets/00049219 [14:03:06]OFD Sender: To server: pG, [14:03:06]CommunicateWithHost lk.salyk.kg:30040 [14:03:06]ConnectInit lk.salyk.kg [14:03:06]written 0, free lines is 4095 [14:03:06]Connected sock=10 [14:03:06]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 36 30 0F 01 00 00 26 2C 07 01 95 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AB 01 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 43 C0 00 00 35 04 06 00 D9 95 06 4D CF 7F DA 47 B9 C6 E6 B6 69 77 [14:03: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 36 30 4F 00 00 00 02 2F 47 00 08 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 36 30 10 04 04 00 43 C0 00 00 F4 03 04 00 A1 AD B8 65 B6 04 01 00 00 46 89 13 53 BE 1F A1 35 [14:03:06]CommunicateWithHost err = 0 [14:03:06]CheckOFDResponse [14:03:06]1017 (14) - 77093643461234 [14:03:06]1041 (16) - 0000000000875060 [14:03:06]1040 (4) - 49219 [14:03:06]1012 (4) - 30.01.2024 08:04 [14:03:06]1206 (1) - 0 [14:03:06]OFD Sender: Remove packet 49219 [14:03:06]ProducePacketName [14:03:06]name=ofd_packets/00049219 [14:03:06]NVStorageDeleteData [14:03:07]Write to MH i2c: 01 00 00 73 79 EC [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: 01 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: 01 07 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: 01 07 00 73 79 00 00 00 00 00 0A 0D 0A [14:03:07]RasterBufferAndPrint [14:03:07]line [14:03:07]line [14:03:07]line [14:03:07]line [14:03:07]line [14:03:07]written 0, free lines is 3344 [14:03:07]MH_Cut [14:03:07]Write to MH i2c: D1 01 00 7A 79 01 C5 [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: D1 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: D1 01 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: D1 01 00 7A 79 00 C4 [14:03:07]Write to MH i2c: 01 00 00 7B 79 F4 [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]OFD Sender: No OFD packet to send [14:03:07]*** Cut start [14:03:07]*** Partial cut [14:03:07]*** CUTSNS_PIN = 1 [14:03:07]*** CUTSNS_PIN = 0 [14:03:07]*** Brake cut motor [14:03:08]Read from MH i2c: 01 [14:03:08]MH_I2C_Read... [14:03:08]*** Stop cut motor [14:03:08]*** Cut end [14:03:08]Read from MH i2c: 01 07 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: 01 07 00 7B 79 00 00 00 00 00 FF 0F 09 [14:03:08]process_action close_receipt done [14:03:08]requested_data is exist [14:03:08]produce_requested_data [14:03:08]requested_item fm.sn is exist - process it [14:03:08]wFMCommunicate request_size=4 [14:03:08]MH_SAM_APDU [14:03:08]CAPDU: 80 11 00 00 [14:03:08]Write to MH i2c: E2 08 00 7C 79 80 11 00 00 00 00 00 00 6F [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:08]Read from MH i2c: E2 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 17 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 17 00 7C 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BC [14:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:03:08]wFMCommunicate OK [14:03:08]requested_item fd.num is exist - process it [14:03:08]SAM_PROTO_GetFieldsCounters [14:03:08]wFMCommunicate request_size=4 [14:03:08]MH_SAM_APDU [14:03:08]CAPDU: 80 13 00 00 [14:03:08]Write to MH i2c: E2 08 00 7D 79 80 13 00 00 00 00 00 00 72 [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:08]Read from MH i2c: E2 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 62 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 62 00 7D 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 43 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [14:03:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 43 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:08]wFMCommunicate OK [14:03:08]SAM_PROTO_GetFieldsCounters done [14:03:08]requested_item shift.num is exist - process it [14:03:08]requested_item shift.opened is exist - process it [14:03:08]req_shift_opened [14:03:08]FM_GetShiftState [14:03:08]SAM_PROTO_GetShiftState [14:03:08]wFMCommunicate request_size=4 [14:03:08]MH_SAM_APDU [14:03:08]CAPDU: 80 13 01 00 [14:03:08]Write to MH i2c: E2 08 00 7E 79 80 13 01 00 00 00 00 00 74 [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:08]Read from MH i2c: E2 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 0E 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 0E 00 7E 79 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 9C [14:03:08]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:03:08]wFMCommunicate OK [14:03:08]SAM_PROTO_GetShiftState done [14:03:08]FM_GetShiftState done [14:03:08]req_shift_opened done [14:03:08]requested_item shift.open_date is exist - process it [14:03:08]req_shift_open_date [14:03:08]req_shift_open_date done [14:03:08]produce_requested_data done [14:03:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49219,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [14:03:08]process_action_free close_receipt [14:03:08]json_value_free [14:03:08]json_value_free done [14:03:08]process_json_proto returns [14:03:08]Send response to host [14:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49219,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [14:03:08]free response buf [14:03:08]execute_script done [14:03:08]execute_script returns [14:03:08]free content buf [14:03:08]Sock 7.Close socket [14:03:08]Sock 7.Thread stoped [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:07:58]accept exits with 9 [14:07:58]New connection [14:07:58]New thread 3066813796 created [14:07:58]Thread 3066670436 joined [14:07:58]Waiting for new connection... [14:07:58] Sock 9.Parse request [14:07:58]Sock 9.Check first char [14:07:58]Sock 9.First char is OK [14:07:58]request: POST /json_proto HTTP/1.0 [14:07:58]Method: POST [14:07:58]URL: /json_proto [14:07:58]Method is POST - this is cgi request [14:07:58]url: /json_proto [14:07:58]query_string will be loaded in cgi processing [14:07:58]execute_cgi json_proto POST (null) [14:07:58]execute_cgi path=json_proto method=POST [14:07:58]POST find Content-Length [14:07:58]Host: 172.17.56.67:8080 [14:07:58]Content-Length: 674 [14:07:58]Content-Type: application/json [14:07:58] [14:07:58]POST finish read [14:07:58]Found Content-Length = 674 [14:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 4.300, "sum" : 300.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:58]execute_script... [14:07:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 4.300, "sum" : 300.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:58]POST & json_proto [14:07:58]process_json_proto [14:07:58]json parsed OK: [14:07:58]protocol is kg_v1.0 [14:07:58]action value=close_receipt [14:07:58]process_action close_receipt [14:07:58]cmd_close_receipt [14:07:58]MH_GetDate [14:07:58]Write to MH i2c: F0 00 00 7F 79 E7 [14:07:58]Write i2c OK [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: F0 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: F0 09 00 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: F0 09 00 7F 79 00 D1 02 B9 65 26 5D 9E 65 67 [14:07:58]GetLastDocTimeStamp 1706623403 [14:07:58]current date 1706623697 [14:07:58]FM_GetShiftState [14:07:58]SAM_PROTO_GetShiftState [14:07:58]wFMCommunicate request_size=4 [14:07:58]MH_SAM_APDU [14:07:58]CAPDU: 80 13 01 00 [14:07:58]Write to MH i2c: E2 08 00 80 79 80 13 01 00 00 00 00 00 76 [14:07:58]Write i2c OK [14:07:58]MH_I2C_Read... [14:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:58]Read from MH i2c: E2 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: E2 0E 00 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: E2 0E 00 80 79 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 9E [14:07:58]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:07:58]wFMCommunicate OK [14:07:58]SAM_PROTO_GetShiftState done [14:07:58]FM_GetShiftState done [14:07:58]opened in 1706572995 [14:07:58]opened+sec_in_day 1706659395 [14:07:58]quantity*price = 30057 [14:07:58]sum+1 = 30058 [14:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 96 30.01.2024 14:08 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49220 ФПД: 206375318289014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T140817&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49220&fm=206375318289014&tin=02508201610067®Number=0000000000092723&sum=30000 [14:07:59]StoreToDocumentArchive [14:07:59]shift 246 fd 49220 [14:07:59]save to /storage/0246/doc_00049220 [14:07:59]save last doc name /storage/0246/doc_00049220 to /storage/kkm_last_doc_name [14:07:59]save OK [14:07:59]Clear old archive folders... [14:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:07:59]tlvbuf is B6F36970 [14:07:59]SAM_PROTO_ClearQueue [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 09 00 00 [14:07:59]Write to MH i2c: E2 08 00 8D 79 80 09 00 00 00 00 00 00 78 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 8D 79 00 90 00 7A [14:07:59]RAPDU: 90 00 [14:07:59]wFMCommunicate OK [14:07:59]SAM_PROTO_ClearQueue done [14:07:59]KKMCreateOFDPacket [14:07:59]OFDProtocolAddRootSTLVToBuf [14:07:59]FM_MakeSignedData [14:07:59]FM_MakeSignedData [14:07:59]SAM_PROTO_SignData [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 0D 01 02 [14:07:59]Write to MH i2c: E2 08 00 8E 79 80 0D 01 02 00 00 00 00 80 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 8E 79 00 90 00 7B [14:07:59]RAPDU: 90 00 [14:07:59]wFMCommunicate OK [14:07:59]wFMCommunicate request_size=255 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D1 02 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 44 C0 00 00 35 04 06 00 BB B2 7F 89 [14:07:59]Write to MH i2c: E2 02 01 8F 79 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D1 02 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 44 C0 00 00 35 04 06 00 BB B2 7F 89 00 00 91 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 8F 79 00 90 00 7C [14:07:59]RAPDU: 90 00 [14:07:59]wFMCommunicate OK [14:07:59]wFMCommunicate request_size=7 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 0D 02 02 02 7A 76 [14:07:59]Write to MH i2c: E2 0A 00 90 79 80 0D 02 02 02 00 7A 76 00 00 77 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 03 00 90 79 00 90 00 7D [14:07:59]RAPDU: 90 00 [14:07:59]wFMCommunicate OK [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 0D 03 02 [14:07:59]Write to MH i2c: E2 08 00 91 79 80 0D 03 02 00 00 00 00 85 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 0B 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 0B 00 91 79 00 A4 A2 25 49 4A B3 3E 16 90 00 8B [14:07:59]RAPDU: A4 A2 25 49 4A B3 3E 16 90 00 [14:07:59]wFMCommunicate OK [14:07:59]SAM_PROTO_SignData done [14:07:59]FM_MakeSignedData done [14:07:59]CreateOFDProtocolMessage [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 11 00 00 [14:07:59]Write to MH i2c: E2 08 00 92 79 80 11 00 00 00 00 00 00 85 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 17 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 17 00 92 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D2 [14:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:07:59]wFMCommunicate OK [14:07:59]CreateOFDProtocolMessage done [14:07:59]OFDSenderStorePacket 49220 [14:07:59]StoreOFDPacket docnum=49220 [14:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 6B CD 04 01 C4 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D1 02 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 44 C0 00 00 35 04 06 00 BB B2 7F 89 7A 76 A4 A2 25 49 4A B3 3E 16 [14:07:59]CheckFolder [14:07:59]dirname=/storage/ofd_packets [14:07:59]CheckFolder done [14:07:59]ProducePacketName [14:07:59]name=ofd_packets/00049220 [14:07:59]NVStorageSaveData ofd_packets/00049220 [14:07:59]File name is /storage/ofd_packets/00049220 [14:07:59]Write 298 bytes [14:07:59]NVStorageSaveData done [14:07:59]OFDSenderStorePacket done [14:07:59]KKMCreateOFDPacket done [14:07:59]NVStorageSaveData kkm_last_timestamp [14:07:59]File name is /storage/kkm_last_timestamp [14:07:59]Write 4 bytes [14:07:59]NVStorageSaveData done [14:07:59]ExternCall_PrintAddStr [14:07:59]wPrintStart [14:07:59]Write to MH i2c: 01 00 00 93 79 0C [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: 01 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: 01 07 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: 01 07 00 93 79 00 00 00 00 00 FF 0F 21 [14:07:59]RasterBufferAndPrint [14:07:59]line Счет N : (1)216322 [14:07:59]line ИНН: 02508201610067 [14:07:59]line Контрольно-Кассовый Чек [14:07:59]line ПРОДАЖА [14:07:59]line ТРК (МРК, ГНК) : 21 [14:07:59]line Товар: 2710194210 [14:07:59]line ДТ-К-5 [14:07:59]line 4.300 * 69.90 [14:07:59]line = 300.57 [14:07:59]line НДС 12% НСП 1% [14:07:59]line > о реализуемом товаре [14:07:59]line ОКРУГЛЕНИЕ: -0.57 [14:07:59]line ИТОГО: 300.00 [14:07:59]line Внесено: 300.00 [14:07:59]line СДАЧА: 0.00 [14:07:59]line НСП 1% : 2.66 [14:07:59]line НДС 12% : 31.92 [14:07:59]line Наличными: 300.00 [14:07:59]line Безнал.: 0.00 [14:07:59]line Место: АЗС № 102 "Партнер Нефть" [14:07:59]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:07:59]line СНО: Общий режим [14:07:59]line Чек 96 30.01.2024 14:08 [14:07:59]line Смена: 246 ФФД: 1.0 [14:07:59]line ЗНМ: 0300000040 [14:07:59]line РНМ: 0000000000092723 [14:07:59]line Версия ККМ: 001 [14:07:59]line ФМ: 0000000000875060 [14:07:59]line ФД: 49220 [14:07:59]line ФПД: 206375318289014 [14:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T140817&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49220&fm=206375318289014&tin=02508201610067®Number=0000000000092723&sum=30000 [14:08:00]OFD Sender: Processing packet 49220 [packets to send 12, broken 11] [14:08:00]ProducePacketName [14:08:00]name=ofd_packets/00049220 [14:08:00]OFD Sender: To server: pG, [14:08:00]CommunicateWithHost lk.salyk.kg:30040 [14:08:00]ConnectInit lk.salyk.kg [14:08:00]written 0, free lines is 4095 [14:08:00]Connected sock=10 [14:08: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 36 30 0C 01 00 00 6B CD 04 01 C4 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D1 02 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 44 C0 00 00 35 04 06 00 BB B2 7F 89 7A 76 A4 A2 25 49 4A B3 3E 16 [14:08: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 36 30 4F 00 00 00 64 67 47 00 39 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 44 C0 00 00 F4 03 04 00 C6 AE B8 65 B6 04 01 00 00 C0 A0 D0 37 1F 53 2C 5A [14:08:00]CommunicateWithHost err = 0 [14:08:00]CheckOFDResponse [14:08:00]1017 (14) - 77093643461234 [14:08:00]1041 (16) - 0000000000875060 [14:08:00]1040 (4) - 49220 [14:08:00]1012 (4) - 30.01.2024 08:09 [14:08:00]1206 (1) - 0 [14:08:00]OFD Sender: Remove packet 49220 [14:08:00]ProducePacketName [14:08:00]name=ofd_packets/00049220 [14:08:00]NVStorageDeleteData [14:08:00]Write to MH i2c: 01 00 00 BE 79 37 [14:08:00]Write i2c OK [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: 01 [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: 01 07 00 [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: 01 07 00 BE 79 00 00 00 00 00 FB 0C 45 [14:08:00]RasterBufferAndPrint [14:08:00]line [14:08:00]line [14:08:00]line [14:08:00]line [14:08:00]line [14:08:00]written 0, free lines is 3330 [14:08:00]MH_Cut [14:08:00]Write to MH i2c: D1 01 00 C5 79 01 10 [14:08:00]Write i2c OK [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: D1 [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: D1 01 00 [14:08:00]MH_I2C_Read... [14:08:00]Read from MH i2c: D1 01 00 C5 79 00 0F [14:08:00]Write to MH i2c: 01 00 00 C6 79 3F [14:08:00]Write i2c OK [14:08:00]MH_I2C_Read... [14:08:00]OFD Sender: No OFD packet to send [14:08:01]*** Cut start [14:08:01]*** Partial cut [14:08:01]*** CUTSNS_PIN = 1 [14:08:01]*** CUTSNS_PIN = 0 [14:08:01]*** Brake cut motor [14:08:01]Read from MH i2c: 01 [14:08:01]MH_I2C_Read... [14:08:01]*** Stop cut motor [14:08:01]*** Cut end [14:08:01]Read from MH i2c: 01 07 00 [14:08:01]MH_I2C_Read... [14:08:01]Read from MH i2c: 01 07 00 C6 79 00 00 00 00 00 FF 0F 54 [14:08:01]process_action close_receipt done [14:08:01]requested_data is exist [14:08:01]produce_requested_data [14:08:01]requested_item fm.sn is exist - process it [14:08:01]wFMCommunicate request_size=4 [14:08:01]MH_SAM_APDU [14:08:01]CAPDU: 80 11 00 00 [14:08:01]Write to MH i2c: E2 08 00 C7 79 80 11 00 00 00 00 00 00 BA [14:08:01]Write i2c OK [14:08:01]MH_I2C_Read... [14:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:01]Read from MH i2c: E2 [14:08:01]MH_I2C_Read... [14:08:01]Read from MH i2c: E2 17 00 [14:08:01]MH_I2C_Read... [14:08:01]Read from MH i2c: E2 17 00 C7 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 07 [14:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:08:01]wFMCommunicate OK [14:08:01]requested_item fd.num is exist - process it [14:08:01]SAM_PROTO_GetFieldsCounters [14:08:01]wFMCommunicate request_size=4 [14:08:01]MH_SAM_APDU [14:08:01]CAPDU: 80 13 00 00 [14:08:01]Write to MH i2c: E2 08 00 C8 79 80 13 00 00 00 00 00 00 BD [14:08:01]Write i2c OK [14:08:01]MH_I2C_Read... [14:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:02]Read from MH i2c: E2 [14:08:02]MH_I2C_Read... [14:08:02]Read from MH i2c: E2 62 00 [14:08:02]MH_I2C_Read... [14:08:02]Read from MH i2c: E2 62 00 C8 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 44 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [14:08: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 44 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:02]wFMCommunicate OK [14:08:02]SAM_PROTO_GetFieldsCounters done [14:08:02]requested_item shift.num is exist - process it [14:08:02]requested_item shift.opened is exist - process it [14:08:02]req_shift_opened [14:08:02]FM_GetShiftState [14:08:02]SAM_PROTO_GetShiftState [14:08:02]wFMCommunicate request_size=4 [14:08:02]MH_SAM_APDU [14:08:02]CAPDU: 80 13 01 00 [14:08:02]Write to MH i2c: E2 08 00 C9 79 80 13 01 00 00 00 00 00 BF [14:08:02]Write i2c OK [14:08:02]MH_I2C_Read... [14:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:02]Read from MH i2c: E2 [14:08:02]MH_I2C_Read... [14:08:02]Read from MH i2c: E2 0E 00 [14:08:02]MH_I2C_Read... [14:08:02]Read from MH i2c: E2 0E 00 C9 79 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E7 [14:08:02]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:08:02]wFMCommunicate OK [14:08:02]SAM_PROTO_GetShiftState done [14:08:02]FM_GetShiftState done [14:08:02]req_shift_opened done [14:08:02]requested_item shift.open_date is exist - process it [14:08:02]req_shift_open_date [14:08:02]req_shift_open_date done [14:08:02]produce_requested_data done [14:08:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49220,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [14:08:02]process_action_free close_receipt [14:08:02]json_value_free [14:08:02]json_value_free done [14:08:02]process_json_proto returns [14:08:02]Send response to host [14:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49220,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [14:08:02]free response buf [14:08:02]execute_script done [14:08:02]execute_script returns [14:08:02]free content buf [14:08:02]Sock 9.Close socket [14:08:02]Sock 9.Thread stoped [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [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:10:59]accept exits with 7 [14:10:59]New connection [14:10:59]New thread 3066670436 created [14:10:59]Thread 3066813796 joined [14:10:59]Waiting for new connection... [14:10:59] Sock 7.Parse request [14:10:59]Sock 7.Check first char [14:10:59]Sock 7.First char is OK [14:10:59]request: POST /json_proto HTTP/1.0 [14:10:59]Method: POST [14:10:59]URL: /json_proto [14:10:59]Method is POST - this is cgi request [14:10:59]url: /json_proto [14:10:59]query_string will be loaded in cgi processing [14:10:59]execute_cgi json_proto POST (null) [14:10:59]execute_cgi path=json_proto method=POST [14:10:59]POST find Content-Length [14:10:59]Host: 172.17.56.67:8080 [14:10:59]Content-Length: 682 [14:10:59]Content-Type: application/json [14:10:59] [14:10:59]POST finish read [14:10:59]Found Content-Length = 682 [14:10:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 41.460, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:59]execute_script... [14:10: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)216323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 41.460, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:59]POST & json_proto [14:10:59]process_json_proto [14:10:59]json parsed OK: [14:10:59]protocol is kg_v1.0 [14:10:59]action value=close_receipt [14:10:59]process_action close_receipt [14:10:59]cmd_close_receipt [14:10:59]MH_GetDate [14:10:59]Write to MH i2c: F0 00 00 CA 79 32 [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: F0 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: F0 09 00 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: F0 09 00 CA 79 00 86 03 B9 65 26 5D 9E 65 68 [14:10:59]GetLastDocTimeStamp 1706623697 [14:10:59]current date 1706623878 [14:10:59]FM_GetShiftState [14:10:59]SAM_PROTO_GetShiftState [14:10:59]wFMCommunicate request_size=4 [14:10:59]MH_SAM_APDU [14:10:59]CAPDU: 80 13 01 00 [14:10:59]Write to MH i2c: E2 08 00 CB 79 80 13 01 00 00 00 00 00 C1 [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:59]Read from MH i2c: E2 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 0E 00 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 0E 00 CB 79 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E9 [14:10:59]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:10:59]wFMCommunicate OK [14:10:59]SAM_PROTO_GetShiftState done [14:10:59]FM_GetShiftState done [14:10:59]opened in 1706572995 [14:10:59]opened+sec_in_day 1706659395 [14:10:59]quantity*price = 250003 [14:10:59]sum+1 = 250005 [14:10:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 97 30.01.2024 14:11 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49221 ФПД: 94130621257554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T141118&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49221&fm=94130621257554&tin=02508201610067®Number=0000000000092723&sum=250000 [14:11:00]StoreToDocumentArchive [14:11:00]shift 246 fd 49221 [14:11:00]save to /storage/0246/doc_00049221 [14:11:00]save last doc name /storage/0246/doc_00049221 to /storage/kkm_last_doc_name [14:11:00]save OK [14:11:00]Clear old archive folders... [14:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:00]tlvbuf is 01408670 [14:11:00]SAM_PROTO_ClearQueue [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 09 00 00 [14:11:00]Write to MH i2c: E2 08 00 D8 79 80 09 00 00 00 00 00 00 C3 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 D8 79 00 90 00 C5 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_ClearQueue done [14:11:00]KKMCreateOFDPacket [14:11:00]OFDProtocolAddRootSTLVToBuf [14:11:00]FM_MakeSignedData [14:11:00]FM_MakeSignedData [14:11:00]SAM_PROTO_SignData [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 01 02 [14:11:00]Write to MH i2c: E2 08 00 D9 79 80 0D 01 02 00 00 00 00 CB [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 D9 79 00 90 00 C6 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=255 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 86 03 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 45 C0 00 00 35 04 06 00 55 [14:11:00]Write to MH i2c: E2 02 01 DA 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 86 03 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 45 C0 00 00 35 04 06 00 55 00 00 54 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 DA 79 00 90 00 C7 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=10 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 02 02 05 9C 7E 3E 17 52 [14:11:00]Write to MH i2c: E2 0D 00 DB 79 80 0D 02 02 05 00 9C 7E 3E 17 52 00 00 99 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 DB 79 00 90 00 C8 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 03 02 [14:11:00]Write to MH i2c: E2 08 00 DC 79 80 0D 03 02 00 00 00 00 D0 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0B 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0B 00 DC 79 00 AA EC DF 87 14 A2 3A 4E 90 00 0B [14:11:00]RAPDU: AA EC DF 87 14 A2 3A 4E 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_SignData done [14:11:00]FM_MakeSignedData done [14:11:00]CreateOFDProtocolMessage [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 11 00 00 [14:11:00]Write to MH i2c: E2 08 00 DD 79 80 11 00 00 00 00 00 00 D0 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 DD 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1D [14:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:11:00]wFMCommunicate OK [14:11:00]CreateOFDProtocolMessage done [14:11:00]OFDSenderStorePacket 49221 [14:11:00]StoreOFDPacket docnum=49221 [14:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4C 02 07 01 5C BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 86 03 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 45 C0 00 00 35 04 06 00 55 9C 7E 3E 17 52 AA EC DF 87 14 A2 3A 4E [14:11:00]CheckFolder [14:11:00]dirname=/storage/ofd_packets [14:11:00]CheckFolder done [14:11:00]ProducePacketName [14:11:00]name=ofd_packets/00049221 [14:11:00]NVStorageSaveData ofd_packets/00049221 [14:11:00]File name is /storage/ofd_packets/00049221 [14:11:00]Write 301 bytes [14:11:00]NVStorageSaveData done [14:11:00]OFDSenderStorePacket done [14:11:00]KKMCreateOFDPacket done [14:11:00]NVStorageSaveData kkm_last_timestamp [14:11:00]File name is /storage/kkm_last_timestamp [14:11:00]Write 4 bytes [14:11:00]NVStorageSaveData done [14:11:00]ExternCall_PrintAddStr [14:11:00]wPrintStart [14:11:00]Write to MH i2c: 01 00 00 DE 79 57 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 DE 79 00 00 00 00 00 FF 0F 6C [14:11:00]RasterBufferAndPrint [14:11:00]line Счет N : (1)216323 [14:11:00]line ИНН: 02508201610067 [14:11:00]line Контрольно-Кассовый Чек [14:11:00]line ПРОДАЖА [14:11:00]line ТРК (МРК, ГНК) : 22 [14:11:00]line Товар: 2710124130 [14:11:00]line Аи-92-К-5 [14:11:00]line 41.460 * 60.30 [14:11:00]line = 2500.04 [14:11:00]line НДС 12% НСП 1% [14:11:00]line > о реализуемом товаре [14:11:00]line ОКРУГЛЕНИЕ: -0.04 [14:11:00]line ИТОГО: 2500.00 [14:11:00]line Внесено: 2500.00 [14:11:00]line СДАЧА: 0.00 [14:11:00]line НСП 1% : 22.12 [14:11:00]line НДС 12% : 265.49 [14:11:00]line Наличными: 2500.00 [14:11:00]line Безнал.: 0.00 [14:11:00]line Место: АЗС № 102 "Партнер Нефть" [14:11:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:11:00]line СНО: Общий режим [14:11:00]line Чек 97 30.01.2024 14:11 [14:11:00]line Смена: 246 ФФД: 1.0 [14:11:00]line ЗНМ: 0300000040 [14:11:00]line РНМ: 0000000000092723 [14:11:00]line Версия ККМ: 001 [14:11:00]line ФМ: 0000000000875060 [14:11:00]line ФД: 49221 [14:11:00]line ФПД: 94130621257554 [14:11:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T141118&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49221&fm=94130621257554&tin=02508201610067®Number=0000000000092723&sum=250000 [14:11:01]OFD Sender: Processing packet 49221 [packets to send 12, broken 11] [14:11:01]ProducePacketName [14:11:01]name=ofd_packets/00049221 [14:11:01]OFD Sender: To server: pG, [14:11:01]CommunicateWithHost lk.salyk.kg:30040 [14:11:01]ConnectInit lk.salyk.kg [14:11:01]written 0, free lines is 4095 [14:11:01]Connected sock=10 [14:11: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 36 30 0F 01 00 00 4C 02 07 01 5C BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 86 03 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 45 C0 00 00 35 04 06 00 55 9C 7E 3E 17 52 AA EC DF 87 14 A2 3A 4E [14:11: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 36 30 4F 00 00 00 6F 87 47 00 1E 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 36 30 10 04 04 00 45 C0 00 00 F4 03 04 00 7B AF B8 65 B6 04 01 00 00 CB 14 53 07 E0 50 F3 AA [14:11:01]CommunicateWithHost err = 0 [14:11:01]CheckOFDResponse [14:11:01]1017 (14) - 77093643461234 [14:11:01]1041 (16) - 0000000000875060 [14:11:01]1040 (4) - 49221 [14:11:01]1012 (4) - 30.01.2024 08:12 [14:11:01]1206 (1) - 0 [14:11:01]OFD Sender: Remove packet 49221 [14:11:01]ProducePacketName [14:11:01]name=ofd_packets/00049221 [14:11:01]NVStorageDeleteData [14:11:01]Write to MH i2c: 01 00 00 09 7A 83 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 07 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 07 00 09 7A 00 00 00 00 00 E9 0C 7F [14:11:01]RasterBufferAndPrint [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]written 0, free lines is 3311 [14:11:01]MH_Cut [14:11:01]Write to MH i2c: D1 01 00 10 7A 01 5C [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 01 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 01 00 10 7A 00 5B [14:11:01]Write to MH i2c: 01 00 00 11 7A 8B [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]OFD Sender: No OFD packet to send [14:11:02]*** Cut start [14:11:02]*** Partial cut [14:11:02]*** CUTSNS_PIN = 1 [14:11:02]*** CUTSNS_PIN = 0 [14:11:02]*** Brake cut motor [14:11:02]Read from MH i2c: 01 [14:11:02]MH_I2C_Read... [14:11:02]*** Stop cut motor [14:11:02]*** Cut end [14:11:02]Read from MH i2c: 01 07 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: 01 07 00 11 7A 00 00 00 00 00 FF 0F A0 [14:11:02]process_action close_receipt done [14:11:02]requested_data is exist [14:11:02]produce_requested_data [14:11:02]requested_item fm.sn is exist - process it [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 11 00 00 [14:11:02]Write to MH i2c: E2 08 00 12 7A 80 11 00 00 00 00 00 00 06 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 12 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 53 [14:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:11:02]wFMCommunicate OK [14:11:02]requested_item fd.num is exist - process it [14:11:02]SAM_PROTO_GetFieldsCounters [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 13 00 00 [14:11:02]Write to MH i2c: E2 08 00 13 7A 80 13 00 00 00 00 00 00 09 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 62 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 62 00 13 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 45 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [14:11:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 45 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_GetFieldsCounters done [14:11:03]requested_item shift.num is exist - process it [14:11:03]requested_item shift.opened is exist - process it [14:11:03]req_shift_opened [14:11:03]FM_GetShiftState [14:11:03]SAM_PROTO_GetShiftState [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 13 01 00 [14:11:03]Write to MH i2c: E2 08 00 14 7A 80 13 01 00 00 00 00 00 0B [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0E 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0E 00 14 7A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 33 [14:11:03]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_GetShiftState done [14:11:03]FM_GetShiftState done [14:11:03]req_shift_opened done [14:11:03]requested_item shift.open_date is exist - process it [14:11:03]req_shift_open_date [14:11:03]req_shift_open_date done [14:11:03]produce_requested_data done [14:11:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49221,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [14:11:03]process_action_free close_receipt [14:11:03]json_value_free [14:11:03]json_value_free done [14:11:03]process_json_proto returns [14:11:03]Send response to host [14:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49221,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [14:11:03]free response buf [14:11:03]execute_script done [14:11:03]execute_script returns [14:11:03]free content buf [14:11:03]Sock 7.Close socket [14:11:03]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:48]accept exits with 9 [14:19:48]New connection [14:19:48]New thread 3066813796 created [14:19:48]Thread 3066670436 joined [14:19:48]Waiting for new connection... [14:19:48] Sock 9.Parse request [14:19:48]Sock 9.Check first char [14:19:48]Sock 9.First char is OK [14:19:48]request: POST /json_proto HTTP/1.0 [14:19:48]Method: POST [14:19:48]URL: /json_proto [14:19:48]Method is POST - this is cgi request [14:19:48]url: /json_proto [14:19:48]query_string will be loaded in cgi processing [14:19:48]execute_cgi json_proto POST (null) [14:19:48]execute_cgi path=json_proto method=POST [14:19:48]POST find Content-Length [14:19:48]Host: 172.17.56.67:8080 [14:19:48]Content-Length: 677 [14:19:48]Content-Type: application/json [14:19:48] [14:19:48]POST finish read [14:19:48]Found Content-Length = 677 [14:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:48]execute_script... [14: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 : (1)216324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:48]POST & json_proto [14:19:48]process_json_proto [14:19:48]json parsed OK: [14:19:48]protocol is kg_v1.0 [14:19:48]action value=close_receipt [14:19:48]process_action close_receipt [14:19:48]cmd_close_receipt [14:19:48]MH_GetDate [14:19:48]Write to MH i2c: F0 00 00 15 7A 7E [14:19:48]Write i2c OK [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: F0 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: F0 09 00 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: F0 09 00 15 7A 00 97 05 B9 65 26 5D 9E 65 C7 [14:19:48]GetLastDocTimeStamp 1706623878 [14:19:48]current date 1706624407 [14:19:48]FM_GetShiftState [14:19:48]SAM_PROTO_GetShiftState [14:19:48]wFMCommunicate request_size=4 [14:19:48]MH_SAM_APDU [14:19:48]CAPDU: 80 13 01 00 [14:19:48]Write to MH i2c: E2 08 00 16 7A 80 13 01 00 00 00 00 00 0D [14:19:48]Write i2c OK [14:19:48]MH_I2C_Read... [14:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:48]Read from MH i2c: E2 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 0E 00 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 0E 00 16 7A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 35 [14:19:48]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:19:48]wFMCommunicate OK [14:19:48]SAM_PROTO_GetShiftState done [14:19:48]FM_GetShiftState done [14:19:48]opened in 1706572995 [14:19:48]opened+sec_in_day 1706659395 [14:19:48]quantity*price = 30029 [14:19:48]sum+1 = 30030 [14:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 98 30.01.2024 14:20 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49222 ФПД: 104946139996724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T142007&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49222&fm=104946139996724&tin=02508201610067®Number=0000000000092723&sum=30000 [14:19:49]StoreToDocumentArchive [14:19:49]shift 246 fd 49222 [14:19:49]save to /storage/0246/doc_00049222 [14:19:49]save last doc name /storage/0246/doc_00049222 to /storage/kkm_last_doc_name [14:19:49]save OK [14:19:49]Clear old archive folders... [14:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:49]tlvbuf is 0128CD10 [14:19:49]SAM_PROTO_ClearQueue [14:19:49]wFMCommunicate request_size=4 [14:19:49]MH_SAM_APDU [14:19:49]CAPDU: 80 09 00 00 [14:19:49]Write to MH i2c: E2 08 00 23 7A 80 09 00 00 00 00 00 00 0F [14:19:49]Write i2c OK [14:19:49]MH_I2C_Read... [14:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:49]Read from MH i2c: E2 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 03 00 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 03 00 23 7A 00 90 00 11 [14:19:49]RAPDU: 90 00 [14:19:49]wFMCommunicate OK [14:19:49]SAM_PROTO_ClearQueue done [14:19:49]KKMCreateOFDPacket [14:19:49]OFDProtocolAddRootSTLVToBuf [14:19:49]FM_MakeSignedData [14:19:49]FM_MakeSignedData [14:19:49]SAM_PROTO_SignData [14:19:49]wFMCommunicate request_size=4 [14:19:49]MH_SAM_APDU [14:19:49]CAPDU: 80 0D 01 02 [14:19:49]Write to MH i2c: E2 08 00 24 7A 80 0D 01 02 00 00 00 00 17 [14:19:49]Write i2c OK [14:19:49]MH_I2C_Read... [14:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:49]Read from MH i2c: E2 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 03 00 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 03 00 24 7A 00 90 00 12 [14:19:49]RAPDU: 90 00 [14:19:49]wFMCommunicate OK [14:19:49]wFMCommunicate request_size=255 [14:19:49]MH_SAM_APDU [14:19:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 97 05 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 46 C0 00 00 35 04 06 00 5F [14:19:49]Write to MH i2c: E2 02 01 25 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 97 05 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 46 C0 00 00 35 04 06 00 5F 00 00 54 [14:19:49]Write i2c OK [14:19:49]MH_I2C_Read... [14:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:49]Read from MH i2c: E2 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 03 00 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 03 00 25 7A 00 90 00 13 [14:19:49]RAPDU: 90 00 [14:19:49]wFMCommunicate OK [14:19:49]wFMCommunicate request_size=10 [14:19:49]MH_SAM_APDU [14:19:49]CAPDU: 80 0D 02 02 05 72 AD 65 22 34 [14:19:49]Write to MH i2c: E2 0D 00 26 7A 80 0D 02 02 05 00 72 AD 65 22 34 00 00 FE [14:19:49]Write i2c OK [14:19:49]MH_I2C_Read... [14:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:49]Read from MH i2c: E2 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 03 00 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 03 00 26 7A 00 90 00 14 [14:19:49]RAPDU: 90 00 [14:19:49]wFMCommunicate OK [14:19:49]wFMCommunicate request_size=4 [14:19:49]MH_SAM_APDU [14:19:49]CAPDU: 80 0D 03 02 [14:19:49]Write to MH i2c: E2 08 00 27 7A 80 0D 03 02 00 00 00 00 1C [14:19:49]Write i2c OK [14:19:49]MH_I2C_Read... [14:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:49]Read from MH i2c: E2 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 0B 00 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 0B 00 27 7A 00 4F AB 81 7C 51 FA 5E 34 90 00 F1 [14:19:49]RAPDU: 4F AB 81 7C 51 FA 5E 34 90 00 [14:19:49]wFMCommunicate OK [14:19:49]SAM_PROTO_SignData done [14:19:49]FM_MakeSignedData done [14:19:49]CreateOFDProtocolMessage [14:19:49]wFMCommunicate request_size=4 [14:19:49]MH_SAM_APDU [14:19:49]CAPDU: 80 11 00 00 [14:19:49]Write to MH i2c: E2 08 00 28 7A 80 11 00 00 00 00 00 00 1C [14:19:49]Write i2c OK [14:19:49]MH_I2C_Read... [14:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:49]Read from MH i2c: E2 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 17 00 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: E2 17 00 28 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 69 [14:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:19:49]wFMCommunicate OK [14:19:49]CreateOFDProtocolMessage done [14:19:49]OFDSenderStorePacket 49222 [14:19:49]StoreOFDPacket docnum=49222 [14:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 AE 4C 07 01 95 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 97 05 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 46 C0 00 00 35 04 06 00 5F 72 AD 65 22 34 4F AB 81 7C 51 FA 5E 34 [14:19:49]CheckFolder [14:19:49]dirname=/storage/ofd_packets [14:19:49]CheckFolder done [14:19:49]ProducePacketName [14:19:49]name=ofd_packets/00049222 [14:19:49]NVStorageSaveData ofd_packets/00049222 [14:19:49]File name is /storage/ofd_packets/00049222 [14:19:49]Write 301 bytes [14:19:49]NVStorageSaveData done [14:19:49]OFDSenderStorePacket done [14:19:49]KKMCreateOFDPacket done [14:19:49]NVStorageSaveData kkm_last_timestamp [14:19:49]File name is /storage/kkm_last_timestamp [14:19:49]Write 4 bytes [14:19:49]NVStorageSaveData done [14:19:49]ExternCall_PrintAddStr [14:19:49]wPrintStart [14:19:49]Write to MH i2c: 01 00 00 29 7A A3 [14:19:49]Write i2c OK [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: 01 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: 01 07 00 [14:19:49]MH_I2C_Read... [14:19:49]Read from MH i2c: 01 07 00 29 7A 00 00 00 00 00 FF 0F B8 [14:19:49]RasterBufferAndPrint [14:19:49]line Счет N : (1)216324 [14:19:49]line ИНН: 02508201610067 [14:19:49]line Контрольно-Кассовый Чек [14:19:49]line ПРОДАЖА [14:19:49]line ТРК (МРК, ГНК) : 22 [14:19:49]line Товар: 2710124130 [14:19:49]line Аи-92-К-5 [14:19:49]line 4.980 * 60.30 [14:19:49]line = 300.29 [14:19:49]line НДС 12% НСП 1% [14:19:49]line > о реализуемом товаре [14:19:49]line ОКРУГЛЕНИЕ: -0.29 [14:19:49]line ИТОГО: 300.00 [14:19:49]line Внесено: 300.00 [14:19:49]line СДАЧА: 0.00 [14:19:49]line НСП 1% : 2.66 [14:19:49]line НДС 12% : 31.89 [14:19:49]line Наличными: 300.00 [14:19:49]line Безнал.: 0.00 [14:19:49]line Место: АЗС № 102 "Партнер Нефть" [14:19:49]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:19:49]line СНО: Общий режим [14:19:49]line Чек 98 30.01.2024 14:20 [14:19:49]line Смена: 246 ФФД: 1.0 [14:19:49]line ЗНМ: 0300000040 [14:19:49]line РНМ: 0000000000092723 [14:19:49]line Версия ККМ: 001 [14:19:49]line ФМ: 0000000000875060 [14:19:49]line ФД: 49222 [14:19:49]line ФПД: 104946139996724 [14:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T142007&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49222&fm=104946139996724&tin=02508201610067®Number=0000000000092723&sum=30000 [14:19:50]OFD Sender: Processing packet 49222 [packets to send 12, broken 11] [14:19:50]ProducePacketName [14:19:50]name=ofd_packets/00049222 [14:19:50]OFD Sender: To server: pG, [14:19:50]CommunicateWithHost lk.salyk.kg:30040 [14:19:50]ConnectInit lk.salyk.kg [14:19:50]written 0, free lines is 4095 [14:19:50]Connected sock=10 [14: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 36 30 0F 01 00 00 AE 4C 07 01 95 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 97 05 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 46 C0 00 00 35 04 06 00 5F 72 AD 65 22 34 4F AB 81 7C 51 FA 5E 34 [14: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 36 30 4F 00 00 00 3B A4 47 00 ED 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 36 30 10 04 04 00 46 C0 00 00 F4 03 04 00 8C B1 B8 65 B6 04 01 00 00 27 3B 62 DA 8B FB 6F 3A [14:19:50]CommunicateWithHost err = 0 [14:19:50]CheckOFDResponse [14:19:50]1017 (14) - 77093643461234 [14:19:50]1041 (16) - 0000000000875060 [14:19:50]1040 (4) - 49222 [14:19:50]1012 (4) - 30.01.2024 08:21 [14:19:50]1206 (1) - 0 [14:19:50]OFD Sender: Remove packet 49222 [14:19:50]ProducePacketName [14:19:50]name=ofd_packets/00049222 [14:19:50]NVStorageDeleteData [14:19:50]Write to MH i2c: 01 00 00 54 7A CE [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: 01 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: 01 07 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: 01 07 00 54 7A 00 00 00 00 00 FB 0C DC [14:19:50]RasterBufferAndPrint [14:19:50]line [14:19:50]line [14:19:50]line [14:19:50]line [14:19:50]line [14:19:50]written 0, free lines is 3333 [14:19:50]MH_Cut [14:19:50]Write to MH i2c: D1 01 00 5B 7A 01 A7 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: D1 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: D1 01 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: D1 01 00 5B 7A 00 A6 [14:19:50]Write to MH i2c: 01 00 00 5C 7A D6 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:51]OFD Sender: No OFD packet to send [14:19:51]*** Cut start [14:19:51]*** Partial cut [14:19:51]*** CUTSNS_PIN = 1 [14:19:51]*** CUTSNS_PIN = 0 [14:19:51]*** Brake cut motor [14:19:51]Read from MH i2c: 01 [14:19:51]MH_I2C_Read... [14:19:51]*** Stop cut motor [14:19:51]*** Cut end [14:19:51]Read from MH i2c: 01 07 00 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: 01 07 00 5C 7A 00 00 00 00 00 FF 0F EB [14:19:51]process_action close_receipt done [14:19:51]requested_data is exist [14:19:51]produce_requested_data [14:19:51]requested_item fm.sn is exist - process it [14:19:51]wFMCommunicate request_size=4 [14:19:51]MH_SAM_APDU [14:19:51]CAPDU: 80 11 00 00 [14:19:51]Write to MH i2c: E2 08 00 5D 7A 80 11 00 00 00 00 00 00 51 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 5D 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9E [14:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:19:52]wFMCommunicate OK [14:19:52]requested_item fd.num is exist - process it [14:19:52]SAM_PROTO_GetFieldsCounters [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 13 00 00 [14:19:52]Write to MH i2c: E2 08 00 5E 7A 80 13 00 00 00 00 00 00 54 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 62 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 62 00 5E 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 46 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [14:19: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 46 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_GetFieldsCounters done [14:19:52]requested_item shift.num is exist - process it [14:19:52]requested_item shift.opened is exist - process it [14:19:52]req_shift_opened [14:19:52]FM_GetShiftState [14:19:52]SAM_PROTO_GetShiftState [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 13 01 00 [14:19:52]Write to MH i2c: E2 08 00 5F 7A 80 13 01 00 00 00 00 00 56 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0E 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0E 00 5F 7A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 7E [14:19:52]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_GetShiftState done [14:19:52]FM_GetShiftState done [14:19:52]req_shift_opened done [14:19:52]requested_item shift.open_date is exist - process it [14:19:52]req_shift_open_date [14:19:52]req_shift_open_date done [14:19:52]produce_requested_data done [14:19:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49222,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [14:19:52]process_action_free close_receipt [14:19:52]json_value_free [14:19:52]json_value_free done [14:19:52]process_json_proto returns [14:19:52]Send response to host [14:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49222,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [14:19:52]free response buf [14:19:52]execute_script done [14:19:52]execute_script returns [14:19:52]free content buf [14:19:52]Sock 9.Close socket [14:19:52]Sock 9.Thread stoped [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:42]accept exits with 7 [14:37:42]New connection [14:37:42]New thread 3066670436 created [14:37:42]Thread 3066813796 joined [14:37:42]Waiting for new connection... [14:37:42] Sock 7.Parse request [14:37:42]Sock 7.Check first char [14:37:42]Sock 7.First char is OK [14:37:42]request: POST /json_proto HTTP/1.0 [14:37:42]Method: POST [14:37:42]URL: /json_proto [14:37:42]Method is POST - this is cgi request [14:37:42]url: /json_proto [14:37:42]query_string will be loaded in cgi processing [14:37:42]execute_cgi json_proto POST (null) [14:37:42]execute_cgi path=json_proto method=POST [14:37:42]POST find Content-Length [14:37:42]Host: 172.17.56.67:8080 [14:37:42]Content-Length: 677 [14:37:42]Content-Type: application/json [14:37:42] [14:37:42]POST finish read [14:37:42]Found Content-Length = 677 [14:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [14:37:42]execute_script... [14:37: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)216325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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" ] } } [14:37:42]POST & json_proto [14:37:42]process_json_proto [14:37:42]json parsed OK: [14:37:42]protocol is kg_v1.0 [14:37:42]action value=close_receipt [14:37:42]process_action close_receipt [14:37:42]cmd_close_receipt [14:37:42]MH_GetDate [14:37:42]Write to MH i2c: F0 00 00 60 7A C9 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: F0 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: F0 09 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: F0 09 00 60 7A 00 C9 09 B9 65 26 5D 9E 65 48 [14:37:42]GetLastDocTimeStamp 1706624407 [14:37:42]current date 1706625481 [14:37:42]FM_GetShiftState [14:37:42]SAM_PROTO_GetShiftState [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 13 01 00 [14:37:42]Write to MH i2c: E2 08 00 61 7A 80 13 01 00 00 00 00 00 58 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 0E 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 0E 00 61 7A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 80 [14:37:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:37:42]wFMCommunicate OK [14:37:42]SAM_PROTO_GetShiftState done [14:37:42]FM_GetShiftState done [14:37:42]opened in 1706572995 [14:37:42]opened+sec_in_day 1706659395 [14:37:42]quantity*price = 20019 [14:37:42]sum+1 = 20021 [14:37:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 99 30.01.2024 14:38 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49223 ФПД: 270372433942556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T143801&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49223&fm=270372433942556&tin=02508201610067®Number=0000000000092723&sum=20000 [14:37:43]StoreToDocumentArchive [14:37:43]shift 246 fd 49223 [14:37:43]save to /storage/0246/doc_00049223 [14:37:43]save last doc name /storage/0246/doc_00049223 to /storage/kkm_last_doc_name [14:37:43]save OK [14:37:43]Clear old archive folders... [14:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:43]tlvbuf is 0144F840 [14:37:43]SAM_PROTO_ClearQueue [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 09 00 00 [14:37:43]Write to MH i2c: E2 08 00 6E 7A 80 09 00 00 00 00 00 00 5A [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 03 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 03 00 6E 7A 00 90 00 5C [14:37:43]RAPDU: 90 00 [14:37:43]wFMCommunicate OK [14:37:43]SAM_PROTO_ClearQueue done [14:37:43]KKMCreateOFDPacket [14:37:43]OFDProtocolAddRootSTLVToBuf [14:37:43]FM_MakeSignedData [14:37:43]FM_MakeSignedData [14:37:43]SAM_PROTO_SignData [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 0D 01 02 [14:37:43]Write to MH i2c: E2 08 00 6F 7A 80 0D 01 02 00 00 00 00 62 [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 03 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 03 00 6F 7A 00 90 00 5D [14:37:43]RAPDU: 90 00 [14:37:43]wFMCommunicate OK [14:37:43]wFMCommunicate request_size=255 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C9 09 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 47 C0 00 00 35 04 06 00 F5 [14:37:43]Write to MH i2c: E2 02 01 70 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C9 09 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 47 C0 00 00 35 04 06 00 F5 00 00 B7 [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 03 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 03 00 70 7A 00 90 00 5E [14:37:43]RAPDU: 90 00 [14:37:43]wFMCommunicate OK [14:37:43]wFMCommunicate request_size=10 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 0D 02 02 05 E6 FC E1 D8 1C [14:37:43]Write to MH i2c: E2 0D 00 71 7A 80 0D 02 02 05 00 E6 FC E1 D8 1C 00 00 26 [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 03 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 03 00 71 7A 00 90 00 5F [14:37:43]RAPDU: 90 00 [14:37:43]wFMCommunicate OK [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 0D 03 02 [14:37:43]Write to MH i2c: E2 08 00 72 7A 80 0D 03 02 00 00 00 00 67 [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 0B 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 0B 00 72 7A 00 E0 3D E2 A0 33 E7 46 57 90 00 BE [14:37:43]RAPDU: E0 3D E2 A0 33 E7 46 57 90 00 [14:37:43]wFMCommunicate OK [14:37:43]SAM_PROTO_SignData done [14:37:43]FM_MakeSignedData done [14:37:43]CreateOFDProtocolMessage [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 11 00 00 [14:37:43]Write to MH i2c: E2 08 00 73 7A 80 11 00 00 00 00 00 00 67 [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 17 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 17 00 73 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B4 [14:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:37:43]wFMCommunicate OK [14:37:43]CreateOFDProtocolMessage done [14:37:43]OFDSenderStorePacket 49223 [14:37:43]StoreOFDPacket docnum=49223 [14:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 19 9B 07 01 CE 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C9 09 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 47 C0 00 00 35 04 06 00 F5 E6 FC E1 D8 1C E0 3D E2 A0 33 E7 46 57 [14:37:43]CheckFolder [14:37:43]dirname=/storage/ofd_packets [14:37:43]CheckFolder done [14:37:43]ProducePacketName [14:37:43]name=ofd_packets/00049223 [14:37:43]NVStorageSaveData ofd_packets/00049223 [14:37:43]File name is /storage/ofd_packets/00049223 [14:37:43]Write 301 bytes [14:37:43]NVStorageSaveData done [14:37:43]OFDSenderStorePacket done [14:37:43]KKMCreateOFDPacket done [14:37:43]NVStorageSaveData kkm_last_timestamp [14:37:43]File name is /storage/kkm_last_timestamp [14:37:43]Write 4 bytes [14:37:43]NVStorageSaveData done [14:37:43]ExternCall_PrintAddStr [14:37:43]wPrintStart [14:37:43]Write to MH i2c: 01 00 00 74 7A EE [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: 01 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: 01 07 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: 01 07 00 74 7A 00 00 00 00 00 FF 0F 03 [14:37:43]RasterBufferAndPrint [14:37:43]line Счет N : (1)216325 [14:37:43]line ИНН: 02508201610067 [14:37:43]line Контрольно-Кассовый Чек [14:37:43]line ПРОДАЖА [14:37:43]line ТРК (МРК, ГНК) : 12 [14:37:43]line Товар: 2710124130 [14:37:43]line Аи-92-К-5 [14:37:43]line 3.320 * 60.30 [14:37:43]line = 200.20 [14:37:43]line НДС 12% НСП 1% [14:37:43]line > о реализуемом товаре [14:37:43]line ОКРУГЛЕНИЕ: -0.20 [14:37:43]line ИТОГО: 200.00 [14:37:43]line Внесено: 200.00 [14:37:43]line СДАЧА: 0.00 [14:37:43]line НСП 1% : 1.77 [14:37:43]line НДС 12% : 21.26 [14:37:43]line Наличными: 200.00 [14:37:43]line Безнал.: 0.00 [14:37:43]line Место: АЗС № 102 "Партнер Нефть" [14:37:43]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:37:43]line СНО: Общий режим [14:37:43]line Чек 99 30.01.2024 14:38 [14:37:43]line Смена: 246 ФФД: 1.0 [14:37:43]line ЗНМ: 0300000040 [14:37:43]line РНМ: 0000000000092723 [14:37:43]line Версия ККМ: 001 [14:37:43]line ФМ: 0000000000875060 [14:37:43]line ФД: 49223 [14:37:43]line ФПД: 270372433942556 [14:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T143801&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49223&fm=270372433942556&tin=02508201610067®Number=0000000000092723&sum=20000 [14:37:44]OFD Sender: Processing packet 49223 [packets to send 12, broken 11] [14:37:44]ProducePacketName [14:37:44]name=ofd_packets/00049223 [14:37:44]OFD Sender: To server: pG, [14:37:44]CommunicateWithHost lk.salyk.kg:30040 [14:37:44]ConnectInit lk.salyk.kg [14:37:44]written 0, free lines is 4095 [14:37:44]Connected sock=10 [14:37: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 36 30 0F 01 00 00 19 9B 07 01 CE 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C9 09 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 47 C0 00 00 35 04 06 00 F5 E6 FC E1 D8 1C E0 3D E2 A0 33 E7 46 57 [14:37: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 36 30 4F 00 00 00 CD 98 47 00 F7 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 47 C0 00 00 F4 03 04 00 BE B5 B8 65 B6 04 01 00 00 59 F6 CB 08 A8 FC AE E2 [14:37:44]CommunicateWithHost err = 0 [14:37:44]CheckOFDResponse [14:37:44]1017 (14) - 77093643461234 [14:37:44]1041 (16) - 0000000000875060 [14:37:44]1040 (4) - 49223 [14:37:44]1012 (4) - 30.01.2024 08:39 [14:37:44]1206 (1) - 0 [14:37:44]OFD Sender: Remove packet 49223 [14:37:44]ProducePacketName [14:37:44]name=ofd_packets/00049223 [14:37:44]NVStorageDeleteData [14:37:44]Write to MH i2c: 01 00 00 9F 7A 19 [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: 01 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: 01 07 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: 01 07 00 9F 7A 00 00 00 00 00 F0 0C 1C [14:37:44]RasterBufferAndPrint [14:37:44]line [14:37:44]line [14:37:44]line [14:37:44]line [14:37:44]line [14:37:44]written 0, free lines is 3319 [14:37:44]MH_Cut [14:37:44]Write to MH i2c: D1 01 00 A6 7A 01 F2 [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: D1 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: D1 01 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: D1 01 00 A6 7A 00 F1 [14:37:44]Write to MH i2c: 01 00 00 A7 7A 21 [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:45]OFD Sender: No OFD packet to send [14:37:45]*** Cut start [14:37:45]*** Partial cut [14:37:45]*** CUTSNS_PIN = 1 [14:37:45]*** CUTSNS_PIN = 0 [14:37:45]*** Brake cut motor [14:37:46]Read from MH i2c: 01 [14:37:46]MH_I2C_Read... [14:37:46]*** Stop cut motor [14:37:46]*** Cut end [14:37:46]Read from MH i2c: 01 07 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 07 00 A7 7A 00 00 00 00 00 FF 0F 36 [14:37:46]process_action close_receipt done [14:37:46]requested_data is exist [14:37:46]produce_requested_data [14:37:46]requested_item fm.sn is exist - process it [14:37:46]wFMCommunicate request_size=4 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 11 00 00 [14:37:46]Write to MH i2c: E2 08 00 A8 7A 80 11 00 00 00 00 00 00 9C [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 17 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 17 00 A8 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E9 [14:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:37:46]wFMCommunicate OK [14:37:46]requested_item fd.num is exist - process it [14:37:46]SAM_PROTO_GetFieldsCounters [14:37:46]wFMCommunicate request_size=4 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 13 00 00 [14:37:46]Write to MH i2c: E2 08 00 A9 7A 80 13 00 00 00 00 00 00 9F [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 62 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 62 00 A9 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 47 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [14:37: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 47 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:46]wFMCommunicate OK [14:37:46]SAM_PROTO_GetFieldsCounters done [14:37:46]requested_item shift.num is exist - process it [14:37:46]requested_item shift.opened is exist - process it [14:37:46]req_shift_opened [14:37:46]FM_GetShiftState [14:37:46]SAM_PROTO_GetShiftState [14:37:46]wFMCommunicate request_size=4 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 13 01 00 [14:37:46]Write to MH i2c: E2 08 00 AA 7A 80 13 01 00 00 00 00 00 A1 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 0E 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 0E 00 AA 7A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 C9 [14:37:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [14:37:46]wFMCommunicate OK [14:37:46]SAM_PROTO_GetShiftState done [14:37:46]FM_GetShiftState done [14:37:46]req_shift_opened done [14:37:46]requested_item shift.open_date is exist - process it [14:37:46]req_shift_open_date [14:37:46]req_shift_open_date done [14:37:46]produce_requested_data done [14:37:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49223,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [14:37:46]process_action_free close_receipt [14:37:46]json_value_free [14:37:46]json_value_free done [14:37:46]process_json_proto returns [14:37:46]Send response to host [14:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49223,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [14:37:46]free response buf [14:37:46]execute_script done [14:37:46]execute_script returns [14:37:46]free content buf [14:37:46]Sock 7.Close socket [14:37:46]Sock 7.Thread stoped [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:01]accept exits with 9 [15:00:01]New connection [15:00:01]New thread 3066813796 created [15:00:01]Thread 3066670436 joined [15:00:01]Waiting for new connection... [15:00:01] Sock 9.Parse request [15:00:01]Sock 9.Check first char [15:00:01]Sock 9.First char is OK [15:00:01]request: POST /json_proto HTTP/1.0 [15:00:01]Method: POST [15:00:01]URL: /json_proto [15:00:01]Method is POST - this is cgi request [15:00:01]url: /json_proto [15:00:01]query_string will be loaded in cgi processing [15:00:01]execute_cgi json_proto POST (null) [15:00:01]execute_cgi path=json_proto method=POST [15:00:01]POST find Content-Length [15:00:01]Host: 172.17.56.67:8080 [15:00:01]Content-Length: 677 [15:00:01]Content-Type: application/json [15:00:01] [15:00:01]POST finish read [15:00:01]Found Content-Length = 677 [15:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.630, "sum" : 520.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:01]execute_script... [15:00:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.630, "sum" : 520.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:01]POST & json_proto [15:00:01]process_json_proto [15:00:01]json parsed OK: [15:00:01]protocol is kg_v1.0 [15:00:01]action value=close_receipt [15:00:01]process_action close_receipt [15:00:01]cmd_close_receipt [15:00:01]MH_GetDate [15:00:01]Write to MH i2c: F0 00 00 AB 7A 14 [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: F0 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: F0 09 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: F0 09 00 AB 7A 00 04 0F B9 65 26 5D 9E 65 D4 [15:00:01]GetLastDocTimeStamp 1706625481 [15:00:01]current date 1706626820 [15:00:01]FM_GetShiftState [15:00:01]SAM_PROTO_GetShiftState [15:00:01]wFMCommunicate request_size=4 [15:00:01]MH_SAM_APDU [15:00:01]CAPDU: 80 13 01 00 [15:00:01]Write to MH i2c: E2 08 00 AC 7A 80 13 01 00 00 00 00 00 A3 [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:01]Read from MH i2c: E2 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 0E 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 0E 00 AC 7A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 CB [15:00:01]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:00:01]wFMCommunicate OK [15:00:01]SAM_PROTO_GetShiftState done [15:00:01]FM_GetShiftState done [15:00:01]opened in 1706572995 [15:00:01]opened+sec_in_day 1706659395 [15:00:01]quantity*price = 52038 [15:00:01]sum+1 = 52040 [15:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.26 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 100 30.01.2024 15:00 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49224 ФПД: 179522157598411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T150020&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49224&fm=179522157598411&tin=02508201610067®Number=0000000000092723&sum=52000 [15:00:02]StoreToDocumentArchive [15:00:02]shift 246 fd 49224 [15:00:02]save to /storage/0246/doc_00049224 [15:00:02]save last doc name /storage/0246/doc_00049224 to /storage/kkm_last_doc_name [15:00:02]save OK [15:00:02]Clear old archive folders... [15:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:02]tlvbuf is 013183B0 [15:00:02]SAM_PROTO_ClearQueue [15:00:02]wFMCommunicate request_size=4 [15:00:02]MH_SAM_APDU [15:00:02]CAPDU: 80 09 00 00 [15:00:02]Write to MH i2c: E2 08 00 B9 7A 80 09 00 00 00 00 00 00 A5 [15:00:02]Write i2c OK [15:00:02]MH_I2C_Read... [15:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:02]Read from MH i2c: E2 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: E2 03 00 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: E2 03 00 B9 7A 00 90 00 A7 [15:00:02]RAPDU: 90 00 [15:00:02]wFMCommunicate OK [15:00:02]SAM_PROTO_ClearQueue done [15:00:02]KKMCreateOFDPacket [15:00:02]OFDProtocolAddRootSTLVToBuf [15:00:02]FM_MakeSignedData [15:00:02]FM_MakeSignedData [15:00:02]SAM_PROTO_SignData [15:00:02]wFMCommunicate request_size=4 [15:00:02]MH_SAM_APDU [15:00:02]CAPDU: 80 0D 01 02 [15:00:02]Write to MH i2c: E2 08 00 BA 7A 80 0D 01 02 00 00 00 00 AD [15:00:02]Write i2c OK [15:00:02]MH_I2C_Read... [15:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:02]Read from MH i2c: E2 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: E2 03 00 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: E2 03 00 BA 7A 00 90 00 A8 [15:00:02]RAPDU: 90 00 [15:00:02]wFMCommunicate OK [15:00:02]wFMCommunicate request_size=255 [15:00:02]MH_SAM_APDU [15:00:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 47 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 04 0F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 48 C0 00 00 35 04 06 00 A3 [15:00:02]Write to MH i2c: E2 02 01 BB 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 47 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 04 0F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 48 C0 00 00 35 04 06 00 A3 00 00 C1 [15:00:02]Write i2c OK [15:00:02]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 BB 7A 00 90 00 A9 [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]wFMCommunicate request_size=10 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 02 02 05 46 42 6E D6 CB [15:00:03]Write to MH i2c: E2 0D 00 BC 7A 80 0D 02 02 05 00 46 42 6E D6 CB 00 00 51 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 BC 7A 00 90 00 AA [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 03 02 [15:00:03]Write to MH i2c: E2 08 00 BD 7A 80 0D 03 02 00 00 00 00 B2 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 0B 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 0B 00 BD 7A 00 3B 2B CD 89 12 4B AF 3F 90 00 BA [15:00:03]RAPDU: 3B 2B CD 89 12 4B AF 3F 90 00 [15:00:03]wFMCommunicate OK [15:00:03]SAM_PROTO_SignData done [15:00:03]FM_MakeSignedData done [15:00:03]CreateOFDProtocolMessage [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 11 00 00 [15:00:03]Write to MH i2c: E2 08 00 BE 7A 80 11 00 00 00 00 00 00 B2 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 17 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 17 00 BE 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FF [15:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:00:03]wFMCommunicate OK [15:00:03]CreateOFDProtocolMessage done [15:00:03]OFDSenderStorePacket 49224 [15:00:03]StoreOFDPacket docnum=49224 [15:00:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 34 DF 07 01 BF 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 47 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 04 0F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 48 C0 00 00 35 04 06 00 A3 46 42 6E D6 CB 3B 2B CD 89 12 4B AF 3F [15:00:03]CheckFolder [15:00:03]dirname=/storage/ofd_packets [15:00:03]CheckFolder done [15:00:03]ProducePacketName [15:00:03]name=ofd_packets/00049224 [15:00:03]NVStorageSaveData ofd_packets/00049224 [15:00:03]File name is /storage/ofd_packets/00049224 [15:00:03]Write 301 bytes [15:00:03]NVStorageSaveData done [15:00:03]OFDSenderStorePacket done [15:00:03]KKMCreateOFDPacket done [15:00:03]NVStorageSaveData kkm_last_timestamp [15:00:03]File name is /storage/kkm_last_timestamp [15:00:03]Write 4 bytes [15:00:03]NVStorageSaveData done [15:00:03]ExternCall_PrintAddStr [15:00:03]wPrintStart [15:00:03]Write to MH i2c: 01 00 00 BF 7A 39 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 07 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 07 00 BF 7A 00 00 00 00 00 FF 0F 4E [15:00:03]RasterBufferAndPrint [15:00:03]line Счет N : (1)216326 [15:00:03]line ИНН: 02508201610067 [15:00:03]line Контрольно-Кассовый Чек [15:00:03]line ПРОДАЖА [15:00:03]line ТРК (МРК, ГНК) : 22 [15:00:03]line Товар: 2710124130 [15:00:03]line Аи-92-К-5 [15:00:03]line 8.630 * 60.30 [15:00:03]line = 520.39 [15:00:03]line НДС 12% НСП 1% [15:00:03]line > о реализуемом товаре [15:00:03]line ОКРУГЛЕНИЕ: -0.39 [15:00:03]line ИТОГО: 520.00 [15:00:03]line Внесено: 520.00 [15:00:03]line СДАЧА: 0.00 [15:00:03]line НСП 1% : 4.60 [15:00:03]line НДС 12% : 55.26 [15:00:03]line Наличными: 520.00 [15:00:03]line Безнал.: 0.00 [15:00:03]line Место: АЗС № 102 "Партнер Нефть" [15:00:03]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:00:03]line СНО: Общий режим [15:00:03]line Чек 100 30.01.2024 15:00 [15:00:03]line Смена: 246 ФФД: 1.0 [15:00:03]line ЗНМ: 0300000040 [15:00:03]line РНМ: 0000000000092723 [15:00:03]line Версия ККМ: 001 [15:00:03]line ФМ: 0000000000875060 [15:00:03]line ФД: 49224 [15:00:03]line ФПД: 179522157598411 [15:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T150020&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49224&fm=179522157598411&tin=02508201610067®Number=0000000000092723&sum=52000 [15:00:03]OFD Sender: Processing packet 49224 [packets to send 12, broken 11] [15:00:03]ProducePacketName [15:00:03]name=ofd_packets/00049224 [15:00:03]OFD Sender: To server: pG, [15:00:03]CommunicateWithHost lk.salyk.kg:30040 [15:00:03]ConnectInit lk.salyk.kg [15:00:03]written 0, free lines is 4095 [15:00:03]Connected sock=10 [15:00: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 36 30 0F 01 00 00 34 DF 07 01 BF 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 47 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 04 0F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 48 C0 00 00 35 04 06 00 A3 46 42 6E D6 CB 3B 2B CD 89 12 4B AF 3F [15:00: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 36 30 4F 00 00 00 CF 0F 47 00 8F 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 48 C0 00 00 F4 03 04 00 FA BA B8 65 B6 04 01 00 00 9F D7 BA DB 47 39 BB E7 [15:00:04]CommunicateWithHost err = 0 [15:00:04]CheckOFDResponse [15:00:04]1017 (14) - 77093643461234 [15:00:04]1041 (16) - 0000000000875060 [15:00:04]1040 (4) - 49224 [15:00:04]1012 (4) - 30.01.2024 09:01 [15:00:04]1206 (1) - 0 [15:00:04]OFD Sender: Remove packet 49224 [15:00:04]ProducePacketName [15:00:04]name=ofd_packets/00049224 [15:00:04]NVStorageDeleteData [15:00:04]Write to MH i2c: 01 00 00 EA 7A 64 [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 07 00 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 07 00 EA 7A 00 00 00 00 00 F3 0C 6A [15:00:04]RasterBufferAndPrint [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]written 0, free lines is 3321 [15:00:04]MH_Cut [15:00:04]Write to MH i2c: D1 01 00 F1 7A 01 3D [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: D1 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: D1 01 00 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: D1 01 00 F1 7A 00 3C [15:00:04]Write to MH i2c: 01 00 00 F2 7A 6C [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]OFD Sender: No OFD packet to send [15:00:04]*** Cut start [15:00:04]*** Partial cut [15:00:04]*** CUTSNS_PIN = 1 [15:00:04]*** CUTSNS_PIN = 0 [15:00:05]*** Brake cut motor [15:00:05]Read from MH i2c: 01 [15:00:05]MH_I2C_Read... [15:00:05]*** Stop cut motor [15:00:05]*** Cut end [15:00:05]Read from MH i2c: 01 07 00 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: 01 07 00 F2 7A 00 00 00 00 00 FF 0F 81 [15:00:05]process_action close_receipt done [15:00:05]requested_data is exist [15:00:05]produce_requested_data [15:00:05]requested_item fm.sn is exist - process it [15:00:05]wFMCommunicate request_size=4 [15:00:05]MH_SAM_APDU [15:00:05]CAPDU: 80 11 00 00 [15:00:05]Write to MH i2c: E2 08 00 F3 7A 80 11 00 00 00 00 00 00 E7 [15:00:05]Write i2c OK [15:00:05]MH_I2C_Read... [15:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:05]Read from MH i2c: E2 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: E2 17 00 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: E2 17 00 F3 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 34 [15:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:00:05]wFMCommunicate OK [15:00:05]requested_item fd.num is exist - process it [15:00:05]SAM_PROTO_GetFieldsCounters [15:00:05]wFMCommunicate request_size=4 [15:00:05]MH_SAM_APDU [15:00:05]CAPDU: 80 13 00 00 [15:00:05]Write to MH i2c: E2 08 00 F4 7A 80 13 00 00 00 00 00 00 EA [15:00:05]Write i2c OK [15:00:05]MH_I2C_Read... [15:00:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:05]Read from MH i2c: E2 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: E2 62 00 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: E2 62 00 F4 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 48 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [15:00: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 48 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:05]wFMCommunicate OK [15:00:05]SAM_PROTO_GetFieldsCounters done [15:00:05]requested_item shift.num is exist - process it [15:00:05]requested_item shift.opened is exist - process it [15:00:05]req_shift_opened [15:00:05]FM_GetShiftState [15:00:05]SAM_PROTO_GetShiftState [15:00:05]wFMCommunicate request_size=4 [15:00:05]MH_SAM_APDU [15:00:05]CAPDU: 80 13 01 00 [15:00:05]Write to MH i2c: E2 08 00 F5 7A 80 13 01 00 00 00 00 00 EC [15:00:05]Write i2c OK [15:00:05]MH_I2C_Read... [15:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:05]Read from MH i2c: E2 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: E2 0E 00 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: E2 0E 00 F5 7A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 14 [15:00:05]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:00:05]wFMCommunicate OK [15:00:05]SAM_PROTO_GetShiftState done [15:00:05]FM_GetShiftState done [15:00:05]req_shift_opened done [15:00:05]requested_item shift.open_date is exist - process it [15:00:05]req_shift_open_date [15:00:05]req_shift_open_date done [15:00:05]produce_requested_data done [15:00:05]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49224,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:00:05]process_action_free close_receipt [15:00:05]json_value_free [15:00:05]json_value_free done [15:00:05]process_json_proto returns [15:00:05]Send response to host [15:00:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49224,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:00:05]free response buf [15:00:05]execute_script done [15:00:05]execute_script returns [15:00:05]free content buf [15:00:05]Sock 9.Close socket [15:00:05]Sock 9.Thread stoped [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:20]accept exits with 7 [15:05:20]New connection [15:05:20]New thread 3066670436 created [15:05:20]Thread 3066813796 joined [15:05:20]Waiting for new connection... [15:05:20] Sock 7.Parse request [15:05:20]Sock 7.Check first char [15:05:20]Sock 7.First char is OK [15:05:20]request: POST /json_proto HTTP/1.0 [15:05:20]Method: POST [15:05:20]URL: /json_proto [15:05:20]Method is POST - this is cgi request [15:05:20]url: /json_proto [15:05:20]query_string will be loaded in cgi processing [15:05:20]execute_cgi json_proto POST (null) [15:05:20]execute_cgi path=json_proto method=POST [15:05:20]POST find Content-Length [15:05:20]Host: 172.17.56.67:8080 [15:05:20]Content-Length: 677 [15:05:20]Content-Type: application/json [15:05:20] [15:05:20]POST finish read [15:05:20]Found Content-Length = 677 [15:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:20]execute_script... [15:05:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:20]POST & json_proto [15:05:20]process_json_proto [15:05:20]json parsed OK: [15:05:20]protocol is kg_v1.0 [15:05:20]action value=close_receipt [15:05:20]process_action close_receipt [15:05:20]cmd_close_receipt [15:05:20]MH_GetDate [15:05:20]Write to MH i2c: F0 00 00 F6 7A 5F [15:05:20]Write i2c OK [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: F0 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: F0 09 00 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: F0 09 00 F6 7A 00 43 10 B9 65 26 5D 9E 65 5F [15:05:20]GetLastDocTimeStamp 1706626820 [15:05:20]current date 1706627139 [15:05:20]FM_GetShiftState [15:05:20]SAM_PROTO_GetShiftState [15:05:20]wFMCommunicate request_size=4 [15:05:20]MH_SAM_APDU [15:05:20]CAPDU: 80 13 01 00 [15:05:20]Write to MH i2c: E2 08 00 F7 7A 80 13 01 00 00 00 00 00 EE [15:05:20]Write i2c OK [15:05:20]MH_I2C_Read... [15:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:20]Read from MH i2c: E2 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: E2 0E 00 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: E2 0E 00 F7 7A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 16 [15:05:20]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:05:20]wFMCommunicate OK [15:05:20]SAM_PROTO_GetShiftState done [15:05:20]FM_GetShiftState done [15:05:20]opened in 1706572995 [15:05:20]opened+sec_in_day 1706659395 [15:05:20]quantity*price = 20019 [15:05:20]sum+1 = 20021 [15:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 101 30.01.2024 15:05 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49225 ФПД: 48050777841771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T150539&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49225&fm=48050777841771&tin=02508201610067®Number=0000000000092723&sum=20000 [15:05:21]StoreToDocumentArchive [15:05:21]shift 246 fd 49225 [15:05:21]save to /storage/0246/doc_00049225 [15:05:21]save last doc name /storage/0246/doc_00049225 to /storage/kkm_last_doc_name [15:05:21]save OK [15:05:21]Clear old archive folders... [15:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:21]tlvbuf is 011DB290 [15:05:21]SAM_PROTO_ClearQueue [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 09 00 00 [15:05:21]Write to MH i2c: E2 08 00 04 7B 80 09 00 00 00 00 00 00 F1 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 03 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 03 00 04 7B 00 90 00 F3 [15:05:21]RAPDU: 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_ClearQueue done [15:05:21]KKMCreateOFDPacket [15:05:21]OFDProtocolAddRootSTLVToBuf [15:05:21]FM_MakeSignedData [15:05:21]FM_MakeSignedData [15:05:21]SAM_PROTO_SignData [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 0D 01 02 [15:05:21]Write to MH i2c: E2 08 00 05 7B 80 0D 01 02 00 00 00 00 F9 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 03 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 03 00 05 7B 00 90 00 F4 [15:05:21]RAPDU: 90 00 [15:05:21]wFMCommunicate OK [15:05:21]wFMCommunicate request_size=255 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 43 10 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 49 C0 00 00 35 04 06 00 2B [15:05:21]Write to MH i2c: E2 02 01 06 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 43 10 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 49 C0 00 00 35 04 06 00 2B 00 00 09 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 03 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 03 00 06 7B 00 90 00 F5 [15:05:21]RAPDU: 90 00 [15:05:21]wFMCommunicate OK [15:05:21]wFMCommunicate request_size=10 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 0D 02 02 05 B3 B1 8B 60 6B [15:05:21]Write to MH i2c: E2 0D 00 07 7B 80 0D 02 02 05 00 B3 B1 8B 60 6B 00 00 C0 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 03 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 03 00 07 7B 00 90 00 F6 [15:05:21]RAPDU: 90 00 [15:05:21]wFMCommunicate OK [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 0D 03 02 [15:05:21]Write to MH i2c: E2 08 00 08 7B 80 0D 03 02 00 00 00 00 FE [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0B 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0B 00 08 7B 00 95 76 E7 98 00 B8 D4 69 90 00 7E [15:05:21]RAPDU: 95 76 E7 98 00 B8 D4 69 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_SignData done [15:05:21]FM_MakeSignedData done [15:05:21]CreateOFDProtocolMessage [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 11 00 00 [15:05:21]Write to MH i2c: E2 08 00 09 7B 80 11 00 00 00 00 00 00 FE [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 17 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 17 00 09 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4B [15:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:05:21]wFMCommunicate OK [15:05:21]CreateOFDProtocolMessage done [15:05:21]OFDSenderStorePacket 49225 [15:05:21]StoreOFDPacket docnum=49225 [15:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DA 07 07 01 BC 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 43 10 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 49 C0 00 00 35 04 06 00 2B B3 B1 8B 60 6B 95 76 E7 98 00 B8 D4 69 [15:05:21]CheckFolder [15:05:21]dirname=/storage/ofd_packets [15:05:21]CheckFolder done [15:05:21]ProducePacketName [15:05:21]name=ofd_packets/00049225 [15:05:21]NVStorageSaveData ofd_packets/00049225 [15:05:21]File name is /storage/ofd_packets/00049225 [15:05:21]Write 301 bytes [15:05:21]NVStorageSaveData done [15:05:21]OFDSenderStorePacket done [15:05:21]KKMCreateOFDPacket done [15:05:21]NVStorageSaveData kkm_last_timestamp [15:05:21]File name is /storage/kkm_last_timestamp [15:05:21]Write 4 bytes [15:05:21]NVStorageSaveData done [15:05:21]ExternCall_PrintAddStr [15:05:21]wPrintStart [15:05:21]Write to MH i2c: 01 00 00 0A 7B 85 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: 01 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: 01 07 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: 01 07 00 0A 7B 00 00 00 00 00 FF 0F 9A [15:05:21]RasterBufferAndPrint [15:05:21]line Счет N : (1)216327 [15:05:21]line ИНН: 02508201610067 [15:05:21]line Контрольно-Кассовый Чек [15:05:21]line ПРОДАЖА [15:05:21]line ТРК (МРК, ГНК) : 22 [15:05:21]line Товар: 2710124130 [15:05:21]line Аи-92-К-5 [15:05:21]line 3.320 * 60.30 [15:05:21]line = 200.20 [15:05:21]line НДС 12% НСП 1% [15:05:21]line > о реализуемом товаре [15:05:21]line ОКРУГЛЕНИЕ: -0.20 [15:05:21]line ИТОГО: 200.00 [15:05:21]line Внесено: 200.00 [15:05:21]line СДАЧА: 0.00 [15:05:21]line НСП 1% : 1.77 [15:05:21]line НДС 12% : 21.26 [15:05:21]line Наличными: 200.00 [15:05:21]line Безнал.: 0.00 [15:05:21]line Место: АЗС № 102 "Партнер Нефть" [15:05:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:05:21]line СНО: Общий режим [15:05:21]line Чек 101 30.01.2024 15:05 [15:05:21]line Смена: 246 ФФД: 1.0 [15:05:21]line ЗНМ: 0300000040 [15:05:21]line РНМ: 0000000000092723 [15:05:21]line Версия ККМ: 001 [15:05:21]line ФМ: 0000000000875060 [15:05:21]line ФД: 49225 [15:05:21]line ФПД: 48050777841771 [15:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T150539&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49225&fm=48050777841771&tin=02508201610067®Number=0000000000092723&sum=20000 [15:05:22]OFD Sender: Processing packet 49225 [packets to send 12, broken 11] [15:05:22]ProducePacketName [15:05:22]name=ofd_packets/00049225 [15:05:22]OFD Sender: To server: pG, [15:05:22]CommunicateWithHost lk.salyk.kg:30040 [15:05:22]ConnectInit lk.salyk.kg [15:05:22]written 0, free lines is 4095 [15:05:22]Connected sock=9 [15: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 36 30 0F 01 00 00 DA 07 07 01 BC 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 43 10 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 49 C0 00 00 35 04 06 00 2B B3 B1 8B 60 6B 95 76 E7 98 00 B8 D4 69 [15: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 36 30 4F 00 00 00 86 C8 47 00 AB 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 49 C0 00 00 F4 03 04 00 38 BC B8 65 B6 04 01 00 00 EF 03 32 79 07 C1 FC D2 [15:05:22]CommunicateWithHost err = 0 [15:05:22]CheckOFDResponse [15:05:22]1017 (14) - 77093643461234 [15:05:22]1041 (16) - 0000000000875060 [15:05:22]1040 (4) - 49225 [15:05:22]1012 (4) - 30.01.2024 09:07 [15:05:22]1206 (1) - 0 [15:05:22]OFD Sender: Remove packet 49225 [15:05:22]ProducePacketName [15:05:22]name=ofd_packets/00049225 [15:05:22]NVStorageDeleteData [15:05:22]Write to MH i2c: 01 00 00 35 7B B0 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 07 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: 01 07 00 35 7B 00 00 00 00 00 E2 0C A5 [15:05:22]RasterBufferAndPrint [15:05:22]line [15:05:22]line [15:05:22]line [15:05:22]line [15:05:22]line [15:05:22]written 0, free lines is 3304 [15:05:22]MH_Cut [15:05:22]Write to MH i2c: D1 01 00 3C 7B 01 89 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: D1 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: D1 01 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: D1 01 00 3C 7B 00 88 [15:05:22]Write to MH i2c: 01 00 00 3D 7B B8 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:23]OFD Sender: No OFD packet to send [15:05:23]*** Cut start [15:05:23]*** Partial cut [15:05:23]*** CUTSNS_PIN = 1 [15:05:23]*** CUTSNS_PIN = 0 [15:05:23]*** Brake cut motor [15:05:23]Read from MH i2c: 01 [15:05:23]MH_I2C_Read... [15:05:23]*** Stop cut motor [15:05:23]*** Cut end [15:05:23]Read from MH i2c: 01 07 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 3D 7B 00 00 00 00 00 FF 0F CD [15:05:23]process_action close_receipt done [15:05:23]requested_data is exist [15:05:23]produce_requested_data [15:05:23]requested_item fm.sn is exist - process it [15:05:23]wFMCommunicate request_size=4 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 11 00 00 [15:05:23]Write to MH i2c: E2 08 00 3E 7B 80 11 00 00 00 00 00 00 33 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:24]Read from MH i2c: E2 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 17 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 17 00 3E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 80 [15:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:05:24]wFMCommunicate OK [15:05:24]requested_item fd.num is exist - process it [15:05:24]SAM_PROTO_GetFieldsCounters [15:05:24]wFMCommunicate request_size=4 [15:05:24]MH_SAM_APDU [15:05:24]CAPDU: 80 13 00 00 [15:05:24]Write to MH i2c: E2 08 00 3F 7B 80 13 00 00 00 00 00 00 36 [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:24]Read from MH i2c: E2 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 62 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 62 00 3F 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 49 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [15:05: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 49 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:24]wFMCommunicate OK [15:05:24]SAM_PROTO_GetFieldsCounters done [15:05:24]requested_item shift.num is exist - process it [15:05:24]requested_item shift.opened is exist - process it [15:05:24]req_shift_opened [15:05:24]FM_GetShiftState [15:05:24]SAM_PROTO_GetShiftState [15:05:24]wFMCommunicate request_size=4 [15:05:24]MH_SAM_APDU [15:05:24]CAPDU: 80 13 01 00 [15:05:24]Write to MH i2c: E2 08 00 40 7B 80 13 01 00 00 00 00 00 38 [15:05:24]Write i2c OK [15:05:24]MH_I2C_Read... [15:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:24]Read from MH i2c: E2 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 0E 00 [15:05:24]MH_I2C_Read... [15:05:24]Read from MH i2c: E2 0E 00 40 7B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 60 [15:05:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:05:24]wFMCommunicate OK [15:05:24]SAM_PROTO_GetShiftState done [15:05:24]FM_GetShiftState done [15:05:24]req_shift_opened done [15:05:24]requested_item shift.open_date is exist - process it [15:05:24]req_shift_open_date [15:05:24]req_shift_open_date done [15:05:24]produce_requested_data done [15:05:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49225,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:05:24]process_action_free close_receipt [15:05:24]json_value_free [15:05:24]json_value_free done [15:05:24]process_json_proto returns [15:05:24]Send response to host [15:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49225,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:05:24]free response buf [15:05:24]execute_script done [15:05:24]execute_script returns [15:05:24]free content buf [15:05:24]Sock 7.Close socket [15:05:24]Sock 7.Thread stoped [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:36]accept exits with 10 [15:08:36]New connection [15:08:36]New thread 3066813796 created [15:08:36]Thread 3066670436 joined [15:08:36]Waiting for new connection... [15:08:36] Sock 10.Parse request [15:08:36]Sock 10.Check first char [15:08:36]Sock 10.First char is OK [15:08:36]request: POST /json_proto HTTP/1.0 [15:08:36]Method: POST [15:08:36]URL: /json_proto [15:08:36]Method is POST - this is cgi request [15:08:36]url: /json_proto [15:08:36]query_string will be loaded in cgi processing [15:08:36]execute_cgi json_proto POST (null) [15:08:36]execute_cgi path=json_proto method=POST [15:08:36]POST find Content-Length [15:08:36]Host: 172.17.56.67:8080 [15:08:36]Content-Length: 805 [15:08:36]Content-Type: application/json [15:08:36] [15:08:36]POST finish read [15:08:36]Found Content-Length = 805 [15:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.140, "sum" : 189.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 189.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:36]execute_script... [15:08:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.140, "sum" : 189.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 189.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:36]POST & json_proto [15:08:36]process_json_proto [15:08:36]json parsed OK: [15:08:36]protocol is kg_v1.0 [15:08:36]action value=close_receipt [15:08:36]process_action close_receipt [15:08:36]cmd_close_receipt [15:08:36]MH_GetDate [15:08:36]Write to MH i2c: F0 00 00 41 7B AB [15:08:36]Write i2c OK [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: F0 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: F0 09 00 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: F0 09 00 41 7B 00 07 11 B9 65 26 5D 9E 65 70 [15:08:36]GetLastDocTimeStamp 1706627139 [15:08:36]current date 1706627335 [15:08:36]FM_GetShiftState [15:08:36]SAM_PROTO_GetShiftState [15:08:36]wFMCommunicate request_size=4 [15:08:36]MH_SAM_APDU [15:08:36]CAPDU: 80 13 01 00 [15:08:36]Write to MH i2c: E2 08 00 42 7B 80 13 01 00 00 00 00 00 3A [15:08:36]Write i2c OK [15:08:36]MH_I2C_Read... [15:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:36]Read from MH i2c: E2 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: E2 0E 00 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: E2 0E 00 42 7B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 62 [15:08:36]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:08:36]wFMCommunicate OK [15:08:36]SAM_PROTO_GetShiftState done [15:08:36]FM_GetShiftState done [15:08:36]opened in 1706572995 [15:08:36]opened+sec_in_day 1706659395 [15:08:36]quantity*price = 18934 [15:08:36]sum+1 = 18935 [15:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 189.34 НСП 1% : 1.68 НДС 12% : 20.11 Наличными: 0.00 Безнал.: 189.34 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 102 30.01.2024 15:08 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875060 ФД: 49226 ФПД: 61774099414355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T150855&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49226&fm=61774099414355&tin=02508201610067®Number=0000000000092723&sum=18934 [15:08:37]StoreToDocumentArchive [15:08:37]shift 246 fd 49226 [15:08:37]save to /storage/0246/doc_00049226 [15:08:37]save last doc name /storage/0246/doc_00049226 to /storage/kkm_last_doc_name [15:08:37]save OK [15:08:37]Clear old archive folders... [15:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:37]tlvbuf is 011DAF90 [15:08:37]SAM_PROTO_ClearQueue [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 09 00 00 [15:08:37]Write to MH i2c: E2 08 00 4F 7B 80 09 00 00 00 00 00 00 3C [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 03 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 03 00 4F 7B 00 90 00 3E [15:08:37]RAPDU: 90 00 [15:08:37]wFMCommunicate OK [15:08:37]SAM_PROTO_ClearQueue done [15:08:37]KKMCreateOFDPacket [15:08:37]OFDProtocolAddRootSTLVToBuf [15:08:37]FM_MakeSignedData [15:08:37]FM_MakeSignedData [15:08:37]SAM_PROTO_SignData [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 0D 01 02 [15:08:37]Write to MH i2c: E2 08 00 50 7B 80 0D 01 02 00 00 00 00 44 [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 03 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 03 00 50 7B 00 90 00 3F [15:08:37]RAPDU: 90 00 [15:08:37]wFMCommunicate OK [15:08:37]wFMCommunicate request_size=255 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F6 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 49 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 DB 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 49 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 07 11 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4A C0 00 00 35 04 06 00 38 [15:08:37]Write to MH i2c: E2 02 01 51 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F6 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 49 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 DB 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 49 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 07 11 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4A C0 00 00 35 04 06 00 38 00 00 56 [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 03 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 03 00 51 7B 00 90 00 40 [15:08:37]RAPDU: 90 00 [15:08:37]wFMCommunicate OK [15:08:37]wFMCommunicate request_size=10 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 0D 02 02 05 2E E7 40 7D 53 [15:08:37]Write to MH i2c: E2 0D 00 52 7B 80 0D 02 02 05 00 2E E7 40 7D 53 00 00 76 [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 03 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 03 00 52 7B 00 90 00 41 [15:08:37]RAPDU: 90 00 [15:08:37]wFMCommunicate OK [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 0D 03 02 [15:08:37]Write to MH i2c: E2 08 00 53 7B 80 0D 03 02 00 00 00 00 49 [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:38]Read from MH i2c: E2 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: E2 0B 00 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: E2 0B 00 53 7B 00 29 CD E4 7F 54 71 E0 AE 90 00 F6 [15:08:38]RAPDU: 29 CD E4 7F 54 71 E0 AE 90 00 [15:08:38]wFMCommunicate OK [15:08:38]SAM_PROTO_SignData done [15:08:38]FM_MakeSignedData done [15:08:38]CreateOFDProtocolMessage [15:08:38]wFMCommunicate request_size=4 [15:08:38]MH_SAM_APDU [15:08:38]CAPDU: 80 11 00 00 [15:08:38]Write to MH i2c: E2 08 00 54 7B 80 11 00 00 00 00 00 00 49 [15:08:38]Write i2c OK [15:08:38]MH_I2C_Read... [15:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:38]Read from MH i2c: E2 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: E2 17 00 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: E2 17 00 54 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 96 [15:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:08:38]wFMCommunicate OK [15:08:38]CreateOFDProtocolMessage done [15:08:38]OFDSenderStorePacket 49226 [15:08:38]StoreOFDPacket docnum=49226 [15:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 51 C1 07 01 86 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F6 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 49 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 DB 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 49 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 07 11 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4A C0 00 00 35 04 06 00 38 2E E7 40 7D 53 29 CD E4 7F 54 71 E0 AE [15:08:38]CheckFolder [15:08:38]dirname=/storage/ofd_packets [15:08:38]CheckFolder done [15:08:38]ProducePacketName [15:08:38]name=ofd_packets/00049226 [15:08:38]NVStorageSaveData ofd_packets/00049226 [15:08:38]File name is /storage/ofd_packets/00049226 [15:08:38]Write 301 bytes [15:08:38]NVStorageSaveData done [15:08:38]OFDSenderStorePacket done [15:08:38]KKMCreateOFDPacket done [15:08:38]NVStorageSaveData kkm_last_timestamp [15:08:38]File name is /storage/kkm_last_timestamp [15:08:38]Write 4 bytes [15:08:38]NVStorageSaveData done [15:08:38]ExternCall_PrintAddStr [15:08:38]wPrintStart [15:08:38]Write to MH i2c: 01 00 00 55 7B D0 [15:08:38]Write i2c OK [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: 01 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: 01 07 00 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: 01 07 00 55 7B 00 00 00 00 00 FF 0F E5 [15:08:38]RasterBufferAndPrint [15:08:38]line Счет N : (1)216328 [15:08:38]line ИНН: 02508201610067 [15:08:38]line Контрольно-Кассовый Чек [15:08:38]line ПРОДАЖА [15:08:38]line ТРК (МРК, ГНК) : 12 [15:08:38]line Товар: 2710124130 [15:08:38]line Аи-92-К-5 [15:08:38]line 3.140 * 60.30 [15:08:38]line = 189.34 [15:08:38]line НДС 12% НСП 1% [15:08:38]line > о реализуемом товаре [15:08:38]line ИТОГО: 189.34 [15:08:38]line НСП 1% : 1.68 [15:08:38]line НДС 12% : 20.11 [15:08:38]line Наличными: 0.00 [15:08:38]line Безнал.: 189.34 [15:08:38]line Место: АЗС № 102 "Партнер Нефть" [15:08:38]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:08:38]line СНО: Общий режим [15:08:38]line Чек 102 30.01.2024 15:08 [15:08:38]line Смена: 246 ФФД: 1.0 [15:08:38]line ЗНМ: 0300000040 [15:08:38]line РНМ: 0000000000092723 [15:08:38]line Версия ККМ: 001 [15:08:38]line Платежная система: О! деньги [15:08:38]line ФМ: 0000000000875060 [15:08:38]line ФД: 49226 [15:08:38]line ФПД: 61774099414355 [15:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T150855&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49226&fm=61774099414355&tin=02508201610067®Number=0000000000092723&sum=18934 [15:08:38]OFD Sender: Processing packet 49226 [packets to send 12, broken 11] [15:08:38]ProducePacketName [15:08:38]name=ofd_packets/00049226 [15:08:38]OFD Sender: To server: pG, [15:08:38]CommunicateWithHost lk.salyk.kg:30040 [15:08:38]ConnectInit lk.salyk.kg [15:08:38]written 0, free lines is 4095 [15:08:38]Connected sock=7 [15:08: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 36 30 0F 01 00 00 51 C1 07 01 86 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F6 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 49 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 DB 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 49 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 07 11 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4A C0 00 00 35 04 06 00 38 2E E7 40 7D 53 29 CD E4 7F 54 71 E0 AE [15:08: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 36 30 4F 00 00 00 C7 46 47 00 06 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 36 30 10 04 04 00 4A C0 00 00 F4 03 04 00 FC BC B8 65 B6 04 01 00 00 58 F8 56 96 4E 73 79 C1 [15:08:38]CommunicateWithHost err = 0 [15:08:38]CheckOFDResponse [15:08:38]1017 (14) - 77093643461234 [15:08:38]1041 (16) - 0000000000875060 [15:08:38]1040 (4) - 49226 [15:08:38]1012 (4) - 30.01.2024 09:10 [15:08:38]1206 (1) - 0 [15:08:38]OFD Sender: Remove packet 49226 [15:08:38]ProducePacketName [15:08:38]name=ofd_packets/00049226 [15:08:38]NVStorageDeleteData [15:08:38]Write to MH i2c: 01 00 00 7F 7B FA [15:08:38]Write i2c OK [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: 01 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: 01 07 00 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: 01 07 00 7F 7B 00 00 00 00 00 13 0D 21 [15:08:38]RasterBufferAndPrint [15:08:38]line [15:08:38]line [15:08:38]line [15:08:38]line [15:08:38]line [15:08:38]written 0, free lines is 3353 [15:08:38]MH_Cut [15:08:38]Write to MH i2c: D1 01 00 86 7B 01 D3 [15:08:38]Write i2c OK [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: D1 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: D1 01 00 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: D1 01 00 86 7B 00 D2 [15:08:38]Write to MH i2c: 01 00 00 87 7B 02 [15:08:38]Write i2c OK [15:08:38]MH_I2C_Read... [15:08:39]OFD Sender: No OFD packet to send [15:08:39]*** Cut start [15:08:39]*** Partial cut [15:08:39]*** CUTSNS_PIN = 1 [15:08:39]*** CUTSNS_PIN = 0 [15:08:39]*** Brake cut motor [15:08:40]Read from MH i2c: 01 [15:08:40]MH_I2C_Read... [15:08:40]*** Stop cut motor [15:08:40]*** Cut end [15:08:40]Read from MH i2c: 01 07 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: 01 07 00 87 7B 00 00 00 00 00 FF 0F 17 [15:08:40]process_action close_receipt done [15:08:40]requested_data is exist [15:08:40]produce_requested_data [15:08:40]requested_item fm.sn is exist - process it [15:08:40]wFMCommunicate request_size=4 [15:08:40]MH_SAM_APDU [15:08:40]CAPDU: 80 11 00 00 [15:08:40]Write to MH i2c: E2 08 00 88 7B 80 11 00 00 00 00 00 00 7D [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:40]Read from MH i2c: E2 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 17 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 17 00 88 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CA [15:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:08:40]wFMCommunicate OK [15:08:40]requested_item fd.num is exist - process it [15:08:40]SAM_PROTO_GetFieldsCounters [15:08:40]wFMCommunicate request_size=4 [15:08:40]MH_SAM_APDU [15:08:40]CAPDU: 80 13 00 00 [15:08:40]Write to MH i2c: E2 08 00 89 7B 80 13 00 00 00 00 00 00 80 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:40]Read from MH i2c: E2 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 62 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 62 00 89 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [15:08: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:40]wFMCommunicate OK [15:08:40]SAM_PROTO_GetFieldsCounters done [15:08:40]requested_item shift.num is exist - process it [15:08:40]requested_item shift.opened is exist - process it [15:08:40]req_shift_opened [15:08:40]FM_GetShiftState [15:08:40]SAM_PROTO_GetShiftState [15:08:40]wFMCommunicate request_size=4 [15:08:40]MH_SAM_APDU [15:08:40]CAPDU: 80 13 01 00 [15:08:40]Write to MH i2c: E2 08 00 8A 7B 80 13 01 00 00 00 00 00 82 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:40]Read from MH i2c: E2 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 0E 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 0E 00 8A 7B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 AA [15:08:40]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:08:40]wFMCommunicate OK [15:08:40]SAM_PROTO_GetShiftState done [15:08:40]FM_GetShiftState done [15:08:40]req_shift_opened done [15:08:40]requested_item shift.open_date is exist - process it [15:08:40]req_shift_open_date [15:08:40]req_shift_open_date done [15:08:40]produce_requested_data done [15:08:40]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49226,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:08:40]process_action_free close_receipt [15:08:40]json_value_free [15:08:40]json_value_free done [15:08:40]process_json_proto returns [15:08:40]Send response to host [15:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49226,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:08:40]free response buf [15:08:40]execute_script done [15:08:40]execute_script returns [15:08:40]free content buf [15:08:40]Sock 10.Close socket [15:08:40]Sock 10.Thread stoped [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:38]accept exits with 9 [15:09:38]New connection [15:09:38]New thread 3066670436 created [15:09:38]Thread 3066813796 joined [15:09:38]Waiting for new connection... [15:09:38] Sock 9.Parse request [15:09:38]Sock 9.Check first char [15:09:38]Sock 9.First char is OK [15:09:38]request: POST /json_proto HTTP/1.0 [15:09:38]Method: POST [15:09:38]URL: /json_proto [15:09:38]Method is POST - this is cgi request [15:09:38]url: /json_proto [15:09:38]query_string will be loaded in cgi processing [15:09:38]execute_cgi json_proto POST (null) [15:09:38]execute_cgi path=json_proto method=POST [15:09:38]POST find Content-Length [15:09:38]Host: 172.17.56.67:8080 [15:09:38]Content-Length: 679 [15:09:38]Content-Type: application/json [15:09:38] [15:09:38]POST finish read [15:09:38]Found Content-Length = 679 [15:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:38]execute_script... [15:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:38]POST & json_proto [15:09:38]process_json_proto [15:09:38]json parsed OK: [15:09:38]protocol is kg_v1.0 [15:09:38]action value=close_receipt [15:09:38]process_action close_receipt [15:09:38]cmd_close_receipt [15:09:38]MH_GetDate [15:09:38]Write to MH i2c: F0 00 00 8B 7B F5 [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: F0 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: F0 09 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: F0 09 00 8B 7B 00 45 11 B9 65 26 5D 9E 65 F8 [15:09:38]GetLastDocTimeStamp 1706627335 [15:09:38]current date 1706627397 [15:09:38]FM_GetShiftState [15:09:38]SAM_PROTO_GetShiftState [15:09:38]wFMCommunicate request_size=4 [15:09:38]MH_SAM_APDU [15:09:38]CAPDU: 80 13 01 00 [15:09:38]Write to MH i2c: E2 08 00 8C 7B 80 13 01 00 00 00 00 00 84 [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:38]Read from MH i2c: E2 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 0E 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 0E 00 8C 7B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 AC [15:09:38]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:09:38]wFMCommunicate OK [15:09:38]SAM_PROTO_GetShiftState done [15:09:38]FM_GetShiftState done [15:09:38]opened in 1706572995 [15:09:38]opened+sec_in_day 1706659395 [15:09:38]quantity*price = 100026 [15:09:38]sum+1 = 100028 [15:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 103 30.01.2024 15:09 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49227 ФПД: 268679726477701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T150958&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49227&fm=268679726477701&tin=02508201610067®Number=0000000000092723&sum=100000 [15:09:39]StoreToDocumentArchive [15:09:39]shift 246 fd 49227 [15:09:39]save to /storage/0246/doc_00049227 [15:09:39]save last doc name /storage/0246/doc_00049227 to /storage/kkm_last_doc_name [15:09:39]save OK [15:09:39]Clear old archive folders... [15:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:09:39]tlvbuf is 01384E50 [15:09:39]SAM_PROTO_ClearQueue [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 09 00 00 [15:09:39]Write to MH i2c: E2 08 00 99 7B 80 09 00 00 00 00 00 00 86 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 99 7B 00 90 00 88 [15:09:39]RAPDU: 90 00 [15:09:39]wFMCommunicate OK [15:09:39]SAM_PROTO_ClearQueue done [15:09:39]KKMCreateOFDPacket [15:09:39]OFDProtocolAddRootSTLVToBuf [15:09:39]FM_MakeSignedData [15:09:39]FM_MakeSignedData [15:09:39]SAM_PROTO_SignData [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 0D 01 02 [15:09:39]Write to MH i2c: E2 08 00 9A 7B 80 0D 01 02 00 00 00 00 8E [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 9A 7B 00 90 00 89 [15:09:39]RAPDU: 90 00 [15:09:39]wFMCommunicate OK [15:09:39]wFMCommunicate request_size=255 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 46 11 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4B C0 00 00 35 04 06 00 F4 5C DF A7 [15:09:39]Write to MH i2c: E2 02 01 9B 7B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 46 11 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4B C0 00 00 35 04 06 00 F4 5C DF A7 00 00 CB [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 03 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 03 00 9B 7B 00 90 00 8A [15:09:40]RAPDU: 90 00 [15:09:40]wFMCommunicate OK [15:09:40]wFMCommunicate request_size=7 [15:09:40]MH_SAM_APDU [15:09:40]CAPDU: 80 0D 02 02 02 B1 85 [15:09:40]Write to MH i2c: E2 0A 00 9C 7B 80 0D 02 02 02 00 B1 85 00 00 CB [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 03 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 03 00 9C 7B 00 90 00 8B [15:09:40]RAPDU: 90 00 [15:09:40]wFMCommunicate OK [15:09:40]wFMCommunicate request_size=4 [15:09:40]MH_SAM_APDU [15:09:40]CAPDU: 80 0D 03 02 [15:09:40]Write to MH i2c: E2 08 00 9D 7B 80 0D 03 02 00 00 00 00 93 [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 0B 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 0B 00 9D 7B 00 59 6C 93 3C 57 75 1A 91 90 00 9F [15:09:40]RAPDU: 59 6C 93 3C 57 75 1A 91 90 00 [15:09:40]wFMCommunicate OK [15:09:40]SAM_PROTO_SignData done [15:09:40]FM_MakeSignedData done [15:09:40]CreateOFDProtocolMessage [15:09:40]wFMCommunicate request_size=4 [15:09:40]MH_SAM_APDU [15:09:40]CAPDU: 80 11 00 00 [15:09:40]Write to MH i2c: E2 08 00 9E 7B 80 11 00 00 00 00 00 00 93 [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 17 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 17 00 9E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E0 [15:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:09:40]wFMCommunicate OK [15:09:40]CreateOFDProtocolMessage done [15:09:40]OFDSenderStorePacket 49227 [15:09:40]StoreOFDPacket docnum=49227 [15:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 A8 01 04 01 A6 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 46 11 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4B C0 00 00 35 04 06 00 F4 5C DF A7 B1 85 59 6C 93 3C 57 75 1A 91 [15:09:40]CheckFolder [15:09:40]dirname=/storage/ofd_packets [15:09:40]CheckFolder done [15:09:40]ProducePacketName [15:09:40]name=ofd_packets/00049227 [15:09:40]NVStorageSaveData ofd_packets/00049227 [15:09:40]File name is /storage/ofd_packets/00049227 [15:09:40]Write 298 bytes [15:09:40]NVStorageSaveData done [15:09:40]OFDSenderStorePacket done [15:09:40]KKMCreateOFDPacket done [15:09:40]NVStorageSaveData kkm_last_timestamp [15:09:40]File name is /storage/kkm_last_timestamp [15:09:40]Write 4 bytes [15:09:40]NVStorageSaveData done [15:09:40]ExternCall_PrintAddStr [15:09:40]wPrintStart [15:09:40]Write to MH i2c: 01 00 00 9F 7B 1A [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: 01 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: 01 07 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: 01 07 00 9F 7B 00 00 00 00 00 FF 0F 2F [15:09:40]RasterBufferAndPrint [15:09:40]line Счет N : (1)216329 [15:09:40]line ИНН: 02508201610067 [15:09:40]line Контрольно-Кассовый Чек [15:09:40]line ПРОДАЖА [15:09:40]line ТРК (МРК, ГНК) : 21 [15:09:40]line Товар: 2710194210 [15:09:40]line ДТ-К-5 [15:09:40]line 14.310 * 69.90 [15:09:40]line = 1000.27 [15:09:40]line НДС 12% НСП 1% [15:09:40]line > о реализуемом товаре [15:09:40]line ОКРУГЛЕНИЕ: -0.27 [15:09:40]line ИТОГО: 1000.00 [15:09:40]line Внесено: 1000.00 [15:09:40]line СДАЧА: 0.00 [15:09:40]line НСП 1% : 8.85 [15:09:40]line НДС 12% : 106.22 [15:09:40]line Наличными: 1000.00 [15:09:40]line Безнал.: 0.00 [15:09:40]line Место: АЗС № 102 "Партнер Нефть" [15:09:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:09:40]line СНО: Общий режим [15:09:40]line Чек 103 30.01.2024 15:09 [15:09:40]line Смена: 246 ФФД: 1.0 [15:09:40]line ЗНМ: 0300000040 [15:09:40]line РНМ: 0000000000092723 [15:09:40]line Версия ККМ: 001 [15:09:40]line ФМ: 0000000000875060 [15:09:40]line ФД: 49227 [15:09:40]line ФПД: 268679726477701 [15:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T150958&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49227&fm=268679726477701&tin=02508201610067®Number=0000000000092723&sum=100000 [15:09:40]OFD Sender: Processing packet 49227 [packets to send 12, broken 11] [15:09:40]ProducePacketName [15:09:40]name=ofd_packets/00049227 [15:09:40]OFD Sender: To server: pG, [15:09:40]CommunicateWithHost lk.salyk.kg:30040 [15:09:40]ConnectInit lk.salyk.kg [15:09:40]written 0, free lines is 4095 [15:09:40]Connected sock=10 [15:09: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 36 30 0C 01 00 00 A8 01 04 01 A6 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 46 11 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4B C0 00 00 35 04 06 00 F4 5C DF A7 B1 85 59 6C 93 3C 57 75 1A 91 [15:09: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 36 30 4F 00 00 00 91 86 47 00 1D 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4B C0 00 00 F4 03 04 00 3B BD B8 65 B6 04 01 00 00 13 78 56 8E C4 00 A8 6E [15:09:40]CommunicateWithHost err = 0 [15:09:40]CheckOFDResponse [15:09:40]1017 (14) - 77093643461234 [15:09:40]1041 (16) - 0000000000875060 [15:09:40]1040 (4) - 49227 [15:09:40]1012 (4) - 30.01.2024 09:11 [15:09:40]1206 (1) - 0 [15:09:40]OFD Sender: Remove packet 49227 [15:09:40]ProducePacketName [15:09:40]name=ofd_packets/00049227 [15:09:40]NVStorageDeleteData [15:09:41]Write to MH i2c: 01 00 00 CA 7B 45 [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 07 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 07 00 CA 7B 00 00 00 00 00 E6 0C 3E [15:09:41]RasterBufferAndPrint [15:09:41]line [15:09:41]line [15:09:41]line [15:09:41]line [15:09:41]line [15:09:41]written 0, free lines is 3309 [15:09:41]MH_Cut [15:09:41]Write to MH i2c: D1 01 00 D1 7B 01 1E [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: D1 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: D1 01 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: D1 01 00 D1 7B 00 1D [15:09:41]Write to MH i2c: 01 00 00 D2 7B 4D [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]OFD Sender: No OFD packet to send [15:09:41]*** Cut start [15:09:41]*** Partial cut [15:09:41]*** CUTSNS_PIN = 1 [15:09:41]*** CUTSNS_PIN = 0 [15:09:42]*** Brake cut motor [15:09:42]Read from MH i2c: 01 [15:09:42]MH_I2C_Read... [15:09:42]*** Stop cut motor [15:09:42]*** Cut end [15:09:42]Read from MH i2c: 01 07 00 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: 01 07 00 D2 7B 00 00 00 00 00 FF 0F 62 [15:09:42]process_action close_receipt done [15:09:42]requested_data is exist [15:09:42]produce_requested_data [15:09:42]requested_item fm.sn is exist - process it [15:09:42]wFMCommunicate request_size=4 [15:09:42]MH_SAM_APDU [15:09:42]CAPDU: 80 11 00 00 [15:09:42]Write to MH i2c: E2 08 00 D3 7B 80 11 00 00 00 00 00 00 C8 [15:09:42]Write i2c OK [15:09:42]MH_I2C_Read... [15:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:42]Read from MH i2c: E2 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: E2 17 00 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: E2 17 00 D3 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 15 [15:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:09:42]wFMCommunicate OK [15:09:42]requested_item fd.num is exist - process it [15:09:42]SAM_PROTO_GetFieldsCounters [15:09:42]wFMCommunicate request_size=4 [15:09:42]MH_SAM_APDU [15:09:42]CAPDU: 80 13 00 00 [15:09:42]Write to MH i2c: E2 08 00 D4 7B 80 13 00 00 00 00 00 00 CB [15:09:42]Write i2c OK [15:09:42]MH_I2C_Read... [15:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:42]Read from MH i2c: E2 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: E2 62 00 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: E2 62 00 D4 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:09: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:42]wFMCommunicate OK [15:09:42]SAM_PROTO_GetFieldsCounters done [15:09:42]requested_item shift.num is exist - process it [15:09:42]requested_item shift.opened is exist - process it [15:09:42]req_shift_opened [15:09:42]FM_GetShiftState [15:09:42]SAM_PROTO_GetShiftState [15:09:42]wFMCommunicate request_size=4 [15:09:42]MH_SAM_APDU [15:09:42]CAPDU: 80 13 01 00 [15:09:42]Write to MH i2c: E2 08 00 D5 7B 80 13 01 00 00 00 00 00 CD [15:09:42]Write i2c OK [15:09:42]MH_I2C_Read... [15:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:42]Read from MH i2c: E2 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: E2 0E 00 [15:09:42]MH_I2C_Read... [15:09:42]Read from MH i2c: E2 0E 00 D5 7B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F5 [15:09:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:09:42]wFMCommunicate OK [15:09:42]SAM_PROTO_GetShiftState done [15:09:42]FM_GetShiftState done [15:09:42]req_shift_opened done [15:09:42]requested_item shift.open_date is exist - process it [15:09:42]req_shift_open_date [15:09:42]req_shift_open_date done [15:09:42]produce_requested_data done [15:09:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49227,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:09:42]process_action_free close_receipt [15:09:42]json_value_free [15:09:42]json_value_free done [15:09:42]process_json_proto returns [15:09:42]Send response to host [15:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49227,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:09:42]free response buf [15:09:42]execute_script done [15:09:42]execute_script returns [15:09:42]free content buf [15:09:42]Sock 9.Close socket [15:09:42]Sock 9.Thread stoped [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:08]accept exits with 7 [15:18:08]New connection [15:18:08]New thread 3066813796 created [15:18:08]Thread 3066670436 joined [15:18:08]Waiting for new connection... [15:18:08] Sock 7.Parse request [15:18:08]Sock 7.Check first char [15:18:08]Sock 7.First char is OK [15:18:08]request: POST /json_proto HTTP/1.0 [15:18:08]Method: POST [15:18:08]URL: /json_proto [15:18:08]Method is POST - this is cgi request [15:18:08]url: /json_proto [15:18:08]query_string will be loaded in cgi processing [15:18:08]execute_cgi json_proto POST (null) [15:18:08]execute_cgi path=json_proto method=POST [15:18:08]POST find Content-Length [15:18:08]Host: 172.17.56.67:8080 [15:18:08]Content-Length: 677 [15:18:08]Content-Type: application/json [15:18:08] [15:18:08]POST finish read [15:18:08]Found Content-Length = 677 [15:18:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:08]execute_script... [15:18:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:08]POST & json_proto [15:18:08]process_json_proto [15:18:08]json parsed OK: [15:18:08]protocol is kg_v1.0 [15:18:08]action value=close_receipt [15:18:08]process_action close_receipt [15:18:08]cmd_close_receipt [15:18:08]MH_GetDate [15:18:08]Write to MH i2c: F0 00 00 D6 7B 40 [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: F0 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: F0 09 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: F0 09 00 D6 7B 00 44 13 B9 65 26 5D 9E 65 44 [15:18:08]GetLastDocTimeStamp 1706627398 [15:18:08]current date 1706627908 [15:18:08]FM_GetShiftState [15:18:08]SAM_PROTO_GetShiftState [15:18:08]wFMCommunicate request_size=4 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 13 01 00 [15:18:08]Write to MH i2c: E2 08 00 D7 7B 80 13 01 00 00 00 00 00 CF [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:08]Read from MH i2c: E2 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 0E 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 0E 00 D7 7B 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F7 [15:18:08]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:18:08]wFMCommunicate OK [15:18:08]SAM_PROTO_GetShiftState done [15:18:08]FM_GetShiftState done [15:18:08]opened in 1706572995 [15:18:08]opened+sec_in_day 1706659395 [15:18:08]quantity*price = 40039 [15:18:08]sum+1 = 40040 [15:18:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 104 30.01.2024 15:18 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49228 ФПД: 55325125430503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T151828&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49228&fm=55325125430503&tin=02508201610067®Number=0000000000092723&sum=40000 [15:18:09]StoreToDocumentArchive [15:18:09]shift 246 fd 49228 [15:18:09]save to /storage/0246/doc_00049228 [15:18:09]save last doc name /storage/0246/doc_00049228 to /storage/kkm_last_doc_name [15:18:09]save OK [15:18:09]Clear old archive folders... [15:18:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:09]tlvbuf is 01408920 [15:18:09]SAM_PROTO_ClearQueue [15:18:09]wFMCommunicate request_size=4 [15:18:09]MH_SAM_APDU [15:18:09]CAPDU: 80 09 00 00 [15:18:09]Write to MH i2c: E2 08 00 E4 7B 80 09 00 00 00 00 00 00 D1 [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:09]Read from MH i2c: E2 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: E2 03 00 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: E2 03 00 E4 7B 00 90 00 D3 [15:18:09]RAPDU: 90 00 [15:18:09]wFMCommunicate OK [15:18:09]SAM_PROTO_ClearQueue done [15:18:09]KKMCreateOFDPacket [15:18:09]OFDProtocolAddRootSTLVToBuf [15:18:09]FM_MakeSignedData [15:18:09]FM_MakeSignedData [15:18:09]SAM_PROTO_SignData [15:18:09]wFMCommunicate request_size=4 [15:18:09]MH_SAM_APDU [15:18:09]CAPDU: 80 0D 01 02 [15:18:09]Write to MH i2c: E2 08 00 E5 7B 80 0D 01 02 00 00 00 00 D9 [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:10]Read from MH i2c: E2 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 03 00 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 03 00 E5 7B 00 90 00 D4 [15:18:10]RAPDU: 90 00 [15:18:10]wFMCommunicate OK [15:18:10]wFMCommunicate request_size=255 [15:18:10]MH_SAM_APDU [15:18:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 44 13 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4C C0 00 00 35 04 06 00 32 [15:18:10]Write to MH i2c: E2 02 01 E6 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 44 13 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4C C0 00 00 35 04 06 00 32 00 00 64 [15:18:10]Write i2c OK [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 [15:18:10]MH_I2C_Read... [15:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:10]Read from MH i2c: E2 03 00 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 03 00 E6 7B 00 90 00 D5 [15:18:10]RAPDU: 90 00 [15:18:10]wFMCommunicate OK [15:18:10]wFMCommunicate request_size=10 [15:18:10]MH_SAM_APDU [15:18:10]CAPDU: 80 0D 02 02 05 51 62 72 CC E7 [15:18:10]Write to MH i2c: E2 0D 00 E7 7B 80 0D 02 02 05 00 51 62 72 CC E7 00 00 BE [15:18:10]Write i2c OK [15:18:10]MH_I2C_Read... [15:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:10]Read from MH i2c: E2 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 03 00 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 03 00 E7 7B 00 90 00 D6 [15:18:10]RAPDU: 90 00 [15:18:10]wFMCommunicate OK [15:18:10]wFMCommunicate request_size=4 [15:18:10]MH_SAM_APDU [15:18:10]CAPDU: 80 0D 03 02 [15:18:10]Write to MH i2c: E2 08 00 E8 7B 80 0D 03 02 00 00 00 00 DE [15:18:10]Write i2c OK [15:18:10]MH_I2C_Read... [15:18:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:10]Read from MH i2c: E2 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 0B 00 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 0B 00 E8 7B 00 DB 46 AC 9C 5A 65 46 B2 90 00 FF [15:18:10]RAPDU: DB 46 AC 9C 5A 65 46 B2 90 00 [15:18:10]wFMCommunicate OK [15:18:10]SAM_PROTO_SignData done [15:18:10]FM_MakeSignedData done [15:18:10]CreateOFDProtocolMessage [15:18:10]wFMCommunicate request_size=4 [15:18:10]MH_SAM_APDU [15:18:10]CAPDU: 80 11 00 00 [15:18:10]Write to MH i2c: E2 08 00 E9 7B 80 11 00 00 00 00 00 00 DE [15:18:10]Write i2c OK [15:18:10]MH_I2C_Read... [15:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:10]Read from MH i2c: E2 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 17 00 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 17 00 E9 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2B [15:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:18:10]wFMCommunicate OK [15:18:10]CreateOFDProtocolMessage done [15:18:10]OFDSenderStorePacket 49228 [15:18:10]StoreOFDPacket docnum=49228 [15:18:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FE 97 07 01 F9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 44 13 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4C C0 00 00 35 04 06 00 32 51 62 72 CC E7 DB 46 AC 9C 5A 65 46 B2 [15:18:10]CheckFolder [15:18:10]dirname=/storage/ofd_packets [15:18:10]CheckFolder done [15:18:10]ProducePacketName [15:18:10]name=ofd_packets/00049228 [15:18:10]NVStorageSaveData ofd_packets/00049228 [15:18:10]File name is /storage/ofd_packets/00049228 [15:18:10]Write 301 bytes [15:18:10]NVStorageSaveData done [15:18:10]OFDSenderStorePacket done [15:18:10]KKMCreateOFDPacket done [15:18:10]NVStorageSaveData kkm_last_timestamp [15:18:10]File name is /storage/kkm_last_timestamp [15:18:10]Write 4 bytes [15:18:10]NVStorageSaveData done [15:18:10]ExternCall_PrintAddStr [15:18:10]wPrintStart [15:18:10]Write to MH i2c: 01 00 00 EA 7B 65 [15:18:10]Write i2c OK [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: 01 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: 01 07 00 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: 01 07 00 EA 7B 00 00 00 00 00 FF 0F 7A [15:18:10]RasterBufferAndPrint [15:18:10]line Счет N : (1)216330 [15:18:10]line ИНН: 02508201610067 [15:18:10]line Контрольно-Кассовый Чек [15:18:10]line ПРОДАЖА [15:18:10]line ТРК (МРК, ГНК) : 12 [15:18:10]line Товар: 2710124130 [15:18:10]line Аи-92-К-5 [15:18:10]line 6.640 * 60.30 [15:18:10]line = 400.39 [15:18:10]line НДС 12% НСП 1% [15:18:10]line > о реализуемом товаре [15:18:10]line ОКРУГЛЕНИЕ: -0.39 [15:18:10]line ИТОГО: 400.00 [15:18:10]line Внесено: 400.00 [15:18:10]line СДАЧА: 0.00 [15:18:10]line НСП 1% : 3.54 [15:18:10]line НДС 12% : 42.52 [15:18:10]line Наличными: 400.00 [15:18:10]line Безнал.: 0.00 [15:18:10]line Место: АЗС № 102 "Партнер Нефть" [15:18:10]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:18:10]line СНО: Общий режим [15:18:10]line Чек 104 30.01.2024 15:18 [15:18:10]line Смена: 246 ФФД: 1.0 [15:18:10]line ЗНМ: 0300000040 [15:18:10]line РНМ: 0000000000092723 [15:18:10]line Версия ККМ: 001 [15:18:10]line ФМ: 0000000000875060 [15:18:10]line ФД: 49228 [15:18:10]line ФПД: 55325125430503 [15:18:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T151828&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49228&fm=55325125430503&tin=02508201610067®Number=0000000000092723&sum=40000 [15:18:10]OFD Sender: Processing packet 49228 [packets to send 12, broken 11] [15:18:10]ProducePacketName [15:18:10]name=ofd_packets/00049228 [15:18:10]OFD Sender: To server: pG, [15:18:10]CommunicateWithHost lk.salyk.kg:30040 [15:18:10]ConnectInit lk.salyk.kg [15:18:10]written 0, free lines is 4095 [15:18:10]Connected sock=10 [15:18: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 36 30 0F 01 00 00 FE 97 07 01 F9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 44 13 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4C C0 00 00 35 04 06 00 32 51 62 72 CC E7 DB 46 AC 9C 5A 65 46 B2 [15:18: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 36 30 4F 00 00 00 B2 95 47 00 E3 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4C C0 00 00 F4 03 04 00 39 BF B8 65 B6 04 01 00 00 0A 92 8D A3 85 F6 0C 79 [15:18:11]CommunicateWithHost err = 0 [15:18:11]CheckOFDResponse [15:18:11]1017 (14) - 77093643461234 [15:18:11]1041 (16) - 0000000000875060 [15:18:11]1040 (4) - 49228 [15:18:11]1012 (4) - 30.01.2024 09:19 [15:18:11]1206 (1) - 0 [15:18:11]OFD Sender: Remove packet 49228 [15:18:11]ProducePacketName [15:18:11]name=ofd_packets/00049228 [15:18:11]NVStorageDeleteData [15:18:11]Write to MH i2c: 01 00 00 15 7C 91 [15:18:11]Write i2c OK [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: 01 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: 01 07 00 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: 01 07 00 15 7C 00 00 00 00 00 F6 0C 9A [15:18:11]RasterBufferAndPrint [15:18:11]line [15:18:11]line [15:18:11]line [15:18:11]line [15:18:11]line [15:18:11]written 0, free lines is 3325 [15:18:11]MH_Cut [15:18:11]Write to MH i2c: D1 01 00 1C 7C 01 6A [15:18:11]Write i2c OK [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: D1 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: D1 01 00 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: D1 01 00 1C 7C 00 69 [15:18:11]Write to MH i2c: 01 00 00 1D 7C 99 [15:18:11]Write i2c OK [15:18:11]MH_I2C_Read... [15:18:11]OFD Sender: No OFD packet to send [15:18:11]*** Cut start [15:18:11]*** Partial cut [15:18:11]*** CUTSNS_PIN = 1 [15:18:11]*** CUTSNS_PIN = 0 [15:18:12]*** Brake cut motor [15:18:12]Read from MH i2c: 01 [15:18:12]MH_I2C_Read... [15:18:12]*** Stop cut motor [15:18:12]*** Cut end [15:18:12]Read from MH i2c: 01 07 00 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: 01 07 00 1D 7C 00 00 00 00 00 FF 0F AE [15:18:12]process_action close_receipt done [15:18:12]requested_data is exist [15:18:12]produce_requested_data [15:18:12]requested_item fm.sn is exist - process it [15:18:12]wFMCommunicate request_size=4 [15:18:12]MH_SAM_APDU [15:18:12]CAPDU: 80 11 00 00 [15:18:12]Write to MH i2c: E2 08 00 1E 7C 80 11 00 00 00 00 00 00 14 [15:18:12]Write i2c OK [15:18:12]MH_I2C_Read... [15:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:12]Read from MH i2c: E2 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: E2 17 00 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: E2 17 00 1E 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 61 [15:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:18:12]wFMCommunicate OK [15:18:12]requested_item fd.num is exist - process it [15:18:12]SAM_PROTO_GetFieldsCounters [15:18:12]wFMCommunicate request_size=4 [15:18:12]MH_SAM_APDU [15:18:12]CAPDU: 80 13 00 00 [15:18:12]Write to MH i2c: E2 08 00 1F 7C 80 13 00 00 00 00 00 00 17 [15:18:12]Write i2c OK [15:18:12]MH_I2C_Read... [15:18:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:12]Read from MH i2c: E2 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: E2 62 00 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: E2 62 00 1F 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [15:18: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:12]wFMCommunicate OK [15:18:12]SAM_PROTO_GetFieldsCounters done [15:18:12]requested_item shift.num is exist - process it [15:18:12]requested_item shift.opened is exist - process it [15:18:12]req_shift_opened [15:18:12]FM_GetShiftState [15:18:12]SAM_PROTO_GetShiftState [15:18:12]wFMCommunicate request_size=4 [15:18:12]MH_SAM_APDU [15:18:12]CAPDU: 80 13 01 00 [15:18:12]Write to MH i2c: E2 08 00 20 7C 80 13 01 00 00 00 00 00 19 [15:18:12]Write i2c OK [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: E2 [15:18:12]MH_I2C_Read... [15:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:12]Read from MH i2c: E2 0E 00 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: E2 0E 00 20 7C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 41 [15:18:12]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:18:12]wFMCommunicate OK [15:18:12]SAM_PROTO_GetShiftState done [15:18:12]FM_GetShiftState done [15:18:12]req_shift_opened done [15:18:12]requested_item shift.open_date is exist - process it [15:18:12]req_shift_open_date [15:18:12]req_shift_open_date done [15:18:12]produce_requested_data done [15:18:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49228,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:18:12]process_action_free close_receipt [15:18:12]json_value_free [15:18:12]json_value_free done [15:18:12]process_json_proto returns [15:18:12]Send response to host [15:18:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49228,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:18:12]free response buf [15:18:12]execute_script done [15:18:12]execute_script returns [15:18:12]free content buf [15:18:12]Sock 7.Close socket [15:18:12]Sock 7.Thread stoped [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22: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:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]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]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]accept exits with 9 [15:35:47]New connection [15:35:47]New thread 3066670436 created [15:35:47]Thread 3066813796 joined [15:35:47]Waiting for new connection... [15:35:47] Sock 9.Parse request [15:35:47]Sock 9.Check first char [15:35:47]Sock 9.First char is OK [15:35:47]request: POST /json_proto HTTP/1.0 [15:35:47]Method: POST [15:35:47]URL: /json_proto [15:35:47]Method is POST - this is cgi request [15:35:47]url: /json_proto [15:35:47]query_string will be loaded in cgi processing [15:35:47]execute_cgi json_proto POST (null) [15:35:47]execute_cgi path=json_proto method=POST [15:35:47]POST find Content-Length [15:35:47]Host: 172.17.56.67:8080 [15:35:47]Content-Length: 679 [15:35:47]Content-Type: application/json [15:35:47] [15:35:47]POST finish read [15:35:47]Found Content-Length = 679 [15:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:47]execute_script... [15:35:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:47]POST & json_proto [15:35:47]process_json_proto [15:35:47]json parsed OK: [15:35:47]protocol is kg_v1.0 [15:35:47]action value=close_receipt [15:35:47]process_action close_receipt [15:35:47]cmd_close_receipt [15:35:47]MH_GetDate [15:35:47]Write to MH i2c: F0 00 00 21 7C 8C [15:35:47]Write i2c OK [15:35:47]MH_I2C_Read... [15:35:47]Read from MH i2c: F0 [15:35:47]MH_I2C_Read... [15:35:47]Read from MH i2c: F0 09 00 [15:35:47]MH_I2C_Read... [15:35:47]Read from MH i2c: F0 09 00 21 7C 00 66 17 B9 65 26 5D 9E 65 B6 [15:35:47]GetLastDocTimeStamp 1706627908 [15:35:47]current date 1706628966 [15:35:47]FM_GetShiftState [15:35:47]SAM_PROTO_GetShiftState [15:35:47]wFMCommunicate request_size=4 [15:35:47]MH_SAM_APDU [15:35:47]CAPDU: 80 13 01 00 [15:35:47]Write to MH i2c: E2 08 00 22 7C 80 13 01 00 00 00 00 00 1B [15:35:47]Write i2c OK [15:35:47]MH_I2C_Read... [15:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:47]Read from MH i2c: E2 [15:35:47]MH_I2C_Read... [15:35:47]Read from MH i2c: E2 0E 00 [15:35:47]MH_I2C_Read... [15:35:47]Read from MH i2c: E2 0E 00 22 7C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 43 [15:35:47]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:35:47]wFMCommunicate OK [15:35:47]SAM_PROTO_GetShiftState done [15:35:47]FM_GetShiftState done [15:35:47]opened in 1706572995 [15:35:47]opened+sec_in_day 1706659395 [15:35:47]quantity*price = 100026 [15:35:47]sum+1 = 100028 [15:35:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 105 30.01.2024 15:36 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49229 ФПД: 43395631620021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T153606&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49229&fm=43395631620021&tin=02508201610067®Number=0000000000092723&sum=100000 [15:35:48]StoreToDocumentArchive [15:35:48]shift 246 fd 49229 [15:35:48]save to /storage/0246/doc_00049229 [15:35:48]save last doc name /storage/0246/doc_00049229 to /storage/kkm_last_doc_name [15:35:48]save OK [15:35:48]Clear old archive folders... [15:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:35:48]tlvbuf is 0144FB50 [15:35:48]SAM_PROTO_ClearQueue [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 09 00 00 [15:35:48]Write to MH i2c: E2 08 00 2F 7C 80 09 00 00 00 00 00 00 1D [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 2F 7C 00 90 00 1F [15:35:48]RAPDU: 90 00 [15:35:48]wFMCommunicate OK [15:35:48]SAM_PROTO_ClearQueue done [15:35:48]KKMCreateOFDPacket [15:35:48]OFDProtocolAddRootSTLVToBuf [15:35:48]FM_MakeSignedData [15:35:48]FM_MakeSignedData [15:35:48]SAM_PROTO_SignData [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 0D 01 02 [15:35:48]Write to MH i2c: E2 08 00 30 7C 80 0D 01 02 00 00 00 00 25 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 30 7C 00 90 00 20 [15:35:48]RAPDU: 90 00 [15:35:48]wFMCommunicate OK [15:35:48]wFMCommunicate request_size=255 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 66 17 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4D C0 00 00 35 04 06 00 27 77 D5 35 [15:35:48]Write to MH i2c: E2 02 01 31 7C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 66 17 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4D C0 00 00 35 04 06 00 27 77 D5 35 00 00 5E [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 31 7C 00 90 00 21 [15:35:48]RAPDU: 90 00 [15:35:48]wFMCommunicate OK [15:35:48]wFMCommunicate request_size=7 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 0D 02 02 02 1F B5 [15:35:48]Write to MH i2c: E2 0A 00 32 7C 80 0D 02 02 02 00 1F B5 00 00 00 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 32 7C 00 90 00 22 [15:35:48]RAPDU: 90 00 [15:35:48]wFMCommunicate OK [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 0D 03 02 [15:35:48]Write to MH i2c: E2 08 00 33 7C 80 0D 03 02 00 00 00 00 2A [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 0B 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 0B 00 33 7C 00 48 48 22 00 A8 27 B8 B7 90 00 1B [15:35:48]RAPDU: 48 48 22 00 A8 27 B8 B7 90 00 [15:35:48]wFMCommunicate OK [15:35:48]SAM_PROTO_SignData done [15:35:48]FM_MakeSignedData done [15:35:48]CreateOFDProtocolMessage [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 11 00 00 [15:35:48]Write to MH i2c: E2 08 00 34 7C 80 11 00 00 00 00 00 00 2A [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 17 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 17 00 34 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 77 [15:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:35:48]wFMCommunicate OK [15:35:48]CreateOFDProtocolMessage done [15:35:48]OFDSenderStorePacket 49229 [15:35:48]StoreOFDPacket docnum=49229 [15:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 36 CF 04 01 19 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 66 17 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4D C0 00 00 35 04 06 00 27 77 D5 35 1F B5 48 48 22 00 A8 27 B8 B7 [15:35:48]CheckFolder [15:35:48]dirname=/storage/ofd_packets [15:35:48]CheckFolder done [15:35:48]ProducePacketName [15:35:48]name=ofd_packets/00049229 [15:35:48]NVStorageSaveData ofd_packets/00049229 [15:35:48]File name is /storage/ofd_packets/00049229 [15:35:48]Write 298 bytes [15:35:48]NVStorageSaveData done [15:35:48]OFDSenderStorePacket done [15:35:48]KKMCreateOFDPacket done [15:35:48]NVStorageSaveData kkm_last_timestamp [15:35:48]File name is /storage/kkm_last_timestamp [15:35:48]Write 4 bytes [15:35:48]NVStorageSaveData done [15:35:48]ExternCall_PrintAddStr [15:35:48]wPrintStart [15:35:48]Write to MH i2c: 01 00 00 35 7C B1 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: 01 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: 01 07 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: 01 07 00 35 7C 00 00 00 00 00 FF 0F C6 [15:35:48]RasterBufferAndPrint [15:35:48]line Счет N : (1)216331 [15:35:48]line ИНН: 02508201610067 [15:35:48]line Контрольно-Кассовый Чек [15:35:48]line ПРОДАЖА [15:35:48]line ТРК (МРК, ГНК) : 11 [15:35:48]line Товар: 2710194210 [15:35:48]line ДТ-К-5 [15:35:48]line 14.310 * 69.90 [15:35:48]line = 1000.27 [15:35:48]line НДС 12% НСП 1% [15:35:48]line > о реализуемом товаре [15:35:48]line ОКРУГЛЕНИЕ: -0.27 [15:35:48]line ИТОГО: 1000.00 [15:35:48]line Внесено: 1000.00 [15:35:48]line СДАЧА: 0.00 [15:35:48]line НСП 1% : 8.85 [15:35:48]line НДС 12% : 106.22 [15:35:48]line Наличными: 1000.00 [15:35:48]line Безнал.: 0.00 [15:35:48]line Место: АЗС № 102 "Партнер Нефть" [15:35:48]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:35:48]line СНО: Общий режим [15:35:48]line Чек 105 30.01.2024 15:36 [15:35:48]line Смена: 246 ФФД: 1.0 [15:35:48]line ЗНМ: 0300000040 [15:35:48]line РНМ: 0000000000092723 [15:35:48]line Версия ККМ: 001 [15:35:48]line ФМ: 0000000000875060 [15:35:48]line ФД: 49229 [15:35:48]line ФПД: 43395631620021 [15:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T153606&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49229&fm=43395631620021&tin=02508201610067®Number=0000000000092723&sum=100000 [15:35:49]OFD Sender: Processing packet 49229 [packets to send 12, broken 11] [15:35:49]ProducePacketName [15:35:49]name=ofd_packets/00049229 [15:35:49]OFD Sender: To server: pG, [15:35:49]CommunicateWithHost lk.salyk.kg:30040 [15:35:49]ConnectInit lk.salyk.kg [15:35:49]written 0, free lines is 4095 [15:35:49]Connected sock=10 [15:35: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 36 30 0C 01 00 00 36 CF 04 01 19 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 66 17 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4D C0 00 00 35 04 06 00 27 77 D5 35 1F B5 48 48 22 00 A8 27 B8 B7 [15:35: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 36 30 4F 00 00 00 07 15 47 00 3D 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 36 30 10 04 04 00 4D C0 00 00 F4 03 04 00 5B C3 B8 65 B6 04 01 00 00 47 45 43 39 FF CF 8E 86 [15:35:49]CommunicateWithHost err = 0 [15:35:49]CheckOFDResponse [15:35:49]1017 (14) - 77093643461234 [15:35:49]1041 (16) - 0000000000875060 [15:35:49]1040 (4) - 49229 [15:35:49]1012 (4) - 30.01.2024 09:37 [15:35:49]1206 (1) - 0 [15:35:49]OFD Sender: Remove packet 49229 [15:35:49]ProducePacketName [15:35:49]name=ofd_packets/00049229 [15:35:49]NVStorageDeleteData [15:35:49]Write to MH i2c: 01 00 00 60 7C DC [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 07 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 07 00 60 7C 00 00 00 00 00 EE 0C DD [15:35:49]RasterBufferAndPrint [15:35:49]line [15:35:49]line [15:35:49]line [15:35:49]line [15:35:49]line [15:35:49]written 0, free lines is 3316 [15:35:49]MH_Cut [15:35:49]Write to MH i2c: D1 01 00 67 7C 01 B5 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: D1 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: D1 01 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: D1 01 00 67 7C 00 B4 [15:35:49]Write to MH i2c: 01 00 00 68 7C E4 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:50]OFD Sender: No OFD packet to send [15:35:50]*** Cut start [15:35:50]*** Partial cut [15:35:50]*** CUTSNS_PIN = 1 [15:35:50]*** CUTSNS_PIN = 0 [15:35:50]*** Brake cut motor [15:35:50]Read from MH i2c: 01 [15:35:50]MH_I2C_Read... [15:35:50]*** Stop cut motor [15:35:50]*** Cut end [15:35:50]Read from MH i2c: 01 07 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: 01 07 00 68 7C 00 00 00 00 00 FF 0F F9 [15:35:50]process_action close_receipt done [15:35:50]requested_data is exist [15:35:50]produce_requested_data [15:35:50]requested_item fm.sn is exist - process it [15:35:50]wFMCommunicate request_size=4 [15:35:50]MH_SAM_APDU [15:35:50]CAPDU: 80 11 00 00 [15:35:50]Write to MH i2c: E2 08 00 69 7C 80 11 00 00 00 00 00 00 5F [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:51]Read from MH i2c: E2 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: E2 17 00 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: E2 17 00 69 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AC [15:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:35:51]wFMCommunicate OK [15:35:51]requested_item fd.num is exist - process it [15:35:51]SAM_PROTO_GetFieldsCounters [15:35:51]wFMCommunicate request_size=4 [15:35:51]MH_SAM_APDU [15:35:51]CAPDU: 80 13 00 00 [15:35:51]Write to MH i2c: E2 08 00 6A 7C 80 13 00 00 00 00 00 00 62 [15:35:51]Write i2c OK [15:35:51]MH_I2C_Read... [15:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:51]Read from MH i2c: E2 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: E2 62 00 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: E2 62 00 6A 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [15:35: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:51]wFMCommunicate OK [15:35:51]SAM_PROTO_GetFieldsCounters done [15:35:51]requested_item shift.num is exist - process it [15:35:51]requested_item shift.opened is exist - process it [15:35:51]req_shift_opened [15:35:51]FM_GetShiftState [15:35:51]SAM_PROTO_GetShiftState [15:35:51]wFMCommunicate request_size=4 [15:35:51]MH_SAM_APDU [15:35:51]CAPDU: 80 13 01 00 [15:35:51]Write to MH i2c: E2 08 00 6B 7C 80 13 01 00 00 00 00 00 64 [15:35:51]Write i2c OK [15:35:51]MH_I2C_Read... [15:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:51]Read from MH i2c: E2 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: E2 0E 00 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: E2 0E 00 6B 7C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8C [15:35:51]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:35:51]wFMCommunicate OK [15:35:51]SAM_PROTO_GetShiftState done [15:35:51]FM_GetShiftState done [15:35:51]req_shift_opened done [15:35:51]requested_item shift.open_date is exist - process it [15:35:51]req_shift_open_date [15:35:51]req_shift_open_date done [15:35:51]produce_requested_data done [15:35:51]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49229,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:35:51]process_action_free close_receipt [15:35:51]json_value_free [15:35:51]json_value_free done [15:35:51]process_json_proto returns [15:35:51]Send response to host [15:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49229,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:35:51]free response buf [15:35:51]execute_script done [15:35:51]execute_script returns [15:35:51]free content buf [15:35:51]Sock 9.Close socket [15:35:51]Sock 9.Thread stoped [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:49]accept exits with 7 [15:42:49]New connection [15:42:49]New thread 3066813796 created [15:42:49]Thread 3066670436 joined [15:42:49]Waiting for new connection... [15:42:49] Sock 7.Parse request [15:42:49]Sock 7.Check first char [15:42:49]Sock 7.First char is OK [15:42:49]request: POST /json_proto HTTP/1.0 [15:42:49]Method: POST [15:42:49]URL: /json_proto [15:42:49]Method is POST - this is cgi request [15:42:49]url: /json_proto [15:42:49]query_string will be loaded in cgi processing [15:42:49]execute_cgi json_proto POST (null) [15:42:49]execute_cgi path=json_proto method=POST [15:42:49]POST find Content-Length [15:42:49]Host: 172.17.56.67:8080 [15:42:49]Content-Length: 677 [15:42:49]Content-Type: application/json [15:42:49] [15:42:49]POST finish read [15:42:49]Found Content-Length = 677 [15:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:49]execute_script... [15:42:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:49]POST & json_proto [15:42:49]process_json_proto [15:42:49]json parsed OK: [15:42:49]protocol is kg_v1.0 [15:42:49]action value=close_receipt [15:42:49]process_action close_receipt [15:42:49]cmd_close_receipt [15:42:49]MH_GetDate [15:42:49]Write to MH i2c: F0 00 00 6C 7C D7 [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 09 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 09 00 6C 7C 00 0C 19 B9 65 26 5D 9E 65 A9 [15:42:49]GetLastDocTimeStamp 1706628966 [15:42:49]current date 1706629388 [15:42:49]FM_GetShiftState [15:42:49]SAM_PROTO_GetShiftState [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 13 01 00 [15:42:49]Write to MH i2c: E2 08 00 6D 7C 80 13 01 00 00 00 00 00 66 [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 0E 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 0E 00 6D 7C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8E [15:42:49]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:42:49]wFMCommunicate OK [15:42:49]SAM_PROTO_GetShiftState done [15:42:49]FM_GetShiftState done [15:42:49]opened in 1706572995 [15:42:49]opened+sec_in_day 1706659395 [15:42:49]quantity*price = 25024 [15:42:49]sum+1 = 25026 [15:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 106 30.01.2024 15:43 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49230 ФПД: 110205273930781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T154308&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49230&fm=110205273930781&tin=02508201610067®Number=0000000000092723&sum=25000 [15:42:50]StoreToDocumentArchive [15:42:50]shift 246 fd 49230 [15:42:50]save to /storage/0246/doc_00049230 [15:42:50]save last doc name /storage/0246/doc_00049230 to /storage/kkm_last_doc_name [15:42:50]save OK [15:42:50]Clear old archive folders... [15:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:50]tlvbuf is 012109F0 [15:42:50]SAM_PROTO_ClearQueue [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 09 00 00 [15:42:50]Write to MH i2c: E2 08 00 7A 7C 80 09 00 00 00 00 00 00 68 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 7A 7C 00 90 00 6A [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]SAM_PROTO_ClearQueue done [15:42:50]KKMCreateOFDPacket [15:42:50]OFDProtocolAddRootSTLVToBuf [15:42:50]FM_MakeSignedData [15:42:50]FM_MakeSignedData [15:42:50]SAM_PROTO_SignData [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 01 02 [15:42:50]Write to MH i2c: E2 08 00 7B 7C 80 0D 01 02 00 00 00 00 70 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 7B 7C 00 90 00 6B [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]wFMCommunicate request_size=255 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 0C 19 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4E C0 00 00 35 04 06 00 64 [15:42:50]Write to MH i2c: E2 02 01 7C 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 0C 19 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4E C0 00 00 35 04 06 00 64 00 00 EE [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]OFD Sender: No OFD packet to send [15:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 7C 7C 00 90 00 6C [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]wFMCommunicate request_size=10 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 02 02 05 3B 2A 34 7C 1D [15:42:50]Write to MH i2c: E2 0D 00 7D 7C 80 0D 02 02 05 00 3B 2A 34 7C 1D 00 00 AF [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 7D 7C 00 90 00 6D [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 03 02 [15:42:50]Write to MH i2c: E2 08 00 7E 7C 80 0D 03 02 00 00 00 00 75 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 0B 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 0B 00 7E 7C 00 D1 15 AE ED 48 FF 33 9C 90 00 0D [15:42:50]RAPDU: D1 15 AE ED 48 FF 33 9C 90 00 [15:42:50]wFMCommunicate OK [15:42:50]SAM_PROTO_SignData done [15:42:50]FM_MakeSignedData done [15:42:50]CreateOFDProtocolMessage [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 11 00 00 [15:42:50]Write to MH i2c: E2 08 00 7F 7C 80 11 00 00 00 00 00 00 75 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 17 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 17 00 7F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C2 [15:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:42:50]wFMCommunicate OK [15:42:50]CreateOFDProtocolMessage done [15:42:50]OFDSenderStorePacket 49230 [15:42:50]StoreOFDPacket docnum=49230 [15:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DF 3B 07 01 99 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 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 0C 19 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4E C0 00 00 35 04 06 00 64 3B 2A 34 7C 1D D1 15 AE ED 48 FF 33 9C [15:42:50]CheckFolder [15:42:50]dirname=/storage/ofd_packets [15:42:50]CheckFolder done [15:42:50]ProducePacketName [15:42:50]name=ofd_packets/00049230 [15:42:50]NVStorageSaveData ofd_packets/00049230 [15:42:50]File name is /storage/ofd_packets/00049230 [15:42:50]Write 301 bytes [15:42:50]NVStorageSaveData done [15:42:50]OFDSenderStorePacket done [15:42:50]KKMCreateOFDPacket done [15:42:50]NVStorageSaveData kkm_last_timestamp [15:42:50]File name is /storage/kkm_last_timestamp [15:42:50]Write 4 bytes [15:42:50]NVStorageSaveData done [15:42:50]ExternCall_PrintAddStr [15:42:50]wPrintStart [15:42:50]Write to MH i2c: 01 00 00 80 7C FC [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 80 7C 00 00 00 00 00 FF 0F 11 [15:42:50]RasterBufferAndPrint [15:42:50]line Счет N : (1)216333 [15:42:50]line ИНН: 02508201610067 [15:42:50]line Контрольно-Кассовый Чек [15:42:50]line ПРОДАЖА [15:42:50]line ТРК (МРК, ГНК) : 22 [15:42:50]line Товар: 2710124130 [15:42:50]line Аи-92-К-5 [15:42:50]line 4.150 * 60.30 [15:42:50]line = 250.25 [15:42:50]line НДС 12% НСП 1% [15:42:50]line > о реализуемом товаре [15:42:50]line ОКРУГЛЕНИЕ: -0.25 [15:42:50]line ИТОГО: 250.00 [15:42:50]line Внесено: 250.00 [15:42:50]line СДАЧА: 0.00 [15:42:50]line НСП 1% : 2.21 [15:42:50]line НДС 12% : 26.57 [15:42:50]line Наличными: 250.00 [15:42:50]line Безнал.: 0.00 [15:42:50]line Место: АЗС № 102 "Партнер Нефть" [15:42:50]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:42:50]line СНО: Общий режим [15:42:50]line Чек 106 30.01.2024 15:43 [15:42:50]line Смена: 246 ФФД: 1.0 [15:42:50]line ЗНМ: 0300000040 [15:42:50]line РНМ: 0000000000092723 [15:42:50]line Версия ККМ: 001 [15:42:50]line ФМ: 0000000000875060 [15:42:50]line ФД: 49230 [15:42:50]line ФПД: 110205273930781 [15:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T154308&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49230&fm=110205273930781&tin=02508201610067®Number=0000000000092723&sum=25000 [15:42:51]OFD Sender: Processing packet 49230 [packets to send 12, broken 11] [15:42:51]ProducePacketName [15:42:51]name=ofd_packets/00049230 [15:42:51]OFD Sender: To server: pG, [15:42:51]CommunicateWithHost lk.salyk.kg:30040 [15:42:51]ConnectInit lk.salyk.kg [15:42:51]written 0, free lines is 4095 [15:42:51]Connected sock=10 [15:42: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 36 30 0F 01 00 00 DF 3B 07 01 99 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 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 0C 19 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4E C0 00 00 35 04 06 00 64 3B 2A 34 7C 1D D1 15 AE ED 48 FF 33 9C [15:42: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 36 30 4F 00 00 00 69 5F 47 00 B5 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 36 30 10 04 04 00 4E C0 00 00 F4 03 04 00 01 C5 B8 65 B6 04 01 00 00 FF A9 5C BF F5 36 56 29 [15:42:51]CommunicateWithHost err = 0 [15:42:51]CheckOFDResponse [15:42:51]1017 (14) - 77093643461234 [15:42:51]1041 (16) - 0000000000875060 [15:42:51]1040 (4) - 49230 [15:42:51]1012 (4) - 30.01.2024 09:44 [15:42:51]1206 (1) - 0 [15:42:51]OFD Sender: Remove packet 49230 [15:42:51]ProducePacketName [15:42:51]name=ofd_packets/00049230 [15:42:51]NVStorageDeleteData [15:42:51]Write to MH i2c: 01 00 00 AB 7C 27 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 AB 7C 00 00 00 00 00 EC 0C 26 [15:42:51]RasterBufferAndPrint [15:42:51]line [15:42:51]line [15:42:51]line [15:42:51]line [15:42:51]line [15:42:51]written 0, free lines is 3314 [15:42:51]MH_Cut [15:42:51]Write to MH i2c: D1 01 00 B2 7C 01 00 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: D1 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: D1 01 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: D1 01 00 B2 7C 00 FF [15:42:51]Write to MH i2c: 01 00 00 B3 7C 2F [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]OFD Sender: No OFD packet to send [15:42:52]*** Cut start [15:42:52]*** Partial cut [15:42:52]*** CUTSNS_PIN = 1 [15:42:52]*** CUTSNS_PIN = 0 [15:42:52]*** Brake cut motor [15:42:52]Read from MH i2c: 01 [15:42:52]MH_I2C_Read... [15:42:52]*** Stop cut motor [15:42:52]*** Cut end [15:42:52]Read from MH i2c: 01 07 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 B3 7C 00 00 00 00 00 FF 0F 44 [15:42:52]process_action close_receipt done [15:42:52]requested_data is exist [15:42:52]produce_requested_data [15:42:52]requested_item fm.sn is exist - process it [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 11 00 00 [15:42:52]Write to MH i2c: E2 08 00 B4 7C 80 11 00 00 00 00 00 00 AA [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 B4 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F7 [15:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:42:52]wFMCommunicate OK [15:42:52]requested_item fd.num is exist - process it [15:42:52]SAM_PROTO_GetFieldsCounters [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 13 00 00 [15:42:52]Write to MH i2c: E2 08 00 B5 7C 80 13 00 00 00 00 00 00 AD [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 62 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 62 00 B5 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [15:42: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:53]wFMCommunicate OK [15:42:53]SAM_PROTO_GetFieldsCounters done [15:42:53]requested_item shift.num is exist - process it [15:42:53]requested_item shift.opened is exist - process it [15:42:53]req_shift_opened [15:42:53]FM_GetShiftState [15:42:53]SAM_PROTO_GetShiftState [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 13 01 00 [15:42:53]Write to MH i2c: E2 08 00 B6 7C 80 13 01 00 00 00 00 00 AF [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 0E 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 0E 00 B6 7C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D7 [15:42:53]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:42:53]wFMCommunicate OK [15:42:53]SAM_PROTO_GetShiftState done [15:42:53]FM_GetShiftState done [15:42:53]req_shift_opened done [15:42:53]requested_item shift.open_date is exist - process it [15:42:53]req_shift_open_date [15:42:53]req_shift_open_date done [15:42:53]produce_requested_data done [15:42:53]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49230,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:42:53]process_action_free close_receipt [15:42:53]json_value_free [15:42:53]json_value_free done [15:42:53]process_json_proto returns [15:42:53]Send response to host [15:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49230,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:42:53]free response buf [15:42:53]execute_script done [15:42:53]execute_script returns [15:42:53]free content buf [15:42:53]Sock 7.Close socket [15:42:53]Sock 7.Thread stoped [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:12]accept exits with 9 [15:46:12]New connection [15:46:12]New thread 3066670436 created [15:46:12]Thread 3066813796 joined [15:46:12]Waiting for new connection... [15:46:12] Sock 9.Parse request [15:46:12]Sock 9.Check first char [15:46:12]Sock 9.First char is OK [15:46:12]request: POST /json_proto HTTP/1.0 [15:46:12]Method: POST [15:46:12]URL: /json_proto [15:46:12]Method is POST - this is cgi request [15:46:12]url: /json_proto [15:46:12]query_string will be loaded in cgi processing [15:46:12]execute_cgi json_proto POST (null) [15:46:12]execute_cgi path=json_proto method=POST [15:46:12]POST find Content-Length [15:46:12]Host: 172.17.56.67:8080 [15:46:12]Content-Length: 679 [15:46:12]Content-Type: application/json [15:46:12] [15:46:12]POST finish read [15:46:12]Found Content-Length = 679 [15:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:12]execute_script... [15:46:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:12]POST & json_proto [15:46:12]process_json_proto [15:46:12]json parsed OK: [15:46:12]protocol is kg_v1.0 [15:46:12]action value=close_receipt [15:46:12]process_action close_receipt [15:46:12]cmd_close_receipt [15:46:12]MH_GetDate [15:46:12]Write to MH i2c: F0 00 00 B7 7C 22 [15:46:12]Write i2c OK [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: F0 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: F0 09 00 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: F0 09 00 B7 7C 00 D8 19 B9 65 26 5D 9E 65 C0 [15:46:12]GetLastDocTimeStamp 1706629388 [15:46:12]current date 1706629592 [15:46:12]FM_GetShiftState [15:46:12]SAM_PROTO_GetShiftState [15:46:12]wFMCommunicate request_size=4 [15:46:12]MH_SAM_APDU [15:46:12]CAPDU: 80 13 01 00 [15:46:12]Write to MH i2c: E2 08 00 B8 7C 80 13 01 00 00 00 00 00 B1 [15:46:12]Write i2c OK [15:46:12]MH_I2C_Read... [15:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:12]Read from MH i2c: E2 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: E2 0E 00 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: E2 0E 00 B8 7C 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D9 [15:46:12]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:46:12]wFMCommunicate OK [15:46:12]SAM_PROTO_GetShiftState done [15:46:12]FM_GetShiftState done [15:46:12]opened in 1706572995 [15:46:12]opened+sec_in_day 1706659395 [15:46:12]quantity*price = 200053 [15:46:12]sum+1 = 200055 [15:46:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 107 30.01.2024 15:46 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49231 ФПД: 44183028026943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T154632&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49231&fm=44183028026943&tin=02508201610067®Number=0000000000092723&sum=200000 [15:46:14]StoreToDocumentArchive [15:46:14]shift 246 fd 49231 [15:46:14]save to /storage/0246/doc_00049231 [15:46:14]save last doc name /storage/0246/doc_00049231 to /storage/kkm_last_doc_name [15:46:14]save OK [15:46:14]Clear old archive folders... [15:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:46:14]tlvbuf is B6F36BE0 [15:46:14]SAM_PROTO_ClearQueue [15:46:14]wFMCommunicate request_size=4 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 09 00 00 [15:46:14]Write to MH i2c: E2 08 00 C5 7C 80 09 00 00 00 00 00 00 B3 [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 C5 7C 00 90 00 B5 [15:46:14]RAPDU: 90 00 [15:46:14]wFMCommunicate OK [15:46:14]SAM_PROTO_ClearQueue done [15:46:14]KKMCreateOFDPacket [15:46:14]OFDProtocolAddRootSTLVToBuf [15:46:14]FM_MakeSignedData [15:46:14]FM_MakeSignedData [15:46:14]SAM_PROTO_SignData [15:46:14]wFMCommunicate request_size=4 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 0D 01 02 [15:46:14]Write to MH i2c: E2 08 00 C6 7C 80 0D 01 02 00 00 00 00 BB [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 C6 7C 00 90 00 B6 [15:46:14]RAPDU: 90 00 [15:46:14]wFMCommunicate OK [15:46:14]wFMCommunicate request_size=255 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 6B 00 00 00 F4 03 04 00 D8 19 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4F C0 00 00 35 04 06 00 28 2F 29 B0 [15:46:14]Write to MH i2c: E2 02 01 C7 7C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 6B 00 00 00 F4 03 04 00 D8 19 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4F C0 00 00 35 04 06 00 28 2F 29 B0 00 00 C8 [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 C7 7C 00 90 00 B7 [15:46:14]RAPDU: 90 00 [15:46:14]wFMCommunicate OK [15:46:14]wFMCommunicate request_size=7 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 0D 02 02 02 CE 3F [15:46:14]Write to MH i2c: E2 0A 00 C8 7C 80 0D 02 02 02 00 CE 3F 00 00 CF [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 C8 7C 00 90 00 B8 [15:46:14]RAPDU: 90 00 [15:46:14]wFMCommunicate OK [15:46:14]wFMCommunicate request_size=4 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 0D 03 02 [15:46:14]Write to MH i2c: E2 08 00 C9 7C 80 0D 03 02 00 00 00 00 C0 [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 0B 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 0B 00 C9 7C 00 14 EB 08 07 28 FD DF 7C 90 00 4F [15:46:14]RAPDU: 14 EB 08 07 28 FD DF 7C 90 00 [15:46:14]wFMCommunicate OK [15:46:14]SAM_PROTO_SignData done [15:46:14]FM_MakeSignedData done [15:46:14]CreateOFDProtocolMessage [15:46:14]wFMCommunicate request_size=4 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 11 00 00 [15:46:14]Write to MH i2c: E2 08 00 CA 7C 80 11 00 00 00 00 00 00 C0 [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 17 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 17 00 CA 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0D [15:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:46:14]wFMCommunicate OK [15:46:14]CreateOFDProtocolMessage done [15:46:14]OFDSenderStorePacket 49231 [15:46:14]StoreOFDPacket docnum=49231 [15:46:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 2A 25 04 01 BD 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 6B 00 00 00 F4 03 04 00 D8 19 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4F C0 00 00 35 04 06 00 28 2F 29 B0 CE 3F 14 EB 08 07 28 FD DF 7C [15:46:14]CheckFolder [15:46:14]dirname=/storage/ofd_packets [15:46:14]CheckFolder done [15:46:14]ProducePacketName [15:46:14]name=ofd_packets/00049231 [15:46:14]NVStorageSaveData ofd_packets/00049231 [15:46:14]File name is /storage/ofd_packets/00049231 [15:46:14]Write 298 bytes [15:46:14]NVStorageSaveData done [15:46:14]OFDSenderStorePacket done [15:46:14]KKMCreateOFDPacket done [15:46:14]NVStorageSaveData kkm_last_timestamp [15:46:14]File name is /storage/kkm_last_timestamp [15:46:14]Write 4 bytes [15:46:14]NVStorageSaveData done [15:46:14]ExternCall_PrintAddStr [15:46:14]wPrintStart [15:46:14]Write to MH i2c: 01 00 00 CB 7C 47 [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: 01 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: 01 07 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: 01 07 00 CB 7C 00 00 00 00 00 FF 0F 5C [15:46:14]RasterBufferAndPrint [15:46:14]line Счет N : (1)216334 [15:46:14]line ИНН: 02508201610067 [15:46:14]line Контрольно-Кассовый Чек [15:46:14]line ПРОДАЖА [15:46:14]line ТРК (МРК, ГНК) : 21 [15:46:14]line Товар: 2710194210 [15:46:14]line ДТ-К-5 [15:46:14]line 28.620 * 69.90 [15:46:14]line = 2000.54 [15:46:14]line НДС 12% НСП 1% [15:46:14]line > о реализуемом товаре [15:46:14]line ОКРУГЛЕНИЕ: -0.54 [15:46:14]line ИТОГО: 2000.00 [15:46:14]line Внесено: 2000.00 [15:46:14]line СДАЧА: 0.00 [15:46:14]line НСП 1% : 17.70 [15:46:14]line НДС 12% : 212.45 [15:46:14]line Наличными: 2000.00 [15:46:14]line Безнал.: 0.00 [15:46:14]line Место: АЗС № 102 "Партнер Нефть" [15:46:14]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:46:14]line СНО: Общий режим [15:46:14]line Чек 107 30.01.2024 15:46 [15:46:14]line Смена: 246 ФФД: 1.0 [15:46:14]line ЗНМ: 0300000040 [15:46:14]line РНМ: 0000000000092723 [15:46:14]line Версия ККМ: 001 [15:46:14]line ФМ: 0000000000875060 [15:46:14]line ФД: 49231 [15:46:14]line ФПД: 44183028026943 [15:46:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T154632&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49231&fm=44183028026943&tin=02508201610067®Number=0000000000092723&sum=200000 [15:46:14]OFD Sender: Processing packet 49231 [packets to send 12, broken 11] [15:46:14]ProducePacketName [15:46:14]name=ofd_packets/00049231 [15:46:14]OFD Sender: To server: pG, [15:46:14]CommunicateWithHost lk.salyk.kg:30040 [15:46:14]ConnectInit lk.salyk.kg [15:46:14]written 0, free lines is 4095 [15:46:15]Connected sock=10 [15:46: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 36 30 0C 01 00 00 2A 25 04 01 BD 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 FD 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 6B 00 00 00 F4 03 04 00 D8 19 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4F C0 00 00 35 04 06 00 28 2F 29 B0 CE 3F 14 EB 08 07 28 FD DF 7C [15:46:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 4E FA 47 00 43 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 4F C0 00 00 F4 03 04 00 CD C5 B8 65 B6 04 01 00 00 6D D7 F3 3A 0C C8 6C F3 [15:46:15]CommunicateWithHost err = 0 [15:46:15]CheckOFDResponse [15:46:15]1017 (14) - 77093643461234 [15:46:15]1041 (16) - 0000000000875060 [15:46:15]1040 (4) - 49231 [15:46:15]1012 (4) - 30.01.2024 09:47 [15:46:15]1206 (1) - 0 [15:46:15]OFD Sender: Remove packet 49231 [15:46:15]ProducePacketName [15:46:15]name=ofd_packets/00049231 [15:46:15]NVStorageDeleteData [15:46:15]Write to MH i2c: 01 00 00 F6 7C 72 [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: 01 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: 01 07 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: 01 07 00 F6 7C 00 00 00 00 00 EC 0C 71 [15:46:15]RasterBufferAndPrint [15:46:15]line [15:46:15]line [15:46:15]line [15:46:15]line [15:46:15]line [15:46:15]written 0, free lines is 3314 [15:46:15]MH_Cut [15:46:15]Write to MH i2c: D1 01 00 FD 7C 01 4B [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: D1 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: D1 01 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: D1 01 00 FD 7C 00 4A [15:46:15]Write to MH i2c: 01 00 00 FE 7C 7A [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]OFD Sender: No OFD packet to send [15:46:16]*** Cut start [15:46:16]*** Partial cut [15:46:16]*** CUTSNS_PIN = 1 [15:46:16]*** CUTSNS_PIN = 0 [15:46:16]*** Brake cut motor [15:46:16]Read from MH i2c: 01 [15:46:16]MH_I2C_Read... [15:46:16]*** Stop cut motor [15:46:16]*** Cut end [15:46:16]Read from MH i2c: 01 07 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 07 00 FE 7C 00 00 00 00 00 FF 0F 8F [15:46:16]process_action close_receipt done [15:46:16]requested_data is exist [15:46:16]produce_requested_data [15:46:16]requested_item fm.sn is exist - process it [15:46:16]wFMCommunicate request_size=4 [15:46:16]MH_SAM_APDU [15:46:16]CAPDU: 80 11 00 00 [15:46:16]Write to MH i2c: E2 08 00 FF 7C 80 11 00 00 00 00 00 00 F5 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:16]Read from MH i2c: E2 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 17 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 17 00 FF 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 42 [15:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:46:16]wFMCommunicate OK [15:46:16]requested_item fd.num is exist - process it [15:46:16]SAM_PROTO_GetFieldsCounters [15:46:16]wFMCommunicate request_size=4 [15:46:16]MH_SAM_APDU [15:46:16]CAPDU: 80 13 00 00 [15:46:16]Write to MH i2c: E2 08 00 00 7D 80 13 00 00 00 00 00 00 F9 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:16]Read from MH i2c: E2 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 62 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 62 00 00 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [15:46: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 4F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:16]wFMCommunicate OK [15:46:16]SAM_PROTO_GetFieldsCounters done [15:46:16]requested_item shift.num is exist - process it [15:46:16]requested_item shift.opened is exist - process it [15:46:16]req_shift_opened [15:46:16]FM_GetShiftState [15:46:16]SAM_PROTO_GetShiftState [15:46:16]wFMCommunicate request_size=4 [15:46:16]MH_SAM_APDU [15:46:16]CAPDU: 80 13 01 00 [15:46:16]Write to MH i2c: E2 08 00 01 7D 80 13 01 00 00 00 00 00 FB [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:16]Read from MH i2c: E2 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 0E 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 0E 00 01 7D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 23 [15:46:16]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:46:16]wFMCommunicate OK [15:46:16]SAM_PROTO_GetShiftState done [15:46:16]FM_GetShiftState done [15:46:16]req_shift_opened done [15:46:16]requested_item shift.open_date is exist - process it [15:46:16]req_shift_open_date [15:46:16]req_shift_open_date done [15:46:16]produce_requested_data done [15:46:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49231,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:46:16]process_action_free close_receipt [15:46:16]json_value_free [15:46:16]json_value_free done [15:46:16]process_json_proto returns [15:46:16]Send response to host [15:46:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49231,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:46:16]free response buf [15:46:16]execute_script done [15:46:16]execute_script returns [15:46:16]free content buf [15:46:16]Sock 9.Close socket [15:46:16]Sock 9.Thread stoped [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:06]accept exits with 7 [15:48:06]New connection [15:48:06]New thread 3066813796 created [15:48:06]Thread 3066670436 joined [15:48:06]Waiting for new connection... [15:48:06] Sock 7.Parse request [15:48:06]Sock 7.Check first char [15:48:06]Sock 7.First char is OK [15:48:06]request: POST /json_proto HTTP/1.0 [15:48:06]Method: POST [15:48:06]URL: /json_proto [15:48:06]Method is POST - this is cgi request [15:48:06]url: /json_proto [15:48:06]query_string will be loaded in cgi processing [15:48:06]execute_cgi json_proto POST (null) [15:48:06]execute_cgi path=json_proto method=POST [15:48:06]POST find Content-Length [15:48:06]Host: 172.17.56.67:8080 [15:48:06]Content-Length: 677 [15:48:06]Content-Type: application/json [15:48:06] [15:48:06]POST finish read [15:48:06]Found Content-Length = 677 [15:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:06]execute_script... [15:48:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:06]POST & json_proto [15:48:06]process_json_proto [15:48:06]json parsed OK: [15:48:06]protocol is kg_v1.0 [15:48:06]action value=close_receipt [15:48:06]process_action close_receipt [15:48:06]cmd_close_receipt [15:48:06]MH_GetDate [15:48:06]Write to MH i2c: F0 00 00 02 7D 6E [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: F0 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: F0 09 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: F0 09 00 02 7D 00 49 1A B9 65 26 5D 9E 65 7E [15:48:06]GetLastDocTimeStamp 1706629592 [15:48:06]current date 1706629705 [15:48:06]FM_GetShiftState [15:48:06]SAM_PROTO_GetShiftState [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 13 01 00 [15:48:06]Write to MH i2c: E2 08 00 03 7D 80 13 01 00 00 00 00 00 FD [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 0E 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 0E 00 03 7D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 25 [15:48:06]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:48:06]wFMCommunicate OK [15:48:06]SAM_PROTO_GetShiftState done [15:48:06]FM_GetShiftState done [15:48:06]opened in 1706572995 [15:48:06]opened+sec_in_day 1706659395 [15:48:06]quantity*price = 50049 [15:48:06]sum+1 = 50050 [15:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 108 30.01.2024 15:48 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49232 ФПД: 247857924355250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T154825&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49232&fm=247857924355250&tin=02508201610067®Number=0000000000092723&sum=50000 [15:48:07]StoreToDocumentArchive [15:48:07]shift 246 fd 49232 [15:48:07]save to /storage/0246/doc_00049232 [15:48:07]save last doc name /storage/0246/doc_00049232 to /storage/kkm_last_doc_name [15:48:07]save OK [15:48:07]Clear old archive folders... [15:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:07]tlvbuf is 01216C20 [15:48:07]SAM_PROTO_ClearQueue [15:48:07]wFMCommunicate request_size=4 [15:48:07]MH_SAM_APDU [15:48:07]CAPDU: 80 09 00 00 [15:48:07]Write to MH i2c: E2 08 00 10 7D 80 09 00 00 00 00 00 00 FF [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:07]Read from MH i2c: E2 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 03 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 03 00 10 7D 00 90 00 01 [15:48:07]RAPDU: 90 00 [15:48:07]wFMCommunicate OK [15:48:07]SAM_PROTO_ClearQueue done [15:48:07]KKMCreateOFDPacket [15:48:07]OFDProtocolAddRootSTLVToBuf [15:48:07]FM_MakeSignedData [15:48:07]FM_MakeSignedData [15:48:07]SAM_PROTO_SignData [15:48:07]wFMCommunicate request_size=4 [15:48:07]MH_SAM_APDU [15:48:07]CAPDU: 80 0D 01 02 [15:48:07]Write to MH i2c: E2 08 00 11 7D 80 0D 01 02 00 00 00 00 07 [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:07]Read from MH i2c: E2 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 03 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 03 00 11 7D 00 90 00 02 [15:48:07]RAPDU: 90 00 [15:48:07]wFMCommunicate OK [15:48:07]wFMCommunicate request_size=255 [15:48:07]MH_SAM_APDU [15:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 49 1A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 50 C0 00 00 35 04 06 00 E1 [15:48:07]Write to MH i2c: E2 02 01 12 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 49 1A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 50 C0 00 00 35 04 06 00 E1 00 00 0B [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 03 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 03 00 12 7D 00 90 00 03 [15:48:08]RAPDU: 90 00 [15:48:08]wFMCommunicate OK [15:48:08]wFMCommunicate request_size=10 [15:48:08]MH_SAM_APDU [15:48:08]CAPDU: 80 0D 02 02 05 6C EB 89 34 B2 [15:48:08]Write to MH i2c: E2 0D 00 13 7D 80 0D 02 02 05 00 6C EB 89 34 B2 00 00 DA [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 03 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 03 00 13 7D 00 90 00 04 [15:48:08]RAPDU: 90 00 [15:48:08]wFMCommunicate OK [15:48:08]wFMCommunicate request_size=4 [15:48:08]MH_SAM_APDU [15:48:08]CAPDU: 80 0D 03 02 [15:48:08]Write to MH i2c: E2 08 00 14 7D 80 0D 03 02 00 00 00 00 0C [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 0B 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 0B 00 14 7D 00 2C FE 3D FF DA A6 5F 07 90 00 59 [15:48:08]RAPDU: 2C FE 3D FF DA A6 5F 07 90 00 [15:48:08]wFMCommunicate OK [15:48:08]SAM_PROTO_SignData done [15:48:08]FM_MakeSignedData done [15:48:08]CreateOFDProtocolMessage [15:48:08]wFMCommunicate request_size=4 [15:48:08]MH_SAM_APDU [15:48:08]CAPDU: 80 11 00 00 [15:48:08]Write to MH i2c: E2 08 00 15 7D 80 11 00 00 00 00 00 00 0C [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 17 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 17 00 15 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 59 [15:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:48:08]wFMCommunicate OK [15:48:08]CreateOFDProtocolMessage done [15:48:08]OFDSenderStorePacket 49232 [15:48:08]StoreOFDPacket docnum=49232 [15:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9D 97 07 01 2B 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 49 1A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 50 C0 00 00 35 04 06 00 E1 6C EB 89 34 B2 2C FE 3D FF DA A6 5F 07 [15:48:08]CheckFolder [15:48:08]dirname=/storage/ofd_packets [15:48:08]CheckFolder done [15:48:08]ProducePacketName [15:48:08]name=ofd_packets/00049232 [15:48:08]NVStorageSaveData ofd_packets/00049232 [15:48:08]File name is /storage/ofd_packets/00049232 [15:48:08]Write 301 bytes [15:48:08]NVStorageSaveData done [15:48:08]OFDSenderStorePacket done [15:48:08]KKMCreateOFDPacket done [15:48:08]NVStorageSaveData kkm_last_timestamp [15:48:08]File name is /storage/kkm_last_timestamp [15:48:08]Write 4 bytes [15:48:08]NVStorageSaveData done [15:48:08]ExternCall_PrintAddStr [15:48:08]wPrintStart [15:48:08]Write to MH i2c: 01 00 00 16 7D 93 [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: 01 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: 01 07 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: 01 07 00 16 7D 00 00 00 00 00 FF 0F A8 [15:48:08]RasterBufferAndPrint [15:48:08]line Счет N : (1)216335 [15:48:08]line ИНН: 02508201610067 [15:48:08]line Контрольно-Кассовый Чек [15:48:08]line ПРОДАЖА [15:48:08]line ТРК (МРК, ГНК) : 22 [15:48:08]line Товар: 2710124130 [15:48:08]line Аи-92-К-5 [15:48:08]line 8.300 * 60.30 [15:48:08]line = 500.49 [15:48:08]line НДС 12% НСП 1% [15:48:08]line > о реализуемом товаре [15:48:08]line ОКРУГЛЕНИЕ: -0.49 [15:48:08]line ИТОГО: 500.00 [15:48:08]line Внесено: 500.00 [15:48:08]line СДАЧА: 0.00 [15:48:08]line НСП 1% : 4.43 [15:48:08]line НДС 12% : 53.15 [15:48:08]line Наличными: 500.00 [15:48:08]line Безнал.: 0.00 [15:48:08]line Место: АЗС № 102 "Партнер Нефть" [15:48:08]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:48:08]line СНО: Общий режим [15:48:08]line Чек 108 30.01.2024 15:48 [15:48:08]line Смена: 246 ФФД: 1.0 [15:48:08]line ЗНМ: 0300000040 [15:48:08]line РНМ: 0000000000092723 [15:48:08]line Версия ККМ: 001 [15:48:08]line ФМ: 0000000000875060 [15:48:08]line ФД: 49232 [15:48:08]line ФПД: 247857924355250 [15:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T154825&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49232&fm=247857924355250&tin=02508201610067®Number=0000000000092723&sum=50000 [15:48:08]OFD Sender: Processing packet 49232 [packets to send 12, broken 11] [15:48:08]ProducePacketName [15:48:08]name=ofd_packets/00049232 [15:48:08]OFD Sender: To server: pG, [15:48:08]CommunicateWithHost lk.salyk.kg:30040 [15:48:08]ConnectInit lk.salyk.kg [15:48:08]written 0, free lines is 4095 [15:48:08]Connected sock=10 [15:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9D 97 07 01 2B 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 49 1A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 50 C0 00 00 35 04 06 00 E1 6C EB 89 34 B2 2C FE 3D FF DA A6 5F 07 [15:48: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 36 30 4F 00 00 00 56 28 47 00 99 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 50 C0 00 00 F4 03 04 00 3F C6 B8 65 B6 04 01 00 00 5D 3E 41 14 F5 0D FC 3D [15:48:08]CommunicateWithHost err = 0 [15:48:08]CheckOFDResponse [15:48:08]1017 (14) - 77093643461234 [15:48:08]1041 (16) - 0000000000875060 [15:48:08]1040 (4) - 49232 [15:48:08]1012 (4) - 30.01.2024 09:49 [15:48:08]1206 (1) - 0 [15:48:08]OFD Sender: Remove packet 49232 [15:48:08]ProducePacketName [15:48:08]name=ofd_packets/00049232 [15:48:08]NVStorageDeleteData [15:48:09]Write to MH i2c: 01 00 00 41 7D BE [15:48:09]Write i2c OK [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: 01 [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: 01 07 00 [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: 01 07 00 41 7D 00 00 00 00 00 F0 0C C1 [15:48:09]RasterBufferAndPrint [15:48:09]line [15:48:09]line [15:48:09]line [15:48:09]line [15:48:09]line [15:48:09]written 0, free lines is 3319 [15:48:09]MH_Cut [15:48:09]Write to MH i2c: D1 01 00 48 7D 01 97 [15:48:09]Write i2c OK [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: D1 [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: D1 01 00 [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: D1 01 00 48 7D 00 96 [15:48:09]Write to MH i2c: 01 00 00 49 7D C6 [15:48:09]Write i2c OK [15:48:09]MH_I2C_Read... [15:48:09]OFD Sender: No OFD packet to send [15:48:09]*** Cut start [15:48:09]*** Partial cut [15:48:09]*** CUTSNS_PIN = 1 [15:48:09]*** CUTSNS_PIN = 0 [15:48:09]*** Brake cut motor [15:48:10]Read from MH i2c: 01 [15:48:10]MH_I2C_Read... [15:48:10]*** Stop cut motor [15:48:10]*** Cut end [15:48:10]Read from MH i2c: 01 07 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: 01 07 00 49 7D 00 00 00 00 00 FF 0F DB [15:48:10]process_action close_receipt done [15:48:10]requested_data is exist [15:48:10]produce_requested_data [15:48:10]requested_item fm.sn is exist - process it [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 11 00 00 [15:48:10]Write to MH i2c: E2 08 00 4A 7D 80 11 00 00 00 00 00 00 41 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 17 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 17 00 4A 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8E [15:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:48:10]wFMCommunicate OK [15:48:10]requested_item fd.num is exist - process it [15:48:10]SAM_PROTO_GetFieldsCounters [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 13 00 00 [15:48:10]Write to MH i2c: E2 08 00 4B 7D 80 13 00 00 00 00 00 00 44 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 62 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 62 00 4B 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 50 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [15:48: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 50 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:10]wFMCommunicate OK [15:48:10]SAM_PROTO_GetFieldsCounters done [15:48:10]requested_item shift.num is exist - process it [15:48:10]requested_item shift.opened is exist - process it [15:48:10]req_shift_opened [15:48:10]FM_GetShiftState [15:48:10]SAM_PROTO_GetShiftState [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 13 01 00 [15:48:10]Write to MH i2c: E2 08 00 4C 7D 80 13 01 00 00 00 00 00 46 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 0E 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 0E 00 4C 7D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6E [15:48:10]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:48:10]wFMCommunicate OK [15:48:10]SAM_PROTO_GetShiftState done [15:48:10]FM_GetShiftState done [15:48:10]req_shift_opened done [15:48:10]requested_item shift.open_date is exist - process it [15:48:10]req_shift_open_date [15:48:10]req_shift_open_date done [15:48:10]produce_requested_data done [15:48:10]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49232,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:48:10]process_action_free close_receipt [15:48:10]json_value_free [15:48:10]json_value_free done [15:48:10]process_json_proto returns [15:48:10]Send response to host [15:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49232,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:48:10]free response buf [15:48:10]execute_script done [15:48:10]execute_script returns [15:48:10]free content buf [15:48:10]Sock 7.Close socket [15:48:10]Sock 7.Thread stoped [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53: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:53]accept exits with 9 [15:53:53]New connection [15:53:53]New thread 3066670436 created [15:53:53]Thread 3066813796 joined [15:53:53]Waiting for new connection... [15:53:53] Sock 9.Parse request [15:53:53]Sock 9.Check first char [15:53:53]Sock 9.First char is OK [15:53:53]request: POST /json_proto HTTP/1.0 [15:53:53]Method: POST [15:53:53]URL: /json_proto [15:53:53]Method is POST - this is cgi request [15:53:53]url: /json_proto [15:53:53]query_string will be loaded in cgi processing [15:53:53]execute_cgi json_proto POST (null) [15:53:53]execute_cgi path=json_proto method=POST [15:53:53]POST find Content-Length [15:53:53]Host: 172.17.56.67:8080 [15:53:53]Content-Length: 679 [15:53:53]Content-Type: application/json [15:53:53] [15:53:53]POST finish read [15:53:53]Found Content-Length = 679 [15:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:53]execute_script... [15:53:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:53]POST & json_proto [15:53:53]process_json_proto [15:53:53]json parsed OK: [15:53:53]protocol is kg_v1.0 [15:53:53]action value=close_receipt [15:53:53]process_action close_receipt [15:53:53]cmd_close_receipt [15:53:53]MH_GetDate [15:53:53]Write to MH i2c: F0 00 00 4D 7D B9 [15:53:53]Write i2c OK [15:53:53]MH_I2C_Read... [15:53:53]Read from MH i2c: F0 [15:53:53]MH_I2C_Read... [15:53:53]Read from MH i2c: F0 09 00 [15:53:53]MH_I2C_Read... [15:53:53]Read from MH i2c: F0 09 00 4D 7D 00 A5 1B B9 65 26 5D 9E 65 26 [15:53:53]GetLastDocTimeStamp 1706629705 [15:53:53]current date 1706630053 [15:53:53]FM_GetShiftState [15:53:53]SAM_PROTO_GetShiftState [15:53:53]wFMCommunicate request_size=4 [15:53:53]MH_SAM_APDU [15:53:53]CAPDU: 80 13 01 00 [15:53:53]Write to MH i2c: E2 08 00 4E 7D 80 13 01 00 00 00 00 00 48 [15:53:53]Write i2c OK [15:53:53]MH_I2C_Read... [15:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:53]Read from MH i2c: E2 [15:53:53]MH_I2C_Read... [15:53:53]Read from MH i2c: E2 0E 00 [15:53:53]MH_I2C_Read... [15:53:53]Read from MH i2c: E2 0E 00 4E 7D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 70 [15:53:53]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:53:53]wFMCommunicate OK [15:53:53]SAM_PROTO_GetShiftState done [15:53:53]FM_GetShiftState done [15:53:53]opened in 1706572995 [15:53:53]opened+sec_in_day 1706659395 [15:53:53]quantity*price = 100026 [15:53:53]sum+1 = 100028 [15:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 109 30.01.2024 15:54 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49233 ФПД: 94992845214345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T155413&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49233&fm=94992845214345&tin=02508201610067®Number=0000000000092723&sum=100000 [15:53:55]StoreToDocumentArchive [15:53:55]shift 246 fd 49233 [15:53:55]save to /storage/0246/doc_00049233 [15:53:55]save last doc name /storage/0246/doc_00049233 to /storage/kkm_last_doc_name [15:53:55]save OK [15:53:55]Clear old archive folders... [15:53:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:53:55]tlvbuf is B6D866D0 [15:53:55]SAM_PROTO_ClearQueue [15:53:55]wFMCommunicate request_size=4 [15:53:55]MH_SAM_APDU [15:53:55]CAPDU: 80 09 00 00 [15:53:55]Write to MH i2c: E2 08 00 5B 7D 80 09 00 00 00 00 00 00 4A [15:53:55]Write i2c OK [15:53:55]MH_I2C_Read... [15:53:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:55]Read from MH i2c: E2 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 03 00 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 03 00 5B 7D 00 90 00 4C [15:53:55]RAPDU: 90 00 [15:53:55]wFMCommunicate OK [15:53:55]SAM_PROTO_ClearQueue done [15:53:55]KKMCreateOFDPacket [15:53:55]OFDProtocolAddRootSTLVToBuf [15:53:55]FM_MakeSignedData [15:53:55]FM_MakeSignedData [15:53:55]SAM_PROTO_SignData [15:53:55]wFMCommunicate request_size=4 [15:53:55]MH_SAM_APDU [15:53:55]CAPDU: 80 0D 01 02 [15:53:55]Write to MH i2c: E2 08 00 5C 7D 80 0D 01 02 00 00 00 00 52 [15:53:55]Write i2c OK [15:53:55]MH_I2C_Read... [15:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:55]Read from MH i2c: E2 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 03 00 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 03 00 5C 7D 00 90 00 4D [15:53:55]RAPDU: 90 00 [15:53:55]wFMCommunicate OK [15:53:55]wFMCommunicate request_size=255 [15:53:55]MH_SAM_APDU [15:53:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A5 1B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 51 C0 00 00 35 04 06 00 56 65 3E CB [15:53:55]Write to MH i2c: E2 02 01 5D 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A5 1B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 51 C0 00 00 35 04 06 00 56 65 3E CB 00 00 F2 [15:53:55]Write i2c OK [15:53:55]MH_I2C_Read... [15:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:55]Read from MH i2c: E2 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 03 00 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 03 00 5D 7D 00 90 00 4E [15:53:55]RAPDU: 90 00 [15:53:55]wFMCommunicate OK [15:53:55]wFMCommunicate request_size=7 [15:53:55]MH_SAM_APDU [15:53:55]CAPDU: 80 0D 02 02 02 92 89 [15:53:55]Write to MH i2c: E2 0A 00 5E 7D 80 0D 02 02 02 00 92 89 00 00 74 [15:53:55]Write i2c OK [15:53:55]MH_I2C_Read... [15:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:55]Read from MH i2c: E2 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 03 00 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 03 00 5E 7D 00 90 00 4F [15:53:55]RAPDU: 90 00 [15:53:55]wFMCommunicate OK [15:53:55]wFMCommunicate request_size=4 [15:53:55]MH_SAM_APDU [15:53:55]CAPDU: 80 0D 03 02 [15:53:55]Write to MH i2c: E2 08 00 5F 7D 80 0D 03 02 00 00 00 00 57 [15:53:55]Write i2c OK [15:53:55]MH_I2C_Read... [15:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:55]Read from MH i2c: E2 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 0B 00 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 0B 00 5F 7D 00 4D 28 F4 12 D9 96 1B 95 90 00 F2 [15:53:55]RAPDU: 4D 28 F4 12 D9 96 1B 95 90 00 [15:53:55]wFMCommunicate OK [15:53:55]SAM_PROTO_SignData done [15:53:55]FM_MakeSignedData done [15:53:55]CreateOFDProtocolMessage [15:53:55]wFMCommunicate request_size=4 [15:53:55]MH_SAM_APDU [15:53:55]CAPDU: 80 11 00 00 [15:53:55]Write to MH i2c: E2 08 00 60 7D 80 11 00 00 00 00 00 00 57 [15:53:55]Write i2c OK [15:53:55]MH_I2C_Read... [15:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:55]Read from MH i2c: E2 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 17 00 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: E2 17 00 60 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A4 [15:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:53:55]wFMCommunicate OK [15:53:55]CreateOFDProtocolMessage done [15:53:55]OFDSenderStorePacket 49233 [15:53:55]StoreOFDPacket docnum=49233 [15:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F5 C3 04 01 72 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A5 1B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 51 C0 00 00 35 04 06 00 56 65 3E CB 92 89 4D 28 F4 12 D9 96 1B 95 [15:53:55]CheckFolder [15:53:55]dirname=/storage/ofd_packets [15:53:55]CheckFolder done [15:53:55]ProducePacketName [15:53:55]name=ofd_packets/00049233 [15:53:55]NVStorageSaveData ofd_packets/00049233 [15:53:55]File name is /storage/ofd_packets/00049233 [15:53:55]Write 298 bytes [15:53:55]NVStorageSaveData done [15:53:55]OFDSenderStorePacket done [15:53:55]KKMCreateOFDPacket done [15:53:55]NVStorageSaveData kkm_last_timestamp [15:53:55]File name is /storage/kkm_last_timestamp [15:53:55]Write 4 bytes [15:53:55]NVStorageSaveData done [15:53:55]ExternCall_PrintAddStr [15:53:55]wPrintStart [15:53:55]Write to MH i2c: 01 00 00 61 7D DE [15:53:55]Write i2c OK [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: 01 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: 01 07 00 [15:53:55]MH_I2C_Read... [15:53:55]Read from MH i2c: 01 07 00 61 7D 00 00 00 00 00 FF 0F F3 [15:53:55]RasterBufferAndPrint [15:53:55]line Счет N : (1)216336 [15:53:55]line ИНН: 02508201610067 [15:53:55]line Контрольно-Кассовый Чек [15:53:55]line ПРОДАЖА [15:53:55]line ТРК (МРК, ГНК) : 11 [15:53:55]line Товар: 2710194210 [15:53:55]line ДТ-К-5 [15:53:55]line 14.310 * 69.90 [15:53:55]line = 1000.27 [15:53:55]line НДС 12% НСП 1% [15:53:55]line > о реализуемом товаре [15:53:55]line ОКРУГЛЕНИЕ: -0.27 [15:53:55]line ИТОГО: 1000.00 [15:53:55]line Внесено: 1000.00 [15:53:55]line СДАЧА: 0.00 [15:53:55]line НСП 1% : 8.85 [15:53:55]line НДС 12% : 106.22 [15:53:55]line Наличными: 1000.00 [15:53:55]line Безнал.: 0.00 [15:53:55]line Место: АЗС № 102 "Партнер Нефть" [15:53:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:53:55]line СНО: Общий режим [15:53:55]line Чек 109 30.01.2024 15:54 [15:53:55]line Смена: 246 ФФД: 1.0 [15:53:55]line ЗНМ: 0300000040 [15:53:55]line РНМ: 0000000000092723 [15:53:55]line Версия ККМ: 001 [15:53:55]line ФМ: 0000000000875060 [15:53:55]line ФД: 49233 [15:53:55]line ФПД: 94992845214345 [15:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T155413&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49233&fm=94992845214345&tin=02508201610067®Number=0000000000092723&sum=100000 [15:53:55]OFD Sender: Processing packet 49233 [packets to send 12, broken 11] [15:53:55]ProducePacketName [15:53:55]name=ofd_packets/00049233 [15:53:55]OFD Sender: To server: pG, [15:53:55]CommunicateWithHost lk.salyk.kg:30040 [15:53:55]ConnectInit lk.salyk.kg [15:53:55]written 0, free lines is 4095 [15:53:55]Connected sock=10 [15:53: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 36 30 0C 01 00 00 F5 C3 04 01 72 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A5 1B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 51 C0 00 00 35 04 06 00 56 65 3E CB 92 89 4D 28 F4 12 D9 96 1B 95 [15:53: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 36 30 4F 00 00 00 25 A1 47 00 35 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 36 30 10 04 04 00 51 C0 00 00 F4 03 04 00 9A C7 B8 65 B6 04 01 00 00 F1 4E EC 8F 8B 9C 6B F6 [15:53:56]CommunicateWithHost err = 0 [15:53:56]CheckOFDResponse [15:53:56]1017 (14) - 77093643461234 [15:53:56]1041 (16) - 0000000000875060 [15:53:56]1040 (4) - 49233 [15:53:56]1012 (4) - 30.01.2024 09:55 [15:53:56]1206 (1) - 0 [15:53:56]OFD Sender: Remove packet 49233 [15:53:56]ProducePacketName [15:53:56]name=ofd_packets/00049233 [15:53:56]NVStorageDeleteData [15:53:56]Write to MH i2c: 01 00 00 8C 7D 09 [15:53:56]Write i2c OK [15:53:56]MH_I2C_Read... [15:53:56]Read from MH i2c: 01 [15:53:56]MH_I2C_Read... [15:53:56]Read from MH i2c: 01 07 00 [15:53:56]MH_I2C_Read... [15:53:56]Read from MH i2c: 01 07 00 8C 7D 00 00 00 00 00 ED 0C 09 [15:53:56]RasterBufferAndPrint [15:53:56]line [15:53:56]line [15:53:56]line [15:53:56]line [15:53:56]line [15:53:56]written 0, free lines is 3315 [15:53:56]MH_Cut [15:53:56]Write to MH i2c: D1 01 00 93 7D 01 E2 [15:53:56]Write i2c OK [15:53:56]MH_I2C_Read... [15:53:56]Read from MH i2c: D1 [15:53:56]MH_I2C_Read... [15:53:56]Read from MH i2c: D1 01 00 [15:53:56]MH_I2C_Read... [15:53:56]Read from MH i2c: D1 01 00 93 7D 00 E1 [15:53:56]Write to MH i2c: 01 00 00 94 7D 11 [15:53:56]Write i2c OK [15:53:56]MH_I2C_Read... [15:53:56]OFD Sender: No OFD packet to send [15:53:56]*** Cut start [15:53:56]*** Partial cut [15:53:56]*** CUTSNS_PIN = 1 [15:53:57]*** CUTSNS_PIN = 0 [15:53:57]*** Brake cut motor [15:53:57]Read from MH i2c: 01 [15:53:57]MH_I2C_Read... [15:53:57]*** Stop cut motor [15:53:57]*** Cut end [15:53:57]Read from MH i2c: 01 07 00 [15:53:57]MH_I2C_Read... [15:53:57]Read from MH i2c: 01 07 00 94 7D 00 00 00 00 00 FF 0F 26 [15:53:57]process_action close_receipt done [15:53:57]requested_data is exist [15:53:57]produce_requested_data [15:53:57]requested_item fm.sn is exist - process it [15:53:57]wFMCommunicate request_size=4 [15:53:57]MH_SAM_APDU [15:53:57]CAPDU: 80 11 00 00 [15:53:57]Write to MH i2c: E2 08 00 95 7D 80 11 00 00 00 00 00 00 8C [15:53:57]Write i2c OK [15:53:57]MH_I2C_Read... [15:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:57]Read from MH i2c: E2 [15:53:57]MH_I2C_Read... [15:53:57]Read from MH i2c: E2 17 00 [15:53:57]MH_I2C_Read... [15:53:57]Read from MH i2c: E2 17 00 95 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D9 [15:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:53:57]wFMCommunicate OK [15:53:57]requested_item fd.num is exist - process it [15:53:57]SAM_PROTO_GetFieldsCounters [15:53:57]wFMCommunicate request_size=4 [15:53:57]MH_SAM_APDU [15:53:57]CAPDU: 80 13 00 00 [15:53:57]Write to MH i2c: E2 08 00 96 7D 80 13 00 00 00 00 00 00 8F [15:53:57]Write i2c OK [15:53:57]MH_I2C_Read... [15:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:57]Read from MH i2c: E2 [15:53:57]MH_I2C_Read... [15:53:57]Read from MH i2c: E2 62 00 [15:53:57]MH_I2C_Read... [15:53:57]Read from MH i2c: E2 62 00 96 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 51 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:53: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 51 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:57]wFMCommunicate OK [15:53:57]SAM_PROTO_GetFieldsCounters done [15:53:57]requested_item shift.num is exist - process it [15:53:57]requested_item shift.opened is exist - process it [15:53:57]req_shift_opened [15:53:57]FM_GetShiftState [15:53:57]SAM_PROTO_GetShiftState [15:53:57]wFMCommunicate request_size=4 [15:53:57]MH_SAM_APDU [15:53:57]CAPDU: 80 13 01 00 [15:53:57]Write to MH i2c: E2 08 00 97 7D 80 13 01 00 00 00 00 00 91 [15:53:57]Write i2c OK [15:53:57]MH_I2C_Read... [15:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:57]Read from MH i2c: E2 [15:53:57]MH_I2C_Read... [15:53:57]Read from MH i2c: E2 0E 00 [15:53:57]MH_I2C_Read... [15:53:57]Read from MH i2c: E2 0E 00 97 7D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B9 [15:53:57]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [15:53:57]wFMCommunicate OK [15:53:57]SAM_PROTO_GetShiftState done [15:53:57]FM_GetShiftState done [15:53:57]req_shift_opened done [15:53:57]requested_item shift.open_date is exist - process it [15:53:57]req_shift_open_date [15:53:57]req_shift_open_date done [15:53:57]produce_requested_data done [15:53:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49233,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [15:53:57]process_action_free close_receipt [15:53:57]json_value_free [15:53:57]json_value_free done [15:53:57]process_json_proto returns [15:53:57]Send response to host [15:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49233,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [15:53:57]free response buf [15:53:57]execute_script done [15:53:57]execute_script returns [15:53:57]free content buf [15:53:57]Sock 9.Close socket [15:53:57]Sock 9.Thread stoped [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:41]accept exits with 7 [16:05:41]New connection [16:05:41]New thread 3066813796 created [16:05:41]Thread 3066670436 joined [16:05:41]Waiting for new connection... [16:05:41] Sock 7.Parse request [16:05:41]Sock 7.Check first char [16:05:41]Sock 7.First char is OK [16:05:41]request: POST /json_proto HTTP/1.0 [16:05:41]Method: POST [16:05:41]URL: /json_proto [16:05:41]Method is POST - this is cgi request [16:05:41]url: /json_proto [16:05:41]query_string will be loaded in cgi processing [16:05:41]execute_cgi json_proto POST (null) [16:05:41]execute_cgi path=json_proto method=POST [16:05:41]POST find Content-Length [16:05:41]Host: 172.17.56.67:8080 [16:05:41]Content-Length: 677 [16:05:41]Content-Type: application/json [16:05:41] [16:05:41]POST finish read [16:05:41]Found Content-Length = 677 [16:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:41]execute_script... [16:05: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)216337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:41]POST & json_proto [16:05:41]process_json_proto [16:05:41]json parsed OK: [16:05:41]protocol is kg_v1.0 [16:05:41]action value=close_receipt [16:05:41]process_action close_receipt [16:05:41]cmd_close_receipt [16:05:41]MH_GetDate [16:05:41]Write to MH i2c: F0 00 00 98 7D 04 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 09 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 09 00 98 7D 00 68 1E B9 65 26 5D 9E 65 37 [16:05:41]GetLastDocTimeStamp 1706630053 [16:05:41]current date 1706630760 [16:05:41]FM_GetShiftState [16:05:41]SAM_PROTO_GetShiftState [16:05:41]wFMCommunicate request_size=4 [16:05:41]MH_SAM_APDU [16:05:41]CAPDU: 80 13 01 00 [16:05:41]Write to MH i2c: E2 08 00 99 7D 80 13 01 00 00 00 00 00 93 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:41]Read from MH i2c: E2 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 0E 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 0E 00 99 7D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 BB [16:05:41]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:05:41]wFMCommunicate OK [16:05:41]SAM_PROTO_GetShiftState done [16:05:41]FM_GetShiftState done [16:05:41]opened in 1706572995 [16:05:41]opened+sec_in_day 1706659395 [16:05:41]quantity*price = 40039 [16:05:41]sum+1 = 40040 [16:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 110 30.01.2024 16:06 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49234 ФПД: 269036380751289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T160600&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49234&fm=269036380751289&tin=02508201610067®Number=0000000000092723&sum=40000 [16:05:42]StoreToDocumentArchive [16:05:42]shift 246 fd 49234 [16:05:42]save to /storage/0246/doc_00049234 [16:05:42]save last doc name /storage/0246/doc_00049234 to /storage/kkm_last_doc_name [16:05:42]save OK [16:05:42]Clear old archive folders... [16:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:42]tlvbuf is 011E9E60 [16:05:42]SAM_PROTO_ClearQueue [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 09 00 00 [16:05:42]Write to MH i2c: E2 08 00 A6 7D 80 09 00 00 00 00 00 00 95 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 A6 7D 00 90 00 97 [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]SAM_PROTO_ClearQueue done [16:05:42]KKMCreateOFDPacket [16:05:42]OFDProtocolAddRootSTLVToBuf [16:05:42]FM_MakeSignedData [16:05:42]FM_MakeSignedData [16:05:42]SAM_PROTO_SignData [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 0D 01 02 [16:05:42]Write to MH i2c: E2 08 00 A7 7D 80 0D 01 02 00 00 00 00 9D [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 A7 7D 00 90 00 98 [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]wFMCommunicate request_size=255 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 68 1E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 52 C0 00 00 35 04 06 00 F4 [16:05:42]Write to MH i2c: E2 02 01 A8 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 68 1E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 52 C0 00 00 35 04 06 00 F4 00 00 25 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 A8 7D 00 90 00 99 [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]wFMCommunicate request_size=10 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 0D 02 02 05 AF E9 E8 05 B9 [16:05:42]Write to MH i2c: E2 0D 00 A9 7D 80 0D 02 02 05 00 AF E9 E8 05 B9 00 00 E8 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 A9 7D 00 90 00 9A [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 0D 03 02 [16:05:42]Write to MH i2c: E2 08 00 AA 7D 80 0D 03 02 00 00 00 00 A2 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 0B 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 0B 00 AA 7D 00 3D B5 B0 51 9E 3D 18 90 90 00 19 [16:05:42]RAPDU: 3D B5 B0 51 9E 3D 18 90 90 00 [16:05:42]wFMCommunicate OK [16:05:42]SAM_PROTO_SignData done [16:05:42]FM_MakeSignedData done [16:05:42]CreateOFDProtocolMessage [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 11 00 00 [16:05:42]Write to MH i2c: E2 08 00 AB 7D 80 11 00 00 00 00 00 00 A2 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 17 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 17 00 AB 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EF [16:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:05:42]wFMCommunicate OK [16:05:42]CreateOFDProtocolMessage done [16:05:42]OFDSenderStorePacket 49234 [16:05:42]StoreOFDPacket docnum=49234 [16:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6A DE 07 01 6F 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 68 1E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 52 C0 00 00 35 04 06 00 F4 AF E9 E8 05 B9 3D B5 B0 51 9E 3D 18 90 [16:05:42]CheckFolder [16:05:42]dirname=/storage/ofd_packets [16:05:42]CheckFolder done [16:05:42]ProducePacketName [16:05:42]name=ofd_packets/00049234 [16:05:42]NVStorageSaveData ofd_packets/00049234 [16:05:42]File name is /storage/ofd_packets/00049234 [16:05:42]Write 301 bytes [16:05:42]NVStorageSaveData done [16:05:42]OFDSenderStorePacket done [16:05:42]KKMCreateOFDPacket done [16:05:42]NVStorageSaveData kkm_last_timestamp [16:05:42]File name is /storage/kkm_last_timestamp [16:05:42]Write 4 bytes [16:05:42]NVStorageSaveData done [16:05:42]OFD Sender: Processing packet 49234 [packets to send 12, broken 11] [16:05:42]ProducePacketName [16:05:42]name=ofd_packets/00049234 [16:05:42]OFD Sender: To server: pG, [16:05:42]CommunicateWithHost lk.salyk.kg:30040 [16:05:42]ConnectInit lk.salyk.kg [16:05:42]ExternCall_PrintAddStr [16:05:42]wPrintStart [16:05:42]Write to MH i2c: 01 00 00 AC 7D 29 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: 01 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: 01 07 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: 01 07 00 AC 7D 00 00 00 00 00 FF 0F 3E [16:05:42]RasterBufferAndPrint [16:05:42]line Счет N : (1)216337 [16:05:42]line ИНН: 02508201610067 [16:05:42]line Контрольно-Кассовый Чек [16:05:42]line ПРОДАЖА [16:05:42]line ТРК (МРК, ГНК) : 12 [16:05:42]line Товар: 2710124130 [16:05:42]line Аи-92-К-5 [16:05:42]line 6.640 * 60.30 [16:05:42]line = 400.39 [16:05:42]line НДС 12% НСП 1% [16:05:42]line > о реализуемом товаре [16:05:42]line ОКРУГЛЕНИЕ: -0.39 [16:05:42]line ИТОГО: 400.00 [16:05:42]line Внесено: 400.00 [16:05:42]line СДАЧА: 0.00 [16:05:42]line НСП 1% : 3.54 [16:05:42]line НДС 12% : 42.52 [16:05:42]line Наличными: 400.00 [16:05:42]line Безнал.: 0.00 [16:05:42]line Место: АЗС № 102 "Партнер Нефть" [16:05:42]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:05:43]line СНО: Общий режим [16:05:43]line Чек 110 30.01.2024 16:06 [16:05:43]line Смена: 246 ФФД: 1.0 [16:05:43]line ЗНМ: 0300000040 [16:05:43]line РНМ: 0000000000092723 [16:05:43]line Версия ККМ: 001 [16:05:43]line ФМ: 0000000000875060 [16:05:43]line ФД: 49234 [16:05:43]line ФПД: 269036380751289 [16:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T160600&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49234&fm=269036380751289&tin=02508201610067®Number=0000000000092723&sum=40000 [16:05:43]Connected sock=11 [16:05: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 36 30 0F 01 00 00 6A DE 07 01 6F 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 68 1E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 52 C0 00 00 35 04 06 00 F4 AF E9 E8 05 B9 3D B5 B0 51 9E 3D 18 90 [16:05:43]written 0, free lines is 4095 [16:05: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 36 30 4F 00 00 00 17 AA 47 00 4A 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 52 C0 00 00 F4 03 04 00 5D CA B8 65 B6 04 01 00 00 46 BF D4 20 F8 33 2F 4C [16:05:43]CommunicateWithHost err = 0 [16:05:43]CheckOFDResponse [16:05:43]1017 (14) - 77093643461234 [16:05:43]1041 (16) - 0000000000875060 [16:05:43]1040 (4) - 49234 [16:05:43]1012 (4) - 30.01.2024 10:07 [16:05:43]1206 (1) - 0 [16:05:43]OFD Sender: Remove packet 49234 [16:05:43]ProducePacketName [16:05:43]name=ofd_packets/00049234 [16:05:43]NVStorageDeleteData [16:05:43]Write to MH i2c: 01 00 00 D7 7D 54 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: 01 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: 01 07 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: 01 07 00 D7 7D 00 00 00 00 00 EF 0C 56 [16:05:43]RasterBufferAndPrint [16:05:43]line [16:05:43]line [16:05:43]line [16:05:43]line [16:05:43]line [16:05:43]written 0, free lines is 3317 [16:05:43]MH_Cut [16:05:43]Write to MH i2c: D1 01 00 DE 7D 01 2D [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: D1 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: D1 01 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: D1 01 00 DE 7D 00 2C [16:05:43]Write to MH i2c: 01 00 00 DF 7D 5C [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]OFD Sender: No OFD packet to send [16:05:44]*** Cut start [16:05:44]*** Partial cut [16:05:44]*** CUTSNS_PIN = 1 [16:05:44]*** CUTSNS_PIN = 0 [16:05:44]*** Brake cut motor [16:05:44]Read from MH i2c: 01 [16:05:44]MH_I2C_Read... [16:05:44]*** Stop cut motor [16:05:45]*** Cut end [16:05:45]Read from MH i2c: 01 07 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 07 00 DF 7D 00 00 00 00 00 FF 0F 71 [16:05:45]process_action close_receipt done [16:05:45]requested_data is exist [16:05:45]produce_requested_data [16:05:45]requested_item fm.sn is exist - process it [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 11 00 00 [16:05:45]Write to MH i2c: E2 08 00 E0 7D 80 11 00 00 00 00 00 00 D7 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 E0 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 24 [16:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:05:45]wFMCommunicate OK [16:05:45]requested_item fd.num is exist - process it [16:05:45]SAM_PROTO_GetFieldsCounters [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 00 00 [16:05:45]Write to MH i2c: E2 08 00 E1 7D 80 13 00 00 00 00 00 00 DA [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 62 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 62 00 E1 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 52 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:05: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 52 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetFieldsCounters done [16:05:45]requested_item shift.num is exist - process it [16:05:45]requested_item shift.opened is exist - process it [16:05:45]req_shift_opened [16:05:45]FM_GetShiftState [16:05:45]SAM_PROTO_GetShiftState [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 01 00 [16:05:45]Write to MH i2c: E2 08 00 E2 7D 80 13 01 00 00 00 00 00 DC [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0E 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0E 00 E2 7D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 04 [16:05:45]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetShiftState done [16:05:45]FM_GetShiftState done [16:05:45]req_shift_opened done [16:05:45]requested_item shift.open_date is exist - process it [16:05:45]req_shift_open_date [16:05:45]req_shift_open_date done [16:05:45]produce_requested_data done [16:05:45]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49234,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [16:05:45]process_action_free close_receipt [16:05:45]json_value_free [16:05:45]json_value_free done [16:05:45]process_json_proto returns [16:05:45]Send response to host [16:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49234,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [16:05:45]free response buf [16:05:45]execute_script done [16:05:45]execute_script returns [16:05:45]free content buf [16:05:45]Sock 7.Close socket [16:05:45]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:37]accept exits with 9 [16:12:37]New connection [16:12:37]New thread 3066670436 created [16:12:37]Thread 3066813796 joined [16:12:37]Waiting for new connection... [16:12:37] Sock 9.Parse request [16:12:37]Sock 9.Check first char [16:12:37]Sock 9.First char is OK [16:12:37]request: POST /json_proto HTTP/1.0 [16:12:37]Method: POST [16:12:37]URL: /json_proto [16:12:37]Method is POST - this is cgi request [16:12:37]url: /json_proto [16:12:37]query_string will be loaded in cgi processing [16:12:37]execute_cgi json_proto POST (null) [16:12:37]execute_cgi path=json_proto method=POST [16:12:37]POST find Content-Length [16:12:37]Host: 172.17.56.67:8080 [16:12:37]Content-Length: 677 [16:12:37]Content-Type: application/json [16:12:37] [16:12:37]POST finish read [16:12:37]Found Content-Length = 677 [16:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.990, "sum" : 361.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 361.00, "total" : 361.00, "payments": [ { "type": 0, "sum" : 361.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:37]execute_script... [16:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.990, "sum" : 361.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 361.00, "total" : 361.00, "payments": [ { "type": 0, "sum" : 361.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:37]POST & json_proto [16:12:37]process_json_proto [16:12:37]json parsed OK: [16:12:37]protocol is kg_v1.0 [16:12:37]action value=close_receipt [16:12:37]process_action close_receipt [16:12:37]cmd_close_receipt [16:12:37]MH_GetDate [16:12:37]Write to MH i2c: F0 00 00 E3 7D 4F [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: F0 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: F0 09 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: F0 09 00 E3 7D 00 08 20 B9 65 26 5D 9E 65 24 [16:12:37]GetLastDocTimeStamp 1706630760 [16:12:37]current date 1706631176 [16:12:37]FM_GetShiftState [16:12:37]SAM_PROTO_GetShiftState [16:12:37]wFMCommunicate request_size=4 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 13 01 00 [16:12:37]Write to MH i2c: E2 08 00 E4 7D 80 13 01 00 00 00 00 00 DE [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 0E 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 0E 00 E4 7D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 06 [16:12:37]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:12:37]wFMCommunicate OK [16:12:37]SAM_PROTO_GetShiftState done [16:12:37]FM_GetShiftState done [16:12:37]opened in 1706572995 [16:12:37]opened+sec_in_day 1706659395 [16:12:37]quantity*price = 36119 [16:12:37]sum+1 = 36121 [16:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 361.00 Внесено: 361.00 СДАЧА: 0.00 НСП 1% : 3.20 НДС 12% : 38.36 Наличными: 361.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 111 30.01.2024 16:12 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49235 ФПД: 144467146786605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T161256&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49235&fm=144467146786605&tin=02508201610067®Number=0000000000092723&sum=36100 [16:12:38]StoreToDocumentArchive [16:12:38]shift 246 fd 49235 [16:12:38]save to /storage/0246/doc_00049235 [16:12:38]save last doc name /storage/0246/doc_00049235 to /storage/kkm_last_doc_name [16:12:38]save OK [16:12:38]Clear old archive folders... [16:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:38]tlvbuf is 011F85B0 [16:12:38]SAM_PROTO_ClearQueue [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 09 00 00 [16:12:38]Write to MH i2c: E2 08 00 F1 7D 80 09 00 00 00 00 00 00 E0 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 03 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 03 00 F1 7D 00 90 00 E2 [16:12:38]RAPDU: 90 00 [16:12:38]wFMCommunicate OK [16:12:38]SAM_PROTO_ClearQueue done [16:12:38]KKMCreateOFDPacket [16:12:38]OFDProtocolAddRootSTLVToBuf [16:12:38]FM_MakeSignedData [16:12:38]FM_MakeSignedData [16:12:38]SAM_PROTO_SignData [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 0D 01 02 [16:12:38]Write to MH i2c: E2 08 00 F2 7D 80 0D 01 02 00 00 00 00 E8 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 03 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 03 00 F2 7D 00 90 00 E3 [16:12:38]RAPDU: 90 00 [16:12:38]wFMCommunicate OK [16:12:38]wFMCommunicate request_size=255 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 08 20 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 53 C0 00 00 35 04 06 00 83 [16:12:38]Write to MH i2c: E2 02 01 F3 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 08 20 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 53 C0 00 00 35 04 06 00 83 00 00 5F [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 03 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 03 00 F3 7D 00 90 00 E4 [16:12:38]RAPDU: 90 00 [16:12:38]wFMCommunicate OK [16:12:38]wFMCommunicate request_size=10 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 0D 02 02 05 64 60 F7 47 2D [16:12:38]Write to MH i2c: E2 0D 00 F4 7D 80 0D 02 02 05 00 64 60 F7 47 2D 00 00 24 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:39]Read from MH i2c: E2 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 03 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 03 00 F4 7D 00 90 00 E5 [16:12:39]RAPDU: 90 00 [16:12:39]wFMCommunicate OK [16:12:39]wFMCommunicate request_size=4 [16:12:39]MH_SAM_APDU [16:12:39]CAPDU: 80 0D 03 02 [16:12:39]Write to MH i2c: E2 08 00 F5 7D 80 0D 03 02 00 00 00 00 ED [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:39]Read from MH i2c: E2 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 0B 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 0B 00 F5 7D 00 AB 62 F2 AA A1 67 10 4A 90 00 F9 [16:12:39]RAPDU: AB 62 F2 AA A1 67 10 4A 90 00 [16:12:39]wFMCommunicate OK [16:12:39]SAM_PROTO_SignData done [16:12:39]FM_MakeSignedData done [16:12:39]CreateOFDProtocolMessage [16:12:39]wFMCommunicate request_size=4 [16:12:39]MH_SAM_APDU [16:12:39]CAPDU: 80 11 00 00 [16:12:39]Write to MH i2c: E2 08 00 F6 7D 80 11 00 00 00 00 00 00 ED [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:39]Read from MH i2c: E2 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 17 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: E2 17 00 F6 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3A [16:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:12:39]wFMCommunicate OK [16:12:39]CreateOFDProtocolMessage done [16:12:39]OFDSenderStorePacket 49235 [16:12:39]StoreOFDPacket docnum=49235 [16:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 AC 96 07 01 D7 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 08 20 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 53 C0 00 00 35 04 06 00 83 64 60 F7 47 2D AB 62 F2 AA A1 67 10 4A [16:12:39]CheckFolder [16:12:39]dirname=/storage/ofd_packets [16:12:39]CheckFolder done [16:12:39]ProducePacketName [16:12:39]name=ofd_packets/00049235 [16:12:39]NVStorageSaveData ofd_packets/00049235 [16:12:39]File name is /storage/ofd_packets/00049235 [16:12:39]Write 301 bytes [16:12:39]NVStorageSaveData done [16:12:39]OFDSenderStorePacket done [16:12:39]KKMCreateOFDPacket done [16:12:39]NVStorageSaveData kkm_last_timestamp [16:12:39]File name is /storage/kkm_last_timestamp [16:12:39]Write 4 bytes [16:12:39]NVStorageSaveData done [16:12:39]ExternCall_PrintAddStr [16:12:39]wPrintStart [16:12:39]Write to MH i2c: 01 00 00 F7 7D 74 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: 01 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: 01 07 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: 01 07 00 F7 7D 00 00 00 00 00 FF 0F 89 [16:12:39]RasterBufferAndPrint [16:12:39]line Счет N : (1)216338 [16:12:39]line ИНН: 02508201610067 [16:12:39]line Контрольно-Кассовый Чек [16:12:39]line ПРОДАЖА [16:12:39]line ТРК (МРК, ГНК) : 12 [16:12:39]line Товар: 2710124130 [16:12:39]line Аи-92-К-5 [16:12:39]line 5.990 * 60.30 [16:12:39]line = 361.20 [16:12:39]line НДС 12% НСП 1% [16:12:39]line > о реализуемом товаре [16:12:39]line ОКРУГЛЕНИЕ: -0.20 [16:12:39]line ИТОГО: 361.00 [16:12:39]line Внесено: 361.00 [16:12:39]line СДАЧА: 0.00 [16:12:39]line НСП 1% : 3.20 [16:12:39]line НДС 12% : 38.36 [16:12:39]line Наличными: 361.00 [16:12:39]line Безнал.: 0.00 [16:12:39]line Место: АЗС № 102 "Партнер Нефть" [16:12:39]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:12:39]line СНО: Общий режим [16:12:39]line Чек 111 30.01.2024 16:12 [16:12:39]line Смена: 246 ФФД: 1.0 [16:12:39]line ЗНМ: 0300000040 [16:12:39]line РНМ: 0000000000092723 [16:12:39]line Версия ККМ: 001 [16:12:39]line ФМ: 0000000000875060 [16:12:39]line ФД: 49235 [16:12:39]line ФПД: 144467146786605 [16:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T161256&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49235&fm=144467146786605&tin=02508201610067®Number=0000000000092723&sum=36100 [16:12:39]OFD Sender: Processing packet 49235 [packets to send 12, broken 11] [16:12:39]ProducePacketName [16:12:39]name=ofd_packets/00049235 [16:12:39]OFD Sender: To server: pG, [16:12:39]CommunicateWithHost lk.salyk.kg:30040 [16:12:39]ConnectInit lk.salyk.kg [16:12:39]written 0, free lines is 4095 [16:12:39]Connected sock=10 [16:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 AC 96 07 01 D7 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 08 20 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 53 C0 00 00 35 04 06 00 83 64 60 F7 47 2D AB 62 F2 AA A1 67 10 4A [16:12: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 36 30 4F 00 00 00 80 C2 47 00 10 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 36 30 10 04 04 00 53 C0 00 00 F4 03 04 00 FE CB B8 65 B6 04 01 00 00 0B 64 98 BE 3C 51 11 86 [16:12:39]CommunicateWithHost err = 0 [16:12:39]CheckOFDResponse [16:12:39]1017 (14) - 77093643461234 [16:12:39]1041 (16) - 0000000000875060 [16:12:39]1040 (4) - 49235 [16:12:39]1012 (4) - 30.01.2024 10:14 [16:12:39]1206 (1) - 0 [16:12:39]OFD Sender: Remove packet 49235 [16:12:39]ProducePacketName [16:12:39]name=ofd_packets/00049235 [16:12:39]NVStorageDeleteData [16:12:39]Write to MH i2c: 01 00 00 22 7E A0 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: 01 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: 01 07 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: 01 07 00 22 7E 00 00 00 00 00 E8 0C 9B [16:12:39]RasterBufferAndPrint [16:12:39]line [16:12:39]line [16:12:39]line [16:12:39]line [16:12:39]line [16:12:39]written 0, free lines is 3310 [16:12:39]MH_Cut [16:12:39]Write to MH i2c: D1 01 00 29 7E 01 79 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: D1 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: D1 01 00 [16:12:39]MH_I2C_Read... [16:12:39]Read from MH i2c: D1 01 00 29 7E 00 78 [16:12:39]Write to MH i2c: 01 00 00 2A 7E A8 [16:12:39]Write i2c OK [16:12:39]MH_I2C_Read... [16:12:40]OFD Sender: No OFD packet to send [16:12:40]*** Cut start [16:12:40]*** Partial cut [16:12:40]*** CUTSNS_PIN = 1 [16:12:40]*** CUTSNS_PIN = 0 [16:12:40]*** Brake cut motor [16:12:41]Read from MH i2c: 01 [16:12:41]MH_I2C_Read... [16:12:41]*** Stop cut motor [16:12:41]*** Cut end [16:12:41]Read from MH i2c: 01 07 00 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: 01 07 00 2A 7E 00 00 00 00 00 FF 0F BD [16:12:41]process_action close_receipt done [16:12:41]requested_data is exist [16:12:41]produce_requested_data [16:12:41]requested_item fm.sn is exist - process it [16:12:41]wFMCommunicate request_size=4 [16:12:41]MH_SAM_APDU [16:12:41]CAPDU: 80 11 00 00 [16:12:41]Write to MH i2c: E2 08 00 2B 7E 80 11 00 00 00 00 00 00 23 [16:12:41]Write i2c OK [16:12:41]MH_I2C_Read... [16:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:41]Read from MH i2c: E2 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 17 00 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 17 00 2B 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 70 [16:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:12:41]wFMCommunicate OK [16:12:41]requested_item fd.num is exist - process it [16:12:41]SAM_PROTO_GetFieldsCounters [16:12:41]wFMCommunicate request_size=4 [16:12:41]MH_SAM_APDU [16:12:41]CAPDU: 80 13 00 00 [16:12:41]Write to MH i2c: E2 08 00 2C 7E 80 13 00 00 00 00 00 00 26 [16:12:41]Write i2c OK [16:12:41]MH_I2C_Read... [16:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:41]Read from MH i2c: E2 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 62 00 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 62 00 2C 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 53 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [16:12: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 53 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:41]wFMCommunicate OK [16:12:41]SAM_PROTO_GetFieldsCounters done [16:12:41]requested_item shift.num is exist - process it [16:12:41]requested_item shift.opened is exist - process it [16:12:41]req_shift_opened [16:12:41]FM_GetShiftState [16:12:41]SAM_PROTO_GetShiftState [16:12:41]wFMCommunicate request_size=4 [16:12:41]MH_SAM_APDU [16:12:41]CAPDU: 80 13 01 00 [16:12:41]Write to MH i2c: E2 08 00 2D 7E 80 13 01 00 00 00 00 00 28 [16:12:41]Write i2c OK [16:12:41]MH_I2C_Read... [16:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:41]Read from MH i2c: E2 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 0E 00 [16:12:41]MH_I2C_Read... [16:12:41]Read from MH i2c: E2 0E 00 2D 7E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 50 [16:12:41]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:12:41]wFMCommunicate OK [16:12:41]SAM_PROTO_GetShiftState done [16:12:41]FM_GetShiftState done [16:12:41]req_shift_opened done [16:12:41]requested_item shift.open_date is exist - process it [16:12:41]req_shift_open_date [16:12:41]req_shift_open_date done [16:12:41]produce_requested_data done [16:12:41]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49235,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [16:12:41]process_action_free close_receipt [16:12:41]json_value_free [16:12:41]json_value_free done [16:12:41]process_json_proto returns [16:12:41]Send response to host [16:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49235,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [16:12:41]free response buf [16:12:41]execute_script done [16:12:41]execute_script returns [16:12:41]free content buf [16:12:41]Sock 9.Close socket [16:12:41]Sock 9.Thread stoped [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:31]int [16:13:31]Write to MH i2c: 01 00 00 2E 7E AC [16:13:31]*** FLAG_PRN_KEY set [16:13:31]Write i2c OK [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 07 00 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 07 00 2E 7E 00 08 00 00 00 FF 0F C9 [16:13:31]state=0 [16:13:31]Key pressed [16:13:31]Feed [16:13:31]Write to MH i2c: D8 00 00 2F 7E 84 [16:13:31]Write i2c OK [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: D8 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: D8 01 00 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: D8 01 00 2F 7E 00 85 [16:13:31]int [16:13:31]Write to MH i2c: 01 00 00 30 7E AE [16:13:31]Write i2c OK [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 07 00 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 07 00 30 7E 00 48 00 00 00 3C 00 39 [16:13:31]state=2 [16:13:31]Key pressed [16:13:31]int [16:13:31]Write to MH i2c: 01 00 00 31 7E AF [16:13:31]*** FLAG_PRN_KEY reset [16:13:31]Write i2c OK [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 07 00 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 07 00 31 7E 00 00 00 00 00 F6 0F BB [16:13:31]state=2 [16:13:31]Stop feed [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:27]accept exits with 7 [16:16:27]New connection [16:16:27]New thread 3066813796 created [16:16:27]Thread 3066670436 joined [16:16:27]Waiting for new connection... [16:16:27] Sock 7.Parse request [16:16:27]Sock 7.Check first char [16:16:27]Sock 7.First char is OK [16:16:27]request: POST /json_proto HTTP/1.0 [16:16:27]Method: POST [16:16:27]URL: /json_proto [16:16:27]Method is POST - this is cgi request [16:16:27]url: /json_proto [16:16:27]query_string will be loaded in cgi processing [16:16:27]execute_cgi json_proto POST (null) [16:16:27]execute_cgi path=json_proto method=POST [16:16:27]POST find Content-Length [16:16:27]Host: 172.17.56.67:8080 [16:16:27]Content-Length: 677 [16:16:27]Content-Type: application/json [16:16:27] [16:16:27]POST finish read [16:16:27]Found Content-Length = 677 [16:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.810, "sum" : 350.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:27]execute_script... [16:16:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.810, "sum" : 350.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:27]POST & json_proto [16:16:27]process_json_proto [16:16:27]json parsed OK: [16:16:27]protocol is kg_v1.0 [16:16:27]action value=close_receipt [16:16:27]process_action close_receipt [16:16:27]cmd_close_receipt [16:16:27]MH_GetDate [16:16:27]Write to MH i2c: F0 00 00 32 7E 9F [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: F0 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: F0 09 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: F0 09 00 32 7E 00 EE 20 B9 65 26 5D 9E 65 5A [16:16:27]GetLastDocTimeStamp 1706631176 [16:16:27]current date 1706631406 [16:16:27]FM_GetShiftState [16:16:27]SAM_PROTO_GetShiftState [16:16:27]wFMCommunicate request_size=4 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 13 01 00 [16:16:27]Write to MH i2c: E2 08 00 33 7E 80 13 01 00 00 00 00 00 2E [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 0E 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 0E 00 33 7E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 56 [16:16:27]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:16:27]wFMCommunicate OK [16:16:27]SAM_PROTO_GetShiftState done [16:16:27]FM_GetShiftState done [16:16:27]opened in 1706572995 [16:16:27]opened+sec_in_day 1706659395 [16:16:27]quantity*price = 35034 [16:16:27]sum+1 = 35035 [16:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 112 30.01.2024 16:16 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49236 ФПД: 166158804996581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T161646&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49236&fm=166158804996581&tin=02508201610067®Number=0000000000092723&sum=35000 [16:16:28]StoreToDocumentArchive [16:16:28]shift 246 fd 49236 [16:16:28]save to /storage/0246/doc_00049236 [16:16:28]save last doc name /storage/0246/doc_00049236 to /storage/kkm_last_doc_name [16:16:28]save OK [16:16:28]Clear old archive folders... [16:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:28]tlvbuf is 011DB010 [16:16:28]SAM_PROTO_ClearQueue [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 09 00 00 [16:16:28]Write to MH i2c: E2 08 00 40 7E 80 09 00 00 00 00 00 00 30 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 03 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 03 00 40 7E 00 90 00 32 [16:16:28]RAPDU: 90 00 [16:16:28]wFMCommunicate OK [16:16:28]SAM_PROTO_ClearQueue done [16:16:28]KKMCreateOFDPacket [16:16:28]OFDProtocolAddRootSTLVToBuf [16:16:28]FM_MakeSignedData [16:16:28]FM_MakeSignedData [16:16:28]SAM_PROTO_SignData [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 0D 01 02 [16:16:28]Write to MH i2c: E2 08 00 41 7E 80 0D 01 02 00 00 00 00 38 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 03 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 03 00 41 7E 00 90 00 33 [16:16:28]RAPDU: 90 00 [16:16:28]wFMCommunicate OK [16:16:28]wFMCommunicate request_size=255 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 16 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DA 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EE 20 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 54 C0 00 00 35 04 06 00 97 [16:16:28]Write to MH i2c: E2 02 01 42 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 16 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DA 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EE 20 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 54 C0 00 00 35 04 06 00 97 00 00 93 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 03 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 03 00 42 7E 00 90 00 34 [16:16:28]RAPDU: 90 00 [16:16:28]wFMCommunicate OK [16:16:28]wFMCommunicate request_size=10 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 0D 02 02 05 1E DC 8C 51 E5 [16:16:28]Write to MH i2c: E2 0D 00 43 7E 80 0D 02 02 05 00 1E DC 8C 51 E5 00 00 01 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 03 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 03 00 43 7E 00 90 00 35 [16:16:28]RAPDU: 90 00 [16:16:28]wFMCommunicate OK [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 0D 03 02 [16:16:28]Write to MH i2c: E2 08 00 44 7E 80 0D 03 02 00 00 00 00 3D [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 0B 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 0B 00 44 7E 00 A0 71 90 49 5B 1C 47 C2 90 00 A8 [16:16:28]RAPDU: A0 71 90 49 5B 1C 47 C2 90 00 [16:16:28]wFMCommunicate OK [16:16:28]SAM_PROTO_SignData done [16:16:28]FM_MakeSignedData done [16:16:28]CreateOFDProtocolMessage [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 11 00 00 [16:16:28]Write to MH i2c: E2 08 00 45 7E 80 11 00 00 00 00 00 00 3D [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:29]Read from MH i2c: E2 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: E2 17 00 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: E2 17 00 45 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8A [16:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:16:29]wFMCommunicate OK [16:16:29]CreateOFDProtocolMessage done [16:16:29]OFDSenderStorePacket 49236 [16:16:29]StoreOFDPacket docnum=49236 [16:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 40 75 07 01 0F E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 16 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DA 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EE 20 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 54 C0 00 00 35 04 06 00 97 1E DC 8C 51 E5 A0 71 90 49 5B 1C 47 C2 [16:16:29]CheckFolder [16:16:29]dirname=/storage/ofd_packets [16:16:29]CheckFolder done [16:16:29]ProducePacketName [16:16:29]name=ofd_packets/00049236 [16:16:29]NVStorageSaveData ofd_packets/00049236 [16:16:29]File name is /storage/ofd_packets/00049236 [16:16:29]Write 301 bytes [16:16:29]NVStorageSaveData done [16:16:29]OFDSenderStorePacket done [16:16:29]KKMCreateOFDPacket done [16:16:29]NVStorageSaveData kkm_last_timestamp [16:16:29]File name is /storage/kkm_last_timestamp [16:16:29]Write 4 bytes [16:16:29]NVStorageSaveData done [16:16:29]ExternCall_PrintAddStr [16:16:29]wPrintStart [16:16:29]Write to MH i2c: 01 00 00 46 7E C4 [16:16:29]Write i2c OK [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 07 00 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 07 00 46 7E 00 00 00 00 00 FF 0F D9 [16:16:29]RasterBufferAndPrint [16:16:29]line Счет N : (1)216339 [16:16:29]line ИНН: 02508201610067 [16:16:29]line Контрольно-Кассовый Чек [16:16:29]line ПРОДАЖА [16:16:29]line ТРК (МРК, ГНК) : 22 [16:16:29]line Товар: 2710124130 [16:16:29]line Аи-92-К-5 [16:16:29]line 5.810 * 60.30 [16:16:29]line = 350.34 [16:16:29]line НДС 12% НСП 1% [16:16:29]line > о реализуемом товаре [16:16:29]line ОКРУГЛЕНИЕ: -0.34 [16:16:29]line ИТОГО: 350.00 [16:16:29]line Внесено: 350.00 [16:16:29]line СДАЧА: 0.00 [16:16:29]line НСП 1% : 3.10 [16:16:29]line НДС 12% : 37.20 [16:16:29]line Наличными: 350.00 [16:16:29]line Безнал.: 0.00 [16:16:29]line Место: АЗС № 102 "Партнер Нефть" [16:16:29]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:16:29]line СНО: Общий режим [16:16:29]line Чек 112 30.01.2024 16:16 [16:16:29]line Смена: 246 ФФД: 1.0 [16:16:29]line ЗНМ: 0300000040 [16:16:29]line РНМ: 0000000000092723 [16:16:29]line Версия ККМ: 001 [16:16:29]line ФМ: 0000000000875060 [16:16:29]line ФД: 49236 [16:16:29]line ФПД: 166158804996581 [16:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T161646&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49236&fm=166158804996581&tin=02508201610067®Number=0000000000092723&sum=35000 [16:16:29]OFD Sender: Processing packet 49236 [packets to send 12, broken 11] [16:16:29]ProducePacketName [16:16:29]name=ofd_packets/00049236 [16:16:29]OFD Sender: To server: pG, [16:16:29]CommunicateWithHost lk.salyk.kg:30040 [16:16:29]ConnectInit lk.salyk.kg [16:16:29]written 0, free lines is 4095 [16:16:29]Connected sock=10 [16:16:29]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 36 30 0F 01 00 00 40 75 07 01 0F E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 16 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DA 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EE 20 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 54 C0 00 00 35 04 06 00 97 1E DC 8C 51 E5 A0 71 90 49 5B 1C 47 C2 [16:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 2B 5F 47 00 66 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 36 30 10 04 04 00 54 C0 00 00 F4 03 04 00 E4 CC B8 65 B6 04 01 00 00 47 45 33 C6 19 C1 DF 07 [16:16:29]CommunicateWithHost err = 0 [16:16:29]CheckOFDResponse [16:16:29]1017 (14) - 77093643461234 [16:16:29]1041 (16) - 0000000000875060 [16:16:29]1040 (4) - 49236 [16:16:29]1012 (4) - 30.01.2024 10:18 [16:16:29]1206 (1) - 0 [16:16:29]OFD Sender: Remove packet 49236 [16:16:29]ProducePacketName [16:16:29]name=ofd_packets/00049236 [16:16:29]NVStorageDeleteData [16:16:29]Write to MH i2c: 01 00 00 71 7E EF [16:16:29]Write i2c OK [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 07 00 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 07 00 71 7E 00 00 00 00 00 EF 0C F1 [16:16:29]RasterBufferAndPrint [16:16:29]line [16:16:29]line [16:16:29]line [16:16:29]line [16:16:29]line [16:16:29]written 0, free lines is 3318 [16:16:29]MH_Cut [16:16:29]Write to MH i2c: D1 01 00 78 7E 01 C8 [16:16:29]Write i2c OK [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: D1 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: D1 01 00 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: D1 01 00 78 7E 00 C7 [16:16:29]Write to MH i2c: 01 00 00 79 7E F7 [16:16:29]Write i2c OK [16:16:29]MH_I2C_Read... [16:16:30]OFD Sender: No OFD packet to send [16:16:30]*** Cut start [16:16:30]*** Partial cut [16:16:30]*** CUTSNS_PIN = 1 [16:16:30]*** CUTSNS_PIN = 0 [16:16:30]*** Brake cut motor [16:16:31]Read from MH i2c: 01 [16:16:31]MH_I2C_Read... [16:16:31]*** Stop cut motor [16:16:31]*** Cut end [16:16:31]Read from MH i2c: 01 07 00 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: 01 07 00 79 7E 00 00 00 00 00 FF 0F 0C [16:16:31]process_action close_receipt done [16:16:31]requested_data is exist [16:16:31]produce_requested_data [16:16:31]requested_item fm.sn is exist - process it [16:16:31]wFMCommunicate request_size=4 [16:16:31]MH_SAM_APDU [16:16:31]CAPDU: 80 11 00 00 [16:16:31]Write to MH i2c: E2 08 00 7A 7E 80 11 00 00 00 00 00 00 72 [16:16:31]Write i2c OK [16:16:31]MH_I2C_Read... [16:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:31]Read from MH i2c: E2 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: E2 17 00 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: E2 17 00 7A 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BF [16:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:16:31]wFMCommunicate OK [16:16:31]requested_item fd.num is exist - process it [16:16:31]SAM_PROTO_GetFieldsCounters [16:16:31]wFMCommunicate request_size=4 [16:16:31]MH_SAM_APDU [16:16:31]CAPDU: 80 13 00 00 [16:16:31]Write to MH i2c: E2 08 00 7B 7E 80 13 00 00 00 00 00 00 75 [16:16:31]Write i2c OK [16:16:31]MH_I2C_Read... [16:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:31]Read from MH i2c: E2 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: E2 62 00 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: E2 62 00 7B 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 54 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [16:16: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 54 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:31]wFMCommunicate OK [16:16:31]SAM_PROTO_GetFieldsCounters done [16:16:31]requested_item shift.num is exist - process it [16:16:31]requested_item shift.opened is exist - process it [16:16:31]req_shift_opened [16:16:31]FM_GetShiftState [16:16:31]SAM_PROTO_GetShiftState [16:16:31]wFMCommunicate request_size=4 [16:16:31]MH_SAM_APDU [16:16:31]CAPDU: 80 13 01 00 [16:16:31]Write to MH i2c: E2 08 00 7C 7E 80 13 01 00 00 00 00 00 77 [16:16:31]Write i2c OK [16:16:31]MH_I2C_Read... [16:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:31]Read from MH i2c: E2 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: E2 0E 00 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: E2 0E 00 7C 7E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 9F [16:16:31]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:16:31]wFMCommunicate OK [16:16:31]SAM_PROTO_GetShiftState done [16:16:31]FM_GetShiftState done [16:16:31]req_shift_opened done [16:16:31]requested_item shift.open_date is exist - process it [16:16:31]req_shift_open_date [16:16:31]req_shift_open_date done [16:16:31]produce_requested_data done [16:16:31]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49236,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [16:16:31]process_action_free close_receipt [16:16:31]json_value_free [16:16:31]json_value_free done [16:16:31]process_json_proto returns [16:16:31]Send response to host [16:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49236,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [16:16:31]free response buf [16:16:31]execute_script done [16:16:31]execute_script returns [16:16:31]free content buf [16:16:31]Sock 7.Close socket [16:16:31]Sock 7.Thread stoped [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:04]accept exits with 9 [16:29:04]New connection [16:29:04]New thread 3066670436 created [16:29:04]Thread 3066813796 joined [16:29:04]Waiting for new connection... [16:29:04] Sock 9.Parse request [16:29:04]Sock 9.Check first char [16:29:04]Sock 9.First char is OK [16:29:04]request: POST /json_proto HTTP/1.0 [16:29:04]Method: POST [16:29:04]URL: /json_proto [16:29:04]Method is POST - this is cgi request [16:29:04]url: /json_proto [16:29:04]query_string will be loaded in cgi processing [16:29:04]execute_cgi json_proto POST (null) [16:29:04]execute_cgi path=json_proto method=POST [16:29:04]POST find Content-Length [16:29:04]Host: 172.17.56.67:8080 [16:29:04]Content-Length: 677 [16:29:04]Content-Type: application/json [16:29:04] [16:29:04]POST finish read [16:29:04]Found Content-Length = 677 [16:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.480, "sum" : 270.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:04]execute_script... [16:29:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.480, "sum" : 270.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:04]POST & json_proto [16:29:04]process_json_proto [16:29:04]json parsed OK: [16:29:04]protocol is kg_v1.0 [16:29:04]action value=close_receipt [16:29:04]process_action close_receipt [16:29:04]cmd_close_receipt [16:29:04]MH_GetDate [16:29:04]Write to MH i2c: F0 00 00 7D 7E EA [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: F0 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: F0 09 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: F0 09 00 7D 7E 00 E3 23 B9 65 26 5D 9E 65 9D [16:29:04]GetLastDocTimeStamp 1706631406 [16:29:04]current date 1706632163 [16:29:04]FM_GetShiftState [16:29:04]SAM_PROTO_GetShiftState [16:29:04]wFMCommunicate request_size=4 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 13 01 00 [16:29:04]Write to MH i2c: E2 08 00 7E 7E 80 13 01 00 00 00 00 00 79 [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 0E 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 0E 00 7E 7E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A1 [16:29:04]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:29:04]wFMCommunicate OK [16:29:04]SAM_PROTO_GetShiftState done [16:29:04]FM_GetShiftState done [16:29:04]opened in 1706572995 [16:29:04]opened+sec_in_day 1706659395 [16:29:04]quantity*price = 27014 [16:29:04]sum+1 = 27015 [16:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.69 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 113 30.01.2024 16:29 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49237 ФПД: 209327584822924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T162923&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49237&fm=209327584822924&tin=02508201610067®Number=0000000000092723&sum=27000 [16:29:05]StoreToDocumentArchive [16:29:05]shift 246 fd 49237 [16:29:05]save to /storage/0246/doc_00049237 [16:29:05]save last doc name /storage/0246/doc_00049237 to /storage/kkm_last_doc_name [16:29:05]save OK [16:29:05]Clear old archive folders... [16:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:05]tlvbuf is 0121E450 [16:29:05]SAM_PROTO_ClearQueue [16:29:05]wFMCommunicate request_size=4 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 09 00 00 [16:29:05]Write to MH i2c: E2 08 00 8B 7E 80 09 00 00 00 00 00 00 7B [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 8B 7E 00 90 00 7D [16:29:05]RAPDU: 90 00 [16:29:05]wFMCommunicate OK [16:29:05]SAM_PROTO_ClearQueue done [16:29:05]KKMCreateOFDPacket [16:29:05]OFDProtocolAddRootSTLVToBuf [16:29:05]FM_MakeSignedData [16:29:05]FM_MakeSignedData [16:29:05]SAM_PROTO_SignData [16:29:05]wFMCommunicate request_size=4 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 0D 01 02 [16:29:05]Write to MH i2c: E2 08 00 8C 7E 80 0D 01 02 00 00 00 00 83 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 8C 7E 00 90 00 7E [16:29:05]RAPDU: 90 00 [16:29:05]wFMCommunicate OK [16:29:05]wFMCommunicate request_size=255 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E3 23 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 55 C0 00 00 35 04 06 00 BE [16:29:05]Write to MH i2c: E2 02 01 8D 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E3 23 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 55 C0 00 00 35 04 06 00 BE 00 00 F9 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]OFD Sender: No OFD packet to send [16:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 8D 7E 00 90 00 7F [16:29:05]RAPDU: 90 00 [16:29:05]wFMCommunicate OK [16:29:05]wFMCommunicate request_size=10 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 0D 02 02 05 61 E0 55 C6 8C [16:29:05]Write to MH i2c: E2 0D 00 8E 7E 80 0D 02 02 05 00 61 E0 55 C6 8C 00 00 78 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 8E 7E 00 90 00 80 [16:29:05]RAPDU: 90 00 [16:29:05]wFMCommunicate OK [16:29:05]wFMCommunicate request_size=4 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 0D 03 02 [16:29:05]Write to MH i2c: E2 08 00 8F 7E 80 0D 03 02 00 00 00 00 88 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 0B 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 0B 00 8F 7E 00 75 D4 FB 15 35 C7 4F 80 90 00 AD [16:29:05]RAPDU: 75 D4 FB 15 35 C7 4F 80 90 00 [16:29:05]wFMCommunicate OK [16:29:05]SAM_PROTO_SignData done [16:29:05]FM_MakeSignedData done [16:29:05]CreateOFDProtocolMessage [16:29:05]wFMCommunicate request_size=4 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 11 00 00 [16:29:05]Write to MH i2c: E2 08 00 90 7E 80 11 00 00 00 00 00 00 88 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 17 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 17 00 90 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D5 [16:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:29:05]wFMCommunicate OK [16:29:05]CreateOFDProtocolMessage done [16:29:05]OFDSenderStorePacket 49237 [16:29:05]StoreOFDPacket docnum=49237 [16:29:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 AA BB 07 01 D7 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 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E3 23 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 55 C0 00 00 35 04 06 00 BE 61 E0 55 C6 8C 75 D4 FB 15 35 C7 4F 80 [16:29:05]CheckFolder [16:29:05]dirname=/storage/ofd_packets [16:29:05]CheckFolder done [16:29:05]ProducePacketName [16:29:05]name=ofd_packets/00049237 [16:29:05]NVStorageSaveData ofd_packets/00049237 [16:29:05]File name is /storage/ofd_packets/00049237 [16:29:05]Write 301 bytes [16:29:05]NVStorageSaveData done [16:29:05]OFDSenderStorePacket done [16:29:05]KKMCreateOFDPacket done [16:29:05]NVStorageSaveData kkm_last_timestamp [16:29:05]File name is /storage/kkm_last_timestamp [16:29:06]Write 4 bytes [16:29:06]NVStorageSaveData done [16:29:06]ExternCall_PrintAddStr [16:29:06]wPrintStart [16:29:06]Write to MH i2c: 01 00 00 91 7E 0F [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: 01 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: 01 07 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: 01 07 00 91 7E 00 00 00 00 00 FF 0F 24 [16:29:06]RasterBufferAndPrint [16:29:06]line Счет N : (1)216340 [16:29:06]line ИНН: 02508201610067 [16:29:06]line Контрольно-Кассовый Чек [16:29:06]line ПРОДАЖА [16:29:06]line ТРК (МРК, ГНК) : 12 [16:29:06]line Товар: 2710124130 [16:29:06]line Аи-92-К-5 [16:29:06]line 4.480 * 60.30 [16:29:06]line = 270.14 [16:29:06]line НДС 12% НСП 1% [16:29:06]line > о реализуемом товаре [16:29:06]line ОКРУГЛЕНИЕ: -0.14 [16:29:06]line ИТОГО: 270.00 [16:29:06]line Внесено: 270.00 [16:29:06]line СДАЧА: 0.00 [16:29:06]line НСП 1% : 2.39 [16:29:06]line НДС 12% : 28.69 [16:29:06]line Наличными: 270.00 [16:29:06]line Безнал.: 0.00 [16:29:06]line Место: АЗС № 102 "Партнер Нефть" [16:29:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:29:06]line СНО: Общий режим [16:29:06]line Чек 113 30.01.2024 16:29 [16:29:06]line Смена: 246 ФФД: 1.0 [16:29:06]line ЗНМ: 0300000040 [16:29:06]line РНМ: 0000000000092723 [16:29:06]line Версия ККМ: 001 [16:29:06]line ФМ: 0000000000875060 [16:29:06]line ФД: 49237 [16:29:06]line ФПД: 209327584822924 [16:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T162923&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49237&fm=209327584822924&tin=02508201610067®Number=0000000000092723&sum=27000 [16:29:06]OFD Sender: Processing packet 49237 [packets to send 12, broken 11] [16:29:06]ProducePacketName [16:29:06]name=ofd_packets/00049237 [16:29:06]OFD Sender: To server: pG, [16:29:06]CommunicateWithHost lk.salyk.kg:30040 [16:29:06]ConnectInit lk.salyk.kg [16:29:06]written 0, free lines is 4095 [16:29:06]Connected sock=10 [16:29:06]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 36 30 0F 01 00 00 AA BB 07 01 D7 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 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E3 23 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 55 C0 00 00 35 04 06 00 BE 61 E0 55 C6 8C 75 D4 FB 15 35 C7 4F 80 [16:29: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 36 30 4F 00 00 00 2C 2F 47 00 92 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 55 C0 00 00 F4 03 04 00 D8 CF B8 65 B6 04 01 00 00 B4 55 F1 AD D2 6B CC 8F [16:29:06]CommunicateWithHost err = 0 [16:29:06]CheckOFDResponse [16:29:06]1017 (14) - 77093643461234 [16:29:06]1041 (16) - 0000000000875060 [16:29:06]1040 (4) - 49237 [16:29:06]1012 (4) - 30.01.2024 10:30 [16:29:06]1206 (1) - 0 [16:29:06]OFD Sender: Remove packet 49237 [16:29:06]ProducePacketName [16:29:06]name=ofd_packets/00049237 [16:29:06]NVStorageDeleteData [16:29:06]Write to MH i2c: 01 00 00 BC 7E 3A [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: 01 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: 01 07 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: 01 07 00 BC 7E 00 00 00 00 00 EC 0C 39 [16:29:06]RasterBufferAndPrint [16:29:06]line [16:29:06]line [16:29:06]line [16:29:06]line [16:29:06]line [16:29:06]written 0, free lines is 3314 [16:29:06]MH_Cut [16:29:06]Write to MH i2c: D1 01 00 C3 7E 01 13 [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: D1 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: D1 01 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: D1 01 00 C3 7E 00 12 [16:29:06]Write to MH i2c: 01 00 00 C4 7E 42 [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:07]OFD Sender: No OFD packet to send [16:29:07]*** Cut start [16:29:07]*** Partial cut [16:29:07]*** CUTSNS_PIN = 1 [16:29:07]*** CUTSNS_PIN = 0 [16:29:07]*** Brake cut motor [16:29:08]Read from MH i2c: 01 [16:29:08]MH_I2C_Read... [16:29:08]*** Stop cut motor [16:29:08]*** Cut end [16:29:08]Read from MH i2c: 01 07 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 C4 7E 00 00 00 00 00 FF 0F 57 [16:29:08]process_action close_receipt done [16:29:08]requested_data is exist [16:29:08]produce_requested_data [16:29:08]requested_item fm.sn is exist - process it [16:29:08]wFMCommunicate request_size=4 [16:29:08]MH_SAM_APDU [16:29:08]CAPDU: 80 11 00 00 [16:29:08]Write to MH i2c: E2 08 00 C5 7E 80 11 00 00 00 00 00 00 BD [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 17 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 17 00 C5 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0A [16:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:29:08]wFMCommunicate OK [16:29:08]requested_item fd.num is exist - process it [16:29:08]SAM_PROTO_GetFieldsCounters [16:29:08]wFMCommunicate request_size=4 [16:29:08]MH_SAM_APDU [16:29:08]CAPDU: 80 13 00 00 [16:29:08]Write to MH i2c: E2 08 00 C6 7E 80 13 00 00 00 00 00 00 C0 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 62 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 62 00 C6 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 55 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:29: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 55 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:08]wFMCommunicate OK [16:29:08]SAM_PROTO_GetFieldsCounters done [16:29:08]requested_item shift.num is exist - process it [16:29:08]requested_item shift.opened is exist - process it [16:29:08]req_shift_opened [16:29:08]FM_GetShiftState [16:29:08]SAM_PROTO_GetShiftState [16:29:08]wFMCommunicate request_size=4 [16:29:08]MH_SAM_APDU [16:29:08]CAPDU: 80 13 01 00 [16:29:08]Write to MH i2c: E2 08 00 C7 7E 80 13 01 00 00 00 00 00 C2 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 0E 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 0E 00 C7 7E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 EA [16:29:08]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:29:08]wFMCommunicate OK [16:29:08]SAM_PROTO_GetShiftState done [16:29:08]FM_GetShiftState done [16:29:08]req_shift_opened done [16:29:08]requested_item shift.open_date is exist - process it [16:29:08]req_shift_open_date [16:29:08]req_shift_open_date done [16:29:08]produce_requested_data done [16:29:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49237,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [16:29:08]process_action_free close_receipt [16:29:08]json_value_free [16:29:08]json_value_free done [16:29:08]process_json_proto returns [16:29:08]Send response to host [16:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49237,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [16:29:08]free response buf [16:29:08]execute_script done [16:29:08]execute_script returns [16:29:08]free content buf [16:29:08]Sock 9.Close socket [16:29:08]Sock 9.Thread stoped [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]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:14]accept exits with 7 [16:54:14]New connection [16:54:14]New thread 3066813796 created [16:54:14]Thread 3066670436 joined [16:54:14]Waiting for new connection... [16:54:14] Sock 7.Parse request [16:54:14]Sock 7.Check first char [16:54:14]Sock 7.First char is OK [16:54:14]request: POST /json_proto HTTP/1.0 [16:54:14]Method: POST [16:54:14]URL: /json_proto [16:54:14]Method is POST - this is cgi request [16:54:14]url: /json_proto [16:54:14]query_string will be loaded in cgi processing [16:54:14]execute_cgi json_proto POST (null) [16:54:14]execute_cgi path=json_proto method=POST [16:54:14]POST find Content-Length [16:54:14]Host: 172.17.56.67:8080 [16:54:14]Content-Length: 677 [16:54:14]Content-Type: application/json [16:54:14] [16:54:14]POST finish read [16:54:14]Found Content-Length = 677 [16:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:54:14]execute_script... [16:54: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)216341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:54:14]POST & json_proto [16:54:14]process_json_proto [16:54:14]json parsed OK: [16:54:14]protocol is kg_v1.0 [16:54:14]action value=close_receipt [16:54:14]process_action close_receipt [16:54:14]cmd_close_receipt [16:54:14]MH_GetDate [16:54:14]Write to MH i2c: F0 00 00 C8 7E 35 [16:54:14]Write i2c OK [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 09 00 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 09 00 C8 7E 00 CA 29 B9 65 26 5D 9E 65 D5 [16:54:14]GetLastDocTimeStamp 1706632163 [16:54:14]current date 1706633674 [16:54:14]FM_GetShiftState [16:54:14]SAM_PROTO_GetShiftState [16:54:14]wFMCommunicate request_size=4 [16:54:14]MH_SAM_APDU [16:54:14]CAPDU: 80 13 01 00 [16:54:14]Write to MH i2c: E2 08 00 C9 7E 80 13 01 00 00 00 00 00 C4 [16:54:14]Write i2c OK [16:54:14]MH_I2C_Read... [16:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:14]Read from MH i2c: E2 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 0E 00 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 0E 00 C9 7E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 EC [16:54:14]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:54:14]wFMCommunicate OK [16:54:14]SAM_PROTO_GetShiftState done [16:54:14]FM_GetShiftState done [16:54:14]opened in 1706572995 [16:54:14]opened+sec_in_day 1706659395 [16:54:14]quantity*price = 30029 [16:54:14]sum+1 = 30030 [16:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 114 30.01.2024 16:54 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49238 ФПД: 215748763020685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T165434&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49238&fm=215748763020685&tin=02508201610067®Number=0000000000092723&sum=30000 [16:54:15]StoreToDocumentArchive [16:54:15]shift 246 fd 49238 [16:54:15]save to /storage/0246/doc_00049238 [16:54:15]save last doc name /storage/0246/doc_00049238 to /storage/kkm_last_doc_name [16:54:15]save OK [16:54:15]Clear old archive folders... [16:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:15]tlvbuf is 01214D40 [16:54:15]SAM_PROTO_ClearQueue [16:54:15]wFMCommunicate request_size=4 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 09 00 00 [16:54:15]Write to MH i2c: E2 08 00 D6 7E 80 09 00 00 00 00 00 00 C6 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 D6 7E 00 90 00 C8 [16:54:15]RAPDU: 90 00 [16:54:15]wFMCommunicate OK [16:54:15]SAM_PROTO_ClearQueue done [16:54:15]KKMCreateOFDPacket [16:54:15]OFDProtocolAddRootSTLVToBuf [16:54:15]FM_MakeSignedData [16:54:15]FM_MakeSignedData [16:54:15]SAM_PROTO_SignData [16:54:15]wFMCommunicate request_size=4 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 0D 01 02 [16:54:15]Write to MH i2c: E2 08 00 D7 7E 80 0D 01 02 00 00 00 00 CE [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 D7 7E 00 90 00 C9 [16:54:15]RAPDU: 90 00 [16:54:15]wFMCommunicate OK [16:54:15]wFMCommunicate request_size=255 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 CA 29 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 56 C0 00 00 35 04 06 00 C4 [16:54:15]Write to MH i2c: E2 02 01 D8 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 CA 29 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 56 C0 00 00 35 04 06 00 C4 00 00 E7 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 D8 7E 00 90 00 CA [16:54:15]RAPDU: 90 00 [16:54:15]wFMCommunicate OK [16:54:15]wFMCommunicate request_size=10 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 0D 02 02 05 38 EC 61 6D 8D [16:54:15]Write to MH i2c: E2 0D 00 D9 7E 80 0D 02 02 05 00 38 EC 61 6D 8D 00 00 5A [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 D9 7E 00 90 00 CB [16:54:16]RAPDU: 90 00 [16:54:16]wFMCommunicate OK [16:54:16]wFMCommunicate request_size=4 [16:54:16]MH_SAM_APDU [16:54:16]CAPDU: 80 0D 03 02 [16:54:16]Write to MH i2c: E2 08 00 DA 7E 80 0D 03 02 00 00 00 00 D3 [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 0B 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 0B 00 DA 7E 00 8F 08 52 F6 F5 C8 B9 56 90 00 7F [16:54:16]RAPDU: 8F 08 52 F6 F5 C8 B9 56 90 00 [16:54:16]wFMCommunicate OK [16:54:16]SAM_PROTO_SignData done [16:54:16]FM_MakeSignedData done [16:54:16]CreateOFDProtocolMessage [16:54:16]wFMCommunicate request_size=4 [16:54:16]MH_SAM_APDU [16:54:16]CAPDU: 80 11 00 00 [16:54:16]Write to MH i2c: E2 08 00 DB 7E 80 11 00 00 00 00 00 00 D3 [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 17 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 17 00 DB 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 20 [16:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:54:16]wFMCommunicate OK [16:54:16]CreateOFDProtocolMessage done [16:54:16]OFDSenderStorePacket 49238 [16:54:16]StoreOFDPacket docnum=49238 [16:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8D B4 07 01 2B 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 CA 29 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 56 C0 00 00 35 04 06 00 C4 38 EC 61 6D 8D 8F 08 52 F6 F5 C8 B9 56 [16:54:16]CheckFolder [16:54:16]dirname=/storage/ofd_packets [16:54:16]CheckFolder done [16:54:16]ProducePacketName [16:54:16]name=ofd_packets/00049238 [16:54:16]NVStorageSaveData ofd_packets/00049238 [16:54:16]File name is /storage/ofd_packets/00049238 [16:54:16]Write 301 bytes [16:54:16]NVStorageSaveData done [16:54:16]OFDSenderStorePacket done [16:54:16]KKMCreateOFDPacket done [16:54:16]NVStorageSaveData kkm_last_timestamp [16:54:16]File name is /storage/kkm_last_timestamp [16:54:16]Write 4 bytes [16:54:16]NVStorageSaveData done [16:54:16]ExternCall_PrintAddStr [16:54:16]wPrintStart [16:54:16]Write to MH i2c: 01 00 00 DC 7E 5A [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 07 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 07 00 DC 7E 00 00 00 00 00 FF 0F 6F [16:54:16]RasterBufferAndPrint [16:54:16]line Счет N : (1)216341 [16:54:16]line ИНН: 02508201610067 [16:54:16]line Контрольно-Кассовый Чек [16:54:16]line ПРОДАЖА [16:54:16]line ТРК (МРК, ГНК) : 22 [16:54:16]line Товар: 2710124130 [16:54:16]line Аи-92-К-5 [16:54:16]line 4.980 * 60.30 [16:54:16]line = 300.29 [16:54:16]line НДС 12% НСП 1% [16:54:16]line > о реализуемом товаре [16:54:16]line ОКРУГЛЕНИЕ: -0.29 [16:54:16]line ИТОГО: 300.00 [16:54:16]line Внесено: 300.00 [16:54:16]line СДАЧА: 0.00 [16:54:16]line НСП 1% : 2.66 [16:54:16]line НДС 12% : 31.89 [16:54:16]line Наличными: 300.00 [16:54:16]line Безнал.: 0.00 [16:54:16]line Место: АЗС № 102 "Партнер Нефть" [16:54:16]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:54:16]line СНО: Общий режим [16:54:16]line Чек 114 30.01.2024 16:54 [16:54:16]line Смена: 246 ФФД: 1.0 [16:54:16]line ЗНМ: 0300000040 [16:54:16]line РНМ: 0000000000092723 [16:54:16]line Версия ККМ: 001 [16:54:16]line ФМ: 0000000000875060 [16:54:16]line ФД: 49238 [16:54:16]line ФПД: 215748763020685 [16:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T165434&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49238&fm=215748763020685&tin=02508201610067®Number=0000000000092723&sum=30000 [16:54:16]OFD Sender: Processing packet 49238 [packets to send 12, broken 11] [16:54:16]ProducePacketName [16:54:16]name=ofd_packets/00049238 [16:54:16]OFD Sender: To server: pG, [16:54:16]CommunicateWithHost lk.salyk.kg:30040 [16:54:16]ConnectInit lk.salyk.kg [16:54:16]written 0, free lines is 4095 [16:54:16]Connected sock=10 [16:54: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 36 30 0F 01 00 00 8D B4 07 01 2B 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 CA 29 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 56 C0 00 00 35 04 06 00 C4 38 EC 61 6D 8D 8F 08 52 F6 F5 C8 B9 56 [16:54: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 36 30 4F 00 00 00 93 9C 47 00 0D 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 36 30 10 04 04 00 56 C0 00 00 F4 03 04 00 BF D5 B8 65 B6 04 01 00 00 F1 D6 6A 65 06 8E A7 E1 [16:54:16]CommunicateWithHost err = 0 [16:54:16]CheckOFDResponse [16:54:16]1017 (14) - 77093643461234 [16:54:16]1041 (16) - 0000000000875060 [16:54:16]1040 (4) - 49238 [16:54:16]1012 (4) - 30.01.2024 10:55 [16:54:16]1206 (1) - 0 [16:54:16]OFD Sender: Remove packet 49238 [16:54:16]ProducePacketName [16:54:16]name=ofd_packets/00049238 [16:54:16]NVStorageDeleteData [16:54:16]Write to MH i2c: 01 00 00 07 7F 86 [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 07 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 07 00 07 7F 00 00 00 00 00 EC 0C 85 [16:54:16]RasterBufferAndPrint [16:54:16]line [16:54:16]line [16:54:16]line [16:54:16]line [16:54:16]line [16:54:16]written 0, free lines is 3315 [16:54:16]MH_Cut [16:54:16]Write to MH i2c: D1 01 00 0E 7F 01 5F [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: D1 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: D1 01 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: D1 01 00 0E 7F 00 5E [16:54:16]Write to MH i2c: 01 00 00 0F 7F 8E [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:17]OFD Sender: No OFD packet to send [16:54:17]*** Cut start [16:54:17]*** Partial cut [16:54:17]*** CUTSNS_PIN = 1 [16:54:17]*** CUTSNS_PIN = 0 [16:54:17]*** Brake cut motor [16:54:18]Read from MH i2c: 01 [16:54:18]MH_I2C_Read... [16:54:18]*** Stop cut motor [16:54:18]*** Cut end [16:54:18]Read from MH i2c: 01 07 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: 01 07 00 0F 7F 00 00 00 00 00 FF 0F A3 [16:54:18]process_action close_receipt done [16:54:18]requested_data is exist [16:54:18]produce_requested_data [16:54:18]requested_item fm.sn is exist - process it [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 11 00 00 [16:54:18]Write to MH i2c: E2 08 00 10 7F 80 11 00 00 00 00 00 00 09 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 17 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 17 00 10 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 56 [16:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:54:18]wFMCommunicate OK [16:54:18]requested_item fd.num is exist - process it [16:54:18]SAM_PROTO_GetFieldsCounters [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 13 00 00 [16:54:18]Write to MH i2c: E2 08 00 11 7F 80 13 00 00 00 00 00 00 0C [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 62 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 62 00 11 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 56 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:54: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 56 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:18]wFMCommunicate OK [16:54:18]SAM_PROTO_GetFieldsCounters done [16:54:18]requested_item shift.num is exist - process it [16:54:18]requested_item shift.opened is exist - process it [16:54:18]req_shift_opened [16:54:18]FM_GetShiftState [16:54:18]SAM_PROTO_GetShiftState [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 13 01 00 [16:54:18]Write to MH i2c: E2 08 00 12 7F 80 13 01 00 00 00 00 00 0E [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 0E 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 0E 00 12 7F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 36 [16:54:18]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [16:54:18]wFMCommunicate OK [16:54:18]SAM_PROTO_GetShiftState done [16:54:18]FM_GetShiftState done [16:54:18]req_shift_opened done [16:54:18]requested_item shift.open_date is exist - process it [16:54:18]req_shift_open_date [16:54:18]req_shift_open_date done [16:54:18]produce_requested_data done [16:54:18]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49238,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [16:54:18]process_action_free close_receipt [16:54:18]json_value_free [16:54:18]json_value_free done [16:54:18]process_json_proto returns [16:54:18]Send response to host [16:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49238,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [16:54:18]free response buf [16:54:18]execute_script done [16:54:18]execute_script returns [16:54:18]free content buf [16:54:18]Sock 7.Close socket [16:54:18]Sock 7.Thread stoped [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:27]int [16:54:27]Write to MH i2c: 01 00 00 13 7F 92 [16:54:27]*** FLAG_PRN_KEY set [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 13 7F 00 08 00 00 00 FF 0F AF [16:54:27]state=0 [16:54:27]Key pressed [16:54:27]Feed [16:54:27]Write to MH i2c: D8 00 00 14 7F 6A [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: D8 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: D8 01 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: D8 01 00 14 7F 00 6B [16:54:27]int [16:54:27]Write to MH i2c: 01 00 00 15 7F 94 [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 15 7F 00 48 00 00 00 3C 00 1F [16:54:27]state=2 [16:54:27]Key pressed [16:54:27]int [16:54:27]Write to MH i2c: 01 00 00 16 7F 95 [16:54:27]*** FLAG_PRN_KEY reset [16:54:27]Write i2c OK [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 [16:54:27]MH_I2C_Read... [16:54:27]Read from MH i2c: 01 07 00 16 7F 00 00 00 00 00 F6 0F A1 [16:54:27]state=2 [16:54:27]Stop feed [16:54:32]OFD Sender: No OFD packet to send [16:54:33]int [16:54:33]Write to MH i2c: 01 00 00 17 7F 96 [16:54:33]*** FLAG_PRN_PAP1 set [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 07 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 07 00 17 7F 00 01 00 00 00 FF 0F AC [16:54:33]state=0 [16:54:33]No paper [16:54:33]int [16:54:33]Write to MH i2c: 01 00 00 18 7F 97 [16:54:33]*** FLAG_PRN_PAP2 set [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 07 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 07 00 18 7F 00 03 00 00 00 FF 0F AF [16:54:33]state=0 [16:54:33]No paper [16:54:33]Cover opened [16:54:37]OFD Sender: No OFD packet to send [16:54:38]Write to MH i2c: 01 00 00 19 7F 98 [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 07 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 07 00 19 7F 00 03 00 00 00 FF 0F B0 [16:54:38]state=3 [16:54:38]No paper [16:54:38]Cover opened [16:54:42]OFD Sender: No OFD packet to send [16:54:43]Write to MH i2c: 01 00 00 1A 7F 99 [16:54:43]Write i2c OK [16:54:43]MH_I2C_Read... [16:54:43]Read from MH i2c: 01 [16:54:43]MH_I2C_Read... [16:54:43]Read from MH i2c: 01 07 00 [16:54:43]MH_I2C_Read... [16:54:43]Read from MH i2c: 01 07 00 1A 7F 00 03 00 00 00 FF 0F B1 [16:54:43]state=3 [16:54:43]No paper [16:54:43]Cover opened [16:54:44]int [16:54:44]Write to MH i2c: 01 00 00 1B 7F 9A [16:54:44]*** FLAG_PRN_PAP2 reset [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 07 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 07 00 1B 7F 00 01 00 00 00 FF 0F B0 [16:54:44]state=3 [16:54:44]No paper [16:54:44]Cover closed [16:54:44]int [16:54:44]Write to MH i2c: 01 00 00 1C 7F 9B [16:54:44]*** FLAG_PRN_PAP2 set [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 07 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 07 00 1C 7F 00 03 00 00 00 FF 0F B3 [16:54:44]state=0 [16:54:44]No paper [16:54:44]Cover opened [16:54:45]int [16:54:45]Write to MH i2c: 01 00 00 1D 7F 9C [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: 01 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: 01 07 00 [16:54:45]MH_I2C_Read... [16:54:45]*** FLAG_PRN_PAP2 reset [16:54:45]*** FLAG_PRN_PAP1 reset [16:54:45]Read from MH i2c: 01 07 00 1D 7F 00 00 00 00 00 FF 0F B1 [16:54:45]state=3 [16:54:45]Cover closed [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57: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:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]accept exits with 9 [17:07:22]New connection [17:07:22]New thread 3066670436 created [17:07:22]Thread 3066813796 joined [17:07:22]Waiting for new connection... [17:07:22] Sock 9.Parse request [17:07:22]Sock 9.Check first char [17:07:22]Sock 9.First char is OK [17:07:22]request: POST /json_proto HTTP/1.0 [17:07:22]Method: POST [17:07:22]URL: /json_proto [17:07:22]Method is POST - this is cgi request [17:07:22]url: /json_proto [17:07:22]query_string will be loaded in cgi processing [17:07:22]execute_cgi json_proto POST (null) [17:07:22]execute_cgi path=json_proto method=POST [17:07:22]POST find Content-Length [17:07:22]Host: 172.17.56.67:8080 [17:07:22]Content-Length: 680 [17:07:22]Content-Type: application/json [17:07:22] [17:07:22]POST finish read [17:07:22]Found Content-Length = 680 [17:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 114.450, "sum" : 8000.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:22]execute_script... [17:07:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 114.450, "sum" : 8000.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:22]POST & json_proto [17:07:22]process_json_proto [17:07:22]json parsed OK: [17:07:22]protocol is kg_v1.0 [17:07:22]action value=close_receipt [17:07:22]process_action close_receipt [17:07:22]cmd_close_receipt [17:07:22]MH_GetDate [17:07:22]Write to MH i2c: F0 00 00 1E 7F 8C [17:07:22]OFD Sender: No OFD packet to send [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: F0 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: F0 09 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: F0 09 00 1E 7F 00 DE 2C B9 65 26 5D 9E 65 43 [17:07:22]GetLastDocTimeStamp 1706633674 [17:07:22]current date 1706634462 [17:07:22]FM_GetShiftState [17:07:22]SAM_PROTO_GetShiftState [17:07:22]wFMCommunicate request_size=4 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 13 01 00 [17:07:22]Write to MH i2c: E2 08 00 1F 7F 80 13 01 00 00 00 00 00 1B [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 0E 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 0E 00 1F 7F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 43 [17:07:22]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:07:22]wFMCommunicate OK [17:07:22]SAM_PROTO_GetShiftState done [17:07:22]FM_GetShiftState done [17:07:22]opened in 1706572995 [17:07:22]opened+sec_in_day 1706659395 [17:07:22]quantity*price = 800005 [17:07:22]sum+1 = 800007 [17:07:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.56 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 115 30.01.2024 17:07 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49239 ФПД: 12458184819396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T170742&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49239&fm=12458184819396&tin=02508201610067®Number=0000000000092723&sum=800000 [17:07:24]StoreToDocumentArchive [17:07:24]shift 246 fd 49239 [17:07:24]save to /storage/0246/doc_00049239 [17:07:24]save last doc name /storage/0246/doc_00049239 to /storage/kkm_last_doc_name [17:07:24]save OK [17:07:24]Clear old archive folders... [17:07:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:24]tlvbuf is 011E61E0 [17:07:24]SAM_PROTO_ClearQueue [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 09 00 00 [17:07:24]Write to MH i2c: E2 08 00 2C 7F 80 09 00 00 00 00 00 00 1D [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 03 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 03 00 2C 7F 00 90 00 1F [17:07:24]RAPDU: 90 00 [17:07:24]wFMCommunicate OK [17:07:24]SAM_PROTO_ClearQueue done [17:07:24]KKMCreateOFDPacket [17:07:24]OFDProtocolAddRootSTLVToBuf [17:07:24]FM_MakeSignedData [17:07:24]FM_MakeSignedData [17:07:24]SAM_PROTO_SignData [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 0D 01 02 [17:07:24]Write to MH i2c: E2 08 00 2D 7F 80 0D 01 02 00 00 00 00 25 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 03 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 03 00 2D 7F 00 90 00 20 [17:07:24]RAPDU: 90 00 [17:07:24]wFMCommunicate OK [17:07:24]wFMCommunicate request_size=255 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 BF 01 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 06 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 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 DE 2C B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 57 C0 00 00 35 04 06 00 0B 54 A5 AE [17:07:24]Write to MH i2c: E2 02 01 2E 7F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 BF 01 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 06 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 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 DE 2C B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 57 C0 00 00 35 04 06 00 0B 54 A5 AE 00 00 C3 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 03 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 03 00 2E 7F 00 90 00 21 [17:07:24]RAPDU: 90 00 [17:07:24]wFMCommunicate OK [17:07:24]wFMCommunicate request_size=7 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 0D 02 02 02 42 C4 [17:07:24]Write to MH i2c: E2 0A 00 2F 7F 80 0D 02 02 02 00 42 C4 00 00 32 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 03 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 03 00 2F 7F 00 90 00 22 [17:07:24]RAPDU: 90 00 [17:07:24]wFMCommunicate OK [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 0D 03 02 [17:07:24]Write to MH i2c: E2 08 00 30 7F 80 0D 03 02 00 00 00 00 2A [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 0B 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 0B 00 30 7F 00 89 B2 0D 86 CB C7 11 39 90 00 D5 [17:07:24]RAPDU: 89 B2 0D 86 CB C7 11 39 90 00 [17:07:24]wFMCommunicate OK [17:07:24]SAM_PROTO_SignData done [17:07:24]FM_MakeSignedData done [17:07:24]CreateOFDProtocolMessage [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 11 00 00 [17:07:24]Write to MH i2c: E2 08 00 31 7F 80 11 00 00 00 00 00 00 2A [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 17 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 17 00 31 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 77 [17:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:07:24]wFMCommunicate OK [17:07:24]CreateOFDProtocolMessage done [17:07:24]OFDSenderStorePacket 49239 [17:07:24]StoreOFDPacket docnum=49239 [17:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 31 8F 04 01 3D F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 BF 01 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 06 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 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 DE 2C B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 57 C0 00 00 35 04 06 00 0B 54 A5 AE 42 C4 89 B2 0D 86 CB C7 11 39 [17:07:24]CheckFolder [17:07:24]dirname=/storage/ofd_packets [17:07:24]CheckFolder done [17:07:24]ProducePacketName [17:07:24]name=ofd_packets/00049239 [17:07:24]NVStorageSaveData ofd_packets/00049239 [17:07:24]File name is /storage/ofd_packets/00049239 [17:07:24]Write 298 bytes [17:07:24]NVStorageSaveData done [17:07:24]OFDSenderStorePacket done [17:07:24]KKMCreateOFDPacket done [17:07:24]NVStorageSaveData kkm_last_timestamp [17:07:24]File name is /storage/kkm_last_timestamp [17:07:24]Write 4 bytes [17:07:24]NVStorageSaveData done [17:07:24]ExternCall_PrintAddStr [17:07:24]wPrintStart [17:07:24]Write to MH i2c: 01 00 00 32 7F B1 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: 01 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: 01 07 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: 01 07 00 32 7F 00 00 00 00 00 FF 0F C6 [17:07:24]RasterBufferAndPrint [17:07:24]line Счет N : (1)216342 [17:07:24]line ИНН: 02508201610067 [17:07:24]line Контрольно-Кассовый Чек [17:07:24]line ПРОДАЖА [17:07:24]line ТРК (МРК, ГНК) : 11 [17:07:24]line Товар: 2710194210 [17:07:24]line ДТ-К-5 [17:07:24]line 114.450 * 69.90 [17:07:24]line = 8000.06 [17:07:24]line НДС 12% НСП 1% [17:07:24]line > о реализуемом товаре [17:07:24]line ОКРУГЛЕНИЕ: -0.06 [17:07:24]line ИТОГО: 8000.00 [17:07:24]line Внесено: 8000.00 [17:07:24]line СДАЧА: 0.00 [17:07:24]line НСП 1% : 70.80 [17:07:24]line НДС 12% : 849.56 [17:07:24]line Наличными: 8000.00 [17:07:24]line Безнал.: 0.00 [17:07:24]line Место: АЗС № 102 "Партнер Нефть" [17:07:24]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:07:24]line СНО: Общий режим [17:07:24]line Чек 115 30.01.2024 17:07 [17:07:24]line Смена: 246 ФФД: 1.0 [17:07:24]line ЗНМ: 0300000040 [17:07:24]line РНМ: 0000000000092723 [17:07:24]line Версия ККМ: 001 [17:07:24]line ФМ: 0000000000875060 [17:07:24]line ФД: 49239 [17:07:24]line ФПД: 12458184819396 [17:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T170742&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49239&fm=12458184819396&tin=02508201610067®Number=0000000000092723&sum=800000 [17:07:24]OFD Sender: Processing packet 49239 [packets to send 12, broken 11] [17:07:24]ProducePacketName [17:07:24]name=ofd_packets/00049239 [17:07:24]OFD Sender: To server: pG, [17:07:24]CommunicateWithHost lk.salyk.kg:30040 [17:07:24]ConnectInit lk.salyk.kg [17:07:24]written 0, free lines is 4095 [17:07:24]Connected sock=10 [17: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 36 30 0C 01 00 00 31 8F 04 01 3D F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 BF 01 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 06 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 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 DE 2C B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 57 C0 00 00 35 04 06 00 0B 54 A5 AE 42 C4 89 B2 0D 86 CB C7 11 39 [17:07: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 36 30 4F 00 00 00 D2 66 47 00 13 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 36 30 10 04 04 00 57 C0 00 00 F4 03 04 00 D3 D8 B8 65 B6 04 01 00 00 49 EE 15 F8 70 14 16 A2 [17:07:25]CommunicateWithHost err = 0 [17:07:25]CheckOFDResponse [17:07:25]1017 (14) - 77093643461234 [17:07:25]1041 (16) - 0000000000875060 [17:07:25]1040 (4) - 49239 [17:07:25]1012 (4) - 30.01.2024 11:09 [17:07:25]1206 (1) - 0 [17:07:25]OFD Sender: Remove packet 49239 [17:07:25]ProducePacketName [17:07:25]name=ofd_packets/00049239 [17:07:25]NVStorageDeleteData [17:07:25]Write to MH i2c: 01 00 00 5D 7F DC [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: 01 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: 01 07 00 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: 01 07 00 5D 7F 00 00 00 00 00 02 0D F2 [17:07:25]RasterBufferAndPrint [17:07:25]line [17:07:25]line [17:07:25]line [17:07:25]line [17:07:25]line [17:07:25]written 0, free lines is 3336 [17:07:25]MH_Cut [17:07:25]Write to MH i2c: D1 01 00 64 7F 01 B5 [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: D1 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: D1 01 00 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: D1 01 00 64 7F 00 B4 [17:07:25]Write to MH i2c: 01 00 00 65 7F E4 [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:25]OFD Sender: No OFD packet to send [17:07:26]*** Cut start [17:07:26]*** Partial cut [17:07:26]*** CUTSNS_PIN = 1 [17:07:26]*** CUTSNS_PIN = 0 [17:07:26]*** Brake cut motor [17:07:26]Read from MH i2c: 01 [17:07:26]MH_I2C_Read... [17:07:26]*** Stop cut motor [17:07:26]*** Cut end [17:07:26]Read from MH i2c: 01 07 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: 01 07 00 65 7F 00 00 00 00 00 FF 0F F9 [17:07:26]process_action close_receipt done [17:07:26]requested_data is exist [17:07:26]produce_requested_data [17:07:26]requested_item fm.sn is exist - process it [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 11 00 00 [17:07:26]Write to MH i2c: E2 08 00 66 7F 80 11 00 00 00 00 00 00 5F [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 17 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 17 00 66 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AC [17:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:07:26]wFMCommunicate OK [17:07:26]requested_item fd.num is exist - process it [17:07:26]SAM_PROTO_GetFieldsCounters [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 13 00 00 [17:07:26]Write to MH i2c: E2 08 00 67 7F 80 13 00 00 00 00 00 00 62 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 62 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 62 00 67 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 57 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [17:07: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 57 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:26]wFMCommunicate OK [17:07:26]SAM_PROTO_GetFieldsCounters done [17:07:26]requested_item shift.num is exist - process it [17:07:26]requested_item shift.opened is exist - process it [17:07:26]req_shift_opened [17:07:26]FM_GetShiftState [17:07:26]SAM_PROTO_GetShiftState [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 13 01 00 [17:07:26]Write to MH i2c: E2 08 00 68 7F 80 13 01 00 00 00 00 00 64 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 0E 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 0E 00 68 7F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8C [17:07:26]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:07:26]wFMCommunicate OK [17:07:26]SAM_PROTO_GetShiftState done [17:07:26]FM_GetShiftState done [17:07:26]req_shift_opened done [17:07:26]requested_item shift.open_date is exist - process it [17:07:26]req_shift_open_date [17:07:26]req_shift_open_date done [17:07:26]produce_requested_data done [17:07:26]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49239,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:07:26]process_action_free close_receipt [17:07:26]json_value_free [17:07:26]json_value_free done [17:07:26]process_json_proto returns [17:07:26]Send response to host [17:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49239,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:07:26]free response buf [17:07:26]execute_script done [17:07:26]execute_script returns [17:07:26]free content buf [17:07:26]Sock 9.Close socket [17:07:26]Sock 9.Thread stoped [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:01]accept exits with 7 [17:08:01]New connection [17:08:01]New thread 3066813796 created [17:08:01]Thread 3066670436 joined [17:08:01]Waiting for new connection... [17:08:01] Sock 7.Parse request [17:08:01]Sock 7.Check first char [17:08:01]Sock 7.First char is OK [17:08:01]request: POST /json_proto HTTP/1.0 [17:08:01]Method: POST [17:08:01]URL: /json_proto [17:08:01]Method is POST - this is cgi request [17:08:01]url: /json_proto [17:08:01]query_string will be loaded in cgi processing [17:08:01]execute_cgi json_proto POST (null) [17:08:01]execute_cgi path=json_proto method=POST [17:08:01]POST find Content-Length [17:08:01]Host: 172.17.56.67:8080 [17:08:01]Content-Length: 679 [17:08:01]Content-Type: application/json [17:08:01] [17:08:01]POST finish read [17:08:01]Found Content-Length = 679 [17:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:01]execute_script... [17:08:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:01]POST & json_proto [17:08:01]process_json_proto [17:08:01]json parsed OK: [17:08:01]protocol is kg_v1.0 [17:08:01]action value=close_receipt [17:08:01]process_action close_receipt [17:08:01]cmd_close_receipt [17:08:01]MH_GetDate [17:08:01]Write to MH i2c: F0 00 00 69 7F D7 [17:08:01]Write i2c OK [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: F0 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: F0 09 00 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: F0 09 00 69 7F 00 05 2D B9 65 26 5D 9E 65 B6 [17:08:01]GetLastDocTimeStamp 1706634462 [17:08:01]current date 1706634501 [17:08:01]FM_GetShiftState [17:08:01]SAM_PROTO_GetShiftState [17:08:01]wFMCommunicate request_size=4 [17:08:01]MH_SAM_APDU [17:08:01]CAPDU: 80 13 01 00 [17:08:01]Write to MH i2c: E2 08 00 6A 7F 80 13 01 00 00 00 00 00 66 [17:08:01]Write i2c OK [17:08:01]MH_I2C_Read... [17:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:01]Read from MH i2c: E2 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 0E 00 [17:08:01]MH_I2C_Read... [17:08:01]Read from MH i2c: E2 0E 00 6A 7F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8E [17:08:01]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:08:01]wFMCommunicate OK [17:08:01]SAM_PROTO_GetShiftState done [17:08:01]FM_GetShiftState done [17:08:01]opened in 1706572995 [17:08:01]opened+sec_in_day 1706659395 [17:08:01]quantity*price = 100026 [17:08:01]sum+1 = 100028 [17:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 116 30.01.2024 17:08 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49240 ФПД: 264298987169489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T170821&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49240&fm=264298987169489&tin=02508201610067®Number=0000000000092723&sum=100000 [17:08:02]StoreToDocumentArchive [17:08:02]shift 246 fd 49240 [17:08:02]save to /storage/0246/doc_00049240 [17:08:02]save last doc name /storage/0246/doc_00049240 to /storage/kkm_last_doc_name [17:08:02]save OK [17:08:02]Clear old archive folders... [17:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:08:02]tlvbuf is 011F8640 [17:08:02]SAM_PROTO_ClearQueue [17:08:02]wFMCommunicate request_size=4 [17:08:02]MH_SAM_APDU [17:08:02]CAPDU: 80 09 00 00 [17:08:02]Write to MH i2c: E2 08 00 77 7F 80 09 00 00 00 00 00 00 68 [17:08:02]Write i2c OK [17:08:02]MH_I2C_Read... [17:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:02]Read from MH i2c: E2 [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: E2 03 00 [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: E2 03 00 77 7F 00 90 00 6A [17:08:02]RAPDU: 90 00 [17:08:02]wFMCommunicate OK [17:08:02]SAM_PROTO_ClearQueue done [17:08:02]KKMCreateOFDPacket [17:08:02]OFDProtocolAddRootSTLVToBuf [17:08:02]FM_MakeSignedData [17:08:02]FM_MakeSignedData [17:08:02]SAM_PROTO_SignData [17:08:02]wFMCommunicate request_size=4 [17:08:02]MH_SAM_APDU [17:08:02]CAPDU: 80 0D 01 02 [17:08:02]Write to MH i2c: E2 08 00 78 7F 80 0D 01 02 00 00 00 00 70 [17:08:02]Write i2c OK [17:08:02]MH_I2C_Read... [17:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:02]Read from MH i2c: E2 [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: E2 03 00 [17:08:02]MH_I2C_Read... [17:08:02]Read from MH i2c: E2 03 00 78 7F 00 90 00 6B [17:08:02]RAPDU: 90 00 [17:08:02]wFMCommunicate OK [17:08:02]wFMCommunicate request_size=255 [17:08:02]MH_SAM_APDU [17:08:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 05 2D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 58 C0 00 00 35 04 06 00 F0 60 E7 3E [17:08:02]Write to MH i2c: E2 02 01 79 7F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 05 2D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 58 C0 00 00 35 04 06 00 F0 60 E7 3E 00 00 41 [17:08:02]Write i2c OK [17:08:02]MH_I2C_Read... [17:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:03]Read from MH i2c: E2 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 03 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 03 00 79 7F 00 90 00 6C [17:08:03]RAPDU: 90 00 [17:08:03]wFMCommunicate OK [17:08:03]wFMCommunicate request_size=7 [17:08:03]MH_SAM_APDU [17:08:03]CAPDU: 80 0D 02 02 02 A6 D1 [17:08:03]Write to MH i2c: E2 0A 00 7A 7F 80 0D 02 02 02 00 A6 D1 00 00 EE [17:08:03]Write i2c OK [17:08:03]MH_I2C_Read... [17:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:03]Read from MH i2c: E2 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 03 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 03 00 7A 7F 00 90 00 6D [17:08:03]RAPDU: 90 00 [17:08:03]wFMCommunicate OK [17:08:03]wFMCommunicate request_size=4 [17:08:03]MH_SAM_APDU [17:08:03]CAPDU: 80 0D 03 02 [17:08:03]Write to MH i2c: E2 08 00 7B 7F 80 0D 03 02 00 00 00 00 75 [17:08:03]Write i2c OK [17:08:03]MH_I2C_Read... [17:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:03]Read from MH i2c: E2 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 0B 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 0B 00 7B 7F 00 7E E6 61 D7 F1 3F 5E 4E 90 00 EE [17:08:03]RAPDU: 7E E6 61 D7 F1 3F 5E 4E 90 00 [17:08:03]wFMCommunicate OK [17:08:03]SAM_PROTO_SignData done [17:08:03]FM_MakeSignedData done [17:08:03]CreateOFDProtocolMessage [17:08:03]wFMCommunicate request_size=4 [17:08:03]MH_SAM_APDU [17:08:03]CAPDU: 80 11 00 00 [17:08:03]Write to MH i2c: E2 08 00 7C 7F 80 11 00 00 00 00 00 00 75 [17:08:03]Write i2c OK [17:08:03]MH_I2C_Read... [17:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:03]Read from MH i2c: E2 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 17 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: E2 17 00 7C 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C2 [17:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:08:03]wFMCommunicate OK [17:08:03]CreateOFDProtocolMessage done [17:08:03]OFDSenderStorePacket 49240 [17:08:03]StoreOFDPacket docnum=49240 [17:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 63 00 04 01 28 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 05 2D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 58 C0 00 00 35 04 06 00 F0 60 E7 3E A6 D1 7E E6 61 D7 F1 3F 5E 4E [17:08:03]CheckFolder [17:08:03]dirname=/storage/ofd_packets [17:08:03]CheckFolder done [17:08:03]ProducePacketName [17:08:03]name=ofd_packets/00049240 [17:08:03]NVStorageSaveData ofd_packets/00049240 [17:08:03]File name is /storage/ofd_packets/00049240 [17:08:03]Write 298 bytes [17:08:03]NVStorageSaveData done [17:08:03]OFDSenderStorePacket done [17:08:03]KKMCreateOFDPacket done [17:08:03]NVStorageSaveData kkm_last_timestamp [17:08:03]File name is /storage/kkm_last_timestamp [17:08:03]Write 4 bytes [17:08:03]NVStorageSaveData done [17:08:03]ExternCall_PrintAddStr [17:08:03]wPrintStart [17:08:03]Write to MH i2c: 01 00 00 7D 7F FC [17:08:03]Write i2c OK [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: 01 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: 01 07 00 [17:08:03]MH_I2C_Read... [17:08:03]Read from MH i2c: 01 07 00 7D 7F 00 00 00 00 00 FF 0F 11 [17:08:03]RasterBufferAndPrint [17:08:03]line Счет N : (1)216343 [17:08:03]line ИНН: 02508201610067 [17:08:03]line Контрольно-Кассовый Чек [17:08:03]line ПРОДАЖА [17:08:03]line ТРК (МРК, ГНК) : 21 [17:08:03]line Товар: 2710194210 [17:08:03]line ДТ-К-5 [17:08:03]line 14.310 * 69.90 [17:08:03]line = 1000.27 [17:08:03]line НДС 12% НСП 1% [17:08:03]line > о реализуемом товаре [17:08:03]line ОКРУГЛЕНИЕ: -0.27 [17:08:03]line ИТОГО: 1000.00 [17:08:03]line Внесено: 1000.00 [17:08:03]line СДАЧА: 0.00 [17:08:03]line НСП 1% : 8.85 [17:08:03]line НДС 12% : 106.22 [17:08:03]line Наличными: 1000.00 [17:08:03]line Безнал.: 0.00 [17:08:03]line Место: АЗС № 102 "Партнер Нефть" [17:08:03]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:08:03]line СНО: Общий режим [17:08:03]line Чек 116 30.01.2024 17:08 [17:08:03]line Смена: 246 ФФД: 1.0 [17:08:03]line ЗНМ: 0300000040 [17:08:03]line РНМ: 0000000000092723 [17:08:03]line Версия ККМ: 001 [17:08:03]line ФМ: 0000000000875060 [17:08:03]line ФД: 49240 [17:08:03]line ФПД: 264298987169489 [17:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T170821&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49240&fm=264298987169489&tin=02508201610067®Number=0000000000092723&sum=100000 [17:08:03]OFD Sender: Processing packet 49240 [packets to send 12, broken 11] [17:08:03]ProducePacketName [17:08:03]name=ofd_packets/00049240 [17:08:03]OFD Sender: To server: pG, [17:08:03]CommunicateWithHost lk.salyk.kg:30040 [17:08:03]ConnectInit lk.salyk.kg [17:08:03]written 0, free lines is 4095 [17:08:03]Connected sock=10 [17:08: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 36 30 0C 01 00 00 63 00 04 01 28 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 05 2D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 58 C0 00 00 35 04 06 00 F0 60 E7 3E A6 D1 7E E6 61 D7 F1 3F 5E 4E [17:08: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 36 30 4F 00 00 00 D8 CF 47 00 E3 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 58 C0 00 00 F4 03 04 00 FA D8 B8 65 B6 04 01 00 00 1F 3A E9 E4 5E FF 64 89 [17:08:03]CommunicateWithHost err = 0 [17:08:03]CheckOFDResponse [17:08:03]1017 (14) - 77093643461234 [17:08:03]1041 (16) - 0000000000875060 [17:08:03]1040 (4) - 49240 [17:08:03]1012 (4) - 30.01.2024 11:09 [17:08:03]1206 (1) - 0 [17:08:03]OFD Sender: Remove packet 49240 [17:08:03]ProducePacketName [17:08:03]name=ofd_packets/00049240 [17:08:03]NVStorageDeleteData [17:08:04]Write to MH i2c: 01 00 00 A8 7F 27 [17:08:04]Write i2c OK [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: 01 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: 01 07 00 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: 01 07 00 A8 7F 00 00 00 00 00 FB 0C 35 [17:08:04]RasterBufferAndPrint [17:08:04]line [17:08:04]line [17:08:04]line [17:08:04]line [17:08:04]line [17:08:04]written 0, free lines is 3330 [17:08:04]MH_Cut [17:08:04]Write to MH i2c: D1 01 00 AF 7F 01 00 [17:08:04]Write i2c OK [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: D1 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: D1 01 00 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: D1 01 00 AF 7F 00 FF [17:08:04]Write to MH i2c: 01 00 00 B0 7F 2F [17:08:04]Write i2c OK [17:08:04]MH_I2C_Read... [17:08:04]OFD Sender: No OFD packet to send [17:08:04]*** Cut start [17:08:04]*** Partial cut [17:08:04]*** CUTSNS_PIN = 1 [17:08:04]*** CUTSNS_PIN = 0 [17:08:04]*** Brake cut motor [17:08:05]Read from MH i2c: 01 [17:08:05]MH_I2C_Read... [17:08:05]*** Stop cut motor [17:08:05]*** Cut end [17:08:05]Read from MH i2c: 01 07 00 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: 01 07 00 B0 7F 00 00 00 00 00 FF 0F 44 [17:08:05]process_action close_receipt done [17:08:05]requested_data is exist [17:08:05]produce_requested_data [17:08:05]requested_item fm.sn is exist - process it [17:08:05]wFMCommunicate request_size=4 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 11 00 00 [17:08:05]Write to MH i2c: E2 08 00 B1 7F 80 11 00 00 00 00 00 00 AA [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:05]Read from MH i2c: E2 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 17 00 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 17 00 B1 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F7 [17:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:08:05]wFMCommunicate OK [17:08:05]requested_item fd.num is exist - process it [17:08:05]SAM_PROTO_GetFieldsCounters [17:08:05]wFMCommunicate request_size=4 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 13 00 00 [17:08:05]Write to MH i2c: E2 08 00 B2 7F 80 13 00 00 00 00 00 00 AD [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:05]Read from MH i2c: E2 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 62 00 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 62 00 B2 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 58 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [17:08: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 58 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:05]wFMCommunicate OK [17:08:05]SAM_PROTO_GetFieldsCounters done [17:08:05]requested_item shift.num is exist - process it [17:08:05]requested_item shift.opened is exist - process it [17:08:05]req_shift_opened [17:08:05]FM_GetShiftState [17:08:05]SAM_PROTO_GetShiftState [17:08:05]wFMCommunicate request_size=4 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 13 01 00 [17:08:05]Write to MH i2c: E2 08 00 B3 7F 80 13 01 00 00 00 00 00 AF [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:05]Read from MH i2c: E2 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 0E 00 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 0E 00 B3 7F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D7 [17:08:05]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:08:05]wFMCommunicate OK [17:08:05]SAM_PROTO_GetShiftState done [17:08:05]FM_GetShiftState done [17:08:05]req_shift_opened done [17:08:05]requested_item shift.open_date is exist - process it [17:08:05]req_shift_open_date [17:08:05]req_shift_open_date done [17:08:05]produce_requested_data done [17:08:05]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49240,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:08:05]process_action_free close_receipt [17:08:05]json_value_free [17:08:05]json_value_free done [17:08:05]process_json_proto returns [17:08:05]Send response to host [17:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49240,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:08:05]free response buf [17:08:05]execute_script done [17:08:05]execute_script returns [17:08:05]free content buf [17:08:05]Sock 7.Close socket [17:08:05]Sock 7.Thread stoped [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:28]accept exits with 9 [17:09:28]New connection [17:09:28]New thread 3066670436 created [17:09:28]Thread 3066813796 joined [17:09:28]Waiting for new connection... [17:09:28] Sock 9.Parse request [17:09:28]Sock 9.Check first char [17:09:28]Sock 9.First char is OK [17:09:28]request: POST /json_proto HTTP/1.0 [17:09:28]Method: POST [17:09:28]URL: /json_proto [17:09:28]Method is POST - this is cgi request [17:09:28]url: /json_proto [17:09:28]query_string will be loaded in cgi processing [17:09:28]execute_cgi json_proto POST (null) [17:09:28]execute_cgi path=json_proto method=POST [17:09:28]POST find Content-Length [17:09:28]Host: 172.17.56.67:8080 [17:09:28]Content-Length: 677 [17:09:28]Content-Type: application/json [17:09:28] [17:09:28]POST finish read [17:09:28]Found Content-Length = 677 [17:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [17:09:28]execute_script... [17:09:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [17:09:28]POST & json_proto [17:09:28]process_json_proto [17:09:28]json parsed OK: [17:09:28]protocol is kg_v1.0 [17:09:28]action value=close_receipt [17:09:28]process_action close_receipt [17:09:28]cmd_close_receipt [17:09:28]MH_GetDate [17:09:28]Write to MH i2c: F0 00 00 B4 7F 22 [17:09:28]Write i2c OK [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: F0 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: F0 09 00 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: F0 09 00 B4 7F 00 5C 2D B9 65 26 5D 9E 65 58 [17:09:28]GetLastDocTimeStamp 1706634501 [17:09:28]current date 1706634588 [17:09:28]FM_GetShiftState [17:09:28]SAM_PROTO_GetShiftState [17:09:28]wFMCommunicate request_size=4 [17:09:28]MH_SAM_APDU [17:09:28]CAPDU: 80 13 01 00 [17:09:28]Write to MH i2c: E2 08 00 B5 7F 80 13 01 00 00 00 00 00 B1 [17:09:28]Write i2c OK [17:09:28]MH_I2C_Read... [17:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:28]Read from MH i2c: E2 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 0E 00 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 0E 00 B5 7F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D9 [17:09:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:09:28]wFMCommunicate OK [17:09:28]SAM_PROTO_GetShiftState done [17:09:28]FM_GetShiftState done [17:09:28]opened in 1706572995 [17:09:28]opened+sec_in_day 1706659395 [17:09:28]quantity*price = 30029 [17:09:28]sum+1 = 30030 [17:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 117 30.01.2024 17:09 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49241 ФПД: 17337677076201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T170948&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49241&fm=17337677076201&tin=02508201610067®Number=0000000000092723&sum=30000 [17:09:29]StoreToDocumentArchive [17:09:29]shift 246 fd 49241 [17:09:29]save to /storage/0246/doc_00049241 [17:09:29]save last doc name /storage/0246/doc_00049241 to /storage/kkm_last_doc_name [17:09:29]save OK [17:09:29]Clear old archive folders... [17:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:29]tlvbuf is B6F33870 [17:09:29]SAM_PROTO_ClearQueue [17:09:29]wFMCommunicate request_size=4 [17:09:29]MH_SAM_APDU [17:09:29]CAPDU: 80 09 00 00 [17:09:29]Write to MH i2c: E2 08 00 C2 7F 80 09 00 00 00 00 00 00 B3 [17:09:29]Write i2c OK [17:09:29]MH_I2C_Read... [17:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:29]Read from MH i2c: E2 [17:09:29]MH_I2C_Read... [17:09:29]Read from MH i2c: E2 03 00 [17:09:29]MH_I2C_Read... [17:09:29]Read from MH i2c: E2 03 00 C2 7F 00 90 00 B5 [17:09:29]RAPDU: 90 00 [17:09:29]wFMCommunicate OK [17:09:29]SAM_PROTO_ClearQueue done [17:09:29]KKMCreateOFDPacket [17:09:29]OFDProtocolAddRootSTLVToBuf [17:09:29]FM_MakeSignedData [17:09:29]FM_MakeSignedData [17:09:29]SAM_PROTO_SignData [17:09:29]wFMCommunicate request_size=4 [17:09:29]MH_SAM_APDU [17:09:29]CAPDU: 80 0D 01 02 [17:09:29]Write to MH i2c: E2 08 00 C3 7F 80 0D 01 02 00 00 00 00 BB [17:09:29]Write i2c OK [17:09:29]MH_I2C_Read... [17:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:29]Read from MH i2c: E2 [17:09:29]MH_I2C_Read... [17:09:29]Read from MH i2c: E2 03 00 [17:09:29]MH_I2C_Read... [17:09:29]Read from MH i2c: E2 03 00 C3 7F 00 90 00 B6 [17:09:29]RAPDU: 90 00 [17:09:29]wFMCommunicate OK [17:09:29]wFMCommunicate request_size=255 [17:09:29]MH_SAM_APDU [17:09:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 5C 2D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 59 C0 00 00 35 04 06 00 0F [17:09:29]Write to MH i2c: E2 02 01 C4 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 5C 2D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 59 C0 00 00 35 04 06 00 0F 00 00 BB [17:09:29]Write i2c OK [17:09:29]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 C4 7F 00 90 00 B7 [17:09:30]RAPDU: 90 00 [17:09:30]wFMCommunicate OK [17:09:30]wFMCommunicate request_size=10 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 0D 02 02 05 C4 BE 15 56 E9 [17:09:30]Write to MH i2c: E2 0D 00 C5 7F 80 0D 02 02 05 00 C4 BE 15 56 E9 00 00 9E [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 C5 7F 00 90 00 B8 [17:09:30]RAPDU: 90 00 [17:09:30]wFMCommunicate OK [17:09:30]wFMCommunicate request_size=4 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 0D 03 02 [17:09:30]Write to MH i2c: E2 08 00 C6 7F 80 0D 03 02 00 00 00 00 C0 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 0B 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 0B 00 C6 7F 00 3B F8 8F 94 1A A9 78 96 90 00 E8 [17:09:30]RAPDU: 3B F8 8F 94 1A A9 78 96 90 00 [17:09:30]wFMCommunicate OK [17:09:30]SAM_PROTO_SignData done [17:09:30]FM_MakeSignedData done [17:09:30]CreateOFDProtocolMessage [17:09:30]wFMCommunicate request_size=4 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 11 00 00 [17:09:30]Write to MH i2c: E2 08 00 C7 7F 80 11 00 00 00 00 00 00 C0 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 17 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 17 00 C7 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0D [17:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:09:30]wFMCommunicate OK [17:09:30]CreateOFDProtocolMessage done [17:09:30]OFDSenderStorePacket 49241 [17:09:30]StoreOFDPacket docnum=49241 [17:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 98 49 07 01 0E 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 5C 2D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 59 C0 00 00 35 04 06 00 0F C4 BE 15 56 E9 3B F8 8F 94 1A A9 78 96 [17:09:30]CheckFolder [17:09:30]dirname=/storage/ofd_packets [17:09:30]CheckFolder done [17:09:30]ProducePacketName [17:09:30]name=ofd_packets/00049241 [17:09:30]NVStorageSaveData ofd_packets/00049241 [17:09:30]File name is /storage/ofd_packets/00049241 [17:09:30]Write 301 bytes [17:09:30]NVStorageSaveData done [17:09:30]OFDSenderStorePacket done [17:09:30]KKMCreateOFDPacket done [17:09:30]NVStorageSaveData kkm_last_timestamp [17:09:30]File name is /storage/kkm_last_timestamp [17:09:30]Write 4 bytes [17:09:30]NVStorageSaveData done [17:09:30]ExternCall_PrintAddStr [17:09:30]wPrintStart [17:09:30]Write to MH i2c: 01 00 00 C8 7F 47 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 07 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 07 00 C8 7F 00 00 00 00 00 FF 0F 5C [17:09:30]RasterBufferAndPrint [17:09:30]line Счет N : (1)216344 [17:09:30]line ИНН: 02508201610067 [17:09:30]line Контрольно-Кассовый Чек [17:09:30]line ПРОДАЖА [17:09:30]line ТРК (МРК, ГНК) : 22 [17:09:30]line Товар: 2710124130 [17:09:30]line Аи-92-К-5 [17:09:30]line 4.980 * 60.30 [17:09:30]line = 300.29 [17:09:30]line НДС 12% НСП 1% [17:09:30]line > о реализуемом товаре [17:09:30]line ОКРУГЛЕНИЕ: -0.29 [17:09:30]line ИТОГО: 300.00 [17:09:30]line Внесено: 300.00 [17:09:30]line СДАЧА: 0.00 [17:09:30]line НСП 1% : 2.66 [17:09:30]line НДС 12% : 31.89 [17:09:30]line Наличными: 300.00 [17:09:30]line Безнал.: 0.00 [17:09:30]line Место: АЗС № 102 "Партнер Нефть" [17:09:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:09:30]line СНО: Общий режим [17:09:30]line Чек 117 30.01.2024 17:09 [17:09:30]line Смена: 246 ФФД: 1.0 [17:09:30]line ЗНМ: 0300000040 [17:09:30]line РНМ: 0000000000092723 [17:09:30]line Версия ККМ: 001 [17:09:30]line ФМ: 0000000000875060 [17:09:30]line ФД: 49241 [17:09:30]line ФПД: 17337677076201 [17:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T170948&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49241&fm=17337677076201&tin=02508201610067®Number=0000000000092723&sum=30000 [17:09:30]OFD Sender: Processing packet 49241 [packets to send 12, broken 11] [17:09:30]ProducePacketName [17:09:30]name=ofd_packets/00049241 [17:09:30]OFD Sender: To server: pG, [17:09:30]CommunicateWithHost lk.salyk.kg:30040 [17:09:30]ConnectInit lk.salyk.kg [17:09:30]written 0, free lines is 4095 [17:09:30]Connected sock=10 [17:09: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 36 30 0F 01 00 00 98 49 07 01 0E 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 5C 2D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 59 C0 00 00 35 04 06 00 0F C4 BE 15 56 E9 3B F8 8F 94 1A A9 78 96 [17:09: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 36 30 4F 00 00 00 09 88 47 00 04 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 36 30 10 04 04 00 59 C0 00 00 F4 03 04 00 51 D9 B8 65 B6 04 01 00 00 88 79 EF DC B9 32 3D 6B [17:09:30]CommunicateWithHost err = 0 [17:09:30]CheckOFDResponse [17:09:30]1017 (14) - 77093643461234 [17:09:30]1041 (16) - 0000000000875060 [17:09:30]1040 (4) - 49241 [17:09:30]1012 (4) - 30.01.2024 11:11 [17:09:30]1206 (1) - 0 [17:09:30]OFD Sender: Remove packet 49241 [17:09:30]ProducePacketName [17:09:30]name=ofd_packets/00049241 [17:09:30]NVStorageDeleteData [17:09:30]Write to MH i2c: 01 00 00 F3 7F 72 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 07 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 07 00 F3 7F 00 00 00 00 00 F6 0C 7B [17:09:30]RasterBufferAndPrint [17:09:30]line [17:09:31]line [17:09:31]line [17:09:31]line [17:09:31]line [17:09:31]written 0, free lines is 3324 [17:09:31]MH_Cut [17:09:31]Write to MH i2c: D1 01 00 FA 7F 01 4B [17:09:31]Write i2c OK [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: D1 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: D1 01 00 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: D1 01 00 FA 7F 00 4A [17:09:31]Write to MH i2c: 01 00 00 FB 7F 7A [17:09:31]Write i2c OK [17:09:31]MH_I2C_Read... [17:09:31]OFD Sender: No OFD packet to send [17:09:31]*** Cut start [17:09:31]*** Partial cut [17:09:31]*** CUTSNS_PIN = 1 [17:09:31]*** CUTSNS_PIN = 0 [17:09:31]*** Brake cut motor [17:09:32]Read from MH i2c: 01 [17:09:32]MH_I2C_Read... [17:09:32]*** Stop cut motor [17:09:32]*** Cut end [17:09:32]Read from MH i2c: 01 07 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: 01 07 00 FB 7F 00 00 00 00 00 FF 0F 8F [17:09:32]process_action close_receipt done [17:09:32]requested_data is exist [17:09:32]produce_requested_data [17:09:32]requested_item fm.sn is exist - process it [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 11 00 00 [17:09:32]Write to MH i2c: E2 08 00 FC 7F 80 11 00 00 00 00 00 00 F5 [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 17 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 17 00 FC 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 42 [17:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:09:32]wFMCommunicate OK [17:09:32]requested_item fd.num is exist - process it [17:09:32]SAM_PROTO_GetFieldsCounters [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 13 00 00 [17:09:32]Write to MH i2c: E2 08 00 FD 7F 80 13 00 00 00 00 00 00 F8 [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 62 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 62 00 FD 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 59 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [17:09: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 59 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:32]wFMCommunicate OK [17:09:32]SAM_PROTO_GetFieldsCounters done [17:09:32]requested_item shift.num is exist - process it [17:09:32]requested_item shift.opened is exist - process it [17:09:32]req_shift_opened [17:09:32]FM_GetShiftState [17:09:32]SAM_PROTO_GetShiftState [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 13 01 00 [17:09:32]Write to MH i2c: E2 08 00 FE 7F 80 13 01 00 00 00 00 00 FA [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 0E 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 0E 00 FE 7F 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 22 [17:09:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:09:32]wFMCommunicate OK [17:09:32]SAM_PROTO_GetShiftState done [17:09:32]FM_GetShiftState done [17:09:32]req_shift_opened done [17:09:32]requested_item shift.open_date is exist - process it [17:09:32]req_shift_open_date [17:09:32]req_shift_open_date done [17:09:32]produce_requested_data done [17:09:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49241,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:09:32]process_action_free close_receipt [17:09:32]json_value_free [17:09:32]json_value_free done [17:09:32]process_json_proto returns [17:09:32]Send response to host [17:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49241,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:09:32]free response buf [17:09:32]execute_script done [17:09:32]execute_script returns [17:09:32]free content buf [17:09:32]Sock 9.Close socket [17:09:32]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]accept exits with 7 [17:12:46]New connection [17:12:46]New thread 3066813796 created [17:12:46]Thread 3066670436 joined [17:12:46]Waiting for new connection... [17:12:46] Sock 7.Parse request [17:12:46]Sock 7.Check first char [17:12:46]Sock 7.First char is OK [17:12:46]request: POST /json_proto HTTP/1.0 [17:12:46]Method: POST [17:12:46]URL: /json_proto [17:12:46]Method is POST - this is cgi request [17:12:46]url: /json_proto [17:12:46]query_string will be loaded in cgi processing [17:12:46]execute_cgi json_proto POST (null) [17:12:46]execute_cgi path=json_proto method=POST [17:12:46]POST find Content-Length [17:12:46]Host: 172.17.56.67:8080 [17:12:46]Content-Length: 682 [17:12:46]Content-Type: application/json [17:12:46] [17:12:46]POST finish read [17:12:46]Found Content-Length = 682 [17:12:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 41.460, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:46]execute_script... [17:12:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 41.460, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:46]POST & json_proto [17:12:46]process_json_proto [17:12:46]json parsed OK: [17:12:46]protocol is kg_v1.0 [17:12:46]action value=close_receipt [17:12:46]process_action close_receipt [17:12:46]cmd_close_receipt [17:12:46]MH_GetDate [17:12:46]Write to MH i2c: F0 00 00 FF 7F 6D [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: F0 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: F0 09 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: F0 09 00 FF 7F 00 21 2E B9 65 26 5D 9E 65 69 [17:12:46]GetLastDocTimeStamp 1706634588 [17:12:46]current date 1706634785 [17:12:46]FM_GetShiftState [17:12:46]SAM_PROTO_GetShiftState [17:12:46]wFMCommunicate request_size=4 [17:12:46]MH_SAM_APDU [17:12:46]CAPDU: 80 13 01 00 [17:12:46]Write to MH i2c: E2 08 00 00 80 80 13 01 00 00 00 00 00 FD [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:46]Read from MH i2c: E2 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 0E 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 0E 00 00 80 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 25 [17:12:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:12:46]wFMCommunicate OK [17:12:46]SAM_PROTO_GetShiftState done [17:12:46]FM_GetShiftState done [17:12:46]opened in 1706572995 [17:12:46]opened+sec_in_day 1706659395 [17:12:46]quantity*price = 250003 [17:12:46]sum+1 = 250005 [17:12:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 118 30.01.2024 17:13 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49242 ФПД: 198994141926331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T171305&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49242&fm=198994141926331&tin=02508201610067®Number=0000000000092723&sum=250000 [17:12:47]StoreToDocumentArchive [17:12:47]shift 246 fd 49242 [17:12:47]save to /storage/0246/doc_00049242 [17:12:47]save last doc name /storage/0246/doc_00049242 to /storage/kkm_last_doc_name [17:12:47]save OK [17:12:47]Clear old archive folders... [17:12:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:47]tlvbuf is B6F36C30 [17:12:47]SAM_PROTO_ClearQueue [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 09 00 00 [17:12:47]Write to MH i2c: E2 08 00 0D 80 80 09 00 00 00 00 00 00 FF [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 03 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 03 00 0D 80 00 90 00 01 [17:12:47]RAPDU: 90 00 [17:12:47]wFMCommunicate OK [17:12:47]SAM_PROTO_ClearQueue done [17:12:47]KKMCreateOFDPacket [17:12:47]OFDProtocolAddRootSTLVToBuf [17:12:47]FM_MakeSignedData [17:12:47]FM_MakeSignedData [17:12:47]SAM_PROTO_SignData [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 0D 01 02 [17:12:47]Write to MH i2c: E2 08 00 0E 80 80 0D 01 02 00 00 00 00 07 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 03 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 03 00 0E 80 00 90 00 02 [17:12:47]RAPDU: 90 00 [17:12:47]wFMCommunicate OK [17:12:47]wFMCommunicate request_size=255 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 21 2E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5A C0 00 00 35 04 06 00 B4 [17:12:47]Write to MH i2c: E2 02 01 0F 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 21 2E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5A C0 00 00 35 04 06 00 B4 00 00 DF [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 03 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 03 00 0F 80 00 90 00 03 [17:12:47]RAPDU: 90 00 [17:12:47]wFMCommunicate OK [17:12:47]wFMCommunicate request_size=10 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 0D 02 02 05 FB EF 24 53 BB [17:12:47]Write to MH i2c: E2 0D 00 10 80 80 0D 02 02 05 00 FB EF 24 53 BB 00 00 30 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 03 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 03 00 10 80 00 90 00 04 [17:12:47]RAPDU: 90 00 [17:12:47]wFMCommunicate OK [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 0D 03 02 [17:12:47]Write to MH i2c: E2 08 00 11 80 80 0D 03 02 00 00 00 00 0C [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 0B 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 0B 00 11 80 00 F7 29 CD 7D 96 D2 0A 1E 90 00 07 [17:12:47]RAPDU: F7 29 CD 7D 96 D2 0A 1E 90 00 [17:12:47]wFMCommunicate OK [17:12:47]SAM_PROTO_SignData done [17:12:47]FM_MakeSignedData done [17:12:47]CreateOFDProtocolMessage [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 11 00 00 [17:12:47]Write to MH i2c: E2 08 00 12 80 80 11 00 00 00 00 00 00 0C [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 17 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 17 00 12 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 59 [17:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:12:47]wFMCommunicate OK [17:12:47]CreateOFDProtocolMessage done [17:12:47]OFDSenderStorePacket 49242 [17:12:47]StoreOFDPacket docnum=49242 [17:12:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0D 40 07 01 41 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 21 2E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5A C0 00 00 35 04 06 00 B4 FB EF 24 53 BB F7 29 CD 7D 96 D2 0A 1E [17:12:47]CheckFolder [17:12:47]dirname=/storage/ofd_packets [17:12:47]CheckFolder done [17:12:47]ProducePacketName [17:12:47]name=ofd_packets/00049242 [17:12:47]NVStorageSaveData ofd_packets/00049242 [17:12:47]File name is /storage/ofd_packets/00049242 [17:12:47]Write 301 bytes [17:12:47]NVStorageSaveData done [17:12:47]OFDSenderStorePacket done [17:12:47]KKMCreateOFDPacket done [17:12:47]NVStorageSaveData kkm_last_timestamp [17:12:47]File name is /storage/kkm_last_timestamp [17:12:47]Write 4 bytes [17:12:47]NVStorageSaveData done [17:12:47]ExternCall_PrintAddStr [17:12:47]wPrintStart [17:12:47]Write to MH i2c: 01 00 00 13 80 93 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: 01 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: 01 07 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: 01 07 00 13 80 00 00 00 00 00 FF 0F A8 [17:12:47]RasterBufferAndPrint [17:12:47]line Счет N : (1)216345 [17:12:47]line ИНН: 02508201610067 [17:12:47]line Контрольно-Кассовый Чек [17:12:47]line ПРОДАЖА [17:12:47]line ТРК (МРК, ГНК) : 12 [17:12:47]line Товар: 2710124130 [17:12:47]line Аи-92-К-5 [17:12:47]line 41.460 * 60.30 [17:12:47]line = 2500.04 [17:12:47]line НДС 12% НСП 1% [17:12:47]line > о реализуемом товаре [17:12:47]line ОКРУГЛЕНИЕ: -0.04 [17:12:47]line ИТОГО: 2500.00 [17:12:47]line Внесено: 2500.00 [17:12:47]line СДАЧА: 0.00 [17:12:47]line НСП 1% : 22.12 [17:12:47]line НДС 12% : 265.49 [17:12:47]line Наличными: 2500.00 [17:12:47]line Безнал.: 0.00 [17:12:47]line Место: АЗС № 102 "Партнер Нефть" [17:12:47]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:12:47]line СНО: Общий режим [17:12:47]line Чек 118 30.01.2024 17:13 [17:12:47]line Смена: 246 ФФД: 1.0 [17:12:47]line ЗНМ: 0300000040 [17:12:47]line РНМ: 0000000000092723 [17:12:47]line Версия ККМ: 001 [17:12:47]line ФМ: 0000000000875060 [17:12:47]line ФД: 49242 [17:12:47]line ФПД: 198994141926331 [17:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T171305&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49242&fm=198994141926331&tin=02508201610067®Number=0000000000092723&sum=250000 [17:12:48]OFD Sender: Processing packet 49242 [packets to send 12, broken 11] [17:12:48]ProducePacketName [17:12:48]name=ofd_packets/00049242 [17:12:48]OFD Sender: To server: pG, [17:12:48]CommunicateWithHost lk.salyk.kg:30040 [17:12:48]ConnectInit lk.salyk.kg [17:12:48]written 0, free lines is 4095 [17:12:48]Connected sock=10 [17:12: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 36 30 0F 01 00 00 0D 40 07 01 41 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 21 2E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5A C0 00 00 35 04 06 00 B4 FB EF 24 53 BB F7 29 CD 7D 96 D2 0A 1E [17:12: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 36 30 4F 00 00 00 F2 8F 47 00 20 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5A C0 00 00 F4 03 04 00 16 DA B8 65 B6 04 01 00 00 34 CA F1 58 A4 95 A7 75 [17:12:48]CommunicateWithHost err = 0 [17:12:48]CheckOFDResponse [17:12:48]1017 (14) - 77093643461234 [17:12:48]1041 (16) - 0000000000875060 [17:12:48]1040 (4) - 49242 [17:12:48]1012 (4) - 30.01.2024 11:14 [17:12:48]1206 (1) - 0 [17:12:48]OFD Sender: Remove packet 49242 [17:12:48]ProducePacketName [17:12:48]name=ofd_packets/00049242 [17:12:48]NVStorageDeleteData [17:12:48]Write to MH i2c: 01 00 00 3E 80 BE [17:12:48]Write i2c OK [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: 01 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: 01 07 00 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: 01 07 00 3E 80 00 00 00 00 00 F4 0C C5 [17:12:48]RasterBufferAndPrint [17:12:48]line [17:12:48]line [17:12:48]line [17:12:48]line [17:12:48]line [17:12:48]written 0, free lines is 3322 [17:12:48]MH_Cut [17:12:48]Write to MH i2c: D1 01 00 45 80 01 97 [17:12:48]Write i2c OK [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: D1 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: D1 01 00 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: D1 01 00 45 80 00 96 [17:12:48]Write to MH i2c: 01 00 00 46 80 C6 [17:12:48]Write i2c OK [17:12:48]MH_I2C_Read... [17:12:48]OFD Sender: No OFD packet to send [17:12:49]*** Cut start [17:12:49]*** Partial cut [17:12:49]*** CUTSNS_PIN = 1 [17:12:49]*** CUTSNS_PIN = 0 [17:12:49]*** Brake cut motor [17:12:49]Read from MH i2c: 01 [17:12:49]MH_I2C_Read... [17:12:49]*** Stop cut motor [17:12:49]*** Cut end [17:12:49]Read from MH i2c: 01 07 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: 01 07 00 46 80 00 00 00 00 00 FF 0F DB [17:12:49]process_action close_receipt done [17:12:49]requested_data is exist [17:12:49]produce_requested_data [17:12:49]requested_item fm.sn is exist - process it [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 11 00 00 [17:12:49]Write to MH i2c: E2 08 00 47 80 80 11 00 00 00 00 00 00 41 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 17 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 17 00 47 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8E [17:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:12:49]wFMCommunicate OK [17:12:49]requested_item fd.num is exist - process it [17:12:49]SAM_PROTO_GetFieldsCounters [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 13 00 00 [17:12:49]Write to MH i2c: E2 08 00 48 80 80 13 00 00 00 00 00 00 44 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 62 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 62 00 48 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [17:12: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:50]wFMCommunicate OK [17:12:50]SAM_PROTO_GetFieldsCounters done [17:12:50]requested_item shift.num is exist - process it [17:12:50]requested_item shift.opened is exist - process it [17:12:50]req_shift_opened [17:12:50]FM_GetShiftState [17:12:50]SAM_PROTO_GetShiftState [17:12:50]wFMCommunicate request_size=4 [17:12:50]MH_SAM_APDU [17:12:50]CAPDU: 80 13 01 00 [17:12:50]Write to MH i2c: E2 08 00 49 80 80 13 01 00 00 00 00 00 46 [17:12:50]Write i2c OK [17:12:50]MH_I2C_Read... [17:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:50]Read from MH i2c: E2 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: E2 0E 00 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: E2 0E 00 49 80 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6E [17:12:50]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:12:50]wFMCommunicate OK [17:12:50]SAM_PROTO_GetShiftState done [17:12:50]FM_GetShiftState done [17:12:50]req_shift_opened done [17:12:50]requested_item shift.open_date is exist - process it [17:12:50]req_shift_open_date [17:12:50]req_shift_open_date done [17:12:50]produce_requested_data done [17:12:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49242,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:12:50]process_action_free close_receipt [17:12:50]json_value_free [17:12:50]json_value_free done [17:12:50]process_json_proto returns [17:12:50]Send response to host [17:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49242,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:12:50]free response buf [17:12:50]execute_script done [17:12:50]execute_script returns [17:12:50]free content buf [17:12:50]Sock 7.Close socket [17:12:50]Sock 7.Thread stoped [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14: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:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [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:13]accept exits with 9 [17:28:13]New connection [17:28:13]New thread 3066670436 created [17:28:13]Thread 3066813796 joined [17:28:13]Waiting for new connection... [17:28:13] Sock 9.Parse request [17:28:13]Sock 9.Check first char [17:28:13]Sock 9.First char is OK [17:28:13]request: POST /json_proto HTTP/1.0 [17:28:13]Method: POST [17:28:13]URL: /json_proto [17:28:13]Method is POST - this is cgi request [17:28:13]url: /json_proto [17:28:13]query_string will be loaded in cgi processing [17:28:13]execute_cgi json_proto POST (null) [17:28:13]execute_cgi path=json_proto method=POST [17:28:13]POST find Content-Length [17:28:13]Host: 172.17.56.67:8080 [17:28:13]Content-Length: 677 [17:28:13]Content-Type: application/json [17:28:13] [17:28:13]POST finish read [17:28:13]Found Content-Length = 677 [17:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:13]execute_script... [17:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:13]POST & json_proto [17:28:13]process_json_proto [17:28:13]json parsed OK: [17:28:13]protocol is kg_v1.0 [17:28:13]action value=close_receipt [17:28:13]process_action close_receipt [17:28:13]cmd_close_receipt [17:28:13]MH_GetDate [17:28:13]Write to MH i2c: F0 00 00 4A 80 B9 [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: F0 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: F0 09 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: F0 09 00 4A 80 00 C1 31 B9 65 26 5D 9E 65 58 [17:28:13]GetLastDocTimeStamp 1706634785 [17:28:13]current date 1706635713 [17:28:13]FM_GetShiftState [17:28:13]SAM_PROTO_GetShiftState [17:28:13]wFMCommunicate request_size=4 [17:28:13]MH_SAM_APDU [17:28:13]CAPDU: 80 13 01 00 [17:28:13]Write to MH i2c: E2 08 00 4B 80 80 13 01 00 00 00 00 00 48 [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:13]Read from MH i2c: E2 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 0E 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 0E 00 4B 80 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 70 [17:28:13]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:28:13]wFMCommunicate OK [17:28:13]SAM_PROTO_GetShiftState done [17:28:13]FM_GetShiftState done [17:28:13]opened in 1706572995 [17:28:13]opened+sec_in_day 1706659395 [17:28:13]quantity*price = 50049 [17:28:13]sum+1 = 50050 [17:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 119 30.01.2024 17:28 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49243 ФПД: 71725705368338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T172833&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49243&fm=71725705368338&tin=02508201610067®Number=0000000000092723&sum=50000 [17:28:14]StoreToDocumentArchive [17:28:14]shift 246 fd 49243 [17:28:14]save to /storage/0246/doc_00049243 [17:28:14]save last doc name /storage/0246/doc_00049243 to /storage/kkm_last_doc_name [17:28:14]save OK [17:28:14]Clear old archive folders... [17:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:14]tlvbuf is 01214B00 [17:28:14]SAM_PROTO_ClearQueue [17:28:14]wFMCommunicate request_size=4 [17:28:14]MH_SAM_APDU [17:28:14]CAPDU: 80 09 00 00 [17:28:14]Write to MH i2c: E2 08 00 58 80 80 09 00 00 00 00 00 00 4A [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 58 80 00 90 00 4C [17:28:14]RAPDU: 90 00 [17:28:14]wFMCommunicate OK [17:28:14]SAM_PROTO_ClearQueue done [17:28:14]KKMCreateOFDPacket [17:28:14]OFDProtocolAddRootSTLVToBuf [17:28:14]FM_MakeSignedData [17:28:14]FM_MakeSignedData [17:28:14]SAM_PROTO_SignData [17:28:14]wFMCommunicate request_size=4 [17:28:14]MH_SAM_APDU [17:28:14]CAPDU: 80 0D 01 02 [17:28:14]Write to MH i2c: E2 08 00 59 80 80 0D 01 02 00 00 00 00 52 [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 [17:28:14]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 03 00 59 80 00 90 00 4D [17:28:15]RAPDU: 90 00 [17:28:15]wFMCommunicate OK [17:28:15]wFMCommunicate request_size=255 [17:28:15]MH_SAM_APDU [17:28:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 C1 31 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5B C0 00 00 35 04 06 00 41 [17:28:15]Write to MH i2c: E2 02 01 5A 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 C1 31 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5B C0 00 00 35 04 06 00 41 00 00 5B [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:15]Read from MH i2c: E2 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 03 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 03 00 5A 80 00 90 00 4E [17:28:15]RAPDU: 90 00 [17:28:15]wFMCommunicate OK [17:28:15]wFMCommunicate request_size=10 [17:28:15]MH_SAM_APDU [17:28:15]CAPDU: 80 0D 02 02 05 3B F1 30 93 12 [17:28:15]Write to MH i2c: E2 0D 00 5B 80 80 0D 02 02 05 00 3B F1 30 93 12 00 00 60 [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:15]Read from MH i2c: E2 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 03 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 03 00 5B 80 00 90 00 4F [17:28:15]RAPDU: 90 00 [17:28:15]wFMCommunicate OK [17:28:15]wFMCommunicate request_size=4 [17:28:15]MH_SAM_APDU [17:28:15]CAPDU: 80 0D 03 02 [17:28:15]Write to MH i2c: E2 08 00 5C 80 80 0D 03 02 00 00 00 00 57 [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:15]Read from MH i2c: E2 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 0B 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 0B 00 5C 80 00 FA C7 08 16 74 B4 39 63 90 00 FB [17:28:15]RAPDU: FA C7 08 16 74 B4 39 63 90 00 [17:28:15]wFMCommunicate OK [17:28:15]SAM_PROTO_SignData done [17:28:15]FM_MakeSignedData done [17:28:15]CreateOFDProtocolMessage [17:28:15]wFMCommunicate request_size=4 [17:28:15]MH_SAM_APDU [17:28:15]CAPDU: 80 11 00 00 [17:28:15]Write to MH i2c: E2 08 00 5D 80 80 11 00 00 00 00 00 00 57 [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:15]Read from MH i2c: E2 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 17 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 17 00 5D 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A4 [17:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:28:15]wFMCommunicate OK [17:28:15]CreateOFDProtocolMessage done [17:28:15]OFDSenderStorePacket 49243 [17:28:15]StoreOFDPacket docnum=49243 [17:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BB EE 07 01 C7 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 C1 31 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5B C0 00 00 35 04 06 00 41 3B F1 30 93 12 FA C7 08 16 74 B4 39 63 [17:28:15]CheckFolder [17:28:15]dirname=/storage/ofd_packets [17:28:15]CheckFolder done [17:28:15]ProducePacketName [17:28:15]name=ofd_packets/00049243 [17:28:15]NVStorageSaveData ofd_packets/00049243 [17:28:15]File name is /storage/ofd_packets/00049243 [17:28:15]Write 301 bytes [17:28:15]NVStorageSaveData done [17:28:15]OFDSenderStorePacket done [17:28:15]KKMCreateOFDPacket done [17:28:15]NVStorageSaveData kkm_last_timestamp [17:28:15]File name is /storage/kkm_last_timestamp [17:28:15]Write 4 bytes [17:28:15]NVStorageSaveData done [17:28:15]ExternCall_PrintAddStr [17:28:15]wPrintStart [17:28:15]Write to MH i2c: 01 00 00 5E 80 DE [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: 01 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: 01 07 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: 01 07 00 5E 80 00 00 00 00 00 FF 0F F3 [17:28:15]RasterBufferAndPrint [17:28:15]line Счет N : (1)216346 [17:28:15]line ИНН: 02508201610067 [17:28:15]line Контрольно-Кассовый Чек [17:28:15]line ПРОДАЖА [17:28:15]line ТРК (МРК, ГНК) : 12 [17:28:15]line Товар: 2710124130 [17:28:15]line Аи-92-К-5 [17:28:15]line 8.300 * 60.30 [17:28:15]line = 500.49 [17:28:15]line НДС 12% НСП 1% [17:28:15]line > о реализуемом товаре [17:28:15]line ОКРУГЛЕНИЕ: -0.49 [17:28:15]line ИТОГО: 500.00 [17:28:15]line Внесено: 500.00 [17:28:15]line СДАЧА: 0.00 [17:28:15]line НСП 1% : 4.43 [17:28:15]line НДС 12% : 53.15 [17:28:15]line Наличными: 500.00 [17:28:15]line Безнал.: 0.00 [17:28:15]line Место: АЗС № 102 "Партнер Нефть" [17:28:15]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:28:15]line СНО: Общий режим [17:28:15]line Чек 119 30.01.2024 17:28 [17:28:15]line Смена: 246 ФФД: 1.0 [17:28:15]line ЗНМ: 0300000040 [17:28:15]line РНМ: 0000000000092723 [17:28:15]line Версия ККМ: 001 [17:28:15]line ФМ: 0000000000875060 [17:28:15]line ФД: 49243 [17:28:15]line ФПД: 71725705368338 [17:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T172833&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49243&fm=71725705368338&tin=02508201610067®Number=0000000000092723&sum=50000 [17:28:15]OFD Sender: Processing packet 49243 [packets to send 12, broken 11] [17:28:15]ProducePacketName [17:28:15]name=ofd_packets/00049243 [17:28:15]OFD Sender: To server: pG, [17:28:15]CommunicateWithHost lk.salyk.kg:30040 [17:28:15]ConnectInit lk.salyk.kg [17:28:15]written 0, free lines is 4095 [17:28:15]Connected sock=10 [17:28: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 36 30 0F 01 00 00 BB EE 07 01 C7 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 C1 31 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5B C0 00 00 35 04 06 00 41 3B F1 30 93 12 FA C7 08 16 74 B4 39 63 [17: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 36 30 4F 00 00 00 7C 13 47 00 06 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 36 30 10 04 04 00 5B C0 00 00 F4 03 04 00 B6 DD B8 65 B6 04 01 00 00 3A 7E FC 46 39 4E 2F 28 [17:28:16]CommunicateWithHost err = 0 [17:28:16]CheckOFDResponse [17:28:16]1017 (14) - 77093643461234 [17:28:16]1041 (16) - 0000000000875060 [17:28:16]1040 (4) - 49243 [17:28:16]1012 (4) - 30.01.2024 11:29 [17:28:16]1206 (1) - 0 [17:28:16]OFD Sender: Remove packet 49243 [17:28:16]ProducePacketName [17:28:16]name=ofd_packets/00049243 [17:28:16]NVStorageDeleteData [17:28:16]Write to MH i2c: 01 00 00 89 80 09 [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: 01 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: 01 07 00 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: 01 07 00 89 80 00 00 00 00 00 00 0D 1D [17:28:16]RasterBufferAndPrint [17:28:16]line [17:28:16]line [17:28:16]line [17:28:16]line [17:28:16]line [17:28:16]written 0, free lines is 3337 [17:28:16]MH_Cut [17:28:16]Write to MH i2c: D1 01 00 90 80 01 E2 [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: D1 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: D1 01 00 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: D1 01 00 90 80 00 E1 [17:28:16]Write to MH i2c: 01 00 00 91 80 11 [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:16]OFD Sender: No OFD packet to send [17:28:16]*** Cut start [17:28:16]*** Partial cut [17:28:16]*** CUTSNS_PIN = 1 [17:28:16]*** CUTSNS_PIN = 0 [17:28:17]*** Brake cut motor [17:28:17]Read from MH i2c: 01 [17:28:17]MH_I2C_Read... [17:28:17]*** Stop cut motor [17:28:17]*** Cut end [17:28:17]Read from MH i2c: 01 07 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: 01 07 00 91 80 00 00 00 00 00 FF 0F 26 [17:28:17]process_action close_receipt done [17:28:17]requested_data is exist [17:28:17]produce_requested_data [17:28:17]requested_item fm.sn is exist - process it [17:28:17]wFMCommunicate request_size=4 [17:28:17]MH_SAM_APDU [17:28:17]CAPDU: 80 11 00 00 [17:28:17]Write to MH i2c: E2 08 00 92 80 80 11 00 00 00 00 00 00 8C [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:17]Read from MH i2c: E2 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 17 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 17 00 92 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D9 [17:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:28:17]wFMCommunicate OK [17:28:17]requested_item fd.num is exist - process it [17:28:17]SAM_PROTO_GetFieldsCounters [17:28:17]wFMCommunicate request_size=4 [17:28:17]MH_SAM_APDU [17:28:17]CAPDU: 80 13 00 00 [17:28:17]Write to MH i2c: E2 08 00 93 80 80 13 00 00 00 00 00 00 8F [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:17]Read from MH i2c: E2 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 62 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 62 00 93 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [17:28: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:17]wFMCommunicate OK [17:28:17]SAM_PROTO_GetFieldsCounters done [17:28:17]requested_item shift.num is exist - process it [17:28:17]requested_item shift.opened is exist - process it [17:28:17]req_shift_opened [17:28:17]FM_GetShiftState [17:28:17]SAM_PROTO_GetShiftState [17:28:17]wFMCommunicate request_size=4 [17:28:17]MH_SAM_APDU [17:28:17]CAPDU: 80 13 01 00 [17:28:17]Write to MH i2c: E2 08 00 94 80 80 13 01 00 00 00 00 00 91 [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:17]Read from MH i2c: E2 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 0E 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 0E 00 94 80 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B9 [17:28:17]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:28:17]wFMCommunicate OK [17:28:17]SAM_PROTO_GetShiftState done [17:28:17]FM_GetShiftState done [17:28:17]req_shift_opened done [17:28:17]requested_item shift.open_date is exist - process it [17:28:17]req_shift_open_date [17:28:17]req_shift_open_date done [17:28:17]produce_requested_data done [17:28:17]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49243,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:28:17]process_action_free close_receipt [17:28:17]json_value_free [17:28:17]json_value_free done [17:28:17]process_json_proto returns [17:28:17]Send response to host [17:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49243,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:28:17]free response buf [17:28:17]execute_script done [17:28:17]execute_script returns [17:28:17]free content buf [17:28:17]Sock 9.Close socket [17:28:17]Sock 9.Thread stoped [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:32]accept exits with 7 [17:36:32]New connection [17:36:32]New thread 3066813796 created [17:36:32]Thread 3066670436 joined [17:36:32]Waiting for new connection... [17:36:32] Sock 7.Parse request [17:36:32]Sock 7.Check first char [17:36:32]Sock 7.First char is OK [17:36:32]request: POST /json_proto HTTP/1.0 [17:36:32]Method: POST [17:36:32]URL: /json_proto [17:36:32]Method is POST - this is cgi request [17:36:32]url: /json_proto [17:36:32]query_string will be loaded in cgi processing [17:36:32]execute_cgi json_proto POST (null) [17:36:32]execute_cgi path=json_proto method=POST [17:36:32]POST find Content-Length [17:36:32]Host: 172.17.56.67:8080 [17:36:32]Content-Length: 1180 [17:36:32]Content-Type: application/json [17:36:32] [17:36:32]POST finish read [17:36:32]Found Content-Length = 1180 [17:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 102\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0423\u043C\u043E\u0440\u043E\u0432 \u0421. \u000A\u0421\u0447\u0435\u0442 N : (1)216347\u000A30.01.2024 17:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 69.90\u000A\u0418\u0422\u041E\u0413: 2097.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00781\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:32]execute_script... [17:36:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 102\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0423\u043C\u043E\u0440\u043E\u0432 \u0421. \u000A\u0421\u0447\u0435\u0442 N : (1)216347\u000A30.01.2024 17:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 69.90\u000A\u0418\u0422\u041E\u0413: 2097.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00781\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:32]POST & json_proto [17:36:32]process_json_proto [17:36:32]json parsed OK: [17:36:32]protocol is kg_v1.0 [17:36:32]action value=print_text [17:36:32]process_action print_text [17:36:32]cmd_print_text [17:36:32]ExternCall_PrintAddStr [17:36:32]wPrintStart [17:36:32]Write to MH i2c: 01 00 00 95 80 15 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 07 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 07 00 95 80 00 00 00 00 00 FF 0F 2A [17:36:32]RasterBufferAndPrint [17:36:32]line *****ТОВАРНЫЙ ЧЕК***** [17:36:32]line АЗС 102 [17:36:32]line Партнер нефть [17:36:32]line 02508201610067 [17:36:32]line Кассир : Уморов С. [17:36:32]line Счет N : (1)216347 [17:36:32]line 30.01.2024 17:35 [17:36:32]line ПРОДАЖА [17:36:32]line ТРК (МРК, ГНК): 21 [17:36:32]line Вид ГСМ : 2710194210 [17:36:32]line ДТ-К-5 [17:36:32]line 30.000 x 69.90 [17:36:32]line ИТОГ: 2097.00 [17:36:32]line Тип оплаты: Талоны: Топливная Карта [17:36:32]line 00781 [17:36:32]line ______________________ [17:36:32]line (подпись) [17:36:32]written 0, free lines is 4095 [17:36:32]Write to MH i2c: 01 00 00 A9 80 29 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 07 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 07 00 A9 80 00 00 00 00 00 0F 0E 4D [17:36:32]RasterBufferAndPrint [17:36:32]line [17:36:32]line [17:36:32]line [17:36:32]line [17:36:32]line [17:36:32]written 0, free lines is 3601 [17:36:32]MH_Cut [17:36:32]Write to MH i2c: D1 01 00 B0 80 01 02 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: D1 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: D1 01 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: D1 01 00 B0 80 00 01 [17:36:32]Write to MH i2c: 01 00 00 B1 80 31 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]*** Cut start [17:36:32]*** Partial cut [17:36:32]*** CUTSNS_PIN = 1 [17:36:32]*** CUTSNS_PIN = 0 [17:36:33]*** Brake cut motor [17:36:33]Read from MH i2c: 01 [17:36:33]MH_I2C_Read... [17:36:33]*** Stop cut motor [17:36:33]*** Cut end [17:36:33]Read from MH i2c: 01 07 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: 01 07 00 B1 80 00 00 00 00 00 FF 0F 46 [17:36:33]process_action print_text done [17:36:33]requested_data is exist [17:36:33]produce_requested_data [17:36:33]requested_item fm.sn is exist - process it [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 11 00 00 [17:36:33]Write to MH i2c: E2 08 00 B2 80 80 11 00 00 00 00 00 00 AC [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 17 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 17 00 B2 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F9 [17:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:36:33]wFMCommunicate OK [17:36:33]requested_item fd.num is exist - process it [17:36:33]SAM_PROTO_GetFieldsCounters [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 00 00 [17:36:33]Write to MH i2c: E2 08 00 B3 80 80 13 00 00 00 00 00 00 AF [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 62 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 62 00 B3 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [17:36: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:33]wFMCommunicate OK [17:36:33]SAM_PROTO_GetFieldsCounters done [17:36:33]requested_item shift.num is exist - process it [17:36:33]requested_item shift.opened is exist - process it [17:36:33]req_shift_opened [17:36:33]FM_GetShiftState [17:36:33]SAM_PROTO_GetShiftState [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 01 00 [17:36:33]Write to MH i2c: E2 08 00 B4 80 80 13 01 00 00 00 00 00 B1 [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0E 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0E 00 B4 80 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D9 [17:36:33]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:36:33]wFMCommunicate OK [17:36:33]SAM_PROTO_GetShiftState done [17:36:33]FM_GetShiftState done [17:36:33]req_shift_opened done [17:36:33]requested_item shift.open_date is exist - process it [17:36:33]req_shift_open_date [17:36:33]req_shift_open_date done [17:36:33]produce_requested_data done [17:36:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49243,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:36:33]process_action_free print_text [17:36:33]json_value_free [17:36:33]json_value_free done [17:36:33]process_json_proto returns [17:36:33]Send response to host [17:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49243,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:36:33]free response buf [17:36:33]execute_script done [17:36:33]execute_script returns [17:36:33]free content buf [17:36:33]Sock 7.Close socket [17:36:33]Sock 7.Thread stoped [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:45]accept exits with 9 [17:42:45]New connection [17:42:45]New thread 3066670436 created [17:42:45]Thread 3066813796 joined [17:42:45]Waiting for new connection... [17:42:45] Sock 9.Parse request [17:42:45]Sock 9.Check first char [17:42:45]Sock 9.First char is OK [17:42:45]request: POST /json_proto HTTP/1.0 [17:42:45]Method: POST [17:42:45]URL: /json_proto [17:42:45]Method is POST - this is cgi request [17:42:45]url: /json_proto [17:42:45]query_string will be loaded in cgi processing [17:42:45]execute_cgi json_proto POST (null) [17:42:45]execute_cgi path=json_proto method=POST [17:42:45]POST find Content-Length [17:42:45]Host: 172.17.56.67:8080 [17:42:45]Content-Length: 674 [17:42:45]Content-Type: application/json [17:42:45] [17:42:45]POST finish read [17:42:45]Found Content-Length = 674 [17:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 5.730, "sum" : 400.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:45]execute_script... [17:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 5.730, "sum" : 400.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:45]POST & json_proto [17:42:45]process_json_proto [17:42:45]json parsed OK: [17:42:45]protocol is kg_v1.0 [17:42:45]action value=close_receipt [17:42:45]process_action close_receipt [17:42:45]cmd_close_receipt [17:42:45]MH_GetDate [17:42:45]Write to MH i2c: F0 00 00 B5 80 24 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: F0 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: F0 09 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: F0 09 00 B5 80 00 28 35 B9 65 26 5D 9E 65 2E [17:42:45]GetLastDocTimeStamp 1706635713 [17:42:45]current date 1706636584 [17:42:45]FM_GetShiftState [17:42:45]SAM_PROTO_GetShiftState [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 13 01 00 [17:42:45]Write to MH i2c: E2 08 00 B6 80 80 13 01 00 00 00 00 00 B3 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 B6 80 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 DB [17:42:45]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:42:45]wFMCommunicate OK [17:42:45]SAM_PROTO_GetShiftState done [17:42:45]FM_GetShiftState done [17:42:45]opened in 1706572995 [17:42:45]opened+sec_in_day 1706659395 [17:42:45]quantity*price = 40052 [17:42:45]sum+1 = 40054 [17:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 120 30.01.2024 17:43 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49244 ФПД: 218211565544590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T174304&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49244&fm=218211565544590&tin=02508201610067®Number=0000000000092723&sum=40000 [17:42:46]StoreToDocumentArchive [17:42:46]shift 246 fd 49244 [17:42:46]save to /storage/0246/doc_00049244 [17:42:46]save last doc name /storage/0246/doc_00049244 to /storage/kkm_last_doc_name [17:42:46]save OK [17:42:46]Clear old archive folders... [17:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:42:46]tlvbuf is 01284250 [17:42:46]SAM_PROTO_ClearQueue [17:42:46]wFMCommunicate request_size=4 [17:42:46]MH_SAM_APDU [17:42:46]CAPDU: 80 09 00 00 [17:42:46]Write to MH i2c: E2 08 00 C3 80 80 09 00 00 00 00 00 00 B5 [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:46]Read from MH i2c: E2 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 03 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 03 00 C3 80 00 90 00 B7 [17:42:46]RAPDU: 90 00 [17:42:46]wFMCommunicate OK [17:42:46]SAM_PROTO_ClearQueue done [17:42:46]KKMCreateOFDPacket [17:42:46]OFDProtocolAddRootSTLVToBuf [17:42:46]FM_MakeSignedData [17:42:46]FM_MakeSignedData [17:42:46]SAM_PROTO_SignData [17:42:46]wFMCommunicate request_size=4 [17:42:46]MH_SAM_APDU [17:42:46]CAPDU: 80 0D 01 02 [17:42:46]Write to MH i2c: E2 08 00 C4 80 80 0D 01 02 00 00 00 00 BD [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:46]Read from MH i2c: E2 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 03 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 03 00 C4 80 00 90 00 B8 [17:42:46]RAPDU: 90 00 [17:42:46]wFMCommunicate OK [17:42:46]wFMCommunicate request_size=255 [17:42:46]MH_SAM_APDU [17:42:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 28 35 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5C C0 00 00 35 04 06 00 C6 76 56 D9 [17:42:46]Write to MH i2c: E2 02 01 C5 80 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 28 35 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5C C0 00 00 35 04 06 00 C6 76 56 D9 00 00 3C [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:46]Read from MH i2c: E2 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 03 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 03 00 C5 80 00 90 00 B9 [17:42:46]RAPDU: 90 00 [17:42:46]wFMCommunicate OK [17:42:46]wFMCommunicate request_size=7 [17:42:46]MH_SAM_APDU [17:42:46]CAPDU: 80 0D 02 02 02 A4 8E [17:42:46]Write to MH i2c: E2 0A 00 C6 80 80 0D 02 02 02 00 A4 8E 00 00 F6 [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:46]Read from MH i2c: E2 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 03 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 03 00 C6 80 00 90 00 BA [17:42:46]RAPDU: 90 00 [17:42:46]wFMCommunicate OK [17:42:46]wFMCommunicate request_size=4 [17:42:46]MH_SAM_APDU [17:42:46]CAPDU: 80 0D 03 02 [17:42:46]Write to MH i2c: E2 08 00 C7 80 80 0D 03 02 00 00 00 00 C2 [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:46]Read from MH i2c: E2 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 0B 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 0B 00 C7 80 00 FB 45 5E 14 DD 7C C8 90 90 00 26 [17:42:46]RAPDU: FB 45 5E 14 DD 7C C8 90 90 00 [17:42:46]wFMCommunicate OK [17:42:46]SAM_PROTO_SignData done [17:42:46]FM_MakeSignedData done [17:42:46]CreateOFDProtocolMessage [17:42:46]wFMCommunicate request_size=4 [17:42:46]MH_SAM_APDU [17:42:46]CAPDU: 80 11 00 00 [17:42:46]Write to MH i2c: E2 08 00 C8 80 80 11 00 00 00 00 00 00 C2 [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:46]Read from MH i2c: E2 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 17 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 17 00 C8 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0F [17:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:42:46]wFMCommunicate OK [17:42:46]CreateOFDProtocolMessage done [17:42:46]OFDSenderStorePacket 49244 [17:42:46]StoreOFDPacket docnum=49244 [17:42:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 12 1E 04 01 B9 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 28 35 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5C C0 00 00 35 04 06 00 C6 76 56 D9 A4 8E FB 45 5E 14 DD 7C C8 90 [17:42:46]CheckFolder [17:42:46]dirname=/storage/ofd_packets [17:42:46]CheckFolder done [17:42:46]ProducePacketName [17:42:46]name=ofd_packets/00049244 [17:42:46]NVStorageSaveData ofd_packets/00049244 [17:42:46]File name is /storage/ofd_packets/00049244 [17:42:46]Write 298 bytes [17:42:46]NVStorageSaveData done [17:42:46]OFDSenderStorePacket done [17:42:46]KKMCreateOFDPacket done [17:42:46]NVStorageSaveData kkm_last_timestamp [17:42:46]File name is /storage/kkm_last_timestamp [17:42:46]Write 4 bytes [17:42:46]NVStorageSaveData done [17:42:46]ExternCall_PrintAddStr [17:42:46]wPrintStart [17:42:46]Write to MH i2c: 01 00 00 C9 80 49 [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: 01 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: 01 07 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: 01 07 00 C9 80 00 00 00 00 00 FF 0F 5E [17:42:46]RasterBufferAndPrint [17:42:46]line Счет N : (1)216348 [17:42:46]line ИНН: 02508201610067 [17:42:46]line Контрольно-Кассовый Чек [17:42:46]line ПРОДАЖА [17:42:46]line ТРК (МРК, ГНК) : 21 [17:42:46]line Товар: 2710194210 [17:42:46]line ДТ-К-5 [17:42:46]line 5.730 * 69.90 [17:42:46]line = 400.53 [17:42:46]line НДС 12% НСП 1% [17:42:46]line > о реализуемом товаре [17:42:46]line ОКРУГЛЕНИЕ: -0.53 [17:42:46]line ИТОГО: 400.00 [17:42:46]line Внесено: 400.00 [17:42:46]line СДАЧА: 0.00 [17:42:46]line НСП 1% : 3.54 [17:42:46]line НДС 12% : 42.53 [17:42:46]line Наличными: 400.00 [17:42:46]line Безнал.: 0.00 [17:42:46]line Место: АЗС № 102 "Партнер Нефть" [17:42:46]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:42:46]line СНО: Общий режим [17:42:46]line Чек 120 30.01.2024 17:43 [17:42:46]line Смена: 246 ФФД: 1.0 [17:42:46]line ЗНМ: 0300000040 [17:42:46]line РНМ: 0000000000092723 [17:42:46]line Версия ККМ: 001 [17:42:46]line ФМ: 0000000000875060 [17:42:46]line ФД: 49244 [17:42:46]line ФПД: 218211565544590 [17:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T174304&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49244&fm=218211565544590&tin=02508201610067®Number=0000000000092723&sum=40000 [17:42:47]OFD Sender: Processing packet 49244 [packets to send 12, broken 11] [17:42:47]ProducePacketName [17:42:47]name=ofd_packets/00049244 [17:42:47]OFD Sender: To server: pG, [17:42:47]CommunicateWithHost lk.salyk.kg:30040 [17:42:47]ConnectInit lk.salyk.kg [17:42:47]written 0, free lines is 4095 [17:42:47]Connected sock=10 [17:42:47]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 36 30 0C 01 00 00 12 1E 04 01 B9 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 28 35 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5C C0 00 00 35 04 06 00 C6 76 56 D9 A4 8E FB 45 5E 14 DD 7C C8 90 [17:42:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E9 01 47 00 F1 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 36 30 10 04 04 00 5C C0 00 00 F4 03 04 00 1D E1 B8 65 B6 04 01 00 00 B2 62 3C 37 EF 2F 7F F8 [17:42:47]CommunicateWithHost err = 0 [17:42:47]CheckOFDResponse [17:42:47]1017 (14) - 77093643461234 [17:42:47]1041 (16) - 0000000000875060 [17:42:47]1040 (4) - 49244 [17:42:47]1012 (4) - 30.01.2024 11:44 [17:42:47]1206 (1) - 0 [17:42:47]OFD Sender: Remove packet 49244 [17:42:47]ProducePacketName [17:42:47]name=ofd_packets/00049244 [17:42:47]NVStorageDeleteData [17:42:47]Write to MH i2c: 01 00 00 F4 80 74 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 07 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 07 00 F4 80 00 00 00 00 00 FF 0C 86 [17:42:47]RasterBufferAndPrint [17:42:47]line [17:42:47]line [17:42:47]line [17:42:47]line [17:42:47]line [17:42:47]written 0, free lines is 3333 [17:42:47]MH_Cut [17:42:47]Write to MH i2c: D1 01 00 FB 80 01 4D [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: D1 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: D1 01 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: D1 01 00 FB 80 00 4C [17:42:47]Write to MH i2c: 01 00 00 FC 80 7C [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]OFD Sender: No OFD packet to send [17:42:48]*** Cut start [17:42:48]*** Partial cut [17:42:48]*** CUTSNS_PIN = 1 [17:42:48]*** CUTSNS_PIN = 0 [17:42:48]*** Brake cut motor [17:42:48]Read from MH i2c: 01 [17:42:48]MH_I2C_Read... [17:42:48]*** Stop cut motor [17:42:48]*** Cut end [17:42:48]Read from MH i2c: 01 07 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: 01 07 00 FC 80 00 00 00 00 00 FF 0F 91 [17:42:48]process_action close_receipt done [17:42:48]requested_data is exist [17:42:48]produce_requested_data [17:42:48]requested_item fm.sn is exist - process it [17:42:48]wFMCommunicate request_size=4 [17:42:48]MH_SAM_APDU [17:42:48]CAPDU: 80 11 00 00 [17:42:48]Write to MH i2c: E2 08 00 FD 80 80 11 00 00 00 00 00 00 F7 [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:48]Read from MH i2c: E2 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: E2 17 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: E2 17 00 FD 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 44 [17:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:42:48]wFMCommunicate OK [17:42:48]requested_item fd.num is exist - process it [17:42:48]SAM_PROTO_GetFieldsCounters [17:42:48]wFMCommunicate request_size=4 [17:42:48]MH_SAM_APDU [17:42:48]CAPDU: 80 13 00 00 [17:42:48]Write to MH i2c: E2 08 00 FE 80 80 13 00 00 00 00 00 00 FA [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 62 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 62 00 FE 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [17:42: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:49]wFMCommunicate OK [17:42:49]SAM_PROTO_GetFieldsCounters done [17:42:49]requested_item shift.num is exist - process it [17:42:49]requested_item shift.opened is exist - process it [17:42:49]req_shift_opened [17:42:49]FM_GetShiftState [17:42:49]SAM_PROTO_GetShiftState [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 13 01 00 [17:42:49]Write to MH i2c: E2 08 00 FF 80 80 13 01 00 00 00 00 00 FC [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 0E 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 0E 00 FF 80 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 24 [17:42:49]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:42:49]wFMCommunicate OK [17:42:49]SAM_PROTO_GetShiftState done [17:42:49]FM_GetShiftState done [17:42:49]req_shift_opened done [17:42:49]requested_item shift.open_date is exist - process it [17:42:49]req_shift_open_date [17:42:49]req_shift_open_date done [17:42:49]produce_requested_data done [17:42:49]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49244,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:42:49]process_action_free close_receipt [17:42:49]json_value_free [17:42:49]json_value_free done [17:42:49]process_json_proto returns [17:42:49]Send response to host [17:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49244,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:42:49]free response buf [17:42:49]execute_script done [17:42:49]execute_script returns [17:42:49]free content buf [17:42:49]Sock 9.Close socket [17:42:49]Sock 9.Thread stoped [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]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:51]accept exits with 7 [17:43:51]New connection [17:43:51]New thread 3066813796 created [17:43:51]Thread 3066670436 joined [17:43:51]Waiting for new connection... [17:43:51] Sock 7.Parse request [17:43:51]Sock 7.Check first char [17:43:51]Sock 7.First char is OK [17:43:51]request: POST /json_proto HTTP/1.0 [17:43:51]Method: POST [17:43:51]URL: /json_proto [17:43:51]Method is POST - this is cgi request [17:43:51]url: /json_proto [17:43:51]query_string will be loaded in cgi processing [17:43:51]execute_cgi json_proto POST (null) [17:43:51]execute_cgi path=json_proto method=POST [17:43:51]POST find Content-Length [17:43:51]Host: 172.17.56.67:8080 [17:43:51]Content-Length: 674 [17:43:51]Content-Type: application/json [17:43:51] [17:43:51]POST finish read [17:43:51]Found Content-Length = 674 [17:43:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 5.730, "sum" : 400.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:51]execute_script... [17:43:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 5.730, "sum" : 400.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:51]POST & json_proto [17:43:51]process_json_proto [17:43:51]json parsed OK: [17:43:51]protocol is kg_v1.0 [17:43:51]action value=close_receipt [17:43:51]process_action close_receipt [17:43:51]cmd_close_receipt [17:43:51]MH_GetDate [17:43:51]Write to MH i2c: F0 00 00 00 81 70 [17:43:51]Write i2c OK [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: F0 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: F0 09 00 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: F0 09 00 00 81 00 6B 35 B9 65 26 5D 9E 65 BD [17:43:51]GetLastDocTimeStamp 1706636584 [17:43:51]current date 1706636651 [17:43:51]FM_GetShiftState [17:43:51]SAM_PROTO_GetShiftState [17:43:51]wFMCommunicate request_size=4 [17:43:51]MH_SAM_APDU [17:43:51]CAPDU: 80 13 01 00 [17:43:51]Write to MH i2c: E2 08 00 01 81 80 13 01 00 00 00 00 00 FF [17:43:51]Write i2c OK [17:43:51]MH_I2C_Read... [17:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:51]Read from MH i2c: E2 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 0E 00 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 0E 00 01 81 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 27 [17:43:51]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:43:51]wFMCommunicate OK [17:43:51]SAM_PROTO_GetShiftState done [17:43:51]FM_GetShiftState done [17:43:51]opened in 1706572995 [17:43:51]opened+sec_in_day 1706659395 [17:43:51]quantity*price = 40052 [17:43:51]sum+1 = 40054 [17:43:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 121 30.01.2024 17:44 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49245 ФПД: 93536918504393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T174411&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49245&fm=93536918504393&tin=02508201610067®Number=0000000000092723&sum=40000 [17:43:53]StoreToDocumentArchive [17:43:53]shift 246 fd 49245 [17:43:53]save to /storage/0246/doc_00049245 [17:43:53]save last doc name /storage/0246/doc_00049245 to /storage/kkm_last_doc_name [17:43:53]save OK [17:43:53]Clear old archive folders... [17:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:43:53]tlvbuf is B6D866E0 [17:43:53]SAM_PROTO_ClearQueue [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 09 00 00 [17:43:53]Write to MH i2c: E2 08 00 0E 81 80 09 00 00 00 00 00 00 01 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 0E 81 00 90 00 03 [17:43:53]RAPDU: 90 00 [17:43:53]wFMCommunicate OK [17:43:53]SAM_PROTO_ClearQueue done [17:43:53]KKMCreateOFDPacket [17:43:53]OFDProtocolAddRootSTLVToBuf [17:43:53]FM_MakeSignedData [17:43:53]FM_MakeSignedData [17:43:53]SAM_PROTO_SignData [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 0D 01 02 [17:43:53]Write to MH i2c: E2 08 00 0F 81 80 0D 01 02 00 00 00 00 09 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 0F 81 00 90 00 04 [17:43:53]RAPDU: 90 00 [17:43:53]wFMCommunicate OK [17:43:53]wFMCommunicate request_size=255 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6B 35 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5D C0 00 00 35 04 06 00 55 12 42 CD [17:43:53]Write to MH i2c: E2 02 01 10 81 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6B 35 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5D C0 00 00 35 04 06 00 55 12 42 CD 00 00 D8 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 10 81 00 90 00 05 [17:43:53]RAPDU: 90 00 [17:43:53]wFMCommunicate OK [17:43:53]wFMCommunicate request_size=7 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 0D 02 02 02 03 C9 [17:43:53]Write to MH i2c: E2 0A 00 11 81 80 0D 02 02 02 00 03 C9 00 00 DC [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 11 81 00 90 00 06 [17:43:53]RAPDU: 90 00 [17:43:53]wFMCommunicate OK [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 0D 03 02 [17:43:53]Write to MH i2c: E2 08 00 12 81 80 0D 03 02 00 00 00 00 0E [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 0B 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 0B 00 12 81 00 C2 3D 3A 78 40 1D 41 4C 90 00 AA [17:43:53]RAPDU: C2 3D 3A 78 40 1D 41 4C 90 00 [17:43:53]wFMCommunicate OK [17:43:53]SAM_PROTO_SignData done [17:43:53]FM_MakeSignedData done [17:43:53]CreateOFDProtocolMessage [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 11 00 00 [17:43:53]Write to MH i2c: E2 08 00 13 81 80 11 00 00 00 00 00 00 0E [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 17 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 17 00 13 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5B [17:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:43:53]wFMCommunicate OK [17:43:53]CreateOFDProtocolMessage done [17:43:53]OFDSenderStorePacket 49245 [17:43:53]StoreOFDPacket docnum=49245 [17:43:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 64 C7 04 01 11 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6B 35 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5D C0 00 00 35 04 06 00 55 12 42 CD 03 C9 C2 3D 3A 78 40 1D 41 4C [17:43:53]CheckFolder [17:43:53]dirname=/storage/ofd_packets [17:43:53]CheckFolder done [17:43:53]ProducePacketName [17:43:53]name=ofd_packets/00049245 [17:43:53]NVStorageSaveData ofd_packets/00049245 [17:43:53]File name is /storage/ofd_packets/00049245 [17:43:53]Write 298 bytes [17:43:53]NVStorageSaveData done [17:43:53]OFDSenderStorePacket done [17:43:53]KKMCreateOFDPacket done [17:43:53]NVStorageSaveData kkm_last_timestamp [17:43:53]File name is /storage/kkm_last_timestamp [17:43:53]Write 4 bytes [17:43:53]NVStorageSaveData done [17:43:53]ExternCall_PrintAddStr [17:43:53]wPrintStart [17:43:53]Write to MH i2c: 01 00 00 14 81 95 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: 01 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: 01 07 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: 01 07 00 14 81 00 00 00 00 00 FF 0F AA [17:43:53]RasterBufferAndPrint [17:43:53]line Счет N : (1)216349 [17:43:53]line ИНН: 02508201610067 [17:43:53]line Контрольно-Кассовый Чек [17:43:53]line ПРОДАЖА [17:43:53]line ТРК (МРК, ГНК) : 21 [17:43:53]line Товар: 2710194210 [17:43:53]line ДТ-К-5 [17:43:53]line 5.730 * 69.90 [17:43:53]line = 400.53 [17:43:53]line НДС 12% НСП 1% [17:43:53]line > о реализуемом товаре [17:43:53]line ОКРУГЛЕНИЕ: -0.53 [17:43:53]line ИТОГО: 400.00 [17:43:53]line Внесено: 400.00 [17:43:53]line СДАЧА: 0.00 [17:43:53]line НСП 1% : 3.54 [17:43:53]line НДС 12% : 42.53 [17:43:53]line Наличными: 400.00 [17:43:53]line Безнал.: 0.00 [17:43:53]line Место: АЗС № 102 "Партнер Нефть" [17:43:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:43:53]line СНО: Общий режим [17:43:53]line Чек 121 30.01.2024 17:44 [17:43:53]line Смена: 246 ФФД: 1.0 [17:43:53]line ЗНМ: 0300000040 [17:43:53]line РНМ: 0000000000092723 [17:43:53]line Версия ККМ: 001 [17:43:53]line ФМ: 0000000000875060 [17:43:53]line ФД: 49245 [17:43:53]line ФПД: 93536918504393 [17:43:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T174411&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49245&fm=93536918504393&tin=02508201610067®Number=0000000000092723&sum=40000 [17:43:53]OFD Sender: Processing packet 49245 [packets to send 12, broken 11] [17:43:53]ProducePacketName [17:43:53]name=ofd_packets/00049245 [17:43:53]OFD Sender: To server: pG, [17:43:53]CommunicateWithHost lk.salyk.kg:30040 [17:43:53]ConnectInit lk.salyk.kg [17:43:53]written 0, free lines is 4095 [17:43:53]Connected sock=10 [17:43: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 36 30 0C 01 00 00 64 C7 04 01 11 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 6B 35 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5D C0 00 00 35 04 06 00 55 12 42 CD 03 C9 C2 3D 3A 78 40 1D 41 4C [17:43: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 36 30 4F 00 00 00 9F 6F 47 00 B4 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5D C0 00 00 F4 03 04 00 60 E1 B8 65 B6 04 01 00 00 5C 98 73 02 4E A5 7D 73 [17:43:54]CommunicateWithHost err = 0 [17:43:54]CheckOFDResponse [17:43:54]1017 (14) - 77093643461234 [17:43:54]1041 (16) - 0000000000875060 [17:43:54]1040 (4) - 49245 [17:43:54]1012 (4) - 30.01.2024 11:45 [17:43:54]1206 (1) - 0 [17:43:54]OFD Sender: Remove packet 49245 [17:43:54]ProducePacketName [17:43:54]name=ofd_packets/00049245 [17:43:54]NVStorageDeleteData [17:43:54]Write to MH i2c: 01 00 00 3F 81 C0 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: 01 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: 01 07 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: 01 07 00 3F 81 00 00 00 00 00 EC 0C BF [17:43:54]RasterBufferAndPrint [17:43:54]line [17:43:54]line [17:43:54]line [17:43:54]line [17:43:54]line [17:43:54]written 0, free lines is 3314 [17:43:54]MH_Cut [17:43:54]Write to MH i2c: D1 01 00 46 81 01 99 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: D1 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: D1 01 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: D1 01 00 46 81 00 98 [17:43:54]Write to MH i2c: 01 00 00 47 81 C8 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]OFD Sender: No OFD packet to send [17:43:55]*** Cut start [17:43:55]*** Partial cut [17:43:55]*** CUTSNS_PIN = 1 [17:43:55]*** CUTSNS_PIN = 0 [17:43:55]*** Brake cut motor [17:43:55]Read from MH i2c: 01 [17:43:55]MH_I2C_Read... [17:43:55]*** Stop cut motor [17:43:55]Read from MH i2c: 01 07 00 [17:43:55]MH_I2C_Read... [17:43:55]*** Cut end [17:43:55]Read from MH i2c: 01 07 00 47 81 00 00 00 00 00 FF 0F DD [17:43:55]process_action close_receipt done [17:43:55]requested_data is exist [17:43:55]produce_requested_data [17:43:55]requested_item fm.sn is exist - process it [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 11 00 00 [17:43:55]Write to MH i2c: E2 08 00 48 81 80 11 00 00 00 00 00 00 43 [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 17 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 17 00 48 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 90 [17:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:43:55]wFMCommunicate OK [17:43:55]requested_item fd.num is exist - process it [17:43:55]SAM_PROTO_GetFieldsCounters [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 13 00 00 [17:43:55]Write to MH i2c: E2 08 00 49 81 80 13 00 00 00 00 00 00 46 [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 62 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 62 00 49 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [17:43: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:55]wFMCommunicate OK [17:43:55]SAM_PROTO_GetFieldsCounters done [17:43:55]requested_item shift.num is exist - process it [17:43:55]requested_item shift.opened is exist - process it [17:43:55]req_shift_opened [17:43:55]FM_GetShiftState [17:43:55]SAM_PROTO_GetShiftState [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 13 01 00 [17:43:55]Write to MH i2c: E2 08 00 4A 81 80 13 01 00 00 00 00 00 48 [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 4A 81 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 70 [17:43:55]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:43:55]wFMCommunicate OK [17:43:55]SAM_PROTO_GetShiftState done [17:43:55]FM_GetShiftState done [17:43:55]req_shift_opened done [17:43:55]requested_item shift.open_date is exist - process it [17:43:55]req_shift_open_date [17:43:55]req_shift_open_date done [17:43:55]produce_requested_data done [17:43:55]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49245,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:43:55]process_action_free close_receipt [17:43:55]json_value_free [17:43:55]json_value_free done [17:43:55]process_json_proto returns [17:43:55]Send response to host [17:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49245,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:43:55]free response buf [17:43:55]execute_script done [17:43:55]execute_script returns [17:43:55]free content buf [17:43:55]Sock 7.Close socket [17:43:55]Sock 7.Thread stoped [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:18]accept exits with 9 [17:51:18]New connection [17:51:18]New thread 3066670436 created [17:51:18]Thread 3066813796 joined [17:51:18]Waiting for new connection... [17:51:18] Sock 9.Parse request [17:51:18]Sock 9.Check first char [17:51:18]Sock 9.First char is OK [17:51:18]request: POST /json_proto HTTP/1.0 [17:51:18]Method: POST [17:51:18]URL: /json_proto [17:51:18]Method is POST - this is cgi request [17:51:18]url: /json_proto [17:51:18]query_string will be loaded in cgi processing [17:51:18]execute_cgi json_proto POST (null) [17:51:18]execute_cgi path=json_proto method=POST [17:51:18]POST find Content-Length [17:51:18]Host: 172.17.56.67:8080 [17:51:18]Content-Length: 677 [17:51:18]Content-Type: application/json [17:51:18] [17:51:18]POST finish read [17:51:18]Found Content-Length = 677 [17:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:18]execute_script... [17:51:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:18]POST & json_proto [17:51:18]process_json_proto [17:51:18]json parsed OK: [17:51:18]protocol is kg_v1.0 [17:51:18]action value=close_receipt [17:51:18]process_action close_receipt [17:51:18]cmd_close_receipt [17:51:18]MH_GetDate [17:51:18]Write to MH i2c: F0 00 00 4B 81 BB [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: F0 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: F0 09 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: F0 09 00 4B 81 00 2A 37 B9 65 26 5D 9E 65 C9 [17:51:18]GetLastDocTimeStamp 1706636651 [17:51:18]current date 1706637098 [17:51:18]FM_GetShiftState [17:51:18]SAM_PROTO_GetShiftState [17:51:18]wFMCommunicate request_size=4 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 13 01 00 [17:51:18]Write to MH i2c: E2 08 00 4C 81 80 13 01 00 00 00 00 00 4A [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 0E 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 0E 00 4C 81 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 72 [17:51:18]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:51:18]wFMCommunicate OK [17:51:18]SAM_PROTO_GetShiftState done [17:51:18]FM_GetShiftState done [17:51:18]opened in 1706572995 [17:51:18]opened+sec_in_day 1706659395 [17:51:18]quantity*price = 50049 [17:51:18]sum+1 = 50050 [17:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 122 30.01.2024 17:51 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49246 ФПД: 137586967819112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T175138&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49246&fm=137586967819112&tin=02508201610067®Number=0000000000092723&sum=50000 [17:51:19]StoreToDocumentArchive [17:51:19]shift 246 fd 49246 [17:51:19]save to /storage/0246/doc_00049246 [17:51:19]save last doc name /storage/0246/doc_00049246 to /storage/kkm_last_doc_name [17:51:19]save OK [17:51:19]Clear old archive folders... [17:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:19]tlvbuf is 013B88C0 [17:51:19]SAM_PROTO_ClearQueue [17:51:19]wFMCommunicate request_size=4 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 09 00 00 [17:51:19]Write to MH i2c: E2 08 00 59 81 80 09 00 00 00 00 00 00 4C [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:19]Read from MH i2c: E2 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 59 81 00 90 00 4E [17:51:19]RAPDU: 90 00 [17:51:19]wFMCommunicate OK [17:51:19]SAM_PROTO_ClearQueue done [17:51:19]KKMCreateOFDPacket [17:51:19]OFDProtocolAddRootSTLVToBuf [17:51:19]FM_MakeSignedData [17:51:19]FM_MakeSignedData [17:51:19]SAM_PROTO_SignData [17:51:19]wFMCommunicate request_size=4 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 0D 01 02 [17:51:19]Write to MH i2c: E2 08 00 5A 81 80 0D 01 02 00 00 00 00 54 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:19]Read from MH i2c: E2 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 5A 81 00 90 00 4F [17:51:19]RAPDU: 90 00 [17:51:19]wFMCommunicate OK [17:51:19]wFMCommunicate request_size=255 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2A 37 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5E C0 00 00 35 04 06 00 7D [17:51:19]Write to MH i2c: E2 02 01 5B 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2A 37 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5E C0 00 00 35 04 06 00 7D 00 00 0E [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:19]Read from MH i2c: E2 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 5B 81 00 90 00 50 [17:51:19]RAPDU: 90 00 [17:51:19]wFMCommunicate OK [17:51:19]wFMCommunicate request_size=10 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 0D 02 02 05 22 76 57 B3 68 [17:51:19]Write to MH i2c: E2 0D 00 5C 81 80 0D 02 02 05 00 22 76 57 B3 68 00 00 6B [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:19]Read from MH i2c: E2 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 03 00 5C 81 00 90 00 51 [17:51:19]RAPDU: 90 00 [17:51:19]wFMCommunicate OK [17:51:19]wFMCommunicate request_size=4 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 0D 03 02 [17:51:19]Write to MH i2c: E2 08 00 5D 81 80 0D 03 02 00 00 00 00 59 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:19]Read from MH i2c: E2 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 0B 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 0B 00 5D 81 00 8E 44 E9 5C BF 68 16 5B 90 00 09 [17:51:19]RAPDU: 8E 44 E9 5C BF 68 16 5B 90 00 [17:51:19]wFMCommunicate OK [17:51:19]SAM_PROTO_SignData done [17:51:19]FM_MakeSignedData done [17:51:19]CreateOFDProtocolMessage [17:51:19]wFMCommunicate request_size=4 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 11 00 00 [17:51:19]Write to MH i2c: E2 08 00 5E 81 80 11 00 00 00 00 00 00 59 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:19]Read from MH i2c: E2 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 17 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: E2 17 00 5E 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A6 [17:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:51:19]wFMCommunicate OK [17:51:19]CreateOFDProtocolMessage done [17:51:19]OFDSenderStorePacket 49246 [17:51:19]StoreOFDPacket docnum=49246 [17:51:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A3 CA 07 01 BB 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2A 37 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5E C0 00 00 35 04 06 00 7D 22 76 57 B3 68 8E 44 E9 5C BF 68 16 5B [17:51:19]CheckFolder [17:51:19]dirname=/storage/ofd_packets [17:51:19]CheckFolder done [17:51:19]ProducePacketName [17:51:19]name=ofd_packets/00049246 [17:51:19]NVStorageSaveData ofd_packets/00049246 [17:51:19]File name is /storage/ofd_packets/00049246 [17:51:19]Write 301 bytes [17:51:19]NVStorageSaveData done [17:51:20]OFDSenderStorePacket done [17:51:20]KKMCreateOFDPacket done [17:51:20]NVStorageSaveData kkm_last_timestamp [17:51:20]File name is /storage/kkm_last_timestamp [17:51:20]Write 4 bytes [17:51:20]NVStorageSaveData done [17:51:20]ExternCall_PrintAddStr [17:51:20]wPrintStart [17:51:20]Write to MH i2c: 01 00 00 5F 81 E0 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 07 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 07 00 5F 81 00 00 00 00 00 FF 0F F5 [17:51:20]RasterBufferAndPrint [17:51:20]line Счет N : (1)216350 [17:51:20]line ИНН: 02508201610067 [17:51:20]line Контрольно-Кассовый Чек [17:51:20]line ПРОДАЖА [17:51:20]line ТРК (МРК, ГНК) : 12 [17:51:20]line Товар: 2710124130 [17:51:20]line Аи-92-К-5 [17:51:20]line 8.300 * 60.30 [17:51:20]line = 500.49 [17:51:20]line НДС 12% НСП 1% [17:51:20]line > о реализуемом товаре [17:51:20]line ОКРУГЛЕНИЕ: -0.49 [17:51:20]line ИТОГО: 500.00 [17:51:20]line Внесено: 500.00 [17:51:20]line СДАЧА: 0.00 [17:51:20]line НСП 1% : 4.43 [17:51:20]line НДС 12% : 53.15 [17:51:20]line Наличными: 500.00 [17:51:20]line Безнал.: 0.00 [17:51:20]line Место: АЗС № 102 "Партнер Нефть" [17:51:20]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:51:20]line СНО: Общий режим [17:51:20]line Чек 122 30.01.2024 17:51 [17:51:20]line Смена: 246 ФФД: 1.0 [17:51:20]line ЗНМ: 0300000040 [17:51:20]line РНМ: 0000000000092723 [17:51:20]line Версия ККМ: 001 [17:51:20]line ФМ: 0000000000875060 [17:51:20]line ФД: 49246 [17:51:20]line ФПД: 137586967819112 [17:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T175138&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49246&fm=137586967819112&tin=02508201610067®Number=0000000000092723&sum=50000 [17:51:20]OFD Sender: Processing packet 49246 [packets to send 12, broken 11] [17:51:20]ProducePacketName [17:51:20]name=ofd_packets/00049246 [17:51:20]OFD Sender: To server: pG, [17:51:20]CommunicateWithHost lk.salyk.kg:30040 [17:51:20]ConnectInit lk.salyk.kg [17:51:20]written 0, free lines is 4095 [17:51:20]Connected sock=11 [17:51: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 36 30 0F 01 00 00 A3 CA 07 01 BB 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 2A 37 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5E C0 00 00 35 04 06 00 7D 22 76 57 B3 68 8E 44 E9 5C BF 68 16 5B [17:51: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 36 30 4F 00 00 00 E4 A0 47 00 1B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5E C0 00 00 F4 03 04 00 1F E3 B8 65 B6 04 01 00 00 4A 4B 48 BB 4E 88 49 A4 [17:51:20]CommunicateWithHost err = 0 [17:51:20]CheckOFDResponse [17:51:20]1017 (14) - 77093643461234 [17:51:20]1041 (16) - 0000000000875060 [17:51:20]1040 (4) - 49246 [17:51:20]1012 (4) - 30.01.2024 11:53 [17:51:20]1206 (1) - 0 [17:51:20]OFD Sender: Remove packet 49246 [17:51:20]ProducePacketName [17:51:20]name=ofd_packets/00049246 [17:51:20]NVStorageDeleteData [17:51:20]Write to MH i2c: 01 00 00 8A 81 0B [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 07 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 07 00 8A 81 00 00 00 00 00 F7 0C 15 [17:51:20]RasterBufferAndPrint [17:51:20]line [17:51:20]line [17:51:20]line [17:51:20]line [17:51:20]line [17:51:20]written 0, free lines is 3325 [17:51:20]MH_Cut [17:51:20]Write to MH i2c: D1 01 00 91 81 01 E4 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: D1 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: D1 01 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: D1 01 00 91 81 00 E3 [17:51:20]Write to MH i2c: 01 00 00 92 81 13 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:21]OFD Sender: No OFD packet to send [17:51:21]*** Cut start [17:51:21]*** Partial cut [17:51:21]*** CUTSNS_PIN = 1 [17:51:21]*** CUTSNS_PIN = 0 [17:51:21]*** Brake cut motor [17:51:22]Read from MH i2c: 01 [17:51:22]MH_I2C_Read... [17:51:22]*** Stop cut motor [17:51:22]*** Cut end [17:51:22]Read from MH i2c: 01 07 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: 01 07 00 92 81 00 00 00 00 00 FF 0F 28 [17:51:22]process_action close_receipt done [17:51:22]requested_data is exist [17:51:22]produce_requested_data [17:51:22]requested_item fm.sn is exist - process it [17:51:22]wFMCommunicate request_size=4 [17:51:22]MH_SAM_APDU [17:51:22]CAPDU: 80 11 00 00 [17:51:22]Write to MH i2c: E2 08 00 93 81 80 11 00 00 00 00 00 00 8E [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:22]Read from MH i2c: E2 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 17 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 17 00 93 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DB [17:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:51:22]wFMCommunicate OK [17:51:22]requested_item fd.num is exist - process it [17:51:22]SAM_PROTO_GetFieldsCounters [17:51:22]wFMCommunicate request_size=4 [17:51:22]MH_SAM_APDU [17:51:22]CAPDU: 80 13 00 00 [17:51:22]Write to MH i2c: E2 08 00 94 81 80 13 00 00 00 00 00 00 91 [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:22]Read from MH i2c: E2 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 62 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 62 00 94 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [17:51: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:22]wFMCommunicate OK [17:51:22]SAM_PROTO_GetFieldsCounters done [17:51:22]requested_item shift.num is exist - process it [17:51:22]requested_item shift.opened is exist - process it [17:51:22]req_shift_opened [17:51:22]FM_GetShiftState [17:51:22]SAM_PROTO_GetShiftState [17:51:22]wFMCommunicate request_size=4 [17:51:22]MH_SAM_APDU [17:51:22]CAPDU: 80 13 01 00 [17:51:22]Write to MH i2c: E2 08 00 95 81 80 13 01 00 00 00 00 00 93 [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:22]Read from MH i2c: E2 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 0E 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 0E 00 95 81 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 BB [17:51:22]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [17:51:22]wFMCommunicate OK [17:51:22]SAM_PROTO_GetShiftState done [17:51:22]FM_GetShiftState done [17:51:22]req_shift_opened done [17:51:22]requested_item shift.open_date is exist - process it [17:51:22]req_shift_open_date [17:51:22]req_shift_open_date done [17:51:22]produce_requested_data done [17:51:22]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49246,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [17:51:22]process_action_free close_receipt [17:51:22]json_value_free [17:51:22]json_value_free done [17:51:22]process_json_proto returns [17:51:22]Send response to host [17:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49246,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [17:51:22]free response buf [17:51:22]execute_script done [17:51:22]execute_script returns [17:51:22]free content buf [17:51:22]Sock 9.Close socket [17:51:22]Sock 9.Thread stoped [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:30]accept exits with 7 [18:03:30]New connection [18:03:30]New thread 3066813796 created [18:03:30]Thread 3066670436 joined [18:03:30]Waiting for new connection... [18:03:30] Sock 7.Parse request [18:03:30]Sock 7.Check first char [18:03:30]Sock 7.First char is OK [18:03:30]request: POST /json_proto HTTP/1.0 [18:03:30]Method: POST [18:03:30]URL: /json_proto [18:03:30]Method is POST - this is cgi request [18:03:30]url: /json_proto [18:03:30]query_string will be loaded in cgi processing [18:03:30]execute_cgi json_proto POST (null) [18:03:30]execute_cgi path=json_proto method=POST [18:03:30]POST find Content-Length [18:03:30]Host: 172.17.56.67:8080 [18:03:30]Content-Length: 677 [18:03:30]Content-Type: application/json [18:03:30] [18:03:30]POST finish read [18:03:30]Found Content-Length = 677 [18:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.000, "sum" : 301.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 301.00, "total" : 301.00, "payments": [ { "type": 0, "sum" : 301.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:30]execute_script... [18:03: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)216351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.000, "sum" : 301.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 301.00, "total" : 301.00, "payments": [ { "type": 0, "sum" : 301.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:30]POST & json_proto [18:03:30]process_json_proto [18:03:30]json parsed OK: [18:03:30]protocol is kg_v1.0 [18:03:30]action value=close_receipt [18:03:30]process_action close_receipt [18:03:30]cmd_close_receipt [18:03:30]MH_GetDate [18:03:30]Write to MH i2c: F0 00 00 96 81 06 [18:03:30]Write i2c OK [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: F0 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: F0 09 00 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: F0 09 00 96 81 00 05 3A B9 65 26 5D 9E 65 F2 [18:03:30]GetLastDocTimeStamp 1706637098 [18:03:30]current date 1706637829 [18:03:30]FM_GetShiftState [18:03:30]SAM_PROTO_GetShiftState [18:03:30]wFMCommunicate request_size=4 [18:03:30]MH_SAM_APDU [18:03:30]CAPDU: 80 13 01 00 [18:03:30]Write to MH i2c: E2 08 00 97 81 80 13 01 00 00 00 00 00 95 [18:03:30]Write i2c OK [18:03:30]MH_I2C_Read... [18:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:30]Read from MH i2c: E2 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: E2 0E 00 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: E2 0E 00 97 81 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 BD [18:03:30]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:03:30]wFMCommunicate OK [18:03:30]SAM_PROTO_GetShiftState done [18:03:30]FM_GetShiftState done [18:03:30]opened in 1706572995 [18:03:30]opened+sec_in_day 1706659395 [18:03:30]quantity*price = 30150 [18:03:30]sum+1 = 30151 [18:03:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 301.00 Внесено: 301.00 СДАЧА: 0.00 НСП 1% : 2.67 НДС 12% : 32.02 Наличными: 301.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 123 30.01.2024 18:03 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49247 ФПД: 257773452091974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T180349&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49247&fm=257773452091974&tin=02508201610067®Number=0000000000092723&sum=30100 [18:03:31]StoreToDocumentArchive [18:03:31]shift 246 fd 49247 [18:03:31]save to /storage/0246/doc_00049247 [18:03:31]save last doc name /storage/0246/doc_00049247 to /storage/kkm_last_doc_name [18:03:31]save OK [18:03:31]Clear old archive folders... [18:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:31]tlvbuf is 01236E40 [18:03:31]SAM_PROTO_ClearQueue [18:03:31]wFMCommunicate request_size=4 [18:03:31]MH_SAM_APDU [18:03:31]CAPDU: 80 09 00 00 [18:03:31]Write to MH i2c: E2 08 00 A4 81 80 09 00 00 00 00 00 00 97 [18:03:31]Write i2c OK [18:03:31]MH_I2C_Read... [18:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:31]Read from MH i2c: E2 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 03 00 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 03 00 A4 81 00 90 00 99 [18:03:31]RAPDU: 90 00 [18:03:31]wFMCommunicate OK [18:03:31]SAM_PROTO_ClearQueue done [18:03:31]KKMCreateOFDPacket [18:03:31]OFDProtocolAddRootSTLVToBuf [18:03:31]FM_MakeSignedData [18:03:31]FM_MakeSignedData [18:03:31]SAM_PROTO_SignData [18:03:31]wFMCommunicate request_size=4 [18:03:31]MH_SAM_APDU [18:03:31]CAPDU: 80 0D 01 02 [18:03:31]Write to MH i2c: E2 08 00 A5 81 80 0D 01 02 00 00 00 00 9F [18:03:31]Write i2c OK [18:03:31]MH_I2C_Read... [18:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:31]Read from MH i2c: E2 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 03 00 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 03 00 A5 81 00 90 00 9A [18:03:31]RAPDU: 90 00 [18:03:31]wFMCommunicate OK [18:03:31]wFMCommunicate request_size=255 [18:03:31]MH_SAM_APDU [18:03:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 0C 00 00 00 00 07 04 06 00 94 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 05 3A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5F C0 00 00 35 04 06 00 EA [18:03:31]Write to MH i2c: E2 02 01 A6 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 0C 00 00 00 00 07 04 06 00 94 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 05 3A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5F C0 00 00 35 04 06 00 EA 00 00 9F [18:03:31]Write i2c OK [18:03:31]MH_I2C_Read... [18:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:31]Read from MH i2c: E2 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 03 00 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 03 00 A6 81 00 90 00 9B [18:03:31]RAPDU: 90 00 [18:03:31]wFMCommunicate OK [18:03:31]wFMCommunicate request_size=10 [18:03:31]MH_SAM_APDU [18:03:31]CAPDU: 80 0D 02 02 05 71 8F 0B 62 46 [18:03:31]Write to MH i2c: E2 0D 00 A7 81 80 0D 02 02 05 00 71 8F 0B 62 46 00 00 5F [18:03:31]Write i2c OK [18:03:31]MH_I2C_Read... [18:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:31]Read from MH i2c: E2 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 03 00 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 03 00 A7 81 00 90 00 9C [18:03:31]RAPDU: 90 00 [18:03:31]wFMCommunicate OK [18:03:31]wFMCommunicate request_size=4 [18:03:31]MH_SAM_APDU [18:03:31]CAPDU: 80 0D 03 02 [18:03:31]Write to MH i2c: E2 08 00 A8 81 80 0D 03 02 00 00 00 00 A4 [18:03:31]Write i2c OK [18:03:31]MH_I2C_Read... [18:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:31]Read from MH i2c: E2 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 0B 00 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 0B 00 A8 81 00 81 2E D8 79 FF 2D 9F 08 90 00 78 [18:03:31]RAPDU: 81 2E D8 79 FF 2D 9F 08 90 00 [18:03:31]wFMCommunicate OK [18:03:31]SAM_PROTO_SignData done [18:03:31]FM_MakeSignedData done [18:03:31]CreateOFDProtocolMessage [18:03:31]wFMCommunicate request_size=4 [18:03:31]MH_SAM_APDU [18:03:31]CAPDU: 80 11 00 00 [18:03:31]Write to MH i2c: E2 08 00 A9 81 80 11 00 00 00 00 00 00 A4 [18:03:31]Write i2c OK [18:03:31]MH_I2C_Read... [18:03:31]OFD Sender: No OFD packet to send [18:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:31]Read from MH i2c: E2 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 17 00 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: E2 17 00 A9 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F1 [18:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:03:31]wFMCommunicate OK [18:03:31]CreateOFDProtocolMessage done [18:03:31]OFDSenderStorePacket 49247 [18:03:31]StoreOFDPacket docnum=49247 [18:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B1 36 07 01 DB 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 0C 00 00 00 00 07 04 06 00 94 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 05 3A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5F C0 00 00 35 04 06 00 EA 71 8F 0B 62 46 81 2E D8 79 FF 2D 9F 08 [18:03:31]CheckFolder [18:03:31]dirname=/storage/ofd_packets [18:03:31]CheckFolder done [18:03:31]ProducePacketName [18:03:31]name=ofd_packets/00049247 [18:03:31]NVStorageSaveData ofd_packets/00049247 [18:03:31]File name is /storage/ofd_packets/00049247 [18:03:31]Write 301 bytes [18:03:31]NVStorageSaveData done [18:03:31]OFDSenderStorePacket done [18:03:31]KKMCreateOFDPacket done [18:03:31]NVStorageSaveData kkm_last_timestamp [18:03:31]File name is /storage/kkm_last_timestamp [18:03:31]Write 4 bytes [18:03:31]NVStorageSaveData done [18:03:31]ExternCall_PrintAddStr [18:03:31]wPrintStart [18:03:31]Write to MH i2c: 01 00 00 AA 81 2B [18:03:31]Write i2c OK [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: 01 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: 01 07 00 [18:03:31]MH_I2C_Read... [18:03:31]Read from MH i2c: 01 07 00 AA 81 00 00 00 00 00 FF 0F 40 [18:03:31]RasterBufferAndPrint [18:03:31]line Счет N : (1)216351 [18:03:31]line ИНН: 02508201610067 [18:03:31]line Контрольно-Кассовый Чек [18:03:31]line ПРОДАЖА [18:03:31]line ТРК (МРК, ГНК) : 12 [18:03:31]line Товар: 2710124130 [18:03:31]line Аи-92-К-5 [18:03:31]line 5.000 * 60.30 [18:03:31]line = 301.50 [18:03:31]line НДС 12% НСП 1% [18:03:31]line > о реализуемом товаре [18:03:31]line ОКРУГЛЕНИЕ: -0.50 [18:03:31]line ИТОГО: 301.00 [18:03:31]line Внесено: 301.00 [18:03:31]line СДАЧА: 0.00 [18:03:31]line НСП 1% : 2.67 [18:03:31]line НДС 12% : 32.02 [18:03:31]line Наличными: 301.00 [18:03:31]line Безнал.: 0.00 [18:03:31]line Место: АЗС № 102 "Партнер Нефть" [18:03:31]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:03:31]line СНО: Общий режим [18:03:31]line Чек 123 30.01.2024 18:03 [18:03:31]line Смена: 246 ФФД: 1.0 [18:03:31]line ЗНМ: 0300000040 [18:03:31]line РНМ: 0000000000092723 [18:03:31]line Версия ККМ: 001 [18:03:31]line ФМ: 0000000000875060 [18:03:31]line ФД: 49247 [18:03:31]line ФПД: 257773452091974 [18:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T180349&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49247&fm=257773452091974&tin=02508201610067®Number=0000000000092723&sum=30100 [18:03:32]OFD Sender: Processing packet 49247 [packets to send 12, broken 11] [18:03:32]ProducePacketName [18:03:32]name=ofd_packets/00049247 [18:03:32]OFD Sender: To server: pG, [18:03:32]CommunicateWithHost lk.salyk.kg:30040 [18:03:32]ConnectInit lk.salyk.kg [18:03:32]written 0, free lines is 4095 [18:03:32]Connected sock=10 [18:03:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B1 36 07 01 DB 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 0C 00 00 00 00 07 04 06 00 94 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 05 3A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 5F C0 00 00 35 04 06 00 EA 71 8F 0B 62 46 81 2E D8 79 FF 2D 9F 08 [18:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 0E B3 47 00 E3 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 36 30 10 04 04 00 5F C0 00 00 F4 03 04 00 FA E5 B8 65 B6 04 01 00 00 E5 DA AA 2C 2F E5 2E B9 [18:03:32]CommunicateWithHost err = 0 [18:03:32]CheckOFDResponse [18:03:32]1017 (14) - 77093643461234 [18:03:32]1041 (16) - 0000000000875060 [18:03:32]1040 (4) - 49247 [18:03:32]1012 (4) - 30.01.2024 12:05 [18:03:32]1206 (1) - 0 [18:03:32]OFD Sender: Remove packet 49247 [18:03:32]ProducePacketName [18:03:32]name=ofd_packets/00049247 [18:03:32]NVStorageDeleteData [18:03:32]Write to MH i2c: 01 00 00 D5 81 56 [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: 01 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: 01 07 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: 01 07 00 D5 81 00 00 00 00 00 F0 0C 59 [18:03:32]RasterBufferAndPrint [18:03:32]line [18:03:32]line [18:03:32]line [18:03:32]line [18:03:32]line [18:03:32]written 0, free lines is 3318 [18:03:32]MH_Cut [18:03:32]Write to MH i2c: D1 01 00 DC 81 01 2F [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: D1 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: D1 01 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: D1 01 00 DC 81 00 2E [18:03:32]Write to MH i2c: 01 00 00 DD 81 5E [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]OFD Sender: No OFD packet to send [18:03:33]*** Cut start [18:03:33]*** Partial cut [18:03:33]*** CUTSNS_PIN = 1 [18:03:33]*** CUTSNS_PIN = 0 [18:03:33]*** Brake cut motor [18:03:33]Read from MH i2c: 01 [18:03:33]MH_I2C_Read... [18:03:33]*** Stop cut motor [18:03:33]*** Cut end [18:03:33]Read from MH i2c: 01 07 00 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: 01 07 00 DD 81 00 00 00 00 00 FF 0F 73 [18:03:33]process_action close_receipt done [18:03:33]requested_data is exist [18:03:33]produce_requested_data [18:03:33]requested_item fm.sn is exist - process it [18:03:33]wFMCommunicate request_size=4 [18:03:33]MH_SAM_APDU [18:03:33]CAPDU: 80 11 00 00 [18:03:33]Write to MH i2c: E2 08 00 DE 81 80 11 00 00 00 00 00 00 D9 [18:03:33]Write i2c OK [18:03:33]MH_I2C_Read... [18:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:33]Read from MH i2c: E2 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: E2 17 00 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: E2 17 00 DE 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 26 [18:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:03:33]wFMCommunicate OK [18:03:33]requested_item fd.num is exist - process it [18:03:33]SAM_PROTO_GetFieldsCounters [18:03:33]wFMCommunicate request_size=4 [18:03:33]MH_SAM_APDU [18:03:33]CAPDU: 80 13 00 00 [18:03:33]Write to MH i2c: E2 08 00 DF 81 80 13 00 00 00 00 00 00 DC [18:03:33]Write i2c OK [18:03:33]MH_I2C_Read... [18:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:33]Read from MH i2c: E2 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: E2 62 00 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: E2 62 00 DF 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [18:03: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 5F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:33]wFMCommunicate OK [18:03:33]SAM_PROTO_GetFieldsCounters done [18:03:33]requested_item shift.num is exist - process it [18:03:33]requested_item shift.opened is exist - process it [18:03:33]req_shift_opened [18:03:33]FM_GetShiftState [18:03:33]SAM_PROTO_GetShiftState [18:03:33]wFMCommunicate request_size=4 [18:03:33]MH_SAM_APDU [18:03:33]CAPDU: 80 13 01 00 [18:03:33]Write to MH i2c: E2 08 00 E0 81 80 13 01 00 00 00 00 00 DE [18:03:33]Write i2c OK [18:03:33]MH_I2C_Read... [18:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:34]Read from MH i2c: E2 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: E2 0E 00 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: E2 0E 00 E0 81 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 06 [18:03:34]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:03:34]wFMCommunicate OK [18:03:34]SAM_PROTO_GetShiftState done [18:03:34]FM_GetShiftState done [18:03:34]req_shift_opened done [18:03:34]requested_item shift.open_date is exist - process it [18:03:34]req_shift_open_date [18:03:34]req_shift_open_date done [18:03:34]produce_requested_data done [18:03:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49247,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:03:34]process_action_free close_receipt [18:03:34]json_value_free [18:03:34]json_value_free done [18:03:34]process_json_proto returns [18:03:34]Send response to host [18:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49247,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:03:34]free response buf [18:03:34]execute_script done [18:03:34]execute_script returns [18:03:34]free content buf [18:03:34]Sock 7.Close socket [18:03:34]Sock 7.Thread stoped [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:39]accept exits with 9 [18:10:39]New connection [18:10:39]New thread 3066670436 created [18:10:39]Thread 3066813796 joined [18:10:39]Waiting for new connection... [18:10:39] Sock 9.Parse request [18:10:39]Sock 9.Check first char [18:10:39]Sock 9.First char is OK [18:10:39]request: POST /json_proto HTTP/1.0 [18:10:39]Method: POST [18:10:39]URL: /json_proto [18:10:39]Method is POST - this is cgi request [18:10:39]url: /json_proto [18:10:39]query_string will be loaded in cgi processing [18:10:39]execute_cgi json_proto POST (null) [18:10:39]execute_cgi path=json_proto method=POST [18:10:39]POST find Content-Length [18:10:39]Host: 172.17.56.67:8080 [18:10:39]Content-Length: 682 [18:10:39]Content-Type: application/json [18:10:39] [18:10:39]POST finish read [18:10:39]Found Content-Length = 682 [18:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 24.880, "sum" : 1500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:39]execute_script... [18:10:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 24.880, "sum" : 1500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:39]POST & json_proto [18:10:39]process_json_proto [18:10:39]json parsed OK: [18:10:39]protocol is kg_v1.0 [18:10:39]action value=close_receipt [18:10:39]process_action close_receipt [18:10:39]cmd_close_receipt [18:10:39]MH_GetDate [18:10:39]Write to MH i2c: F0 00 00 E1 81 51 [18:10:39]Write i2c OK [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: F0 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: F0 09 00 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: F0 09 00 E1 81 00 B3 3B B9 65 26 5D 9E 65 EC [18:10:39]GetLastDocTimeStamp 1706637829 [18:10:39]current date 1706638259 [18:10:39]FM_GetShiftState [18:10:39]SAM_PROTO_GetShiftState [18:10:39]wFMCommunicate request_size=4 [18:10:39]MH_SAM_APDU [18:10:39]CAPDU: 80 13 01 00 [18:10:39]Write to MH i2c: E2 08 00 E2 81 80 13 01 00 00 00 00 00 E0 [18:10:39]Write i2c OK [18:10:39]MH_I2C_Read... [18:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:39]Read from MH i2c: E2 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 0E 00 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 0E 00 E2 81 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 08 [18:10:39]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:10:39]wFMCommunicate OK [18:10:39]SAM_PROTO_GetShiftState done [18:10:39]FM_GetShiftState done [18:10:39]opened in 1706572995 [18:10:39]opened+sec_in_day 1706659395 [18:10:39]quantity*price = 150026 [18:10:39]sum+1 = 150027 [18:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 124 30.01.2024 18:10 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49248 ФПД: 96249218839312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T181059&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49248&fm=96249218839312&tin=02508201610067®Number=0000000000092723&sum=150000 [18:10:40]StoreToDocumentArchive [18:10:40]shift 246 fd 49248 [18:10:40]save to /storage/0246/doc_00049248 [18:10:40]save last doc name /storage/0246/doc_00049248 to /storage/kkm_last_doc_name [18:10:40]save OK [18:10:40]Clear old archive folders... [18:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:40]tlvbuf is 01312560 [18:10:40]SAM_PROTO_ClearQueue [18:10:40]wFMCommunicate request_size=4 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 09 00 00 [18:10:40]Write to MH i2c: E2 08 00 EF 81 80 09 00 00 00 00 00 00 E2 [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:40]Read from MH i2c: E2 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 EF 81 00 90 00 E4 [18:10:40]RAPDU: 90 00 [18:10:40]wFMCommunicate OK [18:10:40]SAM_PROTO_ClearQueue done [18:10:40]KKMCreateOFDPacket [18:10:40]OFDProtocolAddRootSTLVToBuf [18:10:40]FM_MakeSignedData [18:10:40]FM_MakeSignedData [18:10:40]SAM_PROTO_SignData [18:10:40]wFMCommunicate request_size=4 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 0D 01 02 [18:10:40]Write to MH i2c: E2 08 00 F0 81 80 0D 01 02 00 00 00 00 EA [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:40]Read from MH i2c: E2 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 F0 81 00 90 00 E5 [18:10:40]RAPDU: 90 00 [18:10:40]wFMCommunicate OK [18:10:40]wFMCommunicate request_size=255 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B3 3B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 60 C0 00 00 35 04 06 00 57 [18:10:40]Write to MH i2c: E2 02 01 F1 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B3 3B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 60 C0 00 00 35 04 06 00 57 00 00 92 [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:41]Read from MH i2c: E2 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: E2 03 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: E2 03 00 F1 81 00 90 00 E6 [18:10:41]RAPDU: 90 00 [18:10:41]wFMCommunicate OK [18:10:41]wFMCommunicate request_size=10 [18:10:41]MH_SAM_APDU [18:10:41]CAPDU: 80 0D 02 02 05 89 C4 7F B3 10 [18:10:41]Write to MH i2c: E2 0D 00 F2 81 80 0D 02 02 05 00 89 C4 7F B3 10 00 00 86 [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:41]Read from MH i2c: E2 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: E2 03 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: E2 03 00 F2 81 00 90 00 E7 [18:10:41]RAPDU: 90 00 [18:10:41]wFMCommunicate OK [18:10:41]wFMCommunicate request_size=4 [18:10:41]MH_SAM_APDU [18:10:41]CAPDU: 80 0D 03 02 [18:10:41]Write to MH i2c: E2 08 00 F3 81 80 0D 03 02 00 00 00 00 EF [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:41]Read from MH i2c: E2 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: E2 0B 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: E2 0B 00 F3 81 00 9E 56 17 71 E6 A6 36 16 90 00 44 [18:10:41]RAPDU: 9E 56 17 71 E6 A6 36 16 90 00 [18:10:41]wFMCommunicate OK [18:10:41]SAM_PROTO_SignData done [18:10:41]FM_MakeSignedData done [18:10:41]CreateOFDProtocolMessage [18:10:41]wFMCommunicate request_size=4 [18:10:41]MH_SAM_APDU [18:10:41]CAPDU: 80 11 00 00 [18:10:41]Write to MH i2c: E2 08 00 F4 81 80 11 00 00 00 00 00 00 EF [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:41]Read from MH i2c: E2 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: E2 17 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: E2 17 00 F4 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [18:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:10:41]wFMCommunicate OK [18:10:41]CreateOFDProtocolMessage done [18:10:41]OFDSenderStorePacket 49248 [18:10:41]StoreOFDPacket docnum=49248 [18:10:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D8 8E 07 01 DD A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B3 3B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 60 C0 00 00 35 04 06 00 57 89 C4 7F B3 10 9E 56 17 71 E6 A6 36 16 [18:10:41]CheckFolder [18:10:41]dirname=/storage/ofd_packets [18:10:41]CheckFolder done [18:10:41]ProducePacketName [18:10:41]name=ofd_packets/00049248 [18:10:41]NVStorageSaveData ofd_packets/00049248 [18:10:41]File name is /storage/ofd_packets/00049248 [18:10:41]Write 301 bytes [18:10:41]NVStorageSaveData done [18:10:41]OFDSenderStorePacket done [18:10:41]KKMCreateOFDPacket done [18:10:41]NVStorageSaveData kkm_last_timestamp [18:10:41]File name is /storage/kkm_last_timestamp [18:10:41]Write 4 bytes [18:10:41]NVStorageSaveData done [18:10:41]ExternCall_PrintAddStr [18:10:41]wPrintStart [18:10:41]Write to MH i2c: 01 00 00 F5 81 76 [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 07 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 07 00 F5 81 00 00 00 00 00 FF 0F 8B [18:10:41]RasterBufferAndPrint [18:10:41]line Счет N : (1)216352 [18:10:41]line ИНН: 02508201610067 [18:10:41]line Контрольно-Кассовый Чек [18:10:41]line ПРОДАЖА [18:10:41]line ТРК (МРК, ГНК) : 22 [18:10:41]line Товар: 2710124130 [18:10:41]line Аи-92-К-5 [18:10:41]line 24.880 * 60.30 [18:10:41]line = 1500.26 [18:10:41]line НДС 12% НСП 1% [18:10:41]line > о реализуемом товаре [18:10:41]line ОКРУГЛЕНИЕ: -0.26 [18:10:41]line ИТОГО: 1500.00 [18:10:41]line Внесено: 1500.00 [18:10:41]line СДАЧА: 0.00 [18:10:41]line НСП 1% : 13.28 [18:10:41]line НДС 12% : 159.32 [18:10:41]line Наличными: 1500.00 [18:10:41]line Безнал.: 0.00 [18:10:41]line Место: АЗС № 102 "Партнер Нефть" [18:10:41]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:10:41]line СНО: Общий режим [18:10:41]line Чек 124 30.01.2024 18:10 [18:10:41]line Смена: 246 ФФД: 1.0 [18:10:41]line ЗНМ: 0300000040 [18:10:41]line РНМ: 0000000000092723 [18:10:41]line Версия ККМ: 001 [18:10:41]line ФМ: 0000000000875060 [18:10:41]line ФД: 49248 [18:10:41]line ФПД: 96249218839312 [18:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T181059&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49248&fm=96249218839312&tin=02508201610067®Number=0000000000092723&sum=150000 [18:10:41]OFD Sender: Processing packet 49248 [packets to send 12, broken 11] [18:10:41]ProducePacketName [18:10:41]name=ofd_packets/00049248 [18:10:41]OFD Sender: To server: pG, [18:10:41]CommunicateWithHost lk.salyk.kg:30040 [18:10:41]ConnectInit lk.salyk.kg [18:10:41]written 0, free lines is 4095 [18:10:41]Connected sock=10 [18:10: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 36 30 0F 01 00 00 D8 8E 07 01 DD A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B3 3B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 60 C0 00 00 35 04 06 00 57 89 C4 7F B3 10 9E 56 17 71 E6 A6 36 16 [18:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 02 A1 47 00 F1 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 60 C0 00 00 F4 03 04 00 A8 E7 B8 65 B6 04 01 00 00 DD 2E ED 97 57 24 E4 49 [18:10:41]CommunicateWithHost err = 0 [18:10:41]CheckOFDResponse [18:10:41]1017 (14) - 77093643461234 [18:10:41]1041 (16) - 0000000000875060 [18:10:41]1040 (4) - 49248 [18:10:41]1012 (4) - 30.01.2024 12:12 [18:10:41]1206 (1) - 0 [18:10:41]OFD Sender: Remove packet 49248 [18:10:41]ProducePacketName [18:10:41]name=ofd_packets/00049248 [18:10:41]NVStorageDeleteData [18:10:41]Write to MH i2c: 01 00 00 20 82 A2 [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 07 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 07 00 20 82 00 00 00 00 00 FA 0C AF [18:10:41]RasterBufferAndPrint [18:10:41]line [18:10:41]line [18:10:41]line [18:10:41]line [18:10:41]line [18:10:41]written 0, free lines is 3332 [18:10:41]MH_Cut [18:10:41]Write to MH i2c: D1 01 00 27 82 01 7B [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: D1 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: D1 01 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: D1 01 00 27 82 00 7A [18:10:41]Write to MH i2c: 01 00 00 28 82 AA [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:42]OFD Sender: No OFD packet to send [18:10:42]*** Cut start [18:10:42]*** Partial cut [18:10:42]*** CUTSNS_PIN = 1 [18:10:42]*** CUTSNS_PIN = 0 [18:10:42]*** Brake cut motor [18:10:43]Read from MH i2c: 01 [18:10:43]MH_I2C_Read... [18:10:43]*** Stop cut motor [18:10:43]*** Cut end [18:10:43]Read from MH i2c: 01 07 00 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: 01 07 00 28 82 00 00 00 00 00 FF 0F BF [18:10:43]process_action close_receipt done [18:10:43]requested_data is exist [18:10:43]produce_requested_data [18:10:43]requested_item fm.sn is exist - process it [18:10:43]wFMCommunicate request_size=4 [18:10:43]MH_SAM_APDU [18:10:43]CAPDU: 80 11 00 00 [18:10:43]Write to MH i2c: E2 08 00 29 82 80 11 00 00 00 00 00 00 25 [18:10:43]Write i2c OK [18:10:43]MH_I2C_Read... [18:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:43]Read from MH i2c: E2 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 17 00 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 17 00 29 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 72 [18:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:10:43]wFMCommunicate OK [18:10:43]requested_item fd.num is exist - process it [18:10:43]SAM_PROTO_GetFieldsCounters [18:10:43]wFMCommunicate request_size=4 [18:10:43]MH_SAM_APDU [18:10:43]CAPDU: 80 13 00 00 [18:10:43]Write to MH i2c: E2 08 00 2A 82 80 13 00 00 00 00 00 00 28 [18:10:43]Write i2c OK [18:10:43]MH_I2C_Read... [18:10:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:43]Read from MH i2c: E2 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 62 00 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 62 00 2A 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 60 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [18:10: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 60 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:43]wFMCommunicate OK [18:10:43]SAM_PROTO_GetFieldsCounters done [18:10:43]requested_item shift.num is exist - process it [18:10:43]requested_item shift.opened is exist - process it [18:10:43]req_shift_opened [18:10:43]FM_GetShiftState [18:10:43]SAM_PROTO_GetShiftState [18:10:43]wFMCommunicate request_size=4 [18:10:43]MH_SAM_APDU [18:10:43]CAPDU: 80 13 01 00 [18:10:43]Write to MH i2c: E2 08 00 2B 82 80 13 01 00 00 00 00 00 2A [18:10:43]Write i2c OK [18:10:43]MH_I2C_Read... [18:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:43]Read from MH i2c: E2 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 0E 00 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 0E 00 2B 82 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 52 [18:10:43]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:10:43]wFMCommunicate OK [18:10:43]SAM_PROTO_GetShiftState done [18:10:43]FM_GetShiftState done [18:10:43]req_shift_opened done [18:10:43]requested_item shift.open_date is exist - process it [18:10:43]req_shift_open_date [18:10:43]req_shift_open_date done [18:10:43]produce_requested_data done [18:10:43]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49248,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:10:43]process_action_free close_receipt [18:10:43]json_value_free [18:10:43]json_value_free done [18:10:43]process_json_proto returns [18:10:43]Send response to host [18:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49248,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:10:43]free response buf [18:10:43]execute_script done [18:10:43]execute_script returns [18:10:43]free content buf [18:10:43]Sock 9.Close socket [18:10:43]Sock 9.Thread stoped [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]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:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]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:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]accept exits with 7 [18:22:52]New connection [18:22:52]New thread 3066813796 created [18:22:52]Thread 3066670436 joined [18:22:52]Waiting for new connection... [18:22:52] Sock 7.Parse request [18:22:52]Sock 7.Check first char [18:22:52]Sock 7.First char is OK [18:22:52]request: POST /json_proto HTTP/1.0 [18:22:52]Method: POST [18:22:52]URL: /json_proto [18:22:52]Method is POST - this is cgi request [18:22:52]url: /json_proto [18:22:52]query_string will be loaded in cgi processing [18:22:52]execute_cgi json_proto POST (null) [18:22:52]execute_cgi path=json_proto method=POST [18:22:52]POST find Content-Length [18:22:52]Host: 172.17.56.67:8080 [18:22:52]Content-Length: 682 [18:22:52]Content-Type: application/json [18:22:52] [18:22:52]POST finish read [18:22:52]Found Content-Length = 682 [18:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:22:52]execute_script... [18: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)216353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:22:52]POST & json_proto [18:22:52]process_json_proto [18:22:52]json parsed OK: [18:22:52]protocol is kg_v1.0 [18:22:52]action value=close_receipt [18:22:52]process_action close_receipt [18:22:52]cmd_close_receipt [18:22:52]MH_GetDate [18:22:52]Write to MH i2c: F0 00 00 2C 82 9D [18:22:52]Write i2c OK [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: F0 [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: F0 09 00 [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: F0 09 00 2C 82 00 90 3E B9 65 26 5D 9E 65 18 [18:22:52]GetLastDocTimeStamp 1706638259 [18:22:52]current date 1706638992 [18:22:52]FM_GetShiftState [18:22:52]SAM_PROTO_GetShiftState [18:22:52]wFMCommunicate request_size=4 [18:22:52]MH_SAM_APDU [18:22:52]CAPDU: 80 13 01 00 [18:22:52]Write to MH i2c: E2 08 00 2D 82 80 13 01 00 00 00 00 00 2C [18:22:52]Write i2c OK [18:22:52]MH_I2C_Read... [18:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:52]Read from MH i2c: E2 [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: E2 0E 00 [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: E2 0E 00 2D 82 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 54 [18:22:52]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:22:52]wFMCommunicate OK [18:22:52]SAM_PROTO_GetShiftState done [18:22:52]FM_GetShiftState done [18:22:52]opened in 1706572995 [18:22:52]opened+sec_in_day 1706659395 [18:22:52]quantity*price = 100037 [18:22:52]sum+1 = 100039 [18:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 125 30.01.2024 18:23 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49249 ФПД: 62875563874912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T182312&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49249&fm=62875563874912&tin=02508201610067®Number=0000000000092723&sum=100000 [18:22:53]StoreToDocumentArchive [18:22:53]shift 246 fd 49249 [18:22:53]save to /storage/0246/doc_00049249 [18:22:53]save last doc name /storage/0246/doc_00049249 to /storage/kkm_last_doc_name [18:22:53]save OK [18:22:53]Clear old archive folders... [18:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:53]tlvbuf is 0128F5E0 [18:22:53]SAM_PROTO_ClearQueue [18:22:53]wFMCommunicate request_size=4 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 09 00 00 [18:22:53]Write to MH i2c: E2 08 00 3A 82 80 09 00 00 00 00 00 00 2E [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 3A 82 00 90 00 30 [18:22:53]RAPDU: 90 00 [18:22:53]wFMCommunicate OK [18:22:53]SAM_PROTO_ClearQueue done [18:22:53]KKMCreateOFDPacket [18:22:53]OFDProtocolAddRootSTLVToBuf [18:22:53]FM_MakeSignedData [18:22:53]FM_MakeSignedData [18:22:53]SAM_PROTO_SignData [18:22:53]wFMCommunicate request_size=4 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 0D 01 02 [18:22:53]Write to MH i2c: E2 08 00 3B 82 80 0D 01 02 00 00 00 00 36 [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 3B 82 00 90 00 31 [18:22:53]RAPDU: 90 00 [18:22:53]wFMCommunicate OK [18:22:53]wFMCommunicate request_size=255 [18:22:53]MH_SAM_APDU [18: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 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 90 3E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 61 C0 00 00 35 04 06 00 39 [18:22:53]Write to MH i2c: E2 02 01 3C 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 90 3E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 61 C0 00 00 35 04 06 00 39 00 00 5F [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 3C 82 00 90 00 32 [18:22:53]RAPDU: 90 00 [18:22:53]wFMCommunicate OK [18:22:53]wFMCommunicate request_size=10 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 0D 02 02 05 2F 5B A6 5A 60 [18:22:53]Write to MH i2c: E2 0D 00 3D 82 80 0D 02 02 05 00 2F 5B A6 5A 60 00 00 2D [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 3D 82 00 90 00 33 [18:22:53]RAPDU: 90 00 [18:22:53]wFMCommunicate OK [18:22:53]wFMCommunicate request_size=4 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 0D 03 02 [18:22:53]Write to MH i2c: E2 08 00 3E 82 80 0D 03 02 00 00 00 00 3B [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 0B 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 0B 00 3E 82 00 5C 14 5C DC BC 9A D3 7F 90 00 8C [18:22:53]RAPDU: 5C 14 5C DC BC 9A D3 7F 90 00 [18:22:53]wFMCommunicate OK [18:22:53]SAM_PROTO_SignData done [18:22:53]FM_MakeSignedData done [18:22:53]CreateOFDProtocolMessage [18:22:53]wFMCommunicate request_size=4 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 11 00 00 [18:22:53]Write to MH i2c: E2 08 00 3F 82 80 11 00 00 00 00 00 00 3B [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 17 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 17 00 3F 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 88 [18:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:22:53]wFMCommunicate OK [18:22:53]CreateOFDProtocolMessage done [18:22:53]OFDSenderStorePacket 49249 [18:22:53]StoreOFDPacket docnum=49249 [18:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CC 7E 07 01 96 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 90 3E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 61 C0 00 00 35 04 06 00 39 2F 5B A6 5A 60 5C 14 5C DC BC 9A D3 7F [18:22:53]CheckFolder [18:22:53]dirname=/storage/ofd_packets [18:22:53]CheckFolder done [18:22:53]ProducePacketName [18:22:53]name=ofd_packets/00049249 [18:22:53]NVStorageSaveData ofd_packets/00049249 [18:22:53]File name is /storage/ofd_packets/00049249 [18:22:53]Write 301 bytes [18:22:53]NVStorageSaveData done [18:22:53]OFDSenderStorePacket done [18:22:53]KKMCreateOFDPacket done [18:22:53]NVStorageSaveData kkm_last_timestamp [18:22:53]File name is /storage/kkm_last_timestamp [18:22:53]Write 4 bytes [18:22:53]NVStorageSaveData done [18:22:53]ExternCall_PrintAddStr [18:22:53]wPrintStart [18:22:53]Write to MH i2c: 01 00 00 40 82 C2 [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: 01 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: 01 07 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: 01 07 00 40 82 00 00 00 00 00 FF 0F D7 [18:22:53]RasterBufferAndPrint [18:22:53]line Счет N : (1)216353 [18:22:53]line ИНН: 02508201610067 [18:22:53]line Контрольно-Кассовый Чек [18:22:53]line ПРОДАЖА [18:22:53]line ТРК (МРК, ГНК) : 12 [18:22:53]line Товар: 2710124130 [18:22:53]line Аи-92-К-5 [18:22:53]line 16.590 * 60.30 [18:22:53]line = 1000.38 [18:22:53]line НДС 12% НСП 1% [18:22:53]line > о реализуемом товаре [18:22:53]line ОКРУГЛЕНИЕ: -0.38 [18:22:53]line ИТОГО: 1000.00 [18:22:53]line Внесено: 1000.00 [18:22:53]line СДАЧА: 0.00 [18:22:53]line НСП 1% : 8.85 [18:22:53]line НДС 12% : 106.23 [18:22:53]line Наличными: 1000.00 [18:22:53]line Безнал.: 0.00 [18:22:53]line Место: АЗС № 102 "Партнер Нефть" [18:22:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:22:53]line СНО: Общий режим [18:22:53]line Чек 125 30.01.2024 18:23 [18:22:53]line Смена: 246 ФФД: 1.0 [18:22:54]line ЗНМ: 0300000040 [18:22:54]line РНМ: 0000000000092723 [18:22:54]line Версия ККМ: 001 [18:22:54]line ФМ: 0000000000875060 [18:22:54]line ФД: 49249 [18:22:54]line ФПД: 62875563874912 [18:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T182312&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49249&fm=62875563874912&tin=02508201610067®Number=0000000000092723&sum=100000 [18:22:54]OFD Sender: Processing packet 49249 [packets to send 12, broken 11] [18:22:54]ProducePacketName [18:22:54]name=ofd_packets/00049249 [18:22:54]OFD Sender: To server: pG, [18:22:54]CommunicateWithHost lk.salyk.kg:30040 [18:22:54]ConnectInit lk.salyk.kg [18:22:54]written 0, free lines is 4095 [18:22:54]Connected sock=10 [18:22: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 36 30 0F 01 00 00 CC 7E 07 01 96 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 90 3E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 61 C0 00 00 35 04 06 00 39 2F 5B A6 5A 60 5C 14 5C DC BC 9A D3 7F [18:22: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 36 30 4F 00 00 00 A7 0B 47 00 63 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 61 C0 00 00 F4 03 04 00 84 EA B8 65 B6 04 01 00 00 69 B8 47 10 29 C7 E1 22 [18:22:54]CommunicateWithHost err = 0 [18:22:54]CheckOFDResponse [18:22:54]1017 (14) - 77093643461234 [18:22:54]1041 (16) - 0000000000875060 [18:22:54]1040 (4) - 49249 [18:22:54]1012 (4) - 30.01.2024 12:24 [18:22:54]1206 (1) - 0 [18:22:54]OFD Sender: Remove packet 49249 [18:22:54]ProducePacketName [18:22:54]name=ofd_packets/00049249 [18:22:54]NVStorageDeleteData [18:22:54]Write to MH i2c: 01 00 00 6B 82 ED [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: 01 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: 01 07 00 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: 01 07 00 6B 82 00 00 00 00 00 00 0D 01 [18:22:54]RasterBufferAndPrint [18:22:54]line [18:22:54]line [18:22:54]line [18:22:54]line [18:22:54]line [18:22:54]written 0, free lines is 3334 [18:22:54]MH_Cut [18:22:54]Write to MH i2c: D1 01 00 72 82 01 C6 [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: D1 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: D1 01 00 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: D1 01 00 72 82 00 C5 [18:22:54]Write to MH i2c: 01 00 00 73 82 F5 [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:54]OFD Sender: No OFD packet to send [18:22:55]*** Cut start [18:22:55]*** Partial cut [18:22:55]*** CUTSNS_PIN = 1 [18:22:55]*** CUTSNS_PIN = 0 [18:22:55]*** Brake cut motor [18:22:55]Read from MH i2c: 01 [18:22:55]MH_I2C_Read... [18:22:55]*** Stop cut motor [18:22:55]*** Cut end [18:22:55]Read from MH i2c: 01 07 00 [18:22:55]MH_I2C_Read... [18:22:55]Read from MH i2c: 01 07 00 73 82 00 00 00 00 00 FF 0F 0A [18:22:55]process_action close_receipt done [18:22:55]requested_data is exist [18:22:55]produce_requested_data [18:22:55]requested_item fm.sn is exist - process it [18:22:55]wFMCommunicate request_size=4 [18:22:55]MH_SAM_APDU [18:22:55]CAPDU: 80 11 00 00 [18:22:55]Write to MH i2c: E2 08 00 74 82 80 11 00 00 00 00 00 00 70 [18:22:55]Write i2c OK [18:22:55]MH_I2C_Read... [18:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:55]Read from MH i2c: E2 [18:22:55]MH_I2C_Read... [18:22:55]Read from MH i2c: E2 17 00 [18:22:55]MH_I2C_Read... [18:22:55]Read from MH i2c: E2 17 00 74 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BD [18:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:22:55]wFMCommunicate OK [18:22:55]requested_item fd.num is exist - process it [18:22:55]SAM_PROTO_GetFieldsCounters [18:22:55]wFMCommunicate request_size=4 [18:22:55]MH_SAM_APDU [18:22:55]CAPDU: 80 13 00 00 [18:22:55]Write to MH i2c: E2 08 00 75 82 80 13 00 00 00 00 00 00 73 [18:22:55]Write i2c OK [18:22:55]MH_I2C_Read... [18:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:55]Read from MH i2c: E2 [18:22:55]MH_I2C_Read... [18:22:55]Read from MH i2c: E2 62 00 [18:22:55]MH_I2C_Read... [18:22:55]Read from MH i2c: E2 62 00 75 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 61 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [18: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 61 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:55]wFMCommunicate OK [18:22:55]SAM_PROTO_GetFieldsCounters done [18:22:55]requested_item shift.num is exist - process it [18:22:55]requested_item shift.opened is exist - process it [18:22:55]req_shift_opened [18:22:55]FM_GetShiftState [18:22:55]SAM_PROTO_GetShiftState [18:22:55]wFMCommunicate request_size=4 [18:22:55]MH_SAM_APDU [18:22:55]CAPDU: 80 13 01 00 [18:22:55]Write to MH i2c: E2 08 00 76 82 80 13 01 00 00 00 00 00 75 [18:22:55]Write i2c OK [18:22:55]MH_I2C_Read... [18:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:56]Read from MH i2c: E2 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: E2 0E 00 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: E2 0E 00 76 82 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 9D [18:22:56]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:22:56]wFMCommunicate OK [18:22:56]SAM_PROTO_GetShiftState done [18:22:56]FM_GetShiftState done [18:22:56]req_shift_opened done [18:22:56]requested_item shift.open_date is exist - process it [18:22:56]req_shift_open_date [18:22:56]req_shift_open_date done [18:22:56]produce_requested_data done [18:22:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49249,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:22:56]process_action_free close_receipt [18:22:56]json_value_free [18:22:56]json_value_free done [18:22:56]process_json_proto returns [18:22:56]Send response to host [18:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49249,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:22:56]free response buf [18:22:56]execute_script done [18:22:56]execute_script returns [18:22:56]free content buf [18:22:56]Sock 7.Close socket [18:22:56]Sock 7.Thread stoped [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:28]accept exits with 9 [18:25:28]New connection [18:25:28]New thread 3066670436 created [18:25:28]Thread 3066813796 joined [18:25:28]Waiting for new connection... [18:25:28] Sock 9.Parse request [18:25:28]Sock 9.Check first char [18:25:28]Sock 9.First char is OK [18:25:28]request: POST /json_proto HTTP/1.0 [18:25:28]Method: POST [18:25:28]URL: /json_proto [18:25:28]Method is POST - this is cgi request [18:25:28]url: /json_proto [18:25:28]query_string will be loaded in cgi processing [18:25:28]execute_cgi json_proto POST (null) [18:25:28]execute_cgi path=json_proto method=POST [18:25:28]POST find Content-Length [18:25:28]Host: 172.17.56.67:8080 [18:25:28]Content-Length: 677 [18:25:28]Content-Type: application/json [18:25:28] [18:25:28]POST finish read [18:25:28]Found Content-Length = 677 [18:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:28]execute_script... [18:25:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:28]POST & json_proto [18:25:28]process_json_proto [18:25:28]json parsed OK: [18:25:28]protocol is kg_v1.0 [18:25:28]action value=close_receipt [18:25:28]process_action close_receipt [18:25:28]cmd_close_receipt [18:25:28]MH_GetDate [18:25:28]Write to MH i2c: F0 00 00 77 82 E8 [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 09 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 09 00 77 82 00 2C 3F B9 65 26 5D 9E 65 00 [18:25:28]GetLastDocTimeStamp 1706638992 [18:25:28]current date 1706639148 [18:25:28]FM_GetShiftState [18:25:28]SAM_PROTO_GetShiftState [18:25:28]wFMCommunicate request_size=4 [18:25:28]MH_SAM_APDU [18:25:28]CAPDU: 80 13 01 00 [18:25:28]Write to MH i2c: E2 08 00 78 82 80 13 01 00 00 00 00 00 77 [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:28]Read from MH i2c: E2 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 0E 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 0E 00 78 82 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 9F [18:25:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:25:28]wFMCommunicate OK [18:25:28]SAM_PROTO_GetShiftState done [18:25:28]FM_GetShiftState done [18:25:28]opened in 1706572995 [18:25:28]opened+sec_in_day 1706659395 [18:25:28]quantity*price = 20019 [18:25:28]sum+1 = 20021 [18:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 126 30.01.2024 18:25 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49250 ФПД: 271407999953847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T182548&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49250&fm=271407999953847&tin=02508201610067®Number=0000000000092723&sum=20000 [18:25:30]StoreToDocumentArchive [18:25:30]shift 246 fd 49250 [18:25:30]save to /storage/0246/doc_00049250 [18:25:30]save last doc name /storage/0246/doc_00049250 to /storage/kkm_last_doc_name [18:25:30]save OK [18:25:30]Clear old archive folders... [18:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:30]tlvbuf is 0139F850 [18:25:30]SAM_PROTO_ClearQueue [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 09 00 00 [18:25:30]Write to MH i2c: E2 08 00 85 82 80 09 00 00 00 00 00 00 79 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 85 82 00 90 00 7B [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]SAM_PROTO_ClearQueue done [18:25:30]KKMCreateOFDPacket [18:25:30]OFDProtocolAddRootSTLVToBuf [18:25:30]FM_MakeSignedData [18:25:30]FM_MakeSignedData [18:25:30]SAM_PROTO_SignData [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 01 02 [18:25:30]Write to MH i2c: E2 08 00 86 82 80 0D 01 02 00 00 00 00 81 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 86 82 00 90 00 7C [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=255 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 2C 3F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 62 C0 00 00 35 04 06 00 F6 [18:25:30]Write to MH i2c: E2 02 01 87 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 2C 3F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 62 C0 00 00 35 04 06 00 F6 00 00 A6 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 87 82 00 90 00 7D [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=10 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 02 02 05 D8 19 6D 2B B7 [18:25:30]Write to MH i2c: E2 0D 00 88 82 80 0D 02 02 05 00 D8 19 6D 2B B7 00 00 CE [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 88 82 00 90 00 7E [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 03 02 [18:25:30]Write to MH i2c: E2 08 00 89 82 80 0D 03 02 00 00 00 00 86 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 0B 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 0B 00 89 82 00 65 B0 B7 18 5E 6D 32 E8 90 00 50 [18:25:30]RAPDU: 65 B0 B7 18 5E 6D 32 E8 90 00 [18:25:30]wFMCommunicate OK [18:25:30]SAM_PROTO_SignData done [18:25:30]FM_MakeSignedData done [18:25:30]CreateOFDProtocolMessage [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 11 00 00 [18:25:30]Write to MH i2c: E2 08 00 8A 82 80 11 00 00 00 00 00 00 86 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 17 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 17 00 8A 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D3 [18:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:25:30]wFMCommunicate OK [18:25:30]CreateOFDProtocolMessage done [18:25:30]OFDSenderStorePacket 49250 [18:25:30]StoreOFDPacket docnum=49250 [18:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BB 69 07 01 AA 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 2C 3F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 62 C0 00 00 35 04 06 00 F6 D8 19 6D 2B B7 65 B0 B7 18 5E 6D 32 E8 [18:25:30]CheckFolder [18:25:30]dirname=/storage/ofd_packets [18:25:30]CheckFolder done [18:25:30]ProducePacketName [18:25:30]name=ofd_packets/00049250 [18:25:30]NVStorageSaveData ofd_packets/00049250 [18:25:30]File name is /storage/ofd_packets/00049250 [18:25:30]Write 301 bytes [18:25:30]NVStorageSaveData done [18:25:30]OFDSenderStorePacket done [18:25:30]KKMCreateOFDPacket done [18:25:30]NVStorageSaveData kkm_last_timestamp [18:25:30]File name is /storage/kkm_last_timestamp [18:25:30]Write 4 bytes [18:25:30]NVStorageSaveData done [18:25:30]ExternCall_PrintAddStr [18:25:30]wPrintStart [18:25:30]Write to MH i2c: 01 00 00 8B 82 0D [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 07 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 07 00 8B 82 00 00 00 00 00 FF 0F 22 [18:25:30]RasterBufferAndPrint [18:25:30]line Счет N : (1)216354 [18:25:30]line ИНН: 02508201610067 [18:25:30]line Контрольно-Кассовый Чек [18:25:30]line ПРОДАЖА [18:25:30]line ТРК (МРК, ГНК) : 12 [18:25:30]line Товар: 2710124130 [18:25:30]line Аи-92-К-5 [18:25:30]line 3.320 * 60.30 [18:25:30]line = 200.20 [18:25:30]line НДС 12% НСП 1% [18:25:30]line > о реализуемом товаре [18:25:30]line ОКРУГЛЕНИЕ: -0.20 [18:25:30]line ИТОГО: 200.00 [18:25:30]line Внесено: 200.00 [18:25:30]line СДАЧА: 0.00 [18:25:30]line НСП 1% : 1.77 [18:25:30]line НДС 12% : 21.26 [18:25:30]line Наличными: 200.00 [18:25:30]line Безнал.: 0.00 [18:25:30]line Место: АЗС № 102 "Партнер Нефть" [18:25:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:25:30]line СНО: Общий режим [18:25:30]line Чек 126 30.01.2024 18:25 [18:25:30]line Смена: 246 ФФД: 1.0 [18:25:30]line ЗНМ: 0300000040 [18:25:30]line РНМ: 0000000000092723 [18:25:30]line Версия ККМ: 001 [18:25:30]line ФМ: 0000000000875060 [18:25:30]line ФД: 49250 [18:25:30]line ФПД: 271407999953847 [18:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T182548&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49250&fm=271407999953847&tin=02508201610067®Number=0000000000092723&sum=20000 [18:25:30]OFD Sender: Processing packet 49250 [packets to send 12, broken 11] [18:25:30]ProducePacketName [18:25:30]name=ofd_packets/00049250 [18:25:30]OFD Sender: To server: pG, [18:25:30]CommunicateWithHost lk.salyk.kg:30040 [18:25:30]ConnectInit lk.salyk.kg [18:25:30]written 0, free lines is 4095 [18:25:31]Connected sock=11 [18:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BB 69 07 01 AA 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 2C 3F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 62 C0 00 00 35 04 06 00 F6 D8 19 6D 2B B7 65 B0 B7 18 5E 6D 32 E8 [18:25: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 36 30 4F 00 00 00 53 6A 47 00 42 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 36 30 10 04 04 00 62 C0 00 00 F4 03 04 00 21 EB B8 65 B6 04 01 00 00 52 BA D8 F1 33 1F 95 BC [18:25:31]CommunicateWithHost err = 0 [18:25:31]CheckOFDResponse [18:25:31]1017 (14) - 77093643461234 [18:25:31]1041 (16) - 0000000000875060 [18:25:31]1040 (4) - 49250 [18:25:31]1012 (4) - 30.01.2024 12:27 [18:25:31]1206 (1) - 0 [18:25:31]OFD Sender: Remove packet 49250 [18:25:31]ProducePacketName [18:25:31]name=ofd_packets/00049250 [18:25:31]NVStorageDeleteData [18:25:31]Write to MH i2c: 01 00 00 B6 82 38 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 B6 82 00 00 00 00 00 EC 0C 37 [18:25:31]RasterBufferAndPrint [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]written 0, free lines is 3314 [18:25:31]MH_Cut [18:25:31]Write to MH i2c: D1 01 00 BD 82 01 11 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 01 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 01 00 BD 82 00 10 [18:25:31]Write to MH i2c: 01 00 00 BE 82 40 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]OFD Sender: No OFD packet to send [18:25:32]*** Cut start [18:25:32]*** Partial cut [18:25:32]*** CUTSNS_PIN = 1 [18:25:32]*** CUTSNS_PIN = 0 [18:25:32]*** Brake cut motor [18:25:32]Read from MH i2c: 01 [18:25:32]MH_I2C_Read... [18:25:32]*** Stop cut motor [18:25:32]*** Cut end [18:25:32]Read from MH i2c: 01 07 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 07 00 BE 82 00 00 00 00 00 FF 0F 55 [18:25:32]process_action close_receipt done [18:25:32]requested_data is exist [18:25:32]produce_requested_data [18:25:32]requested_item fm.sn is exist - process it [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 11 00 00 [18:25:32]Write to MH i2c: E2 08 00 BF 82 80 11 00 00 00 00 00 00 BB [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 BF 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 08 [18:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:25:32]wFMCommunicate OK [18:25:32]requested_item fd.num is exist - process it [18:25:32]SAM_PROTO_GetFieldsCounters [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 13 00 00 [18:25:32]Write to MH i2c: E2 08 00 C0 82 80 13 00 00 00 00 00 00 BE [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 62 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 62 00 C0 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 62 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [18:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 62 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:32]wFMCommunicate OK [18:25:32]SAM_PROTO_GetFieldsCounters done [18:25:32]requested_item shift.num is exist - process it [18:25:32]requested_item shift.opened is exist - process it [18:25:32]req_shift_opened [18:25:32]FM_GetShiftState [18:25:32]SAM_PROTO_GetShiftState [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 13 01 00 [18:25:32]Write to MH i2c: E2 08 00 C1 82 80 13 01 00 00 00 00 00 C0 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 0E 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 0E 00 C1 82 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E8 [18:25:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:25:32]wFMCommunicate OK [18:25:32]SAM_PROTO_GetShiftState done [18:25:32]FM_GetShiftState done [18:25:32]req_shift_opened done [18:25:32]requested_item shift.open_date is exist - process it [18:25:32]req_shift_open_date [18:25:32]req_shift_open_date done [18:25:32]produce_requested_data done [18:25:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49250,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:25:32]process_action_free close_receipt [18:25:32]json_value_free [18:25:32]json_value_free done [18:25:32]process_json_proto returns [18:25:32]Send response to host [18:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49250,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:25:32]free response buf [18:25:32]execute_script done [18:25:32]execute_script returns [18:25:32]free content buf [18:25:32]Sock 9.Close socket [18:25:32]Sock 9.Thread stoped [18:25:36]OFD Sender: No OFD packet to send [18:25:40]accept exits with 7 [18:25:40]New connection [18:25:40]New thread 3066813796 created [18:25:40]Thread 3066670436 joined [18:25:40]Waiting for new connection... [18:25:40] Sock 7.Parse request [18:25:40]Sock 7.Check first char [18:25:40]Sock 7.First char is OK [18:25:40]request: POST /json_proto HTTP/1.0 [18:25:40]Method: POST [18:25:40]URL: /json_proto [18:25:40]Method is POST - this is cgi request [18:25:40]url: /json_proto [18:25:40]query_string will be loaded in cgi processing [18:25:40]execute_cgi json_proto POST (null) [18:25:40]execute_cgi path=json_proto method=POST [18:25:40]POST find Content-Length [18:25:40]Host: 172.17.56.67:8080 [18:25:40]Content-Length: 674 [18:25:40]Content-Type: application/json [18:25:40] [18:25:40]POST finish read [18:25:40]Found Content-Length = 674 [18:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "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:25:40]execute_script... [18:25:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "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:25:40]POST & json_proto [18:25:40]process_json_proto [18:25:40]json parsed OK: [18:25:40]protocol is kg_v1.0 [18:25:40]action value=close_receipt [18:25:40]process_action close_receipt [18:25:40]cmd_close_receipt [18:25:40]MH_GetDate [18:25:40]Write to MH i2c: F0 00 00 C2 82 33 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: F0 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: F0 09 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: F0 09 00 C2 82 00 38 3F B9 65 26 5D 9E 65 57 [18:25:40]GetLastDocTimeStamp 1706639148 [18:25:40]current date 1706639160 [18:25:40]FM_GetShiftState [18:25:40]SAM_PROTO_GetShiftState [18:25:40]wFMCommunicate request_size=4 [18:25:40]MH_SAM_APDU [18:25:40]CAPDU: 80 13 01 00 [18:25:40]Write to MH i2c: E2 08 00 C3 82 80 13 01 00 00 00 00 00 C2 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:40]Read from MH i2c: E2 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 0E 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 0E 00 C3 82 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 EA [18:25:40]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:25:40]wFMCommunicate OK [18:25:40]SAM_PROTO_GetShiftState done [18:25:40]FM_GetShiftState done [18:25:40]opened in 1706572995 [18:25:40]opened+sec_in_day 1706659395 [18:25:40]quantity*price = 50048 [18:25:40]sum+1 = 50049 [18:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 127 30.01.2024 18:26 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49251 ФПД: 206754741469316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T182600&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49251&fm=206754741469316&tin=02508201610067®Number=0000000000092723&sum=50000 [18:25:41]StoreToDocumentArchive [18:25:41]shift 246 fd 49251 [18:25:41]save to /storage/0246/doc_00049251 [18:25:41]save last doc name /storage/0246/doc_00049251 to /storage/kkm_last_doc_name [18:25:41]save OK [18:25:41]Clear old archive folders... [18:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:25:41]tlvbuf is 01384660 [18:25:41]SAM_PROTO_ClearQueue [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 09 00 00 [18:25:41]Write to MH i2c: E2 08 00 D0 82 80 09 00 00 00 00 00 00 C4 [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 D0 82 00 90 00 C6 [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]SAM_PROTO_ClearQueue done [18:25:41]KKMCreateOFDPacket [18:25:41]OFDProtocolAddRootSTLVToBuf [18:25:41]FM_MakeSignedData [18:25:41]FM_MakeSignedData [18:25:41]SAM_PROTO_SignData [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 01 02 [18:25:41]Write to MH i2c: E2 08 00 D1 82 80 0D 01 02 00 00 00 00 CC [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 D1 82 00 90 00 C7 [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]wFMCommunicate request_size=255 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 38 3F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 63 C0 00 00 35 04 06 00 BC 0A D6 EB [18:25:41]Write to MH i2c: E2 02 01 D2 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 38 3F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 63 C0 00 00 35 04 06 00 BC 0A D6 EB 00 00 4D [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 03 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 03 00 D2 82 00 90 00 C8 [18:25:42]RAPDU: 90 00 [18:25:42]wFMCommunicate OK [18:25:42]wFMCommunicate request_size=7 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 0D 02 02 02 C0 84 [18:25:42]Write to MH i2c: E2 0A 00 D3 82 80 0D 02 02 02 00 C0 84 00 00 17 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 03 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 03 00 D3 82 00 90 00 C9 [18:25:42]RAPDU: 90 00 [18:25:42]wFMCommunicate OK [18:25:42]wFMCommunicate request_size=4 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 0D 03 02 [18:25:42]Write to MH i2c: E2 08 00 D4 82 80 0D 03 02 00 00 00 00 D1 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 0B 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 0B 00 D4 82 00 A3 7D C9 28 58 D7 B1 57 90 00 1A [18:25:42]RAPDU: A3 7D C9 28 58 D7 B1 57 90 00 [18:25:42]wFMCommunicate OK [18:25:42]SAM_PROTO_SignData done [18:25:42]FM_MakeSignedData done [18:25:42]CreateOFDProtocolMessage [18:25:42]wFMCommunicate request_size=4 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 11 00 00 [18:25:42]Write to MH i2c: E2 08 00 D5 82 80 11 00 00 00 00 00 00 D1 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 17 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 17 00 D5 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1E [18:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:25:42]wFMCommunicate OK [18:25:42]CreateOFDProtocolMessage done [18:25:42]OFDSenderStorePacket 49251 [18:25:42]StoreOFDPacket docnum=49251 [18:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 0B 01 04 01 5D 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 38 3F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 63 C0 00 00 35 04 06 00 BC 0A D6 EB C0 84 A3 7D C9 28 58 D7 B1 57 [18:25:42]CheckFolder [18:25:42]dirname=/storage/ofd_packets [18:25:42]CheckFolder done [18:25:42]ProducePacketName [18:25:42]name=ofd_packets/00049251 [18:25:42]NVStorageSaveData ofd_packets/00049251 [18:25:42]File name is /storage/ofd_packets/00049251 [18:25:42]Write 298 bytes [18:25:42]NVStorageSaveData done [18:25:42]OFDSenderStorePacket done [18:25:42]KKMCreateOFDPacket done [18:25:42]NVStorageSaveData kkm_last_timestamp [18:25:42]File name is /storage/kkm_last_timestamp [18:25:42]Write 4 bytes [18:25:42]NVStorageSaveData done [18:25:42]ExternCall_PrintAddStr [18:25:42]wPrintStart [18:25:42]Write to MH i2c: 01 00 00 D6 82 58 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 D6 82 00 00 00 00 00 FF 0F 6D [18:25:42]RasterBufferAndPrint [18:25:42]line Счет N : (1)216355 [18:25:42]line ИНН: 02508201610067 [18:25:42]line Контрольно-Кассовый Чек [18:25:42]line ПРОДАЖА [18:25:42]line ТРК (МРК, ГНК) : 21 [18:25:42]line Товар: 2710194210 [18:25:42]line ДТ-К-5 [18:25:42]line 7.160 * 69.90 [18:25:42]line = 500.48 [18:25:42]line НДС 12% НСП 1% [18:25:42]line > о реализуемом товаре [18:25:42]line ОКРУГЛЕНИЕ: -0.48 [18:25:42]line ИТОГО: 500.00 [18:25:42]line Внесено: 500.00 [18:25:42]line СДАЧА: 0.00 [18:25:42]line НСП 1% : 4.43 [18:25:42]line НДС 12% : 53.15 [18:25:42]line Наличными: 500.00 [18:25:42]line Безнал.: 0.00 [18:25:42]line Место: АЗС № 102 "Партнер Нефть" [18:25:42]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:25:42]line СНО: Общий режим [18:25:42]line Чек 127 30.01.2024 18:26 [18:25:42]line Смена: 246 ФФД: 1.0 [18:25:42]line ЗНМ: 0300000040 [18:25:42]line РНМ: 0000000000092723 [18:25:42]line Версия ККМ: 001 [18:25:42]line ФМ: 0000000000875060 [18:25:42]line ФД: 49251 [18:25:42]line ФПД: 206754741469316 [18:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T182600&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49251&fm=206754741469316&tin=02508201610067®Number=0000000000092723&sum=50000 [18:25:42]OFD Sender: Processing packet 49251 [packets to send 12, broken 11] [18:25:42]ProducePacketName [18:25:42]name=ofd_packets/00049251 [18:25:42]OFD Sender: To server: pG, [18:25:42]CommunicateWithHost lk.salyk.kg:30040 [18:25:42]ConnectInit lk.salyk.kg [18:25:42]written 0, free lines is 4095 [18:25:42]Connected sock=10 [18:25: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 36 30 0C 01 00 00 0B 01 04 01 5D 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 38 3F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 63 C0 00 00 35 04 06 00 BC 0A D6 EB C0 84 A3 7D C9 28 58 D7 B1 57 [18:25: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 36 30 4F 00 00 00 D9 7C 47 00 1B 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 36 30 10 04 04 00 63 C0 00 00 F4 03 04 00 2D EB B8 65 B6 04 01 00 00 37 24 85 0E F5 55 87 DB [18:25:42]CommunicateWithHost err = 0 [18:25:42]CheckOFDResponse [18:25:42]1017 (14) - 77093643461234 [18:25:42]1041 (16) - 0000000000875060 [18:25:42]1040 (4) - 49251 [18:25:42]1012 (4) - 30.01.2024 12:27 [18:25:42]1206 (1) - 0 [18:25:42]OFD Sender: Remove packet 49251 [18:25:42]ProducePacketName [18:25:42]name=ofd_packets/00049251 [18:25:42]NVStorageDeleteData [18:25:43]Write to MH i2c: 01 00 00 01 83 84 [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: 01 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: 01 07 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: 01 07 00 01 83 00 00 00 00 00 E7 0C 7E [18:25:43]RasterBufferAndPrint [18:25:43]line [18:25:43]line [18:25:43]line [18:25:43]line [18:25:43]line [18:25:43]written 0, free lines is 3310 [18:25:43]MH_Cut [18:25:43]Write to MH i2c: D1 01 00 08 83 01 5D [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: D1 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: D1 01 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: D1 01 00 08 83 00 5C [18:25:43]Write to MH i2c: 01 00 00 09 83 8C [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]OFD Sender: No OFD packet to send [18:25:43]*** Cut start [18:25:43]*** Partial cut [18:25:43]*** CUTSNS_PIN = 1 [18:25:43]*** CUTSNS_PIN = 0 [18:25:44]*** Brake cut motor [18:25:44]Read from MH i2c: 01 [18:25:44]MH_I2C_Read... [18:25:44]*** Stop cut motor [18:25:44]*** Cut end [18:25:44]Read from MH i2c: 01 07 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: 01 07 00 09 83 00 00 00 00 00 FF 0F A1 [18:25:44]process_action close_receipt done [18:25:44]requested_data is exist [18:25:44]produce_requested_data [18:25:44]requested_item fm.sn is exist - process it [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 11 00 00 [18:25:44]Write to MH i2c: E2 08 00 0A 83 80 11 00 00 00 00 00 00 07 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 17 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 17 00 0A 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 54 [18:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:25:44]wFMCommunicate OK [18:25:44]requested_item fd.num is exist - process it [18:25:44]SAM_PROTO_GetFieldsCounters [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 13 00 00 [18:25:44]Write to MH i2c: E2 08 00 0B 83 80 13 00 00 00 00 00 00 0A [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 62 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 62 00 0B 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 63 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [18:25: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 63 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:44]wFMCommunicate OK [18:25:44]SAM_PROTO_GetFieldsCounters done [18:25:44]requested_item shift.num is exist - process it [18:25:44]requested_item shift.opened is exist - process it [18:25:44]req_shift_opened [18:25:44]FM_GetShiftState [18:25:44]SAM_PROTO_GetShiftState [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 13 01 00 [18:25:44]Write to MH i2c: E2 08 00 0C 83 80 13 01 00 00 00 00 00 0C [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 0E 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 0E 00 0C 83 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 34 [18:25:44]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:25:44]wFMCommunicate OK [18:25:44]SAM_PROTO_GetShiftState done [18:25:44]FM_GetShiftState done [18:25:44]req_shift_opened done [18:25:44]requested_item shift.open_date is exist - process it [18:25:44]req_shift_open_date [18:25:44]req_shift_open_date done [18:25:44]produce_requested_data done [18:25:44]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49251,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:25:44]process_action_free close_receipt [18:25:44]json_value_free [18:25:44]json_value_free done [18:25:44]process_json_proto returns [18:25:44]Send response to host [18:25:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49251,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:25:44]free response buf [18:25:44]execute_script done [18:25:44]execute_script returns [18:25:44]free content buf [18:25:44]Sock 7.Close socket [18:25:44]Sock 7.Thread stoped [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:32:59]accept exits with 9 [18:32:59]New connection [18:32:59]New thread 3066670436 created [18:32:59]Thread 3066813796 joined [18:32:59]Waiting for new connection... [18:32:59] Sock 9.Parse request [18:32:59]Sock 9.Check first char [18:32:59]Sock 9.First char is OK [18:32:59]request: POST /json_proto HTTP/1.0 [18:32:59]Method: POST [18:32:59]URL: /json_proto [18:32:59]Method is POST - this is cgi request [18:32:59]url: /json_proto [18:32:59]query_string will be loaded in cgi processing [18:32:59]execute_cgi json_proto POST (null) [18:32:59]execute_cgi path=json_proto method=POST [18:32:59]POST find Content-Length [18:32:59]Host: 172.17.56.67:8080 [18:32:59]Content-Length: 677 [18:32:59]Content-Type: application/json [18:32:59] [18:32:59]POST finish read [18:32:59]Found Content-Length = 677 [18:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "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:32:59]execute_script... [18:32: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)216356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "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:32:59]POST & json_proto [18:32:59]process_json_proto [18:32:59]json parsed OK: [18:32:59]protocol is kg_v1.0 [18:32:59]action value=close_receipt [18:32:59]process_action close_receipt [18:32:59]cmd_close_receipt [18:32:59]MH_GetDate [18:32:59]Write to MH i2c: F0 00 00 0D 83 7F [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: F0 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: F0 09 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: F0 09 00 0D 83 00 EF 40 B9 65 26 5D 9E 65 5B [18:32:59]GetLastDocTimeStamp 1706639160 [18:32:59]current date 1706639599 [18:32:59]FM_GetShiftState [18:32:59]SAM_PROTO_GetShiftState [18:32:59]wFMCommunicate request_size=4 [18:32:59]MH_SAM_APDU [18:32:59]CAPDU: 80 13 01 00 [18:32:59]Write to MH i2c: E2 08 00 0E 83 80 13 01 00 00 00 00 00 0E [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:59]Read from MH i2c: E2 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 0E 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 0E 00 0E 83 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 36 [18:32:59]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:32:59]wFMCommunicate OK [18:32:59]SAM_PROTO_GetShiftState done [18:32:59]FM_GetShiftState done [18:32:59]opened in 1706572995 [18:32:59]opened+sec_in_day 1706659395 [18:32:59]quantity*price = 50049 [18:32:59]sum+1 = 50050 [18:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 128 30.01.2024 18:33 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49252 ФПД: 258469134776847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T183319&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49252&fm=258469134776847&tin=02508201610067®Number=0000000000092723&sum=50000 [18:33:00]StoreToDocumentArchive [18:33:00]shift 246 fd 49252 [18:33:00]save to /storage/0246/doc_00049252 [18:33:00]save last doc name /storage/0246/doc_00049252 to /storage/kkm_last_doc_name [18:33:00]save OK [18:33:00]Clear old archive folders... [18:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:00]tlvbuf is B6D86550 [18:33:00]SAM_PROTO_ClearQueue [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 09 00 00 [18:33:00]Write to MH i2c: E2 08 00 1B 83 80 09 00 00 00 00 00 00 10 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 1B 83 00 90 00 12 [18:33:00]RAPDU: 90 00 [18:33:00]wFMCommunicate OK [18:33:00]SAM_PROTO_ClearQueue done [18:33:00]KKMCreateOFDPacket [18:33:00]OFDProtocolAddRootSTLVToBuf [18:33:00]FM_MakeSignedData [18:33:00]FM_MakeSignedData [18:33:00]SAM_PROTO_SignData [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 0D 01 02 [18:33:00]Write to MH i2c: E2 08 00 1C 83 80 0D 01 02 00 00 00 00 18 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 1C 83 00 90 00 13 [18:33:00]RAPDU: 90 00 [18:33:00]wFMCommunicate OK [18:33:00]wFMCommunicate request_size=255 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 EF 40 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 64 C0 00 00 35 04 06 00 EB [18:33:00]Write to MH i2c: E2 02 01 1D 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 EF 40 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 64 C0 00 00 35 04 06 00 EB 00 00 1A [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 1D 83 00 90 00 14 [18:33:00]RAPDU: 90 00 [18:33:00]wFMCommunicate OK [18:33:00]wFMCommunicate request_size=10 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 0D 02 02 05 13 88 F6 BA 0F [18:33:00]Write to MH i2c: E2 0D 00 1E 83 80 0D 02 02 05 00 13 88 F6 BA 0F 00 00 7F [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 1E 83 00 90 00 15 [18:33:00]RAPDU: 90 00 [18:33:00]wFMCommunicate OK [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 0D 03 02 [18:33:00]Write to MH i2c: E2 08 00 1F 83 80 0D 03 02 00 00 00 00 1D [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 0B 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 0B 00 1F 83 00 3D 2D 69 55 4C 79 95 59 90 00 F9 [18:33:00]RAPDU: 3D 2D 69 55 4C 79 95 59 90 00 [18:33:00]wFMCommunicate OK [18:33:00]SAM_PROTO_SignData done [18:33:00]FM_MakeSignedData done [18:33:00]CreateOFDProtocolMessage [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 11 00 00 [18:33:00]Write to MH i2c: E2 08 00 20 83 80 11 00 00 00 00 00 00 1D [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 17 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 17 00 20 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6A [18:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:33:00]wFMCommunicate OK [18:33:00]CreateOFDProtocolMessage done [18:33:00]OFDSenderStorePacket 49252 [18:33:00]StoreOFDPacket docnum=49252 [18:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9A 05 07 01 78 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 EF 40 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 64 C0 00 00 35 04 06 00 EB 13 88 F6 BA 0F 3D 2D 69 55 4C 79 95 59 [18:33:00]CheckFolder [18:33:00]dirname=/storage/ofd_packets [18:33:00]CheckFolder done [18:33:00]ProducePacketName [18:33:00]name=ofd_packets/00049252 [18:33:00]NVStorageSaveData ofd_packets/00049252 [18:33:00]File name is /storage/ofd_packets/00049252 [18:33:00]Write 301 bytes [18:33:00]NVStorageSaveData done [18:33:00]OFDSenderStorePacket done [18:33:00]KKMCreateOFDPacket done [18:33:00]NVStorageSaveData kkm_last_timestamp [18:33:00]File name is /storage/kkm_last_timestamp [18:33:00]Write 4 bytes [18:33:00]NVStorageSaveData done [18:33:00]ExternCall_PrintAddStr [18:33:00]wPrintStart [18:33:00]Write to MH i2c: 01 00 00 21 83 A4 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 07 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 07 00 21 83 00 00 00 00 00 FF 0F B9 [18:33:00]RasterBufferAndPrint [18:33:00]line Счет N : (1)216356 [18:33:00]line ИНН: 02508201610067 [18:33:00]line Контрольно-Кассовый Чек [18:33:00]line ПРОДАЖА [18:33:00]line ТРК (МРК, ГНК) : 12 [18:33:00]line Товар: 2710124130 [18:33:00]line Аи-92-К-5 [18:33:00]line 8.300 * 60.30 [18:33:00]line = 500.49 [18:33:00]line НДС 12% НСП 1% [18:33:00]line > о реализуемом товаре [18:33:00]line ОКРУГЛЕНИЕ: -0.49 [18:33:00]line ИТОГО: 500.00 [18:33:00]line Внесено: 500.00 [18:33:00]line СДАЧА: 0.00 [18:33:00]line НСП 1% : 4.43 [18:33:00]line НДС 12% : 53.15 [18:33:00]line Наличными: 500.00 [18:33:00]line Безнал.: 0.00 [18:33:00]line Место: АЗС № 102 "Партнер Нефть" [18:33:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:33:00]line СНО: Общий режим [18:33:00]line Чек 128 30.01.2024 18:33 [18:33:00]line Смена: 246 ФФД: 1.0 [18:33:00]line ЗНМ: 0300000040 [18:33:00]line РНМ: 0000000000092723 [18:33:00]line Версия ККМ: 001 [18:33:00]line ФМ: 0000000000875060 [18:33:00]line ФД: 49252 [18:33:00]line ФПД: 258469134776847 [18:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T183319&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49252&fm=258469134776847&tin=02508201610067®Number=0000000000092723&sum=50000 [18:33:01]written 0, free lines is 4095 [18:33:01]OFD Sender: Processing packet 49252 [packets to send 12, broken 11] [18:33:01]ProducePacketName [18:33:01]name=ofd_packets/00049252 [18:33:01]OFD Sender: To server: pG, [18:33:01]CommunicateWithHost lk.salyk.kg:30040 [18:33:01]ConnectInit lk.salyk.kg [18:33:01]Connected sock=10 [18:33: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 36 30 0F 01 00 00 9A 05 07 01 78 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 EF 40 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 64 C0 00 00 35 04 06 00 EB 13 88 F6 BA 0F 3D 2D 69 55 4C 79 95 59 [18:33: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 36 30 4F 00 00 00 04 DF 47 00 DA 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 36 30 10 04 04 00 64 C0 00 00 F4 03 04 00 E3 EC B8 65 B6 04 01 00 00 47 34 2F 7F F8 44 76 D7 [18:33:01]CommunicateWithHost err = 0 [18:33:01]CheckOFDResponse [18:33:01]1017 (14) - 77093643461234 [18:33:01]1041 (16) - 0000000000875060 [18:33:01]1040 (4) - 49252 [18:33:01]1012 (4) - 30.01.2024 12:34 [18:33:01]1206 (1) - 0 [18:33:01]OFD Sender: Remove packet 49252 [18:33:01]ProducePacketName [18:33:01]name=ofd_packets/00049252 [18:33:01]NVStorageDeleteData [18:33:01]Write to MH i2c: 01 00 00 4C 83 CF [18:33:01]Write i2c OK [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: 01 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: 01 07 00 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: 01 07 00 4C 83 00 00 00 00 00 E9 0C CB [18:33:01]RasterBufferAndPrint [18:33:01]line [18:33:01]line [18:33:01]line [18:33:01]line [18:33:01]line [18:33:01]written 0, free lines is 3312 [18:33:01]MH_Cut [18:33:01]Write to MH i2c: D1 01 00 53 83 01 A8 [18:33:01]Write i2c OK [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: D1 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: D1 01 00 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: D1 01 00 53 83 00 A7 [18:33:01]Write to MH i2c: 01 00 00 54 83 D7 [18:33:01]Write i2c OK [18:33:01]MH_I2C_Read... [18:33:01]OFD Sender: No OFD packet to send [18:33:02]*** Cut start [18:33:02]*** Partial cut [18:33:02]*** CUTSNS_PIN = 1 [18:33:02]*** CUTSNS_PIN = 0 [18:33:02]*** Brake cut motor [18:33:02]Read from MH i2c: 01 [18:33:02]MH_I2C_Read... [18:33:02]*** Stop cut motor [18:33:02]*** Cut end [18:33:02]Read from MH i2c: 01 07 00 [18:33:02]MH_I2C_Read... [18:33:02]Read from MH i2c: 01 07 00 54 83 00 00 00 00 00 FF 0F EC [18:33:02]process_action close_receipt done [18:33:02]requested_data is exist [18:33:02]produce_requested_data [18:33:02]requested_item fm.sn is exist - process it [18:33:02]wFMCommunicate request_size=4 [18:33:02]MH_SAM_APDU [18:33:02]CAPDU: 80 11 00 00 [18:33:02]Write to MH i2c: E2 08 00 55 83 80 11 00 00 00 00 00 00 52 [18:33:02]Write i2c OK [18:33:02]MH_I2C_Read... [18:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:02]Read from MH i2c: E2 [18:33:02]MH_I2C_Read... [18:33:02]Read from MH i2c: E2 17 00 [18:33:02]MH_I2C_Read... [18:33:02]Read from MH i2c: E2 17 00 55 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9F [18:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:33:02]wFMCommunicate OK [18:33:02]requested_item fd.num is exist - process it [18:33:02]SAM_PROTO_GetFieldsCounters [18:33:02]wFMCommunicate request_size=4 [18:33:02]MH_SAM_APDU [18:33:02]CAPDU: 80 13 00 00 [18:33:02]Write to MH i2c: E2 08 00 56 83 80 13 00 00 00 00 00 00 55 [18:33:02]Write i2c OK [18:33:02]MH_I2C_Read... [18:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:03]Read from MH i2c: E2 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: E2 62 00 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: E2 62 00 56 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 64 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [18:33:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 64 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:03]wFMCommunicate OK [18:33:03]SAM_PROTO_GetFieldsCounters done [18:33:03]requested_item shift.num is exist - process it [18:33:03]requested_item shift.opened is exist - process it [18:33:03]req_shift_opened [18:33:03]FM_GetShiftState [18:33:03]SAM_PROTO_GetShiftState [18:33:03]wFMCommunicate request_size=4 [18:33:03]MH_SAM_APDU [18:33:03]CAPDU: 80 13 01 00 [18:33:03]Write to MH i2c: E2 08 00 57 83 80 13 01 00 00 00 00 00 57 [18:33:03]Write i2c OK [18:33:03]MH_I2C_Read... [18:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:03]Read from MH i2c: E2 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: E2 0E 00 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: E2 0E 00 57 83 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 7F [18:33:03]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:33:03]wFMCommunicate OK [18:33:03]SAM_PROTO_GetShiftState done [18:33:03]FM_GetShiftState done [18:33:03]req_shift_opened done [18:33:03]requested_item shift.open_date is exist - process it [18:33:03]req_shift_open_date [18:33:03]req_shift_open_date done [18:33:03]produce_requested_data done [18:33:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49252,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:33:03]process_action_free close_receipt [18:33:03]json_value_free [18:33:03]json_value_free done [18:33:03]process_json_proto returns [18:33:03]Send response to host [18:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49252,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:33:03]free response buf [18:33:03]execute_script done [18:33:03]execute_script returns [18:33:03]free content buf [18:33:03]Sock 9.Close socket [18:33:03]Sock 9.Thread stoped [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:09]accept exits with 7 [18:40:09]New connection [18:40:09]New thread 3066813796 created [18:40:09]Thread 3066670436 joined [18:40:09]Waiting for new connection... [18:40:09] Sock 7.Parse request [18:40:09]Sock 7.Check first char [18:40:09]Sock 7.First char is OK [18:40:09]request: POST /json_proto HTTP/1.0 [18:40:09]Method: POST [18:40:09]URL: /json_proto [18:40:09]Method is POST - this is cgi request [18:40:09]url: /json_proto [18:40:09]query_string will be loaded in cgi processing [18:40:09]execute_cgi json_proto POST (null) [18:40:09]execute_cgi path=json_proto method=POST [18:40:09]POST find Content-Length [18:40:09]Host: 172.17.56.67:8080 [18:40:09]Content-Length: 677 [18:40:09]Content-Type: application/json [18:40:09] [18:40:09]POST finish read [18:40:09]Found Content-Length = 677 [18:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:09]execute_script... [18:40:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:09]POST & json_proto [18:40:09]process_json_proto [18:40:09]json parsed OK: [18:40:09]protocol is kg_v1.0 [18:40:09]action value=close_receipt [18:40:09]process_action close_receipt [18:40:09]cmd_close_receipt [18:40:09]MH_GetDate [18:40:09]Write to MH i2c: F0 00 00 58 83 CA [18:40:09]Write i2c OK [18:40:09]MH_I2C_Read... [18:40:09]Read from MH i2c: F0 [18:40:09]MH_I2C_Read... [18:40:09]Read from MH i2c: F0 09 00 [18:40:09]MH_I2C_Read... [18:40:09]Read from MH i2c: F0 09 00 58 83 00 9D 42 B9 65 26 5D 9E 65 56 [18:40:09]GetLastDocTimeStamp 1706639599 [18:40:09]current date 1706640029 [18:40:09]FM_GetShiftState [18:40:09]SAM_PROTO_GetShiftState [18:40:09]wFMCommunicate request_size=4 [18:40:09]MH_SAM_APDU [18:40:09]CAPDU: 80 13 01 00 [18:40:09]Write to MH i2c: E2 08 00 59 83 80 13 01 00 00 00 00 00 59 [18:40:09]Write i2c OK [18:40:09]MH_I2C_Read... [18:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:09]Read from MH i2c: E2 [18:40:09]MH_I2C_Read... [18:40:09]Read from MH i2c: E2 0E 00 [18:40:09]MH_I2C_Read... [18:40:09]Read from MH i2c: E2 0E 00 59 83 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 81 [18:40:09]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:40:09]wFMCommunicate OK [18:40:09]SAM_PROTO_GetShiftState done [18:40:09]FM_GetShiftState done [18:40:09]opened in 1706572995 [18:40:09]opened+sec_in_day 1706659395 [18:40:09]quantity*price = 40039 [18:40:09]sum+1 = 40040 [18:40:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 129 30.01.2024 18:40 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49253 ФПД: 66715376019021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T184029&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49253&fm=66715376019021&tin=02508201610067®Number=0000000000092723&sum=40000 [18:40:10]StoreToDocumentArchive [18:40:10]shift 246 fd 49253 [18:40:10]save to /storage/0246/doc_00049253 [18:40:10]save last doc name /storage/0246/doc_00049253 to /storage/kkm_last_doc_name [18:40:10]save OK [18:40:10]Clear old archive folders... [18:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:10]tlvbuf is 0147AAD0 [18:40:10]SAM_PROTO_ClearQueue [18:40:10]wFMCommunicate request_size=4 [18:40:10]MH_SAM_APDU [18:40:10]CAPDU: 80 09 00 00 [18:40:10]Write to MH i2c: E2 08 00 66 83 80 09 00 00 00 00 00 00 5B [18:40:10]Write i2c OK [18:40:10]MH_I2C_Read... [18:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:10]Read from MH i2c: E2 [18:40:10]MH_I2C_Read... [18:40:10]Read from MH i2c: E2 03 00 [18:40:10]MH_I2C_Read... [18:40:10]Read from MH i2c: E2 03 00 66 83 00 90 00 5D [18:40:10]RAPDU: 90 00 [18:40:10]wFMCommunicate OK [18:40:10]SAM_PROTO_ClearQueue done [18:40:10]KKMCreateOFDPacket [18:40:10]OFDProtocolAddRootSTLVToBuf [18:40:10]FM_MakeSignedData [18:40:10]FM_MakeSignedData [18:40:10]SAM_PROTO_SignData [18:40:10]wFMCommunicate request_size=4 [18:40:10]MH_SAM_APDU [18:40:10]CAPDU: 80 0D 01 02 [18:40:10]Write to MH i2c: E2 08 00 67 83 80 0D 01 02 00 00 00 00 63 [18:40:10]Write i2c OK [18:40:10]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 67 83 00 90 00 5E [18:40:11]RAPDU: 90 00 [18:40:11]wFMCommunicate OK [18:40:11]wFMCommunicate request_size=255 [18:40:11]MH_SAM_APDU [18: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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9D 42 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 65 C0 00 00 35 04 06 00 3C [18:40:11]Write to MH i2c: E2 02 01 68 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9D 42 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 65 C0 00 00 35 04 06 00 3C 00 00 B2 [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 68 83 00 90 00 5F [18:40:11]RAPDU: 90 00 [18:40:11]wFMCommunicate OK [18:40:11]wFMCommunicate request_size=10 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 0D 02 02 05 AD 62 49 E6 4D [18:40:11]Write to MH i2c: E2 0D 00 69 83 80 0D 02 02 05 00 AD 62 49 E6 4D 00 00 FB [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 69 83 00 90 00 60 [18:40:11]RAPDU: 90 00 [18:40:11]wFMCommunicate OK [18:40:11]wFMCommunicate request_size=4 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 0D 03 02 [18:40:11]Write to MH i2c: E2 08 00 6A 83 80 0D 03 02 00 00 00 00 68 [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 0B 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 0B 00 6A 83 00 A8 9B A3 F1 FA 9F 5F 0A 90 00 42 [18:40:11]RAPDU: A8 9B A3 F1 FA 9F 5F 0A 90 00 [18:40:11]wFMCommunicate OK [18:40:11]SAM_PROTO_SignData done [18:40:11]FM_MakeSignedData done [18:40:11]CreateOFDProtocolMessage [18:40:11]wFMCommunicate request_size=4 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 11 00 00 [18:40:11]Write to MH i2c: E2 08 00 6B 83 80 11 00 00 00 00 00 00 68 [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 17 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 17 00 6B 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B5 [18:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:40:11]wFMCommunicate OK [18:40:11]CreateOFDProtocolMessage done [18:40:11]OFDSenderStorePacket 49253 [18:40:11]StoreOFDPacket docnum=49253 [18:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 70 76 07 01 D7 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9D 42 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 65 C0 00 00 35 04 06 00 3C AD 62 49 E6 4D A8 9B A3 F1 FA 9F 5F 0A [18:40:11]CheckFolder [18:40:11]dirname=/storage/ofd_packets [18:40:11]CheckFolder done [18:40:11]ProducePacketName [18:40:11]name=ofd_packets/00049253 [18:40:11]NVStorageSaveData ofd_packets/00049253 [18:40:11]File name is /storage/ofd_packets/00049253 [18:40:11]Write 301 bytes [18:40:11]NVStorageSaveData done [18:40:11]OFDSenderStorePacket done [18:40:11]KKMCreateOFDPacket done [18:40:11]NVStorageSaveData kkm_last_timestamp [18:40:11]File name is /storage/kkm_last_timestamp [18:40:11]Write 4 bytes [18:40:11]NVStorageSaveData done [18:40:11]ExternCall_PrintAddStr [18:40:11]wPrintStart [18:40:11]Write to MH i2c: 01 00 00 6C 83 EF [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: 01 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: 01 07 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: 01 07 00 6C 83 00 00 00 00 00 FF 0F 04 [18:40:11]RasterBufferAndPrint [18:40:11]line Счет N : (1)216357 [18:40:11]line ИНН: 02508201610067 [18:40:11]line Контрольно-Кассовый Чек [18:40:11]line ПРОДАЖА [18:40:11]line ТРК (МРК, ГНК) : 12 [18:40:11]line Товар: 2710124130 [18:40:11]line Аи-92-К-5 [18:40:11]line 6.640 * 60.30 [18:40:11]line = 400.39 [18:40:11]line НДС 12% НСП 1% [18:40:11]line > о реализуемом товаре [18:40:11]line ОКРУГЛЕНИЕ: -0.39 [18:40:11]line ИТОГО: 400.00 [18:40:11]line Внесено: 400.00 [18:40:11]line СДАЧА: 0.00 [18:40:11]line НСП 1% : 3.54 [18:40:11]line НДС 12% : 42.52 [18:40:11]line Наличными: 400.00 [18:40:11]line Безнал.: 0.00 [18:40:11]line Место: АЗС № 102 "Партнер Нефть" [18:40:11]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:40:11]line СНО: Общий режим [18:40:11]line Чек 129 30.01.2024 18:40 [18:40:11]line Смена: 246 ФФД: 1.0 [18:40:11]line ЗНМ: 0300000040 [18:40:11]line РНМ: 0000000000092723 [18:40:11]line Версия ККМ: 001 [18:40:11]line ФМ: 0000000000875060 [18:40:11]line ФД: 49253 [18:40:11]line ФПД: 66715376019021 [18:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T184029&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49253&fm=66715376019021&tin=02508201610067®Number=0000000000092723&sum=40000 [18:40:11]OFD Sender: Processing packet 49253 [packets to send 12, broken 11] [18:40:11]ProducePacketName [18:40:11]name=ofd_packets/00049253 [18:40:11]OFD Sender: To server: pG, [18:40:11]CommunicateWithHost lk.salyk.kg:30040 [18:40:11]ConnectInit lk.salyk.kg [18:40:11]written 0, free lines is 4095 [18:40:11]Connected sock=10 [18: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 36 30 0F 01 00 00 70 76 07 01 D7 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9D 42 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 65 C0 00 00 35 04 06 00 3C AD 62 49 E6 4D A8 9B A3 F1 FA 9F 5F 0A [18: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 36 30 4F 00 00 00 E9 32 47 00 0C 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 65 C0 00 00 F4 03 04 00 92 EE B8 65 B6 04 01 00 00 8D 9C 42 16 FD EB 4A 11 [18:40:12]CommunicateWithHost err = 0 [18:40:12]CheckOFDResponse [18:40:12]1017 (14) - 77093643461234 [18:40:12]1041 (16) - 0000000000875060 [18:40:12]1040 (4) - 49253 [18:40:12]1012 (4) - 30.01.2024 12:41 [18:40:12]1206 (1) - 0 [18:40:12]OFD Sender: Remove packet 49253 [18:40:12]ProducePacketName [18:40:12]name=ofd_packets/00049253 [18:40:12]NVStorageDeleteData [18:40:12]Write to MH i2c: 01 00 00 97 83 1A [18:40:12]Write i2c OK [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: 01 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: 01 07 00 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: 01 07 00 97 83 00 00 00 00 00 F5 0C 22 [18:40:12]RasterBufferAndPrint [18:40:12]line [18:40:12]line [18:40:12]line [18:40:12]line [18:40:12]line [18:40:12]written 0, free lines is 3324 [18:40:12]MH_Cut [18:40:12]Write to MH i2c: D1 01 00 9E 83 01 F3 [18:40:12]Write i2c OK [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: D1 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: D1 01 00 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: D1 01 00 9E 83 00 F2 [18:40:12]Write to MH i2c: 01 00 00 9F 83 22 [18:40:12]Write i2c OK [18:40:12]MH_I2C_Read... [18:40:12]OFD Sender: No OFD packet to send [18:40:12]*** Cut start [18:40:12]*** Partial cut [18:40:12]*** CUTSNS_PIN = 1 [18:40:12]*** CUTSNS_PIN = 0 [18:40:13]*** Brake cut motor [18:40:13]Read from MH i2c: 01 [18:40:13]MH_I2C_Read... [18:40:13]*** Stop cut motor [18:40:13]*** Cut end [18:40:13]Read from MH i2c: 01 07 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: 01 07 00 9F 83 00 00 00 00 00 FF 0F 37 [18:40:13]process_action close_receipt done [18:40:13]requested_data is exist [18:40:13]produce_requested_data [18:40:13]requested_item fm.sn is exist - process it [18:40:13]wFMCommunicate request_size=4 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 11 00 00 [18:40:13]Write to MH i2c: E2 08 00 A0 83 80 11 00 00 00 00 00 00 9D [18:40:13]Write i2c OK [18:40:13]MH_I2C_Read... [18:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:13]Read from MH i2c: E2 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 17 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 17 00 A0 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EA [18:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:40:13]wFMCommunicate OK [18:40:13]requested_item fd.num is exist - process it [18:40:13]SAM_PROTO_GetFieldsCounters [18:40:13]wFMCommunicate request_size=4 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 13 00 00 [18:40:13]Write to MH i2c: E2 08 00 A1 83 80 13 00 00 00 00 00 00 A0 [18:40:13]Write i2c OK [18:40:13]MH_I2C_Read... [18:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:13]Read from MH i2c: E2 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 62 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 62 00 A1 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 65 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [18:40: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 65 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:13]wFMCommunicate OK [18:40:13]SAM_PROTO_GetFieldsCounters done [18:40:13]requested_item shift.num is exist - process it [18:40:13]requested_item shift.opened is exist - process it [18:40:13]req_shift_opened [18:40:13]FM_GetShiftState [18:40:13]SAM_PROTO_GetShiftState [18:40:13]wFMCommunicate request_size=4 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 13 01 00 [18:40:13]Write to MH i2c: E2 08 00 A2 83 80 13 01 00 00 00 00 00 A2 [18:40:13]Write i2c OK [18:40:13]MH_I2C_Read... [18:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:13]Read from MH i2c: E2 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 0E 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 0E 00 A2 83 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 CA [18:40:13]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:40:13]wFMCommunicate OK [18:40:13]SAM_PROTO_GetShiftState done [18:40:13]FM_GetShiftState done [18:40:13]req_shift_opened done [18:40:13]requested_item shift.open_date is exist - process it [18:40:13]req_shift_open_date [18:40:13]req_shift_open_date done [18:40:13]produce_requested_data done [18:40:13]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49253,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:40:13]process_action_free close_receipt [18:40:13]json_value_free [18:40:13]json_value_free done [18:40:13]process_json_proto returns [18:40:13]Send response to host [18:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49253,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:40:13]free response buf [18:40:13]execute_script done [18:40:13]execute_script returns [18:40:13]free content buf [18:40:13]Sock 7.Close socket [18:40:13]Sock 7.Thread stoped [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]accept exits with 9 [18:40:32]New connection [18:40:32]New thread 3066670436 created [18:40:32]Thread 3066813796 joined [18:40:32]Waiting for new connection... [18:40:32] Sock 9.Parse request [18:40:32]Sock 9.Check first char [18:40:32]Sock 9.First char is OK [18:40:32]request: POST /json_proto HTTP/1.0 [18:40:32]Method: POST [18:40:32]URL: /json_proto [18:40:32]Method is POST - this is cgi request [18:40:32]url: /json_proto [18:40:32]query_string will be loaded in cgi processing [18:40:32]execute_cgi json_proto POST (null) [18:40:32]execute_cgi path=json_proto method=POST [18:40:32]POST find Content-Length [18:40:32]Host: 172.17.56.67:8080 [18:40:32]Content-Length: 682 [18:40:32]Content-Type: application/json [18:40:32] [18:40:32]POST finish read [18:40:32]Found Content-Length = 682 [18:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:40:32]execute_script... [18:40:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:40:32]POST & json_proto [18:40:32]process_json_proto [18:40:32]json parsed OK: [18:40:32]protocol is kg_v1.0 [18:40:32]action value=close_receipt [18:40:32]process_action close_receipt [18:40:32]cmd_close_receipt [18:40:32]MH_GetDate [18:40:32]Write to MH i2c: F0 00 00 A3 83 15 [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: F0 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: F0 09 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: F0 09 00 A3 83 00 B4 42 B9 65 26 5D 9E 65 B8 [18:40:32]GetLastDocTimeStamp 1706640029 [18:40:32]current date 1706640052 [18:40:32]FM_GetShiftState [18:40:32]SAM_PROTO_GetShiftState [18:40:32]wFMCommunicate request_size=4 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 13 01 00 [18:40:32]Write to MH i2c: E2 08 00 A4 83 80 13 01 00 00 00 00 00 A4 [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 0E 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 0E 00 A4 83 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 CC [18:40:32]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:40:32]wFMCommunicate OK [18:40:32]SAM_PROTO_GetShiftState done [18:40:32]FM_GetShiftState done [18:40:32]opened in 1706572995 [18:40:32]opened+sec_in_day 1706659395 [18:40:32]quantity*price = 100037 [18:40:32]sum+1 = 100039 [18:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 130 30.01.2024 18:40 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49254 ФПД: 274347794953928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T184052&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49254&fm=274347794953928&tin=02508201610067®Number=0000000000092723&sum=100000 [18:40:33]StoreToDocumentArchive [18:40:33]shift 246 fd 49254 [18:40:33]save to /storage/0246/doc_00049254 [18:40:33]save last doc name /storage/0246/doc_00049254 to /storage/kkm_last_doc_name [18:40:33]save OK [18:40:33]Clear old archive folders... [18:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:33]tlvbuf is 01244130 [18:40:33]SAM_PROTO_ClearQueue [18:40:33]wFMCommunicate request_size=4 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 09 00 00 [18:40:33]Write to MH i2c: E2 08 00 B1 83 80 09 00 00 00 00 00 00 A6 [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 B1 83 00 90 00 A8 [18:40:33]RAPDU: 90 00 [18:40:33]wFMCommunicate OK [18:40:33]SAM_PROTO_ClearQueue done [18:40:33]KKMCreateOFDPacket [18:40:33]OFDProtocolAddRootSTLVToBuf [18:40:33]FM_MakeSignedData [18:40:33]FM_MakeSignedData [18:40:33]SAM_PROTO_SignData [18:40:33]wFMCommunicate request_size=4 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 0D 01 02 [18:40:33]Write to MH i2c: E2 08 00 B2 83 80 0D 01 02 00 00 00 00 AE [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 B2 83 00 90 00 A9 [18:40:33]RAPDU: 90 00 [18:40:33]wFMCommunicate OK [18:40:33]wFMCommunicate request_size=255 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B4 42 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 66 C0 00 00 35 04 06 00 F9 [18:40:33]Write to MH i2c: E2 02 01 B3 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B4 42 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 66 C0 00 00 35 04 06 00 F9 00 00 C9 [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 B3 83 00 90 00 AA [18:40:33]RAPDU: 90 00 [18:40:33]wFMCommunicate OK [18:40:33]wFMCommunicate request_size=10 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 0D 02 02 05 84 92 DC F6 C8 [18:40:33]Write to MH i2c: E2 0D 00 B4 83 80 0D 02 02 05 00 84 92 DC F6 C8 00 00 6B [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:34]Read from MH i2c: E2 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 03 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 03 00 B4 83 00 90 00 AB [18:40:34]RAPDU: 90 00 [18:40:34]wFMCommunicate OK [18:40:34]wFMCommunicate request_size=4 [18:40:34]MH_SAM_APDU [18:40:34]CAPDU: 80 0D 03 02 [18:40:34]Write to MH i2c: E2 08 00 B5 83 80 0D 03 02 00 00 00 00 B3 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:34]Read from MH i2c: E2 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 0B 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 0B 00 B5 83 00 89 0A 68 61 85 0E FF 4F 90 00 F1 [18:40:34]RAPDU: 89 0A 68 61 85 0E FF 4F 90 00 [18:40:34]wFMCommunicate OK [18:40:34]SAM_PROTO_SignData done [18:40:34]FM_MakeSignedData done [18:40:34]CreateOFDProtocolMessage [18:40:34]wFMCommunicate request_size=4 [18:40:34]MH_SAM_APDU [18:40:34]CAPDU: 80 11 00 00 [18:40:34]Write to MH i2c: E2 08 00 B6 83 80 11 00 00 00 00 00 00 B3 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:34]Read from MH i2c: E2 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 17 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 17 00 B6 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 00 [18:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:40:34]wFMCommunicate OK [18:40:34]CreateOFDProtocolMessage done [18:40:34]OFDSenderStorePacket 49254 [18:40:34]StoreOFDPacket docnum=49254 [18:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 37 DA 07 01 E1 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B4 42 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 66 C0 00 00 35 04 06 00 F9 84 92 DC F6 C8 89 0A 68 61 85 0E FF 4F [18:40:34]CheckFolder [18:40:34]dirname=/storage/ofd_packets [18:40:34]CheckFolder done [18:40:34]ProducePacketName [18:40:34]name=ofd_packets/00049254 [18:40:34]NVStorageSaveData ofd_packets/00049254 [18:40:34]File name is /storage/ofd_packets/00049254 [18:40:34]Write 301 bytes [18:40:34]NVStorageSaveData done [18:40:34]OFDSenderStorePacket done [18:40:34]KKMCreateOFDPacket done [18:40:34]NVStorageSaveData kkm_last_timestamp [18:40:34]File name is /storage/kkm_last_timestamp [18:40:34]Write 4 bytes [18:40:34]NVStorageSaveData done [18:40:34]ExternCall_PrintAddStr [18:40:34]wPrintStart [18:40:34]Write to MH i2c: 01 00 00 B7 83 3A [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 07 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 07 00 B7 83 00 00 00 00 00 FF 0F 4F [18:40:34]RasterBufferAndPrint [18:40:34]line Счет N : (1)216358 [18:40:34]line ИНН: 02508201610067 [18:40:34]line Контрольно-Кассовый Чек [18:40:34]line ПРОДАЖА [18:40:34]line ТРК (МРК, ГНК) : 22 [18:40:34]line Товар: 2710124130 [18:40:34]line Аи-92-К-5 [18:40:34]line 16.590 * 60.30 [18:40:34]line = 1000.38 [18:40:34]line НДС 12% НСП 1% [18:40:34]line > о реализуемом товаре [18:40:34]line ОКРУГЛЕНИЕ: -0.38 [18:40:34]line ИТОГО: 1000.00 [18:40:34]line Внесено: 1000.00 [18:40:34]line СДАЧА: 0.00 [18:40:34]line НСП 1% : 8.85 [18:40:34]line НДС 12% : 106.23 [18:40:34]line Наличными: 1000.00 [18:40:34]line Безнал.: 0.00 [18:40:34]line Место: АЗС № 102 "Партнер Нефть" [18:40:34]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:40:34]line СНО: Общий режим [18:40:34]line Чек 130 30.01.2024 18:40 [18:40:34]line Смена: 246 ФФД: 1.0 [18:40:34]line ЗНМ: 0300000040 [18:40:34]line РНМ: 0000000000092723 [18:40:34]line Версия ККМ: 001 [18:40:34]line ФМ: 0000000000875060 [18:40:34]line ФД: 49254 [18:40:34]line ФПД: 274347794953928 [18:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T184052&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49254&fm=274347794953928&tin=02508201610067®Number=0000000000092723&sum=100000 [18:40:34]OFD Sender: Processing packet 49254 [packets to send 12, broken 11] [18:40:34]ProducePacketName [18:40:34]name=ofd_packets/00049254 [18:40:34]OFD Sender: To server: pG, [18:40:34]CommunicateWithHost lk.salyk.kg:30040 [18:40:34]ConnectInit lk.salyk.kg [18:40:34]written 0, free lines is 4095 [18:40:34]Write to MH i2c: 01 00 00 E2 83 65 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 07 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 07 00 E2 83 00 00 00 00 00 F0 0C 68 [18:40:34]RasterBufferAndPrint [18:40:34]line [18:40:34]line [18:40:34]line [18:40:34]line [18:40:34]line [18:40:34]written 0, free lines is 3319 [18:40:34]MH_Cut [18:40:34]Write to MH i2c: D1 01 00 E9 83 01 3E [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 01 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 01 00 E9 83 00 3D [18:40:34]Write to MH i2c: 01 00 00 EA 83 6D [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:35]*** Cut start [18:40:35]*** Partial cut [18:40:35]*** CUTSNS_PIN = 1 [18:40:35]*** CUTSNS_PIN = 0 [18:40:35]*** Brake cut motor [18:40:36]Read from MH i2c: 01 [18:40:36]MH_I2C_Read... [18:40:36]*** Stop cut motor [18:40:36]*** Cut end [18:40:36]Read from MH i2c: 01 07 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 EA 83 00 00 00 00 00 FF 0F 82 [18:40:36]process_action close_receipt done [18:40:36]requested_data is exist [18:40:36]produce_requested_data [18:40:36]requested_item fm.sn is exist - process it [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 11 00 00 [18:40:36]Write to MH i2c: E2 08 00 EB 83 80 11 00 00 00 00 00 00 E8 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 17 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 17 00 EB 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 35 [18:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:40:36]wFMCommunicate OK [18:40:36]requested_item fd.num is exist - process it [18:40:36]SAM_PROTO_GetFieldsCounters [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 13 00 00 [18:40:36]Write to MH i2c: E2 08 00 EC 83 80 13 00 00 00 00 00 00 EB [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 62 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 62 00 EC 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 66 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [18: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 66 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:36]wFMCommunicate OK [18:40:36]SAM_PROTO_GetFieldsCounters done [18:40:36]requested_item shift.num is exist - process it [18:40:36]requested_item shift.opened is exist - process it [18:40:36]req_shift_opened [18:40:36]FM_GetShiftState [18:40:36]SAM_PROTO_GetShiftState [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 13 01 00 [18:40:36]Write to MH i2c: E2 08 00 ED 83 80 13 01 00 00 00 00 00 ED [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 0E 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 0E 00 ED 83 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 15 [18:40:36]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:40:36]wFMCommunicate OK [18:40:36]SAM_PROTO_GetShiftState done [18:40:36]FM_GetShiftState done [18:40:36]req_shift_opened done [18:40:36]requested_item shift.open_date is exist - process it [18:40:36]req_shift_open_date [18:40:36]req_shift_open_date done [18:40:36]produce_requested_data done [18:40:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49254,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:40:36]process_action_free close_receipt [18:40:36]json_value_free [18:40:36]json_value_free done [18:40:36]process_json_proto returns [18:40:36]Send response to host [18:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49254,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:40:36]free response buf [18:40:36]execute_script done [18:40:36]execute_script returns [18:40:36]free content buf [18:40:36]Sock 9.Close socket [18:40:36]Sock 9.Thread stoped [18:42:47]ConnectInit Can't connect to host [18:42:47]CommunicateWithHost connect error [18:42:47]CommunicateWithHost err = -1 [18:42:47]OFD Sender: Server communicate error [18:42:52]OFD Sender: Processing packet 49254 [packets to send 12, broken 11] [18:42:52]ProducePacketName [18:42:52]name=ofd_packets/00049254 [18:42:52]OFD Sender: To server: pG, [18:42:52]CommunicateWithHost lk.salyk.kg:30040 [18:42:52]ConnectInit lk.salyk.kg [18:42:52]Connected sock=9 [18:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 37 DA 07 01 E1 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B4 42 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 66 C0 00 00 35 04 06 00 F9 84 92 DC F6 C8 89 0A 68 61 85 0E FF 4F [18:42: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 36 30 4F 00 00 00 95 2B 47 00 B2 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 36 30 10 04 04 00 66 C0 00 00 F4 03 04 00 33 EF B8 65 B6 04 01 00 00 AF 5D 76 FC 2E 9D F7 0D [18:42:52]CommunicateWithHost err = 0 [18:42:52]CheckOFDResponse [18:42:52]1017 (14) - 77093643461234 [18:42:52]1041 (16) - 0000000000875060 [18:42:52]1040 (4) - 49254 [18:42:52]1012 (4) - 30.01.2024 12:44 [18:42:52]1206 (1) - 0 [18:42:52]OFD Sender: Remove packet 49254 [18:42:52]ProducePacketName [18:42:52]name=ofd_packets/00049254 [18:42:52]NVStorageDeleteData [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:10]accept exits with 7 [18:47:10]New connection [18:47:10]New thread 3066813796 created [18:47:10]Thread 3066670436 joined [18:47:10]Waiting for new connection... [18:47:10] Sock 7.Parse request [18:47:10]Sock 7.Check first char [18:47:10]Sock 7.First char is OK [18:47:10]request: POST /json_proto HTTP/1.0 [18:47:10]Method: POST [18:47:10]URL: /json_proto [18:47:10]Method is POST - this is cgi request [18:47:10]url: /json_proto [18:47:10]query_string will be loaded in cgi processing [18:47:10]execute_cgi json_proto POST (null) [18:47:10]execute_cgi path=json_proto method=POST [18:47:10]POST find Content-Length [18:47:10]Host: 172.17.56.67:8080 [18:47:10]Content-Length: 682 [18:47:10]Content-Type: application/json [18:47:10] [18:47:10]POST finish read [18:47:10]Found Content-Length = 682 [18:47:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 19.910, "sum" : 1200.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:10]execute_script... [18:47: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)216359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 19.910, "sum" : 1200.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:10]POST & json_proto [18:47:10]process_json_proto [18:47:10]json parsed OK: [18:47:10]protocol is kg_v1.0 [18:47:10]action value=close_receipt [18:47:10]process_action close_receipt [18:47:10]cmd_close_receipt [18:47:10]MH_GetDate [18:47:10]Write to MH i2c: F0 00 00 EE 83 60 [18:47:10]Write i2c OK [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: F0 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: F0 09 00 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: F0 09 00 EE 83 00 42 44 B9 65 26 5D 9E 65 93 [18:47:10]GetLastDocTimeStamp 1706640052 [18:47:10]current date 1706640450 [18:47:10]FM_GetShiftState [18:47:10]SAM_PROTO_GetShiftState [18:47:10]wFMCommunicate request_size=4 [18:47:10]MH_SAM_APDU [18:47:10]CAPDU: 80 13 01 00 [18:47:10]Write to MH i2c: E2 08 00 EF 83 80 13 01 00 00 00 00 00 EF [18:47:10]Write i2c OK [18:47:10]MH_I2C_Read... [18:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:10]Read from MH i2c: E2 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: E2 0E 00 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: E2 0E 00 EF 83 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 17 [18:47:10]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:47:10]wFMCommunicate OK [18:47:10]SAM_PROTO_GetShiftState done [18:47:10]FM_GetShiftState done [18:47:10]opened in 1706572995 [18:47:10]opened+sec_in_day 1706659395 [18:47:10]quantity*price = 120057 [18:47:10]sum+1 = 120058 [18:47:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 131 30.01.2024 18:47 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49255 ФПД: 210009983996375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T184730&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49255&fm=210009983996375&tin=02508201610067®Number=0000000000092723&sum=120000 [18:47:11]StoreToDocumentArchive [18:47:11]shift 246 fd 49255 [18:47:11]save to /storage/0246/doc_00049255 [18:47:11]save last doc name /storage/0246/doc_00049255 to /storage/kkm_last_doc_name [18:47:11]save OK [18:47:11]Clear old archive folders... [18:47:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:11]tlvbuf is 0139EFC0 [18:47:11]SAM_PROTO_ClearQueue [18:47:11]wFMCommunicate request_size=4 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 09 00 00 [18:47:11]Write to MH i2c: E2 08 00 FC 83 80 09 00 00 00 00 00 00 F1 [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 FC 83 00 90 00 F3 [18:47:11]RAPDU: 90 00 [18:47:11]wFMCommunicate OK [18:47:11]SAM_PROTO_ClearQueue done [18:47:11]KKMCreateOFDPacket [18:47:11]OFDProtocolAddRootSTLVToBuf [18:47:11]FM_MakeSignedData [18:47:11]FM_MakeSignedData [18:47:11]SAM_PROTO_SignData [18:47:11]wFMCommunicate request_size=4 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 0D 01 02 [18:47:11]Write to MH i2c: E2 08 00 FD 83 80 0D 01 02 00 00 00 00 F9 [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 FD 83 00 90 00 F4 [18:47:11]RAPDU: 90 00 [18:47:11]wFMCommunicate OK [18:47:11]wFMCommunicate request_size=255 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 42 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 67 C0 00 00 35 04 06 00 BF [18:47:11]Write to MH i2c: E2 02 01 FE 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 42 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 67 C0 00 00 35 04 06 00 BF 00 00 D6 [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 FE 83 00 90 00 F5 [18:47:11]RAPDU: 90 00 [18:47:11]wFMCommunicate OK [18:47:11]wFMCommunicate request_size=10 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 0D 02 02 05 00 C2 7E D1 D7 [18:47:11]Write to MH i2c: E2 0D 00 FF 83 80 0D 02 02 05 00 00 C2 7E D1 D7 00 00 EE [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 FF 83 00 90 00 F6 [18:47:11]RAPDU: 90 00 [18:47:11]wFMCommunicate OK [18:47:11]wFMCommunicate request_size=4 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 0D 03 02 [18:47:11]Write to MH i2c: E2 08 00 00 84 80 0D 03 02 00 00 00 00 FF [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 0B 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 0B 00 00 84 00 ED 8F 8D 64 D1 77 E2 F2 90 00 89 [18:47:11]RAPDU: ED 8F 8D 64 D1 77 E2 F2 90 00 [18:47:11]wFMCommunicate OK [18:47:11]SAM_PROTO_SignData done [18:47:11]FM_MakeSignedData done [18:47:11]CreateOFDProtocolMessage [18:47:11]wFMCommunicate request_size=4 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 11 00 00 [18:47:11]Write to MH i2c: E2 08 00 01 84 80 11 00 00 00 00 00 00 FF [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 17 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 17 00 01 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4C [18:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:47:11]wFMCommunicate OK [18:47:11]CreateOFDProtocolMessage done [18:47:11]OFDSenderStorePacket 49255 [18:47:11]StoreOFDPacket docnum=49255 [18:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D5 02 07 01 9B EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 42 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 67 C0 00 00 35 04 06 00 BF 00 C2 7E D1 D7 ED 8F 8D 64 D1 77 E2 F2 [18:47:11]CheckFolder [18:47:11]dirname=/storage/ofd_packets [18:47:11]CheckFolder done [18:47:11]ProducePacketName [18:47:11]name=ofd_packets/00049255 [18:47:11]NVStorageSaveData ofd_packets/00049255 [18:47:11]File name is /storage/ofd_packets/00049255 [18:47:11]Write 301 bytes [18:47:11]NVStorageSaveData done [18:47:11]OFDSenderStorePacket done [18:47:11]KKMCreateOFDPacket done [18:47:11]NVStorageSaveData kkm_last_timestamp [18:47:11]File name is /storage/kkm_last_timestamp [18:47:11]Write 4 bytes [18:47:11]NVStorageSaveData done [18:47:11]ExternCall_PrintAddStr [18:47:11]wPrintStart [18:47:11]Write to MH i2c: 01 00 00 02 84 86 [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: 01 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: 01 07 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: 01 07 00 02 84 00 00 00 00 00 FF 0F 9B [18:47:11]RasterBufferAndPrint [18:47:11]line Счет N : (1)216359 [18:47:11]line ИНН: 02508201610067 [18:47:11]line Контрольно-Кассовый Чек [18:47:11]line ПРОДАЖА [18:47:11]line ТРК (МРК, ГНК) : 22 [18:47:11]line Товар: 2710124130 [18:47:11]line Аи-92-К-5 [18:47:11]line 19.910 * 60.30 [18:47:11]line = 1200.57 [18:47:11]line НДС 12% НСП 1% [18:47:11]line > о реализуемом товаре [18:47:11]line ОКРУГЛЕНИЕ: -0.57 [18:47:11]line ИТОГО: 1200.00 [18:47:11]line Внесено: 1200.00 [18:47:11]line СДАЧА: 0.00 [18:47:11]line НСП 1% : 10.62 [18:47:11]line НДС 12% : 127.49 [18:47:11]line Наличными: 1200.00 [18:47:11]line Безнал.: 0.00 [18:47:11]line Место: АЗС № 102 "Партнер Нефть" [18:47:11]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:47:11]line СНО: Общий режим [18:47:11]line Чек 131 30.01.2024 18:47 [18:47:11]line Смена: 246 ФФД: 1.0 [18:47:11]line ЗНМ: 0300000040 [18:47:11]line РНМ: 0000000000092723 [18:47:11]line Версия ККМ: 001 [18:47:11]line ФМ: 0000000000875060 [18:47:11]line ФД: 49255 [18:47:11]line ФПД: 210009983996375 [18:47:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T184730&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49255&fm=210009983996375&tin=02508201610067®Number=0000000000092723&sum=120000 [18:47:12]OFD Sender: Processing packet 49255 [packets to send 12, broken 11] [18:47:12]ProducePacketName [18:47:12]name=ofd_packets/00049255 [18:47:12]OFD Sender: To server: pG, [18:47:12]CommunicateWithHost lk.salyk.kg:30040 [18:47:12]ConnectInit lk.salyk.kg [18:47:12]written 0, free lines is 4095 [18:47:12]Connected sock=10 [18:47: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 36 30 0F 01 00 00 D5 02 07 01 9B EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 4D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 42 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 67 C0 00 00 35 04 06 00 BF 00 C2 7E D1 D7 ED 8F 8D 64 D1 77 E2 F2 [18:47: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 36 30 4F 00 00 00 B0 4A 47 00 7C 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 67 C0 00 00 F4 03 04 00 37 F0 B8 65 B6 04 01 00 00 72 E4 B5 1A CD 6A E9 43 [18:47:12]CommunicateWithHost err = 0 [18:47:12]CheckOFDResponse [18:47:12]1017 (14) - 77093643461234 [18:47:12]1041 (16) - 0000000000875060 [18:47:12]1040 (4) - 49255 [18:47:12]1012 (4) - 30.01.2024 12:48 [18:47:12]1206 (1) - 0 [18:47:12]OFD Sender: Remove packet 49255 [18:47:12]ProducePacketName [18:47:12]name=ofd_packets/00049255 [18:47:12]NVStorageDeleteData [18:47:12]Write to MH i2c: 01 00 00 2D 84 B1 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 2D 84 00 00 00 00 00 EF 0C B3 [18:47:12]RasterBufferAndPrint [18:47:12]line [18:47:12]line [18:47:12]line [18:47:12]line [18:47:12]line [18:47:12]written 0, free lines is 3320 [18:47:12]MH_Cut [18:47:12]Write to MH i2c: D1 01 00 34 84 01 8A [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: D1 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: D1 01 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: D1 01 00 34 84 00 89 [18:47:12]Write to MH i2c: 01 00 00 35 84 B9 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]OFD Sender: No OFD packet to send [18:47:13]*** Cut start [18:47:13]*** Partial cut [18:47:13]*** CUTSNS_PIN = 1 [18:47:13]*** CUTSNS_PIN = 0 [18:47:13]*** Brake cut motor [18:47:13]Read from MH i2c: 01 [18:47:13]MH_I2C_Read... [18:47:13]*** Stop cut motor [18:47:13]*** Cut end [18:47:13]Read from MH i2c: 01 07 00 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: 01 07 00 35 84 00 00 00 00 00 FF 0F CE [18:47:13]process_action close_receipt done [18:47:13]requested_data is exist [18:47:13]produce_requested_data [18:47:13]requested_item fm.sn is exist - process it [18:47:13]wFMCommunicate request_size=4 [18:47:13]MH_SAM_APDU [18:47:13]CAPDU: 80 11 00 00 [18:47:13]Write to MH i2c: E2 08 00 36 84 80 11 00 00 00 00 00 00 34 [18:47:13]Write i2c OK [18:47:13]MH_I2C_Read... [18:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:13]Read from MH i2c: E2 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: E2 17 00 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: E2 17 00 36 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 81 [18:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:47:13]wFMCommunicate OK [18:47:13]requested_item fd.num is exist - process it [18:47:13]SAM_PROTO_GetFieldsCounters [18:47:13]wFMCommunicate request_size=4 [18:47:13]MH_SAM_APDU [18:47:13]CAPDU: 80 13 00 00 [18:47:13]Write to MH i2c: E2 08 00 37 84 80 13 00 00 00 00 00 00 37 [18:47:13]Write i2c OK [18:47:13]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 62 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 62 00 37 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 67 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [18:47: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 67 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:14]wFMCommunicate OK [18:47:14]SAM_PROTO_GetFieldsCounters done [18:47:14]requested_item shift.num is exist - process it [18:47:14]requested_item shift.opened is exist - process it [18:47:14]req_shift_opened [18:47:14]FM_GetShiftState [18:47:14]SAM_PROTO_GetShiftState [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 13 01 00 [18:47:14]Write to MH i2c: E2 08 00 38 84 80 13 01 00 00 00 00 00 39 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 0E 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 0E 00 38 84 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 61 [18:47:14]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:47:14]wFMCommunicate OK [18:47:14]SAM_PROTO_GetShiftState done [18:47:14]FM_GetShiftState done [18:47:14]req_shift_opened done [18:47:14]requested_item shift.open_date is exist - process it [18:47:14]req_shift_open_date [18:47:14]req_shift_open_date done [18:47:14]produce_requested_data done [18:47:14]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49255,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:47:14]process_action_free close_receipt [18:47:14]json_value_free [18:47:14]json_value_free done [18:47:14]process_json_proto returns [18:47:14]Send response to host [18:47:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49255,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:47:14]free response buf [18:47:14]execute_script done [18:47:14]execute_script returns [18:47:14]free content buf [18:47:14]Sock 7.Close socket [18:47:14]Sock 7.Thread stoped [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:38]accept exits with 9 [18:47:38]New connection [18:47:38]New thread 3066670436 created [18:47:38]Thread 3066813796 joined [18:47:38]Waiting for new connection... [18:47:38] Sock 9.Parse request [18:47:38]Sock 9.Check first char [18:47:38]Sock 9.First char is OK [18:47:38]request: POST /json_proto HTTP/1.0 [18:47:38]Method: POST [18:47:38]URL: /json_proto [18:47:38]Method is POST - this is cgi request [18:47:38]url: /json_proto [18:47:38]query_string will be loaded in cgi processing [18:47:38]execute_cgi json_proto POST (null) [18:47:38]execute_cgi path=json_proto method=POST [18:47:38]POST find Content-Length [18:47:38]Host: 172.17.56.67:8080 [18:47:38]Content-Length: 677 [18:47:38]Content-Type: application/json [18:47:38] [18:47:38]POST finish read [18:47:38]Found Content-Length = 677 [18:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:38]execute_script... [18:47:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:38]POST & json_proto [18:47:38]process_json_proto [18:47:38]json parsed OK: [18:47:38]protocol is kg_v1.0 [18:47:38]action value=close_receipt [18:47:38]process_action close_receipt [18:47:38]cmd_close_receipt [18:47:38]MH_GetDate [18:47:38]Write to MH i2c: F0 00 00 39 84 AC [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: F0 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: F0 09 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: F0 09 00 39 84 00 5E 44 B9 65 26 5D 9E 65 FB [18:47:38]GetLastDocTimeStamp 1706640450 [18:47:38]current date 1706640478 [18:47:38]FM_GetShiftState [18:47:38]SAM_PROTO_GetShiftState [18:47:38]wFMCommunicate request_size=4 [18:47:38]MH_SAM_APDU [18:47:38]CAPDU: 80 13 01 00 [18:47:38]Write to MH i2c: E2 08 00 3A 84 80 13 01 00 00 00 00 00 3B [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 0E 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 0E 00 3A 84 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 63 [18:47:38]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:47:38]wFMCommunicate OK [18:47:38]SAM_PROTO_GetShiftState done [18:47:38]FM_GetShiftState done [18:47:38]opened in 1706572995 [18:47:38]opened+sec_in_day 1706659395 [18:47:38]quantity*price = 25024 [18:47:38]sum+1 = 25026 [18:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 132 30.01.2024 18:47 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49256 ФПД: 168665320428354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T184758&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49256&fm=168665320428354&tin=02508201610067®Number=0000000000092723&sum=25000 [18:47:40]StoreToDocumentArchive [18:47:40]shift 246 fd 49256 [18:47:40]save to /storage/0246/doc_00049256 [18:47:40]save last doc name /storage/0246/doc_00049256 to /storage/kkm_last_doc_name [18:47:40]save OK [18:47:40]Clear old archive folders... [18:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:40]tlvbuf is 0144F3E0 [18:47:40]SAM_PROTO_ClearQueue [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 09 00 00 [18:47:40]Write to MH i2c: E2 08 00 47 84 80 09 00 00 00 00 00 00 3D [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 47 84 00 90 00 3F [18:47:40]RAPDU: 90 00 [18:47:40]wFMCommunicate OK [18:47:40]SAM_PROTO_ClearQueue done [18:47:40]KKMCreateOFDPacket [18:47:40]OFDProtocolAddRootSTLVToBuf [18:47:40]FM_MakeSignedData [18:47:40]FM_MakeSignedData [18:47:40]SAM_PROTO_SignData [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 0D 01 02 [18:47:40]Write to MH i2c: E2 08 00 48 84 80 0D 01 02 00 00 00 00 45 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 48 84 00 90 00 40 [18:47:40]RAPDU: 90 00 [18:47:40]wFMCommunicate OK [18:47:40]wFMCommunicate request_size=255 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 68 C0 00 00 35 04 06 00 99 [18:47:40]Write to MH i2c: E2 02 01 49 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 68 C0 00 00 35 04 06 00 99 00 00 A9 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 49 84 00 90 00 41 [18:47:40]RAPDU: 90 00 [18:47:40]wFMCommunicate OK [18:47:40]wFMCommunicate request_size=10 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 0D 02 02 05 66 74 82 93 42 [18:47:40]Write to MH i2c: E2 0D 00 4A 84 80 0D 02 02 05 00 66 74 82 93 42 00 00 83 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 4A 84 00 90 00 42 [18:47:40]RAPDU: 90 00 [18:47:40]wFMCommunicate OK [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 0D 03 02 [18:47:40]Write to MH i2c: E2 08 00 4B 84 80 0D 03 02 00 00 00 00 4A [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0B 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0B 00 4B 84 00 3D D3 D7 8C C9 13 5A DB 90 00 CF [18:47:40]RAPDU: 3D D3 D7 8C C9 13 5A DB 90 00 [18:47:40]wFMCommunicate OK [18:47:40]SAM_PROTO_SignData done [18:47:40]FM_MakeSignedData done [18:47:40]CreateOFDProtocolMessage [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 11 00 00 [18:47:40]Write to MH i2c: E2 08 00 4C 84 80 11 00 00 00 00 00 00 4A [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 17 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 17 00 4C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 97 [18:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:47:40]wFMCommunicate OK [18:47:40]CreateOFDProtocolMessage done [18:47:40]OFDSenderStorePacket 49256 [18:47:40]StoreOFDPacket docnum=49256 [18:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FC 48 07 01 1E AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 68 C0 00 00 35 04 06 00 99 66 74 82 93 42 3D D3 D7 8C C9 13 5A DB [18:47:40]CheckFolder [18:47:40]dirname=/storage/ofd_packets [18:47:40]CheckFolder done [18:47:40]ProducePacketName [18:47:40]name=ofd_packets/00049256 [18:47:40]NVStorageSaveData ofd_packets/00049256 [18:47:40]File name is /storage/ofd_packets/00049256 [18:47:40]Write 301 bytes [18:47:40]NVStorageSaveData done [18:47:40]OFDSenderStorePacket done [18:47:40]KKMCreateOFDPacket done [18:47:40]NVStorageSaveData kkm_last_timestamp [18:47:40]File name is /storage/kkm_last_timestamp [18:47:40]Write 4 bytes [18:47:40]NVStorageSaveData done [18:47:40]ExternCall_PrintAddStr [18:47:40]wPrintStart [18:47:40]Write to MH i2c: 01 00 00 4D 84 D1 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 4D 84 00 00 00 00 00 FF 0F E6 [18:47:40]RasterBufferAndPrint [18:47:40]line Счет N : (1)216360 [18:47:40]line ИНН: 02508201610067 [18:47:40]line Контрольно-Кассовый Чек [18:47:40]line ПРОДАЖА [18:47:40]line ТРК (МРК, ГНК) : 12 [18:47:40]line Товар: 2710124130 [18:47:40]line Аи-92-К-5 [18:47:40]line 4.150 * 60.30 [18:47:40]line = 250.25 [18:47:40]line НДС 12% НСП 1% [18:47:40]line > о реализуемом товаре [18:47:40]line ОКРУГЛЕНИЕ: -0.25 [18:47:40]line ИТОГО: 250.00 [18:47:40]line Внесено: 250.00 [18:47:40]line СДАЧА: 0.00 [18:47:40]line НСП 1% : 2.21 [18:47:40]line НДС 12% : 26.57 [18:47:40]line Наличными: 250.00 [18:47:40]line Безнал.: 0.00 [18:47:40]line Место: АЗС № 102 "Партнер Нефть" [18:47:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:47:40]line СНО: Общий режим [18:47:40]line Чек 132 30.01.2024 18:47 [18:47:40]line Смена: 246 ФФД: 1.0 [18:47:40]line ЗНМ: 0300000040 [18:47:40]line РНМ: 0000000000092723 [18:47:40]line Версия ККМ: 001 [18:47:40]line ФМ: 0000000000875060 [18:47:40]line ФД: 49256 [18:47:40]line ФПД: 168665320428354 [18:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T184758&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49256&fm=168665320428354&tin=02508201610067®Number=0000000000092723&sum=25000 [18:47:40]OFD Sender: Processing packet 49256 [packets to send 12, broken 11] [18:47:40]ProducePacketName [18:47:40]name=ofd_packets/00049256 [18:47:40]OFD Sender: To server: pG, [18:47:40]CommunicateWithHost lk.salyk.kg:30040 [18:47:40]ConnectInit lk.salyk.kg [18:47:40]written 0, free lines is 4095 [18:47:41]Connected sock=10 [18:47: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 36 30 0F 01 00 00 FC 48 07 01 1E AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 68 C0 00 00 35 04 06 00 99 66 74 82 93 42 3D D3 D7 8C C9 13 5A DB [18:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 6F 65 47 00 07 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 68 C0 00 00 F4 03 04 00 53 F0 B8 65 B6 04 01 00 00 A5 30 21 BF 5A 37 AE 80 [18:47:41]CommunicateWithHost err = 0 [18:47:41]CheckOFDResponse [18:47:41]1017 (14) - 77093643461234 [18:47:41]1041 (16) - 0000000000875060 [18:47:41]1040 (4) - 49256 [18:47:41]1012 (4) - 30.01.2024 12:49 [18:47:41]1206 (1) - 0 [18:47:41]OFD Sender: Remove packet 49256 [18:47:41]ProducePacketName [18:47:41]name=ofd_packets/00049256 [18:47:41]NVStorageDeleteData [18:47:41]Write to MH i2c: 01 00 00 78 84 FC [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: 01 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: 01 07 00 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: 01 07 00 78 84 00 00 00 00 00 EE 0C FD [18:47:41]RasterBufferAndPrint [18:47:41]line [18:47:41]line [18:47:41]line [18:47:41]line [18:47:41]line [18:47:41]written 0, free lines is 3316 [18:47:41]MH_Cut [18:47:41]Write to MH i2c: D1 01 00 7F 84 01 D5 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: D1 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: D1 01 00 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: D1 01 00 7F 84 00 D4 [18:47:41]Write to MH i2c: 01 00 00 80 84 04 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]OFD Sender: No OFD packet to send [18:47:42]*** Cut start [18:47:42]*** Partial cut [18:47:42]*** CUTSNS_PIN = 1 [18:47:42]*** CUTSNS_PIN = 0 [18:47:42]*** Brake cut motor [18:47:42]Read from MH i2c: 01 [18:47:42]MH_I2C_Read... [18:47:42]*** Stop cut motor [18:47:42]*** Cut end [18:47:42]Read from MH i2c: 01 07 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: 01 07 00 80 84 00 00 00 00 00 FF 0F 19 [18:47:42]process_action close_receipt done [18:47:42]requested_data is exist [18:47:42]produce_requested_data [18:47:42]requested_item fm.sn is exist - process it [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 11 00 00 [18:47:42]Write to MH i2c: E2 08 00 81 84 80 11 00 00 00 00 00 00 7F [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 17 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 17 00 81 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CC [18:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:47:42]wFMCommunicate OK [18:47:42]requested_item fd.num is exist - process it [18:47:42]SAM_PROTO_GetFieldsCounters [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 13 00 00 [18:47:42]Write to MH i2c: E2 08 00 82 84 80 13 00 00 00 00 00 00 82 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 62 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 62 00 82 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 68 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [18:47: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 68 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:42]wFMCommunicate OK [18:47:42]SAM_PROTO_GetFieldsCounters done [18:47:42]requested_item shift.num is exist - process it [18:47:42]requested_item shift.opened is exist - process it [18:47:42]req_shift_opened [18:47:42]FM_GetShiftState [18:47:42]SAM_PROTO_GetShiftState [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 13 01 00 [18:47:42]Write to MH i2c: E2 08 00 83 84 80 13 01 00 00 00 00 00 84 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 0E 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 0E 00 83 84 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 AC [18:47:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:47:42]wFMCommunicate OK [18:47:42]SAM_PROTO_GetShiftState done [18:47:42]FM_GetShiftState done [18:47:42]req_shift_opened done [18:47:42]requested_item shift.open_date is exist - process it [18:47:42]req_shift_open_date [18:47:42]req_shift_open_date done [18:47:42]produce_requested_data done [18:47:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49256,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:47:42]process_action_free close_receipt [18:47:42]json_value_free [18:47:42]json_value_free done [18:47:42]process_json_proto returns [18:47:42]Send response to host [18:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49256,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:47:42]free response buf [18:47:42]execute_script done [18:47:42]execute_script returns [18:47:42]free content buf [18:47:42]Sock 9.Close socket [18:47:42]Sock 9.Thread stoped [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:42]accept exits with 7 [18:49:42]New connection [18:49:42]New thread 3066813796 created [18:49:42]Thread 3066670436 joined [18:49:42]Waiting for new connection... [18:49:42] Sock 7.Parse request [18:49:42]Sock 7.Check first char [18:49:42]Sock 7.First char is OK [18:49:42]request: POST /json_proto HTTP/1.0 [18:49:42]Method: POST [18:49:42]URL: /json_proto [18:49:42]Method is POST - this is cgi request [18:49:42]url: /json_proto [18:49:42]query_string will be loaded in cgi processing [18:49:42]execute_cgi json_proto POST (null) [18:49:42]execute_cgi path=json_proto method=POST [18:49:42]POST find Content-Length [18:49:42]Host: 172.17.56.67:8080 [18:49:42]Content-Length: 677 [18:49:42]Content-Type: application/json [18:49:42] [18:49:42]POST finish read [18:49:42]Found Content-Length = 677 [18:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [18:49:42]execute_script... [18:49: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)216361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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" ] } } [18:49:42]POST & json_proto [18:49:42]process_json_proto [18:49:42]json parsed OK: [18:49:42]protocol is kg_v1.0 [18:49:42]action value=close_receipt [18:49:42]process_action close_receipt [18:49:42]cmd_close_receipt [18:49:42]MH_GetDate [18:49:42]Write to MH i2c: F0 00 00 84 84 F7 [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: F0 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: F0 09 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: F0 09 00 84 84 00 DA 44 B9 65 26 5D 9E 65 C2 [18:49:42]GetLastDocTimeStamp 1706640478 [18:49:42]current date 1706640602 [18:49:42]FM_GetShiftState [18:49:42]SAM_PROTO_GetShiftState [18:49:42]wFMCommunicate request_size=4 [18:49:42]MH_SAM_APDU [18:49:42]CAPDU: 80 13 01 00 [18:49:42]Write to MH i2c: E2 08 00 85 84 80 13 01 00 00 00 00 00 86 [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:42]Read from MH i2c: E2 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 0E 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 0E 00 85 84 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 AE [18:49:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:49:42]wFMCommunicate OK [18:49:42]SAM_PROTO_GetShiftState done [18:49:42]FM_GetShiftState done [18:49:42]opened in 1706572995 [18:49:42]opened+sec_in_day 1706659395 [18:49:42]quantity*price = 30029 [18:49:42]sum+1 = 30030 [18:49:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 133 30.01.2024 18:50 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49257 ФПД: 30802870224923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T185002&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49257&fm=30802870224923&tin=02508201610067®Number=0000000000092723&sum=30000 [18:49:43]StoreToDocumentArchive [18:49:43]shift 246 fd 49257 [18:49:43]save to /storage/0246/doc_00049257 [18:49:43]save last doc name /storage/0246/doc_00049257 to /storage/kkm_last_doc_name [18:49:43]save OK [18:49:43]Clear old archive folders... [18:49:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:43]tlvbuf is 01482010 [18:49:43]SAM_PROTO_ClearQueue [18:49:43]wFMCommunicate request_size=4 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 09 00 00 [18:49:43]Write to MH i2c: E2 08 00 92 84 80 09 00 00 00 00 00 00 88 [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 92 84 00 90 00 8A [18:49:43]RAPDU: 90 00 [18:49:43]wFMCommunicate OK [18:49:43]SAM_PROTO_ClearQueue done [18:49:43]KKMCreateOFDPacket [18:49:43]OFDProtocolAddRootSTLVToBuf [18:49:43]FM_MakeSignedData [18:49:43]FM_MakeSignedData [18:49:43]SAM_PROTO_SignData [18:49:43]wFMCommunicate request_size=4 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 0D 01 02 [18:49:43]Write to MH i2c: E2 08 00 93 84 80 0D 01 02 00 00 00 00 90 [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 93 84 00 90 00 8B [18:49:43]RAPDU: 90 00 [18:49:43]wFMCommunicate OK [18:49:43]wFMCommunicate request_size=255 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 69 C0 00 00 35 04 06 00 1C [18:49:43]Write to MH i2c: E2 02 01 94 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 69 C0 00 00 35 04 06 00 1C 00 00 52 [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 94 84 00 90 00 8C [18:49:43]RAPDU: 90 00 [18:49:43]wFMCommunicate OK [18:49:43]wFMCommunicate request_size=10 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 0D 02 02 05 03 DA 23 48 1B [18:49:43]Write to MH i2c: E2 0D 00 95 84 80 0D 02 02 05 00 03 DA 23 48 1B 00 00 00 [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 95 84 00 90 00 8D [18:49:43]RAPDU: 90 00 [18:49:43]wFMCommunicate OK [18:49:43]wFMCommunicate request_size=4 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 0D 03 02 [18:49:43]Write to MH i2c: E2 08 00 96 84 80 0D 03 02 00 00 00 00 95 [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:44]Read from MH i2c: E2 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 0B 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 0B 00 96 84 00 80 F1 FC AA 44 E3 0C 14 90 00 F4 [18:49:44]RAPDU: 80 F1 FC AA 44 E3 0C 14 90 00 [18:49:44]wFMCommunicate OK [18:49:44]SAM_PROTO_SignData done [18:49:44]FM_MakeSignedData done [18:49:44]CreateOFDProtocolMessage [18:49:44]wFMCommunicate request_size=4 [18:49:44]MH_SAM_APDU [18:49:44]CAPDU: 80 11 00 00 [18:49:44]Write to MH i2c: E2 08 00 97 84 80 11 00 00 00 00 00 00 95 [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:44]Read from MH i2c: E2 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 17 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 17 00 97 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E2 [18:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:49:44]wFMCommunicate OK [18:49:44]CreateOFDProtocolMessage done [18:49:44]OFDSenderStorePacket 49257 [18:49:44]StoreOFDPacket docnum=49257 [18:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 91 9D 07 01 3A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 69 C0 00 00 35 04 06 00 1C 03 DA 23 48 1B 80 F1 FC AA 44 E3 0C 14 [18:49:44]CheckFolder [18:49:44]dirname=/storage/ofd_packets [18:49:44]CheckFolder done [18:49:44]ProducePacketName [18:49:44]name=ofd_packets/00049257 [18:49:44]NVStorageSaveData ofd_packets/00049257 [18:49:44]File name is /storage/ofd_packets/00049257 [18:49:44]Write 301 bytes [18:49:44]NVStorageSaveData done [18:49:44]OFDSenderStorePacket done [18:49:44]KKMCreateOFDPacket done [18:49:44]NVStorageSaveData kkm_last_timestamp [18:49:44]File name is /storage/kkm_last_timestamp [18:49:44]Write 4 bytes [18:49:44]NVStorageSaveData done [18:49:44]ExternCall_PrintAddStr [18:49:44]wPrintStart [18:49:44]Write to MH i2c: 01 00 00 98 84 1C [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 07 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 07 00 98 84 00 00 00 00 00 FF 0F 31 [18:49:44]RasterBufferAndPrint [18:49:44]line Счет N : (1)216361 [18:49:44]line ИНН: 02508201610067 [18:49:44]line Контрольно-Кассовый Чек [18:49:44]line ПРОДАЖА [18:49:44]line ТРК (МРК, ГНК) : 12 [18:49:44]line Товар: 2710124130 [18:49:44]line Аи-92-К-5 [18:49:44]line 4.980 * 60.30 [18:49:44]line = 300.29 [18:49:44]line НДС 12% НСП 1% [18:49:44]line > о реализуемом товаре [18:49:44]line ОКРУГЛЕНИЕ: -0.29 [18:49:44]line ИТОГО: 300.00 [18:49:44]line Внесено: 300.00 [18:49:44]line СДАЧА: 0.00 [18:49:44]line НСП 1% : 2.66 [18:49:44]line НДС 12% : 31.89 [18:49:44]line Наличными: 300.00 [18:49:44]line Безнал.: 0.00 [18:49:44]line Место: АЗС № 102 "Партнер Нефть" [18:49:44]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:49:44]line СНО: Общий режим [18:49:44]line Чек 133 30.01.2024 18:50 [18:49:44]line Смена: 246 ФФД: 1.0 [18:49:44]line ЗНМ: 0300000040 [18:49:44]line РНМ: 0000000000092723 [18:49:44]line Версия ККМ: 001 [18:49:44]line ФМ: 0000000000875060 [18:49:44]line ФД: 49257 [18:49:44]line ФПД: 30802870224923 [18:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T185002&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49257&fm=30802870224923&tin=02508201610067®Number=0000000000092723&sum=30000 [18:49:44]OFD Sender: Processing packet 49257 [packets to send 12, broken 11] [18:49:44]ProducePacketName [18:49:44]name=ofd_packets/00049257 [18:49:44]OFD Sender: To server: pG, [18:49:44]CommunicateWithHost lk.salyk.kg:30040 [18:49:44]ConnectInit lk.salyk.kg [18:49:44]written 0, free lines is 4095 [18:49:44]Connected sock=10 [18:49: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 36 30 0F 01 00 00 91 9D 07 01 3A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DA 44 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 69 C0 00 00 35 04 06 00 1C 03 DA 23 48 1B 80 F1 FC AA 44 E3 0C 14 [18:49: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 36 30 4F 00 00 00 49 08 47 00 76 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 36 30 10 04 04 00 69 C0 00 00 F4 03 04 00 CF F0 B8 65 B6 04 01 00 00 50 18 6E BF 57 C3 B2 0D [18:49:44]CommunicateWithHost err = 0 [18:49:44]CheckOFDResponse [18:49:44]1017 (14) - 77093643461234 [18:49:44]1041 (16) - 0000000000875060 [18:49:44]1040 (4) - 49257 [18:49:44]1012 (4) - 30.01.2024 12:51 [18:49:44]1206 (1) - 0 [18:49:44]OFD Sender: Remove packet 49257 [18:49:44]ProducePacketName [18:49:44]name=ofd_packets/00049257 [18:49:44]NVStorageDeleteData [18:49:44]Write to MH i2c: 01 00 00 C3 84 47 [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 07 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 07 00 C3 84 00 00 00 00 00 ED 0C 47 [18:49:44]RasterBufferAndPrint [18:49:44]line [18:49:44]line [18:49:44]line [18:49:44]line [18:49:44]line [18:49:44]written 0, free lines is 3315 [18:49:44]MH_Cut [18:49:44]Write to MH i2c: D1 01 00 CA 84 01 20 [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: D1 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: D1 01 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: D1 01 00 CA 84 00 1F [18:49:44]Write to MH i2c: 01 00 00 CB 84 4F [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:45]OFD Sender: No OFD packet to send [18:49:45]*** Cut start [18:49:45]*** Partial cut [18:49:45]*** CUTSNS_PIN = 1 [18:49:45]*** CUTSNS_PIN = 0 [18:49:45]*** Brake cut motor [18:49:46]Read from MH i2c: 01 [18:49:46]MH_I2C_Read... [18:49:46]*** Stop cut motor [18:49:46]*** Cut end [18:49:46]Read from MH i2c: 01 07 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: 01 07 00 CB 84 00 00 00 00 00 FF 0F 64 [18:49:46]process_action close_receipt done [18:49:46]requested_data is exist [18:49:46]produce_requested_data [18:49:46]requested_item fm.sn is exist - process it [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 11 00 00 [18:49:46]Write to MH i2c: E2 08 00 CC 84 80 11 00 00 00 00 00 00 CA [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 17 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 17 00 CC 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 17 [18:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:49:46]wFMCommunicate OK [18:49:46]requested_item fd.num is exist - process it [18:49:46]SAM_PROTO_GetFieldsCounters [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 13 00 00 [18:49:46]Write to MH i2c: E2 08 00 CD 84 80 13 00 00 00 00 00 00 CD [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 62 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 62 00 CD 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 69 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:49: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 69 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:46]wFMCommunicate OK [18:49:46]SAM_PROTO_GetFieldsCounters done [18:49:46]requested_item shift.num is exist - process it [18:49:46]requested_item shift.opened is exist - process it [18:49:46]req_shift_opened [18:49:46]FM_GetShiftState [18:49:46]SAM_PROTO_GetShiftState [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 13 01 00 [18:49:46]Write to MH i2c: E2 08 00 CE 84 80 13 01 00 00 00 00 00 CF [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 0E 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 0E 00 CE 84 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F7 [18:49:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:49:46]wFMCommunicate OK [18:49:46]SAM_PROTO_GetShiftState done [18:49:46]FM_GetShiftState done [18:49:46]req_shift_opened done [18:49:46]requested_item shift.open_date is exist - process it [18:49:46]req_shift_open_date [18:49:46]req_shift_open_date done [18:49:46]produce_requested_data done [18:49:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49257,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:49:46]process_action_free close_receipt [18:49:46]json_value_free [18:49:46]json_value_free done [18:49:46]process_json_proto returns [18:49:46]Send response to host [18:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49257,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:49:46]free response buf [18:49:46]execute_script done [18:49:46]execute_script returns [18:49:46]free content buf [18:49:46]Sock 7.Close socket [18:49:46]Sock 7.Thread stoped [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:41]accept exits with 9 [18:54:41]New connection [18:54:41]New thread 3066670436 created [18:54:41]Thread 3066813796 joined [18:54:41]Waiting for new connection... [18:54:41] Sock 9.Parse request [18:54:41]Sock 9.Check first char [18:54:41]Sock 9.First char is OK [18:54:41]request: POST /json_proto HTTP/1.0 [18:54:41]Method: POST [18:54:41]URL: /json_proto [18:54:41]Method is POST - this is cgi request [18:54:41]url: /json_proto [18:54:41]query_string will be loaded in cgi processing [18:54:41]execute_cgi json_proto POST (null) [18:54:41]execute_cgi path=json_proto method=POST [18:54:41]POST find Content-Length [18:54:41]Host: 172.17.56.67:8080 [18:54:41]Content-Length: 677 [18:54:41]Content-Type: application/json [18:54:41] [18:54:41]POST finish read [18:54:41]Found Content-Length = 677 [18:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "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:54:41]execute_script... [18:54: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)216362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "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:54:41]POST & json_proto [18:54:41]process_json_proto [18:54:41]json parsed OK: [18:54:41]protocol is kg_v1.0 [18:54:41]action value=close_receipt [18:54:41]process_action close_receipt [18:54:41]cmd_close_receipt [18:54:41]MH_GetDate [18:54:41]Write to MH i2c: F0 00 00 CF 84 42 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: F0 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: F0 09 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: F0 09 00 CF 84 00 05 46 B9 65 26 5D 9E 65 3A [18:54:41]GetLastDocTimeStamp 1706640602 [18:54:41]current date 1706640901 [18:54:41]FM_GetShiftState [18:54:41]SAM_PROTO_GetShiftState [18:54:41]wFMCommunicate request_size=4 [18:54:41]MH_SAM_APDU [18:54:41]CAPDU: 80 13 01 00 [18:54:41]Write to MH i2c: E2 08 00 D0 84 80 13 01 00 00 00 00 00 D1 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:41]Read from MH i2c: E2 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 0E 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 0E 00 D0 84 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 F9 [18:54:41]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:54:41]wFMCommunicate OK [18:54:41]SAM_PROTO_GetShiftState done [18:54:41]FM_GetShiftState done [18:54:41]opened in 1706572995 [18:54:41]opened+sec_in_day 1706659395 [18:54:41]quantity*price = 50049 [18:54:41]sum+1 = 50050 [18:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 134 30.01.2024 18:55 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49258 ФПД: 222212590985377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T185501&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49258&fm=222212590985377&tin=02508201610067®Number=0000000000092723&sum=50000 [18:54:42]StoreToDocumentArchive [18:54:42]shift 246 fd 49258 [18:54:42]save to /storage/0246/doc_00049258 [18:54:42]save last doc name /storage/0246/doc_00049258 to /storage/kkm_last_doc_name [18:54:42]save OK [18:54:42]Clear old archive folders... [18:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:42]tlvbuf is 011DD130 [18:54:42]SAM_PROTO_ClearQueue [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 09 00 00 [18:54:42]Write to MH i2c: E2 08 00 DD 84 80 09 00 00 00 00 00 00 D3 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 03 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 03 00 DD 84 00 90 00 D5 [18:54:42]RAPDU: 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_ClearQueue done [18:54:42]KKMCreateOFDPacket [18:54:42]OFDProtocolAddRootSTLVToBuf [18:54:42]FM_MakeSignedData [18:54:42]FM_MakeSignedData [18:54:42]SAM_PROTO_SignData [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 0D 01 02 [18:54:42]Write to MH i2c: E2 08 00 DE 84 80 0D 01 02 00 00 00 00 DB [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 03 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 03 00 DE 84 00 90 00 D6 [18:54:42]RAPDU: 90 00 [18:54:42]wFMCommunicate OK [18:54:42]wFMCommunicate request_size=255 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 05 46 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6A C0 00 00 35 04 06 00 CA [18:54:42]Write to MH i2c: E2 02 01 DF 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 05 46 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6A C0 00 00 35 04 06 00 CA 00 00 E4 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 DF 84 00 90 00 D7 [18:54:43]RAPDU: 90 00 [18:54:43]wFMCommunicate OK [18:54:43]wFMCommunicate request_size=10 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 0D 02 02 05 19 E6 8C E0 A1 [18:54:43]Write to MH i2c: E2 0D 00 E0 84 80 0D 02 02 05 00 19 E6 8C E0 A1 00 00 F4 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 E0 84 00 90 00 D8 [18:54:43]RAPDU: 90 00 [18:54:43]wFMCommunicate OK [18:54:43]wFMCommunicate request_size=4 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 0D 03 02 [18:54:43]Write to MH i2c: E2 08 00 E1 84 80 0D 03 02 00 00 00 00 E0 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 0B 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 0B 00 E1 84 00 95 A9 48 F9 FC 2B A1 E5 90 00 0D [18:54:43]RAPDU: 95 A9 48 F9 FC 2B A1 E5 90 00 [18:54:43]wFMCommunicate OK [18:54:43]SAM_PROTO_SignData done [18:54:43]FM_MakeSignedData done [18:54:43]CreateOFDProtocolMessage [18:54:43]wFMCommunicate request_size=4 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 11 00 00 [18:54:43]Write to MH i2c: E2 08 00 E2 84 80 11 00 00 00 00 00 00 E0 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 17 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 17 00 E2 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2D [18:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:54:43]wFMCommunicate OK [18:54:43]CreateOFDProtocolMessage done [18:54:43]OFDSenderStorePacket 49258 [18:54:43]StoreOFDPacket docnum=49258 [18:54:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EB 3F 07 01 44 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 05 46 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6A C0 00 00 35 04 06 00 CA 19 E6 8C E0 A1 95 A9 48 F9 FC 2B A1 E5 [18:54:43]CheckFolder [18:54:43]dirname=/storage/ofd_packets [18:54:43]CheckFolder done [18:54:43]ProducePacketName [18:54:43]name=ofd_packets/00049258 [18:54:43]NVStorageSaveData ofd_packets/00049258 [18:54:43]File name is /storage/ofd_packets/00049258 [18:54:43]Write 301 bytes [18:54:43]NVStorageSaveData done [18:54:43]OFDSenderStorePacket done [18:54:43]KKMCreateOFDPacket done [18:54:43]NVStorageSaveData kkm_last_timestamp [18:54:43]File name is /storage/kkm_last_timestamp [18:54:43]Write 4 bytes [18:54:43]NVStorageSaveData done [18:54:43]ExternCall_PrintAddStr [18:54:43]wPrintStart [18:54:43]Write to MH i2c: 01 00 00 E3 84 67 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 07 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 07 00 E3 84 00 00 00 00 00 FF 0F 7C [18:54:43]RasterBufferAndPrint [18:54:43]line Счет N : (1)216362 [18:54:43]line ИНН: 02508201610067 [18:54:43]line Контрольно-Кассовый Чек [18:54:43]line ПРОДАЖА [18:54:43]line ТРК (МРК, ГНК) : 22 [18:54:43]line Товар: 2710124130 [18:54:43]line Аи-92-К-5 [18:54:43]line 8.300 * 60.30 [18:54:43]line = 500.49 [18:54:43]line НДС 12% НСП 1% [18:54:43]line > о реализуемом товаре [18:54:43]line ОКРУГЛЕНИЕ: -0.49 [18:54:43]line ИТОГО: 500.00 [18:54:43]line Внесено: 500.00 [18:54:43]line СДАЧА: 0.00 [18:54:43]line НСП 1% : 4.43 [18:54:43]line НДС 12% : 53.15 [18:54:43]line Наличными: 500.00 [18:54:43]line Безнал.: 0.00 [18:54:43]line Место: АЗС № 102 "Партнер Нефть" [18:54:43]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:54:43]line СНО: Общий режим [18:54:43]line Чек 134 30.01.2024 18:55 [18:54:43]line Смена: 246 ФФД: 1.0 [18:54:43]line ЗНМ: 0300000040 [18:54:43]line РНМ: 0000000000092723 [18:54:43]line Версия ККМ: 001 [18:54:43]line ФМ: 0000000000875060 [18:54:43]line ФД: 49258 [18:54:43]line ФПД: 222212590985377 [18:54:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T185501&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49258&fm=222212590985377&tin=02508201610067®Number=0000000000092723&sum=50000 [18:54:43]OFD Sender: Processing packet 49258 [packets to send 12, broken 11] [18:54:43]ProducePacketName [18:54:43]name=ofd_packets/00049258 [18:54:43]OFD Sender: To server: pG, [18:54:43]CommunicateWithHost lk.salyk.kg:30040 [18:54:43]ConnectInit lk.salyk.kg [18:54:43]written 0, free lines is 4095 [18:54:43]Connected sock=10 [18:54: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 36 30 0F 01 00 00 EB 3F 07 01 44 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 05 46 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6A C0 00 00 35 04 06 00 CA 19 E6 8C E0 A1 95 A9 48 F9 FC 2B A1 E5 [18:54: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 36 30 4F 00 00 00 63 AA 47 00 8F 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 36 30 10 04 04 00 6A C0 00 00 F4 03 04 00 FA F1 B8 65 B6 04 01 00 00 57 EF 19 B0 7E CC 87 E3 [18:54:43]CommunicateWithHost err = 0 [18:54:43]CheckOFDResponse [18:54:43]1017 (14) - 77093643461234 [18:54:43]1041 (16) - 0000000000875060 [18:54:43]1040 (4) - 49258 [18:54:43]1012 (4) - 30.01.2024 12:56 [18:54:43]1206 (1) - 0 [18:54:43]OFD Sender: Remove packet 49258 [18:54:43]ProducePacketName [18:54:43]name=ofd_packets/00049258 [18:54:43]NVStorageDeleteData [18:54:44]Write to MH i2c: 01 00 00 0E 85 93 [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 07 00 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 07 00 0E 85 00 00 00 00 00 EF 0C 95 [18:54:44]RasterBufferAndPrint [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]written 0, free lines is 3317 [18:54:44]MH_Cut [18:54:44]Write to MH i2c: D1 01 00 15 85 01 6C [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 01 00 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 01 00 15 85 00 6B [18:54:44]Write to MH i2c: 01 00 00 16 85 9B [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]OFD Sender: No OFD packet to send [18:54:44]*** Cut start [18:54:44]*** Partial cut [18:54:44]*** CUTSNS_PIN = 1 [18:54:44]*** CUTSNS_PIN = 0 [18:54:44]*** Brake cut motor [18:54:45]Read from MH i2c: 01 [18:54:45]MH_I2C_Read... [18:54:45]*** Stop cut motor [18:54:45]*** Cut end [18:54:45]Read from MH i2c: 01 07 00 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: 01 07 00 16 85 00 00 00 00 00 FF 0F B0 [18:54:45]process_action close_receipt done [18:54:45]requested_data is exist [18:54:45]produce_requested_data [18:54:45]requested_item fm.sn is exist - process it [18:54:45]wFMCommunicate request_size=4 [18:54:45]MH_SAM_APDU [18:54:45]CAPDU: 80 11 00 00 [18:54:45]Write to MH i2c: E2 08 00 17 85 80 11 00 00 00 00 00 00 16 [18:54:45]Write i2c OK [18:54:45]MH_I2C_Read... [18:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:45]Read from MH i2c: E2 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 17 00 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 17 00 17 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 63 [18:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:54:45]wFMCommunicate OK [18:54:45]requested_item fd.num is exist - process it [18:54:45]SAM_PROTO_GetFieldsCounters [18:54:45]wFMCommunicate request_size=4 [18:54:45]MH_SAM_APDU [18:54:45]CAPDU: 80 13 00 00 [18:54:45]Write to MH i2c: E2 08 00 18 85 80 13 00 00 00 00 00 00 19 [18:54:45]Write i2c OK [18:54:45]MH_I2C_Read... [18:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:45]Read from MH i2c: E2 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 62 00 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 62 00 18 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18:54: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:45]wFMCommunicate OK [18:54:45]SAM_PROTO_GetFieldsCounters done [18:54:45]requested_item shift.num is exist - process it [18:54:45]requested_item shift.opened is exist - process it [18:54:45]req_shift_opened [18:54:45]FM_GetShiftState [18:54:45]SAM_PROTO_GetShiftState [18:54:45]wFMCommunicate request_size=4 [18:54:45]MH_SAM_APDU [18:54:45]CAPDU: 80 13 01 00 [18:54:45]Write to MH i2c: E2 08 00 19 85 80 13 01 00 00 00 00 00 1B [18:54:45]Write i2c OK [18:54:45]MH_I2C_Read... [18:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:45]Read from MH i2c: E2 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 0E 00 [18:54:45]MH_I2C_Read... [18:54:45]Read from MH i2c: E2 0E 00 19 85 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 43 [18:54:45]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [18:54:45]wFMCommunicate OK [18:54:45]SAM_PROTO_GetShiftState done [18:54:45]FM_GetShiftState done [18:54:45]req_shift_opened done [18:54:45]requested_item shift.open_date is exist - process it [18:54:45]req_shift_open_date [18:54:45]req_shift_open_date done [18:54:45]produce_requested_data done [18:54:45]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49258,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [18:54:45]process_action_free close_receipt [18:54:45]json_value_free [18:54:45]json_value_free done [18:54:45]process_json_proto returns [18:54:45]Send response to host [18:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49258,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [18:54:45]free response buf [18:54:45]execute_script done [18:54:45]execute_script returns [18:54:45]free content buf [18:54:45]Sock 9.Close socket [18:54:45]Sock 9.Thread stoped [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:03]accept exits with 7 [19:28:03]New connection [19:28:03]New thread 3066813796 created [19:28:03]Thread 3066670436 joined [19:28:03]Waiting for new connection... [19:28:03] Sock 7.Parse request [19:28:03]Sock 7.Check first char [19:28:03]Sock 7.First char is OK [19:28:03]request: POST /json_proto HTTP/1.0 [19:28:03]Method: POST [19:28:03]URL: /json_proto [19:28:03]Method is POST - this is cgi request [19:28:03]url: /json_proto [19:28:03]query_string will be loaded in cgi processing [19:28:03]execute_cgi json_proto POST (null) [19:28:03]execute_cgi path=json_proto method=POST [19:28:03]POST find Content-Length [19:28:03]Host: 172.17.56.67:8080 [19:28:03]Content-Length: 678 [19:28:03]Content-Type: application/json [19:28:03] [19:28:03]POST finish read [19:28:03]Found Content-Length = 678 [19:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.290, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:03]execute_script... [19:28: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)216363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.290, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:03]POST & json_proto [19:28:03]process_json_proto [19:28:03]json parsed OK: [19:28:03]protocol is kg_v1.0 [19:28:03]action value=close_receipt [19:28:03]process_action close_receipt [19:28:03]cmd_close_receipt [19:28:03]MH_GetDate [19:28:03]Write to MH i2c: F0 00 00 1A 85 8E [19:28:03]Write i2c OK [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: F0 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: F0 09 00 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: F0 09 00 1A 85 00 D7 4D B9 65 26 5D 9E 65 5F [19:28:03]GetLastDocTimeStamp 1706640901 [19:28:03]current date 1706642903 [19:28:03]FM_GetShiftState [19:28:03]SAM_PROTO_GetShiftState [19:28:03]wFMCommunicate request_size=4 [19:28:03]MH_SAM_APDU [19:28:03]CAPDU: 80 13 01 00 [19:28:03]Write to MH i2c: E2 08 00 1B 85 80 13 01 00 00 00 00 00 1D [19:28:03]Write i2c OK [19:28:03]MH_I2C_Read... [19:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:03]Read from MH i2c: E2 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: E2 0E 00 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: E2 0E 00 1B 85 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 45 [19:28:03]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:28:03]wFMCommunicate OK [19:28:03]SAM_PROTO_GetShiftState done [19:28:03]FM_GetShiftState done [19:28:03]opened in 1706572995 [19:28:03]opened+sec_in_day 1706659395 [19:28:03]quantity*price = 62048 [19:28:03]sum+1 = 62050 [19:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 135 30.01.2024 19:28 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49259 ФПД: 195270336634832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T192823&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49259&fm=195270336634832&tin=02508201610067®Number=0000000000092723&sum=62000 [19:28:04]StoreToDocumentArchive [19:28:04]shift 246 fd 49259 [19:28:04]save to /storage/0246/doc_00049259 [19:28:04]save last doc name /storage/0246/doc_00049259 to /storage/kkm_last_doc_name [19:28:04]save OK [19:28:04]Clear old archive folders... [19:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:04]tlvbuf is 011E6390 [19:28:04]SAM_PROTO_ClearQueue [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 09 00 00 [19:28:04]Write to MH i2c: E2 08 00 28 85 80 09 00 00 00 00 00 00 1F [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 03 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 03 00 28 85 00 90 00 21 [19:28:04]RAPDU: 90 00 [19:28:04]wFMCommunicate OK [19:28:04]SAM_PROTO_ClearQueue done [19:28:04]KKMCreateOFDPacket [19:28:04]OFDProtocolAddRootSTLVToBuf [19:28:04]FM_MakeSignedData [19:28:04]FM_MakeSignedData [19:28:04]SAM_PROTO_SignData [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 0D 01 02 [19:28:04]Write to MH i2c: E2 08 00 29 85 80 0D 01 02 00 00 00 00 27 [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 03 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 03 00 29 85 00 90 00 22 [19:28:04]RAPDU: 90 00 [19:28:04]wFMCommunicate OK [19:28:04]wFMCommunicate request_size=255 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 D7 4D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6B C0 00 00 35 04 06 00 B1 [19:28:04]Write to MH i2c: E2 02 01 2A 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 D7 4D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6B C0 00 00 35 04 06 00 B1 00 00 57 [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 03 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 03 00 2A 85 00 90 00 23 [19:28:04]RAPDU: 90 00 [19:28:04]wFMCommunicate OK [19:28:04]wFMCommunicate request_size=10 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 0D 02 02 05 98 EB 0C DF D0 [19:28:04]Write to MH i2c: E2 0D 00 2B 85 80 0D 02 02 05 00 98 EB 0C DF D0 00 00 72 [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 03 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 03 00 2B 85 00 90 00 24 [19:28:04]RAPDU: 90 00 [19:28:04]wFMCommunicate OK [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 0D 03 02 [19:28:04]Write to MH i2c: E2 08 00 2C 85 80 0D 03 02 00 00 00 00 2C [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 0B 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 0B 00 2C 85 00 8E C5 51 CB 49 10 6D 58 90 00 BA [19:28:04]RAPDU: 8E C5 51 CB 49 10 6D 58 90 00 [19:28:04]wFMCommunicate OK [19:28:04]SAM_PROTO_SignData done [19:28:04]FM_MakeSignedData done [19:28:04]CreateOFDProtocolMessage [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 11 00 00 [19:28:04]Write to MH i2c: E2 08 00 2D 85 80 11 00 00 00 00 00 00 2C [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:05]Read from MH i2c: E2 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 17 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 17 00 2D 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 79 [19:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:28:05]wFMCommunicate OK [19:28:05]CreateOFDProtocolMessage done [19:28:05]OFDSenderStorePacket 49259 [19:28:05]StoreOFDPacket docnum=49259 [19:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A8 49 07 01 4F 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 D7 4D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6B C0 00 00 35 04 06 00 B1 98 EB 0C DF D0 8E C5 51 CB 49 10 6D 58 [19:28:05]CheckFolder [19:28:05]dirname=/storage/ofd_packets [19:28:05]CheckFolder done [19:28:05]ProducePacketName [19:28:05]name=ofd_packets/00049259 [19:28:05]NVStorageSaveData ofd_packets/00049259 [19:28:05]File name is /storage/ofd_packets/00049259 [19:28:05]Write 301 bytes [19:28:05]NVStorageSaveData done [19:28:05]OFDSenderStorePacket done [19:28:05]KKMCreateOFDPacket done [19:28:05]NVStorageSaveData kkm_last_timestamp [19:28:05]File name is /storage/kkm_last_timestamp [19:28:05]Write 4 bytes [19:28:05]NVStorageSaveData done [19:28:05]ExternCall_PrintAddStr [19:28:05]wPrintStart [19:28:05]Write to MH i2c: 01 00 00 2E 85 B3 [19:28:05]Write i2c OK [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: 01 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: 01 07 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: 01 07 00 2E 85 00 00 00 00 00 FF 0F C8 [19:28:05]RasterBufferAndPrint [19:28:05]line Счет N : (1)216363 [19:28:05]line ИНН: 02508201610067 [19:28:05]line Контрольно-Кассовый Чек [19:28:05]line ПРОДАЖА [19:28:05]line ТРК (МРК, ГНК) : 22 [19:28:05]line Товар: 2710124130 [19:28:05]line Аи-92-К-5 [19:28:05]line 10.290 * 60.30 [19:28:05]line = 620.49 [19:28:05]line НДС 12% НСП 1% [19:28:05]line > о реализуемом товаре [19:28:05]line ОКРУГЛЕНИЕ: -0.49 [19:28:05]line ИТОГО: 620.00 [19:28:05]line Внесено: 620.00 [19:28:05]line СДАЧА: 0.00 [19:28:05]line НСП 1% : 5.49 [19:28:05]line НДС 12% : 65.89 [19:28:05]line Наличными: 620.00 [19:28:05]line Безнал.: 0.00 [19:28:05]line Место: АЗС № 102 "Партнер Нефть" [19:28:05]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [19:28:05]line СНО: Общий режим [19:28:05]line Чек 135 30.01.2024 19:28 [19:28:05]line Смена: 246 ФФД: 1.0 [19:28:05]line ЗНМ: 0300000040 [19:28:05]line РНМ: 0000000000092723 [19:28:05]line Версия ККМ: 001 [19:28:05]line ФМ: 0000000000875060 [19:28:05]line ФД: 49259 [19:28:05]line ФПД: 195270336634832 [19:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T192823&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49259&fm=195270336634832&tin=02508201610067®Number=0000000000092723&sum=62000 [19:28:05]OFD Sender: Processing packet 49259 [packets to send 12, broken 11] [19:28:05]ProducePacketName [19:28:05]name=ofd_packets/00049259 [19:28:05]OFD Sender: To server: pG, [19:28:05]CommunicateWithHost lk.salyk.kg:30040 [19:28:05]ConnectInit lk.salyk.kg [19:28:05]written 0, free lines is 4095 [19:28:05]Connected sock=11 [19:28: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 36 30 0F 01 00 00 A8 49 07 01 4F 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 D7 4D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6B C0 00 00 35 04 06 00 B1 98 EB 0C DF D0 8E C5 51 CB 49 10 6D 58 [19:28: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 36 30 4F 00 00 00 BE E4 47 00 B8 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 36 30 10 04 04 00 6B C0 00 00 F4 03 04 00 CC F9 B8 65 B6 04 01 00 00 AC F6 F7 27 CB C5 00 97 [19:28:05]CommunicateWithHost err = 0 [19:28:05]CheckOFDResponse [19:28:05]1017 (14) - 77093643461234 [19:28:05]1041 (16) - 0000000000875060 [19:28:05]1040 (4) - 49259 [19:28:05]1012 (4) - 30.01.2024 13:29 [19:28:05]1206 (1) - 0 [19:28:05]OFD Sender: Remove packet 49259 [19:28:05]ProducePacketName [19:28:05]name=ofd_packets/00049259 [19:28:05]NVStorageDeleteData [19:28:05]Write to MH i2c: 01 00 00 59 85 DE [19:28:05]Write i2c OK [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: 01 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: 01 07 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: 01 07 00 59 85 00 00 00 00 00 FF 0C F0 [19:28:05]RasterBufferAndPrint [19:28:05]line [19:28:05]line [19:28:05]line [19:28:05]line [19:28:05]line [19:28:05]written 0, free lines is 3333 [19:28:05]MH_Cut [19:28:05]Write to MH i2c: D1 01 00 60 85 01 B7 [19:28:05]Write i2c OK [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: D1 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: D1 01 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: D1 01 00 60 85 00 B6 [19:28:05]Write to MH i2c: 01 00 00 61 85 E6 [19:28:05]Write i2c OK [19:28:05]MH_I2C_Read... [19:28:06]OFD Sender: No OFD packet to send [19:28:06]*** Cut start [19:28:06]*** Partial cut [19:28:06]*** CUTSNS_PIN = 1 [19:28:06]*** CUTSNS_PIN = 0 [19:28:06]*** Brake cut motor [19:28:07]Read from MH i2c: 01 [19:28:07]MH_I2C_Read... [19:28:07]*** Stop cut motor [19:28:07]*** Cut end [19:28:07]Read from MH i2c: 01 07 00 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: 01 07 00 61 85 00 00 00 00 00 FF 0F FB [19:28:07]process_action close_receipt done [19:28:07]requested_data is exist [19:28:07]produce_requested_data [19:28:07]requested_item fm.sn is exist - process it [19:28:07]wFMCommunicate request_size=4 [19:28:07]MH_SAM_APDU [19:28:07]CAPDU: 80 11 00 00 [19:28:07]Write to MH i2c: E2 08 00 62 85 80 11 00 00 00 00 00 00 61 [19:28:07]Write i2c OK [19:28:07]MH_I2C_Read... [19:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:07]Read from MH i2c: E2 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: E2 17 00 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: E2 17 00 62 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AE [19:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:28:07]wFMCommunicate OK [19:28:07]requested_item fd.num is exist - process it [19:28:07]SAM_PROTO_GetFieldsCounters [19:28:07]wFMCommunicate request_size=4 [19:28:07]MH_SAM_APDU [19:28:07]CAPDU: 80 13 00 00 [19:28:07]Write to MH i2c: E2 08 00 63 85 80 13 00 00 00 00 00 00 64 [19:28:07]Write i2c OK [19:28:07]MH_I2C_Read... [19:28:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:07]Read from MH i2c: E2 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: E2 62 00 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: E2 62 00 63 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [19:28: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6B C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:07]wFMCommunicate OK [19:28:07]SAM_PROTO_GetFieldsCounters done [19:28:07]requested_item shift.num is exist - process it [19:28:07]requested_item shift.opened is exist - process it [19:28:07]req_shift_opened [19:28:07]FM_GetShiftState [19:28:07]SAM_PROTO_GetShiftState [19:28:07]wFMCommunicate request_size=4 [19:28:07]MH_SAM_APDU [19:28:07]CAPDU: 80 13 01 00 [19:28:07]Write to MH i2c: E2 08 00 64 85 80 13 01 00 00 00 00 00 66 [19:28:07]Write i2c OK [19:28:07]MH_I2C_Read... [19:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:07]Read from MH i2c: E2 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: E2 0E 00 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: E2 0E 00 64 85 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8E [19:28:07]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:28:07]wFMCommunicate OK [19:28:07]SAM_PROTO_GetShiftState done [19:28:07]FM_GetShiftState done [19:28:07]req_shift_opened done [19:28:07]requested_item shift.open_date is exist - process it [19:28:07]req_shift_open_date [19:28:07]req_shift_open_date done [19:28:07]produce_requested_data done [19:28:07]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49259,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [19:28:07]process_action_free close_receipt [19:28:07]json_value_free [19:28:07]json_value_free done [19:28:07]process_json_proto returns [19:28:07]Send response to host [19:28:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49259,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [19:28:07]free response buf [19:28:07]execute_script done [19:28:07]execute_script returns [19:28:07]free content buf [19:28:07]Sock 7.Close socket [19:28:07]Sock 7.Thread stoped [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:28:56]accept exits with 9 [19:28:56]New connection [19:28:56]New thread 3066670436 created [19:28:56]Thread 3066813796 joined [19:28:56]Waiting for new connection... [19:28:56] Sock 9.Parse request [19:28:56]Sock 9.Check first char [19:28:56]Sock 9.First char is OK [19:28:56]request: POST /json_proto HTTP/1.0 [19:28:56]Method: POST [19:28:56]URL: /json_proto [19:28:56]Method is POST - this is cgi request [19:28:56]url: /json_proto [19:28:56]query_string will be loaded in cgi processing [19:28:56]execute_cgi json_proto POST (null) [19:28:56]execute_cgi path=json_proto method=POST [19:28:56]POST find Content-Length [19:28:56]Host: 172.17.56.67:8080 [19:28:56]Content-Length: 677 [19:28:56]Content-Type: application/json [19:28:56] [19:28:56]POST finish read [19:28:56]Found Content-Length = 677 [19:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:56]execute_script... [19:28:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:56]POST & json_proto [19:28:56]process_json_proto [19:28:56]json parsed OK: [19:28:56]protocol is kg_v1.0 [19:28:56]action value=close_receipt [19:28:56]process_action close_receipt [19:28:56]cmd_close_receipt [19:28:56]MH_GetDate [19:28:56]Write to MH i2c: F0 00 00 65 85 D9 [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: F0 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: F0 09 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: F0 09 00 65 85 00 0D 4E B9 65 26 5D 9E 65 E1 [19:28:56]GetLastDocTimeStamp 1706642903 [19:28:56]current date 1706642957 [19:28:56]FM_GetShiftState [19:28:56]SAM_PROTO_GetShiftState [19:28:56]wFMCommunicate request_size=4 [19:28:56]MH_SAM_APDU [19:28:56]CAPDU: 80 13 01 00 [19:28:56]Write to MH i2c: E2 08 00 66 85 80 13 01 00 00 00 00 00 68 [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:56]Read from MH i2c: E2 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 0E 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: E2 0E 00 66 85 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 90 [19:28:56]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:28:56]wFMCommunicate OK [19:28:56]SAM_PROTO_GetShiftState done [19:28:56]FM_GetShiftState done [19:28:56]opened in 1706572995 [19:28:56]opened+sec_in_day 1706659395 [19:28:56]quantity*price = 25024 [19:28:56]sum+1 = 25026 [19:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 136 30.01.2024 19:29 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49260 ФПД: 127244838511227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T192917&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49260&fm=127244838511227&tin=02508201610067®Number=0000000000092723&sum=25000 [19:28:58]StoreToDocumentArchive [19:28:58]shift 246 fd 49260 [19:28:58]save to /storage/0246/doc_00049260 [19:28:58]save last doc name /storage/0246/doc_00049260 to /storage/kkm_last_doc_name [19:28:58]save OK [19:28:58]Clear old archive folders... [19:28:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:58]tlvbuf is 011CF5A0 [19:28:58]SAM_PROTO_ClearQueue [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 09 00 00 [19:28:58]Write to MH i2c: E2 08 00 73 85 80 09 00 00 00 00 00 00 6A [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 03 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 03 00 73 85 00 90 00 6C [19:28:58]RAPDU: 90 00 [19:28:58]wFMCommunicate OK [19:28:58]SAM_PROTO_ClearQueue done [19:28:58]KKMCreateOFDPacket [19:28:58]OFDProtocolAddRootSTLVToBuf [19:28:58]FM_MakeSignedData [19:28:58]FM_MakeSignedData [19:28:58]SAM_PROTO_SignData [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 0D 01 02 [19:28:58]Write to MH i2c: E2 08 00 74 85 80 0D 01 02 00 00 00 00 72 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 03 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 03 00 74 85 00 90 00 6D [19:28:58]RAPDU: 90 00 [19:28:58]wFMCommunicate OK [19:28:58]wFMCommunicate request_size=255 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0D 4E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6C C0 00 00 35 04 06 00 73 [19:28:58]Write to MH i2c: E2 02 01 75 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0D 4E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6C C0 00 00 35 04 06 00 73 00 00 71 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 03 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 03 00 75 85 00 90 00 6E [19:28:58]RAPDU: 90 00 [19:28:58]wFMCommunicate OK [19:28:58]wFMCommunicate request_size=10 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 0D 02 02 05 BA 7F 66 22 7B [19:28:58]Write to MH i2c: E2 0D 00 76 85 80 0D 02 02 05 00 BA 7F 66 22 7B 00 00 BB [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 03 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 03 00 76 85 00 90 00 6F [19:28:58]RAPDU: 90 00 [19:28:58]wFMCommunicate OK [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 0D 03 02 [19:28:58]Write to MH i2c: E2 08 00 77 85 80 0D 03 02 00 00 00 00 77 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 0B 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 0B 00 77 85 00 25 83 81 69 E3 D5 34 A3 90 00 99 [19:28:58]RAPDU: 25 83 81 69 E3 D5 34 A3 90 00 [19:28:58]wFMCommunicate OK [19:28:58]SAM_PROTO_SignData done [19:28:58]FM_MakeSignedData done [19:28:58]CreateOFDProtocolMessage [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 11 00 00 [19:28:58]Write to MH i2c: E2 08 00 78 85 80 11 00 00 00 00 00 00 77 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 17 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 17 00 78 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C4 [19:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:28:58]wFMCommunicate OK [19:28:58]CreateOFDProtocolMessage done [19:28:58]OFDSenderStorePacket 49260 [19:28:58]StoreOFDPacket docnum=49260 [19:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 31 92 07 01 8C AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0D 4E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6C C0 00 00 35 04 06 00 73 BA 7F 66 22 7B 25 83 81 69 E3 D5 34 A3 [19:28:58]CheckFolder [19:28:58]dirname=/storage/ofd_packets [19:28:58]CheckFolder done [19:28:58]ProducePacketName [19:28:58]name=ofd_packets/00049260 [19:28:58]NVStorageSaveData ofd_packets/00049260 [19:28:58]File name is /storage/ofd_packets/00049260 [19:28:58]Write 301 bytes [19:28:58]NVStorageSaveData done [19:28:58]OFDSenderStorePacket done [19:28:58]KKMCreateOFDPacket done [19:28:58]NVStorageSaveData kkm_last_timestamp [19:28:58]File name is /storage/kkm_last_timestamp [19:28:58]Write 4 bytes [19:28:58]NVStorageSaveData done [19:28:58]ExternCall_PrintAddStr [19:28:58]wPrintStart [19:28:58]Write to MH i2c: 01 00 00 79 85 FE [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: 01 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: 01 07 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: 01 07 00 79 85 00 00 00 00 00 FF 0F 13 [19:28:58]RasterBufferAndPrint [19:28:58]line Счет N : (1)216364 [19:28:58]line ИНН: 02508201610067 [19:28:58]line Контрольно-Кассовый Чек [19:28:58]line ПРОДАЖА [19:28:58]line ТРК (МРК, ГНК) : 12 [19:28:58]line Товар: 2710124130 [19:28:58]line Аи-92-К-5 [19:28:58]line 4.150 * 60.30 [19:28:58]line = 250.25 [19:28:58]line НДС 12% НСП 1% [19:28:58]line > о реализуемом товаре [19:28:58]line ОКРУГЛЕНИЕ: -0.25 [19:28:58]line ИТОГО: 250.00 [19:28:58]line Внесено: 250.00 [19:28:58]line СДАЧА: 0.00 [19:28:58]line НСП 1% : 2.21 [19:28:58]line НДС 12% : 26.57 [19:28:58]line Наличными: 250.00 [19:28:58]line Безнал.: 0.00 [19:28:58]line Место: АЗС № 102 "Партнер Нефть" [19:28:58]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [19:28:58]line СНО: Общий режим [19:28:58]line Чек 136 30.01.2024 19:29 [19:28:58]line Смена: 246 ФФД: 1.0 [19:28:58]line ЗНМ: 0300000040 [19:28:58]line РНМ: 0000000000092723 [19:28:58]line Версия ККМ: 001 [19:28:58]line ФМ: 0000000000875060 [19:28:58]line ФД: 49260 [19:28:58]line ФПД: 127244838511227 [19:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T192917&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49260&fm=127244838511227&tin=02508201610067®Number=0000000000092723&sum=25000 [19:28:58]OFD Sender: Processing packet 49260 [packets to send 12, broken 11] [19:28:58]ProducePacketName [19:28:58]name=ofd_packets/00049260 [19:28:58]OFD Sender: To server: pG, [19:28:58]CommunicateWithHost lk.salyk.kg:30040 [19:28:58]ConnectInit lk.salyk.kg [19:28:58]written 0, free lines is 4095 [19:28:58]Connected sock=10 [19:28: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 36 30 0F 01 00 00 31 92 07 01 8C AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0D 4E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6C C0 00 00 35 04 06 00 73 BA 7F 66 22 7B 25 83 81 69 E3 D5 34 A3 [19:28: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 36 30 4F 00 00 00 B9 97 47 00 DD 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6C C0 00 00 F4 03 04 00 01 FA B8 65 B6 04 01 00 00 AE 8F 59 CC E8 6C BE A9 [19:28:59]CommunicateWithHost err = 0 [19:28:59]CheckOFDResponse [19:28:59]1017 (14) - 77093643461234 [19:28:59]1041 (16) - 0000000000875060 [19:28:59]1040 (4) - 49260 [19:28:59]1012 (4) - 30.01.2024 13:30 [19:28:59]1206 (1) - 0 [19:28:59]OFD Sender: Remove packet 49260 [19:28:59]ProducePacketName [19:28:59]name=ofd_packets/00049260 [19:28:59]NVStorageDeleteData [19:28:59]Write to MH i2c: 01 00 00 A4 85 29 [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: 01 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: 01 07 00 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: 01 07 00 A4 85 00 00 00 00 00 EE 0C 2A [19:28:59]RasterBufferAndPrint [19:28:59]line [19:28:59]line [19:28:59]line [19:28:59]line [19:28:59]line [19:28:59]written 0, free lines is 3316 [19:28:59]MH_Cut [19:28:59]Write to MH i2c: D1 01 00 AB 85 01 02 [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: D1 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: D1 01 00 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: D1 01 00 AB 85 00 01 [19:28:59]Write to MH i2c: 01 00 00 AC 85 31 [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:28:59]OFD Sender: No OFD packet to send [19:29:00]*** Cut start [19:29:00]*** Partial cut [19:29:00]*** CUTSNS_PIN = 1 [19:29:00]*** CUTSNS_PIN = 0 [19:29:00]*** Brake cut motor [19:29:00]Read from MH i2c: 01 [19:29:00]MH_I2C_Read... [19:29:00]*** Stop cut motor [19:29:00]*** Cut end [19:29:00]Read from MH i2c: 01 07 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: 01 07 00 AC 85 00 00 00 00 00 FF 0F 46 [19:29:00]process_action close_receipt done [19:29:00]requested_data is exist [19:29:00]produce_requested_data [19:29:00]requested_item fm.sn is exist - process it [19:29:00]wFMCommunicate request_size=4 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 11 00 00 [19:29:00]Write to MH i2c: E2 08 00 AD 85 80 11 00 00 00 00 00 00 AC [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 17 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 17 00 AD 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F9 [19:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:29:00]wFMCommunicate OK [19:29:00]requested_item fd.num is exist - process it [19:29:00]SAM_PROTO_GetFieldsCounters [19:29:00]wFMCommunicate request_size=4 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 13 00 00 [19:29:00]Write to MH i2c: E2 08 00 AE 85 80 13 00 00 00 00 00 00 AF [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 62 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 62 00 AE 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:29: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6C C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:00]wFMCommunicate OK [19:29:00]SAM_PROTO_GetFieldsCounters done [19:29:00]requested_item shift.num is exist - process it [19:29:00]requested_item shift.opened is exist - process it [19:29:00]req_shift_opened [19:29:00]FM_GetShiftState [19:29:00]SAM_PROTO_GetShiftState [19:29:00]wFMCommunicate request_size=4 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 13 01 00 [19:29:00]Write to MH i2c: E2 08 00 AF 85 80 13 01 00 00 00 00 00 B1 [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 0E 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 0E 00 AF 85 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D9 [19:29:00]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:29:00]wFMCommunicate OK [19:29:00]SAM_PROTO_GetShiftState done [19:29:00]FM_GetShiftState done [19:29:00]req_shift_opened done [19:29:00]requested_item shift.open_date is exist - process it [19:29:00]req_shift_open_date [19:29:00]req_shift_open_date done [19:29:00]produce_requested_data done [19:29:00]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49260,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [19:29:00]process_action_free close_receipt [19:29:00]json_value_free [19:29:00]json_value_free done [19:29:00]process_json_proto returns [19:29:00]Send response to host [19:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49260,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [19:29:00]free response buf [19:29:00]execute_script done [19:29:00]execute_script returns [19:29:00]free content buf [19:29:00]Sock 9.Close socket [19:29:00]Sock 9.Thread stoped [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]accept exits with 7 [19:35:19]New connection [19:35:19]New thread 3066813796 created [19:35:19]Thread 3066670436 joined [19:35:19]Waiting for new connection... [19:35:19] Sock 7.Parse request [19:35:19]Sock 7.Check first char [19:35:19]Sock 7.First char is OK [19:35:19]request: POST /json_proto HTTP/1.0 [19:35:19]Method: POST [19:35:19]URL: /json_proto [19:35:19]Method is POST - this is cgi request [19:35:19]url: /json_proto [19:35:19]query_string will be loaded in cgi processing [19:35:19]execute_cgi json_proto POST (null) [19:35:19]execute_cgi path=json_proto method=POST [19:35:19]POST find Content-Length [19:35:19]Host: 172.17.56.67:8080 [19:35:19]Content-Length: 677 [19:35:19]Content-Type: application/json [19:35:19] [19:35:19]POST finish read [19:35:19]Found Content-Length = 677 [19:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:19]execute_script... [19:35:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:19]POST & json_proto [19:35:19]process_json_proto [19:35:19]json parsed OK: [19:35:19]protocol is kg_v1.0 [19:35:19]action value=close_receipt [19:35:19]process_action close_receipt [19:35:19]cmd_close_receipt [19:35:19]MH_GetDate [19:35:19]Write to MH i2c: F0 00 00 B0 85 24 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: F0 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: F0 09 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: F0 09 00 B0 85 00 8B 4F B9 65 26 5D 9E 65 AB [19:35:19]GetLastDocTimeStamp 1706642957 [19:35:19]current date 1706643339 [19:35:19]FM_GetShiftState [19:35:19]SAM_PROTO_GetShiftState [19:35:19]wFMCommunicate request_size=4 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 13 01 00 [19:35:19]Write to MH i2c: E2 08 00 B1 85 80 13 01 00 00 00 00 00 B3 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 0E 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 0E 00 B1 85 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 DB [19:35:19]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:35:19]wFMCommunicate OK [19:35:19]SAM_PROTO_GetShiftState done [19:35:19]FM_GetShiftState done [19:35:19]opened in 1706572995 [19:35:19]opened+sec_in_day 1706659395 [19:35:19]quantity*price = 60058 [19:35:19]sum+1 = 60060 [19:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 137 30.01.2024 19:35 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49261 ФПД: 152461728892490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T193539&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49261&fm=152461728892490&tin=02508201610067®Number=0000000000092723&sum=60000 [19:35:20]StoreToDocumentArchive [19:35:20]shift 246 fd 49261 [19:35:20]save to /storage/0246/doc_00049261 [19:35:20]save last doc name /storage/0246/doc_00049261 to /storage/kkm_last_doc_name [19:35:20]save OK [19:35:20]Clear old archive folders... [19:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:20]tlvbuf is 01482010 [19:35:20]SAM_PROTO_ClearQueue [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 09 00 00 [19:35:20]Write to MH i2c: E2 08 00 BE 85 80 09 00 00 00 00 00 00 B5 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 BE 85 00 90 00 B7 [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_ClearQueue done [19:35:20]KKMCreateOFDPacket [19:35:20]OFDProtocolAddRootSTLVToBuf [19:35:20]FM_MakeSignedData [19:35:20]FM_MakeSignedData [19:35:20]SAM_PROTO_SignData [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 01 02 [19:35:20]Write to MH i2c: E2 08 00 BF 85 80 0D 01 02 00 00 00 00 BD [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 BF 85 00 90 00 B8 [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]wFMCommunicate request_size=255 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8B 4F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6D C0 00 00 35 04 06 00 8A [19:35:20]Write to MH i2c: E2 02 01 C0 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8B 4F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6D C0 00 00 35 04 06 00 8A 00 00 D0 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 C0 85 00 90 00 B9 [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]wFMCommunicate request_size=10 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 02 02 05 A9 C3 31 46 4A [19:35:20]Write to MH i2c: E2 0D 00 C1 85 80 0D 02 02 05 00 A9 C3 31 46 4A 00 00 F7 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 C1 85 00 90 00 BA [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 03 02 [19:35:20]Write to MH i2c: E2 08 00 C2 85 80 0D 03 02 00 00 00 00 C2 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0B 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0B 00 C2 85 00 A5 78 65 63 3F 64 91 BB 90 00 97 [19:35:20]RAPDU: A5 78 65 63 3F 64 91 BB 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_SignData done [19:35:20]FM_MakeSignedData done [19:35:20]CreateOFDProtocolMessage [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 11 00 00 [19:35:20]Write to MH i2c: E2 08 00 C3 85 80 11 00 00 00 00 00 00 C2 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 C3 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0F [19:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:35:20]wFMCommunicate OK [19:35:20]CreateOFDProtocolMessage done [19:35:20]OFDSenderStorePacket 49261 [19:35:20]StoreOFDPacket docnum=49261 [19:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 91 E5 07 01 5A 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8B 4F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6D C0 00 00 35 04 06 00 8A A9 C3 31 46 4A A5 78 65 63 3F 64 91 BB [19:35:20]CheckFolder [19:35:20]dirname=/storage/ofd_packets [19:35:20]CheckFolder done [19:35:20]ProducePacketName [19:35:20]name=ofd_packets/00049261 [19:35:20]NVStorageSaveData ofd_packets/00049261 [19:35:20]File name is /storage/ofd_packets/00049261 [19:35:20]Write 301 bytes [19:35:20]NVStorageSaveData done [19:35:20]OFDSenderStorePacket done [19:35:20]KKMCreateOFDPacket done [19:35:20]NVStorageSaveData kkm_last_timestamp [19:35:20]File name is /storage/kkm_last_timestamp [19:35:20]Write 4 bytes [19:35:20]NVStorageSaveData done [19:35:20]ExternCall_PrintAddStr [19:35:20]wPrintStart [19:35:20]Write to MH i2c: 01 00 00 C4 85 49 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 C4 85 00 00 00 00 00 FF 0F 5E [19:35:20]RasterBufferAndPrint [19:35:20]line Счет N : (1)216365 [19:35:20]line ИНН: 02508201610067 [19:35:20]line Контрольно-Кассовый Чек [19:35:20]line ПРОДАЖА [19:35:20]line ТРК (МРК, ГНК) : 12 [19:35:20]line Товар: 2710124130 [19:35:20]line Аи-92-К-5 [19:35:20]line 9.960 * 60.30 [19:35:20]line = 600.59 [19:35:20]line НДС 12% НСП 1% [19:35:20]line > о реализуемом товаре [19:35:20]line ОКРУГЛЕНИЕ: -0.59 [19:35:20]line ИТОГО: 600.00 [19:35:20]line Внесено: 600.00 [19:35:20]line СДАЧА: 0.00 [19:35:20]line НСП 1% : 5.31 [19:35:20]line НДС 12% : 63.78 [19:35:20]line Наличными: 600.00 [19:35:20]line Безнал.: 0.00 [19:35:20]line Место: АЗС № 102 "Партнер Нефть" [19:35:20]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [19:35:20]line СНО: Общий режим [19:35:20]line Чек 137 30.01.2024 19:35 [19:35:20]line Смена: 246 ФФД: 1.0 [19:35:20]line ЗНМ: 0300000040 [19:35:20]line РНМ: 0000000000092723 [19:35:20]line Версия ККМ: 001 [19:35:20]line ФМ: 0000000000875060 [19:35:20]line ФД: 49261 [19:35:20]line ФПД: 152461728892490 [19:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T193539&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49261&fm=152461728892490&tin=02508201610067®Number=0000000000092723&sum=60000 [19:35:21]OFD Sender: Processing packet 49261 [packets to send 12, broken 11] [19:35:21]ProducePacketName [19:35:21]name=ofd_packets/00049261 [19:35:21]OFD Sender: To server: pG, [19:35:21]CommunicateWithHost lk.salyk.kg:30040 [19:35:21]ConnectInit lk.salyk.kg [19:35:21]written 0, free lines is 4095 [19:35:21]Connected sock=10 [19:35: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 36 30 0F 01 00 00 91 E5 07 01 5A 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8B 4F B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6D C0 00 00 35 04 06 00 8A A9 C3 31 46 4A A5 78 65 63 3F 64 91 BB [19:35: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 36 30 4F 00 00 00 9A FF 47 00 5C 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6D C0 00 00 F4 03 04 00 7F FB B8 65 B6 04 01 00 00 AB 60 C6 C8 B9 E5 74 AD [19:35:21]CommunicateWithHost err = 0 [19:35:21]CheckOFDResponse [19:35:21]1017 (14) - 77093643461234 [19:35:21]1041 (16) - 0000000000875060 [19:35:21]1040 (4) - 49261 [19:35:21]1012 (4) - 30.01.2024 13:37 [19:35:21]1206 (1) - 0 [19:35:21]OFD Sender: Remove packet 49261 [19:35:21]ProducePacketName [19:35:21]name=ofd_packets/00049261 [19:35:21]NVStorageDeleteData [19:35:21]Write to MH i2c: 01 00 00 EF 85 74 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 07 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 07 00 EF 85 00 00 00 00 00 F0 0C 77 [19:35:21]RasterBufferAndPrint [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]written 0, free lines is 3318 [19:35:21]MH_Cut [19:35:21]Write to MH i2c: D1 01 00 F6 85 01 4D [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 01 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 01 00 F6 85 00 4C [19:35:21]Write to MH i2c: 01 00 00 F7 85 7C [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]OFD Sender: No OFD packet to send [19:35:22]*** Cut start [19:35:22]*** Partial cut [19:35:22]*** CUTSNS_PIN = 1 [19:35:22]*** CUTSNS_PIN = 0 [19:35:22]*** Brake cut motor [19:35:22]Read from MH i2c: 01 [19:35:22]MH_I2C_Read... [19:35:22]*** Stop cut motor [19:35:22]*** Cut end [19:35:22]Read from MH i2c: 01 07 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 F7 85 00 00 00 00 00 FF 0F 91 [19:35:22]process_action close_receipt done [19:35:22]requested_data is exist [19:35:22]produce_requested_data [19:35:22]requested_item fm.sn is exist - process it [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 11 00 00 [19:35:22]Write to MH i2c: E2 08 00 F8 85 80 11 00 00 00 00 00 00 F7 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 F8 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 44 [19:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:35:22]wFMCommunicate OK [19:35:22]requested_item fd.num is exist - process it [19:35:22]SAM_PROTO_GetFieldsCounters [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 13 00 00 [19:35:22]Write to MH i2c: E2 08 00 F9 85 80 13 00 00 00 00 00 00 FA [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 62 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 62 00 F9 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:35: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6D C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:22]wFMCommunicate OK [19:35:22]SAM_PROTO_GetFieldsCounters done [19:35:22]requested_item shift.num is exist - process it [19:35:22]requested_item shift.opened is exist - process it [19:35:22]req_shift_opened [19:35:22]FM_GetShiftState [19:35:22]SAM_PROTO_GetShiftState [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 13 01 00 [19:35:22]Write to MH i2c: E2 08 00 FA 85 80 13 01 00 00 00 00 00 FC [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0E 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0E 00 FA 85 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 24 [19:35:23]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:35:23]wFMCommunicate OK [19:35:23]SAM_PROTO_GetShiftState done [19:35:23]FM_GetShiftState done [19:35:23]req_shift_opened done [19:35:23]requested_item shift.open_date is exist - process it [19:35:23]req_shift_open_date [19:35:23]req_shift_open_date done [19:35:23]produce_requested_data done [19:35:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49261,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [19:35:23]process_action_free close_receipt [19:35:23]json_value_free [19:35:23]json_value_free done [19:35:23]process_json_proto returns [19:35:23]Send response to host [19:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49261,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [19:35:23]free response buf [19:35:23]execute_script done [19:35:23]execute_script returns [19:35:23]free content buf [19:35:23]Sock 7.Close socket [19:35:23]Sock 7.Thread stoped [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38: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:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:33]accept exits with 9 [19:50:33]New connection [19:50:33]New thread 3066670436 created [19:50:33]Thread 3066813796 joined [19:50:33]Waiting for new connection... [19:50:33] Sock 9.Parse request [19:50:33]Sock 9.Check first char [19:50:33]Sock 9.First char is OK [19:50:33]request: POST /json_proto HTTP/1.0 [19:50:33]Method: POST [19:50:33]URL: /json_proto [19:50:33]Method is POST - this is cgi request [19:50:33]url: /json_proto [19:50:33]query_string will be loaded in cgi processing [19:50:33]execute_cgi json_proto POST (null) [19:50:33]execute_cgi path=json_proto method=POST [19:50:33]POST find Content-Length [19:50:33]Host: 172.17.56.67:8080 [19:50:33]Content-Length: 677 [19:50:33]Content-Type: application/json [19:50:33] [19:50:33]POST finish read [19:50:33]Found Content-Length = 677 [19:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "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" ] } } [19:50:33]execute_script... [19:50: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)216366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "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" ] } } [19:50:33]POST & json_proto [19:50:33]process_json_proto [19:50:33]json parsed OK: [19:50:33]protocol is kg_v1.0 [19:50:33]action value=close_receipt [19:50:33]process_action close_receipt [19:50:33]cmd_close_receipt [19:50:33]MH_GetDate [19:50:33]Write to MH i2c: F0 00 00 FB 85 6F [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 09 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 09 00 FB 85 00 1D 53 B9 65 26 5D 9E 65 8C [19:50:33]GetLastDocTimeStamp 1706643339 [19:50:33]current date 1706644253 [19:50:33]FM_GetShiftState [19:50:33]SAM_PROTO_GetShiftState [19:50:33]wFMCommunicate request_size=4 [19:50:33]MH_SAM_APDU [19:50:33]CAPDU: 80 13 01 00 [19:50:33]Write to MH i2c: E2 08 00 FC 85 80 13 01 00 00 00 00 00 FE [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:33]Read from MH i2c: E2 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 0E 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 0E 00 FC 85 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 26 [19:50:33]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:50:33]wFMCommunicate OK [19:50:33]SAM_PROTO_GetShiftState done [19:50:33]FM_GetShiftState done [19:50:33]opened in 1706572995 [19:50:33]opened+sec_in_day 1706659395 [19:50:33]quantity*price = 50049 [19:50:33]sum+1 = 50050 [19:50:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 138 30.01.2024 19:50 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49262 ФПД: 66332884461086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T195053&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49262&fm=66332884461086&tin=02508201610067®Number=0000000000092723&sum=50000 [19:50:34]StoreToDocumentArchive [19:50:34]shift 246 fd 49262 [19:50:34]save to /storage/0246/doc_00049262 [19:50:34]save last doc name /storage/0246/doc_00049262 to /storage/kkm_last_doc_name [19:50:34]save OK [19:50:34]Clear old archive folders... [19:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:34]tlvbuf is 011CFD60 [19:50:34]SAM_PROTO_ClearQueue [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 09 00 00 [19:50:34]Write to MH i2c: E2 08 00 09 86 80 09 00 00 00 00 00 00 01 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 09 86 00 90 00 03 [19:50:34]RAPDU: 90 00 [19:50:34]wFMCommunicate OK [19:50:34]SAM_PROTO_ClearQueue done [19:50:34]KKMCreateOFDPacket [19:50:34]OFDProtocolAddRootSTLVToBuf [19:50:34]FM_MakeSignedData [19:50:34]FM_MakeSignedData [19:50:34]SAM_PROTO_SignData [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 0D 01 02 [19:50:34]Write to MH i2c: E2 08 00 0A 86 80 0D 01 02 00 00 00 00 09 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 0A 86 00 90 00 04 [19:50:34]RAPDU: 90 00 [19:50:34]wFMCommunicate OK [19:50:34]wFMCommunicate request_size=255 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 1D 53 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6E C0 00 00 35 04 06 00 3C [19:50:34]Write to MH i2c: E2 02 01 0B 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 1D 53 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6E C0 00 00 35 04 06 00 3C 00 00 B1 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 0B 86 00 90 00 05 [19:50:35]RAPDU: 90 00 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=10 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 0D 02 02 05 54 54 03 E6 1E [19:50:35]Write to MH i2c: E2 0D 00 0C 86 80 0D 02 02 05 00 54 54 03 E6 1E 00 00 C5 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 0C 86 00 90 00 06 [19:50:35]RAPDU: 90 00 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 0D 03 02 [19:50:35]Write to MH i2c: E2 08 00 0D 86 80 0D 03 02 00 00 00 00 0E [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0B 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0B 00 0D 86 00 1F 1F 22 BB 22 A7 7E 9F 90 00 10 [19:50:35]RAPDU: 1F 1F 22 BB 22 A7 7E 9F 90 00 [19:50:35]wFMCommunicate OK [19:50:35]SAM_PROTO_SignData done [19:50:35]FM_MakeSignedData done [19:50:35]CreateOFDProtocolMessage [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 11 00 00 [19:50:35]Write to MH i2c: E2 08 00 0E 86 80 11 00 00 00 00 00 00 0E [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 17 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 17 00 0E 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5B [19:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:50:35]wFMCommunicate OK [19:50:35]CreateOFDProtocolMessage done [19:50:35]OFDSenderStorePacket 49262 [19:50:35]StoreOFDPacket docnum=49262 [19:50:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 43 89 07 01 60 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 1D 53 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6E C0 00 00 35 04 06 00 3C 54 54 03 E6 1E 1F 1F 22 BB 22 A7 7E 9F [19:50:35]CheckFolder [19:50:35]dirname=/storage/ofd_packets [19:50:35]CheckFolder done [19:50:35]ProducePacketName [19:50:35]name=ofd_packets/00049262 [19:50:35]NVStorageSaveData ofd_packets/00049262 [19:50:35]File name is /storage/ofd_packets/00049262 [19:50:35]Write 301 bytes [19:50:35]NVStorageSaveData done [19:50:35]OFDSenderStorePacket done [19:50:35]KKMCreateOFDPacket done [19:50:35]NVStorageSaveData kkm_last_timestamp [19:50:35]File name is /storage/kkm_last_timestamp [19:50:35]Write 4 bytes [19:50:35]NVStorageSaveData done [19:50:35]ExternCall_PrintAddStr [19:50:35]wPrintStart [19:50:35]Write to MH i2c: 01 00 00 0F 86 95 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 0F 86 00 00 00 00 00 FF 0F AA [19:50:35]RasterBufferAndPrint [19:50:35]line Счет N : (1)216366 [19:50:35]line ИНН: 02508201610067 [19:50:35]line Контрольно-Кассовый Чек [19:50:35]line ПРОДАЖА [19:50:35]line ТРК (МРК, ГНК) : 12 [19:50:35]line Товар: 2710124130 [19:50:35]line Аи-92-К-5 [19:50:35]line 8.300 * 60.30 [19:50:35]line = 500.49 [19:50:35]line НДС 12% НСП 1% [19:50:35]line > о реализуемом товаре [19:50:35]line ОКРУГЛЕНИЕ: -0.49 [19:50:35]line ИТОГО: 500.00 [19:50:35]line Внесено: 500.00 [19:50:35]line СДАЧА: 0.00 [19:50:35]line НСП 1% : 4.43 [19:50:35]line НДС 12% : 53.15 [19:50:35]line Наличными: 500.00 [19:50:35]line Безнал.: 0.00 [19:50:35]line Место: АЗС № 102 "Партнер Нефть" [19:50:35]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [19:50:35]line СНО: Общий режим [19:50:35]line Чек 138 30.01.2024 19:50 [19:50:35]line Смена: 246 ФФД: 1.0 [19:50:35]line ЗНМ: 0300000040 [19:50:35]line РНМ: 0000000000092723 [19:50:35]line Версия ККМ: 001 [19:50:35]line ФМ: 0000000000875060 [19:50:35]line ФД: 49262 [19:50:35]line ФПД: 66332884461086 [19:50:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T195053&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49262&fm=66332884461086&tin=02508201610067®Number=0000000000092723&sum=50000 [19:50:35]OFD Sender: Processing packet 49262 [packets to send 12, broken 11] [19:50:35]ProducePacketName [19:50:35]name=ofd_packets/00049262 [19:50:35]OFD Sender: To server: pG, [19:50:35]CommunicateWithHost lk.salyk.kg:30040 [19:50:35]ConnectInit lk.salyk.kg [19:50:35]written 0, free lines is 4095 [19:50:35]Write to MH i2c: 01 00 00 3A 86 C0 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 3A 86 00 00 00 00 00 ED 0C C0 [19:50:35]RasterBufferAndPrint [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]written 0, free lines is 3315 [19:50:35]MH_Cut [19:50:35]Write to MH i2c: D1 01 00 41 86 01 99 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 01 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 01 00 41 86 00 98 [19:50:35]Write to MH i2c: 01 00 00 42 86 C8 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:36]*** Cut start [19:50:36]*** Partial cut [19:50:36]*** CUTSNS_PIN = 1 [19:50:36]*** CUTSNS_PIN = 0 [19:50:36]*** Brake cut motor [19:50:37]Read from MH i2c: 01 [19:50:37]MH_I2C_Read... [19:50:37]*** Stop cut motor [19:50:37]*** Cut end [19:50:37]Read from MH i2c: 01 07 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: 01 07 00 42 86 00 00 00 00 00 FF 0F DD [19:50:37]process_action close_receipt done [19:50:37]requested_data is exist [19:50:37]produce_requested_data [19:50:37]requested_item fm.sn is exist - process it [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 11 00 00 [19:50:37]Write to MH i2c: E2 08 00 43 86 80 11 00 00 00 00 00 00 43 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 17 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 17 00 43 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 90 [19:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:50:37]wFMCommunicate OK [19:50:37]requested_item fd.num is exist - process it [19:50:37]SAM_PROTO_GetFieldsCounters [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 13 00 00 [19:50:37]Write to MH i2c: E2 08 00 44 86 80 13 00 00 00 00 00 00 46 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 62 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 62 00 44 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [19:50: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6E C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:37]wFMCommunicate OK [19:50:37]SAM_PROTO_GetFieldsCounters done [19:50:37]requested_item shift.num is exist - process it [19:50:37]requested_item shift.opened is exist - process it [19:50:37]req_shift_opened [19:50:37]FM_GetShiftState [19:50:37]SAM_PROTO_GetShiftState [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 13 01 00 [19:50:37]Write to MH i2c: E2 08 00 45 86 80 13 01 00 00 00 00 00 48 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 0E 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 0E 00 45 86 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 70 [19:50:37]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:50:37]wFMCommunicate OK [19:50:37]SAM_PROTO_GetShiftState done [19:50:37]FM_GetShiftState done [19:50:37]req_shift_opened done [19:50:37]requested_item shift.open_date is exist - process it [19:50:37]req_shift_open_date [19:50:37]req_shift_open_date done [19:50:37]produce_requested_data done [19:50:37]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49262,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [19:50:37]process_action_free close_receipt [19:50:37]json_value_free [19:50:37]json_value_free done [19:50:37]process_json_proto returns [19:50:37]Send response to host [19:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49262,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [19:50:37]free response buf [19:50:37]execute_script done [19:50:37]execute_script returns [19:50:37]free content buf [19:50:37]Sock 9.Close socket [19:50:37]Sock 9.Thread stoped [19:50:37]accept exits with 7 [19:50:37]New connection [19:50:37]New thread 3066813796 created [19:50:37]Thread 3066670436 joined [19:50:37]Waiting for new connection... [19:50:37] Sock 7.Parse request [19:50:37]Sock 7.Check first char [19:50:37]Sock 7.First char is OK [19:50:37]request: POST /json_proto HTTP/1.0 [19:50:37]Method: POST [19:50:37]URL: /json_proto [19:50:37]Method is POST - this is cgi request [19:50:37]url: /json_proto [19:50:37]query_string will be loaded in cgi processing [19:50:37]execute_cgi json_proto POST (null) [19:50:37]execute_cgi path=json_proto method=POST [19:50:37]POST find Content-Length [19:50:37]Host: 172.17.56.67:8080 [19:50:37]Content-Length: 677 [19:50:37]Content-Type: application/json [19:50:37] [19:50:37]POST finish read [19:50:37]Found Content-Length = 677 [19:50:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "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" ] } } [19:50:37]execute_script... [19:50: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)216367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "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" ] } } [19:50:37]POST & json_proto [19:50:37]process_json_proto [19:50:37]json parsed OK: [19:50:37]protocol is kg_v1.0 [19:50:37]action value=close_receipt [19:50:37]process_action close_receipt [19:50:37]cmd_close_receipt [19:50:37]MH_GetDate [19:50:37]Write to MH i2c: F0 00 00 46 86 BB [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: F0 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: F0 09 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: F0 09 00 46 86 00 22 53 B9 65 26 5D 9E 65 DD [19:50:37]GetLastDocTimeStamp 1706644253 [19:50:37]current date 1706644258 [19:50:37]FM_GetShiftState [19:50:37]SAM_PROTO_GetShiftState [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 13 01 00 [19:50:37]Write to MH i2c: E2 08 00 47 86 80 13 01 00 00 00 00 00 4A [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 0E 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 0E 00 47 86 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 72 [19:50:37]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:50:37]wFMCommunicate OK [19:50:37]SAM_PROTO_GetShiftState done [19:50:37]FM_GetShiftState done [19:50:37]opened in 1706572995 [19:50:37]opened+sec_in_day 1706659395 [19:50:37]quantity*price = 50049 [19:50:37]sum+1 = 50050 [19:50:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 139 30.01.2024 19:50 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49263 ФПД: 97676487915238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T195058&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49263&fm=97676487915238&tin=02508201610067®Number=0000000000092723&sum=50000 [19:50:39]StoreToDocumentArchive [19:50:39]shift 246 fd 49263 [19:50:39]save to /storage/0246/doc_00049263 [19:50:39]save last doc name /storage/0246/doc_00049263 to /storage/kkm_last_doc_name [19:50:39]save OK [19:50:39]Clear old archive folders... [19:50:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:39]tlvbuf is 013212D0 [19:50:39]SAM_PROTO_ClearQueue [19:50:39]wFMCommunicate request_size=4 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 09 00 00 [19:50:39]Write to MH i2c: E2 08 00 54 86 80 09 00 00 00 00 00 00 4C [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 54 86 00 90 00 4E [19:50:39]RAPDU: 90 00 [19:50:39]wFMCommunicate OK [19:50:39]SAM_PROTO_ClearQueue done [19:50:39]KKMCreateOFDPacket [19:50:39]OFDProtocolAddRootSTLVToBuf [19:50:39]FM_MakeSignedData [19:50:39]FM_MakeSignedData [19:50:39]SAM_PROTO_SignData [19:50:39]wFMCommunicate request_size=4 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 0D 01 02 [19:50:39]Write to MH i2c: E2 08 00 55 86 80 0D 01 02 00 00 00 00 54 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 55 86 00 90 00 4F [19:50:39]RAPDU: 90 00 [19:50:39]wFMCommunicate OK [19:50:39]wFMCommunicate request_size=255 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 22 53 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6F C0 00 00 35 04 06 00 58 [19:50:39]Write to MH i2c: E2 02 01 56 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 22 53 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6F C0 00 00 35 04 06 00 58 00 00 1F [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 56 86 00 90 00 50 [19:50:39]RAPDU: 90 00 [19:50:39]wFMCommunicate OK [19:50:39]wFMCommunicate request_size=10 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 0D 02 02 05 D6 14 5D 76 E6 [19:50:39]Write to MH i2c: E2 0D 00 57 86 80 0D 02 02 05 00 D6 14 5D 76 E6 00 00 04 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 57 86 00 90 00 51 [19:50:39]RAPDU: 90 00 [19:50:39]wFMCommunicate OK [19:50:39]wFMCommunicate request_size=4 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 0D 03 02 [19:50:39]Write to MH i2c: E2 08 00 58 86 80 0D 03 02 00 00 00 00 59 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 0B 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 0B 00 58 86 00 FA 55 AE 75 49 6B 5A BA 90 00 94 [19:50:39]RAPDU: FA 55 AE 75 49 6B 5A BA 90 00 [19:50:39]wFMCommunicate OK [19:50:39]SAM_PROTO_SignData done [19:50:39]FM_MakeSignedData done [19:50:39]CreateOFDProtocolMessage [19:50:39]wFMCommunicate request_size=4 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 11 00 00 [19:50:39]Write to MH i2c: E2 08 00 59 86 80 11 00 00 00 00 00 00 59 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 17 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 17 00 59 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A6 [19:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:50:39]wFMCommunicate OK [19:50:39]CreateOFDProtocolMessage done [19:50:39]OFDSenderStorePacket 49263 [19:50:39]StoreOFDPacket docnum=49263 [19:50:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A1 52 07 01 83 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 22 53 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6F C0 00 00 35 04 06 00 58 D6 14 5D 76 E6 FA 55 AE 75 49 6B 5A BA [19:50:39]CheckFolder [19:50:39]dirname=/storage/ofd_packets [19:50:39]CheckFolder done [19:50:39]ProducePacketName [19:50:39]name=ofd_packets/00049263 [19:50:39]NVStorageSaveData ofd_packets/00049263 [19:50:39]File name is /storage/ofd_packets/00049263 [19:50:39]Write 301 bytes [19:50:39]NVStorageSaveData done [19:50:39]OFDSenderStorePacket done [19:50:39]KKMCreateOFDPacket done [19:50:39]NVStorageSaveData kkm_last_timestamp [19:50:39]File name is /storage/kkm_last_timestamp [19:50:39]Write 4 bytes [19:50:39]NVStorageSaveData done [19:50:39]ExternCall_PrintAddStr [19:50:39]wPrintStart [19:50:39]Write to MH i2c: 01 00 00 5A 86 E0 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 5A 86 00 00 00 00 00 FF 0F F5 [19:50:39]RasterBufferAndPrint [19:50:39]line Счет N : (1)216367 [19:50:39]line ИНН: 02508201610067 [19:50:39]line Контрольно-Кассовый Чек [19:50:39]line ПРОДАЖА [19:50:39]line ТРК (МРК, ГНК) : 22 [19:50:39]line Товар: 2710124130 [19:50:39]line Аи-92-К-5 [19:50:39]line 8.300 * 60.30 [19:50:39]line = 500.49 [19:50:39]line НДС 12% НСП 1% [19:50:39]line > о реализуемом товаре [19:50:39]line ОКРУГЛЕНИЕ: -0.49 [19:50:40]line ИТОГО: 500.00 [19:50:40]line Внесено: 500.00 [19:50:40]line СДАЧА: 0.00 [19:50:40]line НСП 1% : 4.43 [19:50:40]line НДС 12% : 53.15 [19:50:40]line Наличными: 500.00 [19:50:40]line Безнал.: 0.00 [19:50:40]line Место: АЗС № 102 "Партнер Нефть" [19:50:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [19:50:40]line СНО: Общий режим [19:50:40]line Чек 139 30.01.2024 19:50 [19:50:40]line Смена: 246 ФФД: 1.0 [19:50:40]line ЗНМ: 0300000040 [19:50:40]line РНМ: 0000000000092723 [19:50:40]line Версия ККМ: 001 [19:50:40]line ФМ: 0000000000875060 [19:50:40]line ФД: 49263 [19:50:40]line ФПД: 97676487915238 [19:50:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T195058&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49263&fm=97676487915238&tin=02508201610067®Number=0000000000092723&sum=50000 [19:50:40]written 0, free lines is 4095 [19:50:40]Write to MH i2c: 01 00 00 85 86 0B [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: 01 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: 01 07 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: 01 07 00 85 86 00 00 00 00 00 EC 0C 0A [19:50:40]RasterBufferAndPrint [19:50:40]line [19:50:40]line [19:50:40]line [19:50:40]line [19:50:40]line [19:50:40]written 0, free lines is 3323 [19:50:40]MH_Cut [19:50:40]Write to MH i2c: D1 01 00 8C 86 01 E4 [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: D1 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: D1 01 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: D1 01 00 8C 86 00 E3 [19:50:40]Write to MH i2c: 01 00 00 8D 86 13 [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:41]*** Cut start [19:50:41]*** Partial cut [19:50:41]*** CUTSNS_PIN = 1 [19:50:41]*** CUTSNS_PIN = 0 [19:50:41]*** Brake cut motor [19:50:41]Read from MH i2c: 01 [19:50:41]MH_I2C_Read... [19:50:41]*** Stop cut motor [19:50:41]*** Cut end [19:50:41]Read from MH i2c: 01 07 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 07 00 8D 86 00 00 00 00 00 FF 0F 28 [19:50:41]process_action close_receipt done [19:50:41]requested_data is exist [19:50:41]produce_requested_data [19:50:41]requested_item fm.sn is exist - process it [19:50:41]wFMCommunicate request_size=4 [19:50:41]MH_SAM_APDU [19:50:41]CAPDU: 80 11 00 00 [19:50:41]Write to MH i2c: E2 08 00 8E 86 80 11 00 00 00 00 00 00 8E [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:41]Read from MH i2c: E2 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 17 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 17 00 8E 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DB [19:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:50:41]wFMCommunicate OK [19:50:41]requested_item fd.num is exist - process it [19:50:41]SAM_PROTO_GetFieldsCounters [19:50:41]wFMCommunicate request_size=4 [19:50:41]MH_SAM_APDU [19:50:41]CAPDU: 80 13 00 00 [19:50:41]Write to MH i2c: E2 08 00 8F 86 80 13 00 00 00 00 00 00 91 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 [19:50:42]MH_I2C_Read... [19:50:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:42]Read from MH i2c: E2 62 00 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 62 00 8F 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [19:50: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 6F C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:42]wFMCommunicate OK [19:50:42]SAM_PROTO_GetFieldsCounters done [19:50:42]requested_item shift.num is exist - process it [19:50:42]requested_item shift.opened is exist - process it [19:50:42]req_shift_opened [19:50:42]FM_GetShiftState [19:50:42]SAM_PROTO_GetShiftState [19:50:42]wFMCommunicate request_size=4 [19:50:42]MH_SAM_APDU [19:50:42]CAPDU: 80 13 01 00 [19:50:42]Write to MH i2c: E2 08 00 90 86 80 13 01 00 00 00 00 00 93 [19:50:42]Write i2c OK [19:50:42]MH_I2C_Read... [19:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:42]Read from MH i2c: E2 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 0E 00 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 0E 00 90 86 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 BB [19:50:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [19:50:42]wFMCommunicate OK [19:50:42]SAM_PROTO_GetShiftState done [19:50:42]FM_GetShiftState done [19:50:42]req_shift_opened done [19:50:42]requested_item shift.open_date is exist - process it [19:50:42]req_shift_open_date [19:50:42]req_shift_open_date done [19:50:42]produce_requested_data done [19:50:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49263,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [19:50:42]process_action_free close_receipt [19:50:42]json_value_free [19:50:42]json_value_free done [19:50:42]process_json_proto returns [19:50:42]Send response to host [19:50:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49263,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [19:50:42]free response buf [19:50:42]execute_script done [19:50:42]execute_script returns [19:50:42]free content buf [19:50:42]Sock 7.Close socket [19:50:42]Sock 7.Thread stoped [19:52:45]ConnectInit Can't connect to host [19:52:45]CommunicateWithHost connect error [19:52:45]CommunicateWithHost err = -1 [19:52:45]OFD Sender: Server communicate error [19:52:45]OFD Sender: Processing packet 49262 [packets to send 13, broken 11] [19:52:45]ProducePacketName [19:52:45]name=ofd_packets/00049262 [19:52:45]OFD Sender: To server: pG, [19:52:45]CommunicateWithHost lk.salyk.kg:30040 [19:52:45]ConnectInit lk.salyk.kg [19:52:45]Connected sock=7 [19:52: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 36 30 0F 01 00 00 43 89 07 01 60 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 1D 53 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6E C0 00 00 35 04 06 00 3C 54 54 03 E6 1E 1F 1F 22 BB 22 A7 7E 9F [19:52: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 36 30 4F 00 00 00 D5 29 47 00 47 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6E C0 00 00 F4 03 04 00 94 FF B8 65 B6 04 01 00 00 DE 62 A1 83 F8 82 DF EC [19:52:45]CommunicateWithHost err = 0 [19:52:45]CheckOFDResponse [19:52:45]1017 (14) - 77093643461234 [19:52:45]1041 (16) - 0000000000875060 [19:52:45]1040 (4) - 49262 [19:52:45]1012 (4) - 30.01.2024 13:54 [19:52:45]1206 (1) - 0 [19:52:45]OFD Sender: Remove packet 49262 [19:52:45]ProducePacketName [19:52:45]name=ofd_packets/00049262 [19:52:45]NVStorageDeleteData [19:52:46]OFD Sender: Processing packet 49263 [packets to send 12, broken 11] [19:52:46]ProducePacketName [19:52:46]name=ofd_packets/00049263 [19:52:46]OFD Sender: To server: pG, [19:52:46]CommunicateWithHost lk.salyk.kg:30040 [19:52:46]ConnectInit lk.salyk.kg [19:52:46]Connected sock=7 [19:52: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 36 30 0F 01 00 00 A1 52 07 01 83 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 22 53 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6F C0 00 00 35 04 06 00 58 D6 14 5D 76 E6 FA 55 AE 75 49 6B 5A BA [19:52: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 36 30 4F 00 00 00 96 81 47 00 CB 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 6F C0 00 00 F4 03 04 00 95 FF B8 65 B6 04 01 00 00 B2 10 AF EC 83 1F BB 78 [19:52:46]CommunicateWithHost err = 0 [19:52:46]CheckOFDResponse [19:52:46]1017 (14) - 77093643461234 [19:52:46]1041 (16) - 0000000000875060 [19:52:46]1040 (4) - 49263 [19:52:46]1012 (4) - 30.01.2024 13:54 [19:52:46]1206 (1) - 0 [19:52:46]OFD Sender: Remove packet 49263 [19:52:46]ProducePacketName [19:52:46]name=ofd_packets/00049263 [19:52:46]NVStorageDeleteData [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:42]accept exits with 9 [20:25:42]New connection [20:25:42]New thread 3066670436 created [20:25:42]Thread 3066813796 joined [20:25:42]Waiting for new connection... [20:25:42] Sock 9.Parse request [20:25:42]Sock 9.Check first char [20:25:42]Sock 9.First char is OK [20:25:42]request: POST /json_proto HTTP/1.0 [20:25:42]Method: POST [20:25:42]URL: /json_proto [20:25:42]Method is POST - this is cgi request [20:25:42]url: /json_proto [20:25:42]query_string will be loaded in cgi processing [20:25:42]execute_cgi json_proto POST (null) [20:25:42]execute_cgi path=json_proto method=POST [20:25:42]POST find Content-Length [20:25:42]Host: 172.17.56.67:8080 [20:25:42]Content-Length: 677 [20:25:42]Content-Type: application/json [20:25:42] [20:25:42]POST finish read [20:25:42]Found Content-Length = 677 [20:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:42]execute_script... [20:25: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)216368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:42]POST & json_proto [20:25:42]process_json_proto [20:25:42]json parsed OK: [20:25:42]protocol is kg_v1.0 [20:25:42]action value=close_receipt [20:25:42]process_action close_receipt [20:25:42]cmd_close_receipt [20:25:42]MH_GetDate [20:25:42]Write to MH i2c: F0 00 00 91 86 06 [20:25:42]Write i2c OK [20:25:42]MH_I2C_Read... [20:25:42]Read from MH i2c: F0 [20:25:42]MH_I2C_Read... [20:25:42]Read from MH i2c: F0 09 00 [20:25:42]MH_I2C_Read... [20:25:42]Read from MH i2c: F0 09 00 91 86 00 5B 5B B9 65 26 5D 9E 65 69 [20:25:42]GetLastDocTimeStamp 1706644258 [20:25:42]current date 1706646363 [20:25:42]FM_GetShiftState [20:25:42]SAM_PROTO_GetShiftState [20:25:42]wFMCommunicate request_size=4 [20:25:42]MH_SAM_APDU [20:25:42]CAPDU: 80 13 01 00 [20:25:42]Write to MH i2c: E2 08 00 92 86 80 13 01 00 00 00 00 00 95 [20:25:42]Write i2c OK [20:25:42]MH_I2C_Read... [20:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:42]Read from MH i2c: E2 [20:25:42]MH_I2C_Read... [20:25:42]Read from MH i2c: E2 0E 00 [20:25:42]MH_I2C_Read... [20:25:42]Read from MH i2c: E2 0E 00 92 86 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 BD [20:25:42]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [20:25:42]wFMCommunicate OK [20:25:42]SAM_PROTO_GetShiftState done [20:25:42]FM_GetShiftState done [20:25:42]opened in 1706572995 [20:25:42]opened+sec_in_day 1706659395 [20:25:42]quantity*price = 50049 [20:25:42]sum+1 = 50050 [20:25:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 140 30.01.2024 20:26 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49264 ФПД: 223075585448351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T202603&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49264&fm=223075585448351&tin=02508201610067®Number=0000000000092723&sum=50000 [20:25:43]StoreToDocumentArchive [20:25:43]shift 246 fd 49264 [20:25:43]save to /storage/0246/doc_00049264 [20:25:43]save last doc name /storage/0246/doc_00049264 to /storage/kkm_last_doc_name [20:25:43]save OK [20:25:43]Clear old archive folders... [20:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:43]tlvbuf is 013D77E0 [20:25:43]SAM_PROTO_ClearQueue [20:25:43]wFMCommunicate request_size=4 [20:25:43]MH_SAM_APDU [20:25:43]CAPDU: 80 09 00 00 [20:25:43]Write to MH i2c: E2 08 00 9F 86 80 09 00 00 00 00 00 00 97 [20:25:43]Write i2c OK [20:25:43]MH_I2C_Read... [20:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:43]Read from MH i2c: E2 [20:25:43]MH_I2C_Read... [20:25:43]Read from MH i2c: E2 03 00 [20:25:43]MH_I2C_Read... [20:25:43]Read from MH i2c: E2 03 00 9F 86 00 90 00 99 [20:25:43]RAPDU: 90 00 [20:25:43]wFMCommunicate OK [20:25:43]SAM_PROTO_ClearQueue done [20:25:43]KKMCreateOFDPacket [20:25:43]OFDProtocolAddRootSTLVToBuf [20:25:43]FM_MakeSignedData [20:25:43]FM_MakeSignedData [20:25:43]SAM_PROTO_SignData [20:25:43]wFMCommunicate request_size=4 [20:25:43]MH_SAM_APDU [20:25:43]CAPDU: 80 0D 01 02 [20:25:43]Write to MH i2c: E2 08 00 A0 86 80 0D 01 02 00 00 00 00 9F [20:25:43]Write i2c OK [20:25:43]MH_I2C_Read... [20:25:43]OFD Sender: No OFD packet to send [20:25:43]Read from MH i2c: E2 [20:25:43]MH_I2C_Read... [20:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:43]Read from MH i2c: E2 03 00 [20:25:43]MH_I2C_Read... [20:25:43]Read from MH i2c: E2 03 00 A0 86 00 90 00 9A [20:25:43]RAPDU: 90 00 [20:25:43]wFMCommunicate OK [20:25:43]wFMCommunicate request_size=255 [20:25:43]MH_SAM_APDU [20:25:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 5B 5B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 70 C0 00 00 35 04 06 00 CA [20:25:43]Write to MH i2c: E2 02 01 A1 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 5B 5B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 70 C0 00 00 35 04 06 00 CA 00 00 1F [20:25:43]Write i2c OK [20:25:43]MH_I2C_Read... [20:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:44]Read from MH i2c: E2 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: E2 03 00 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: E2 03 00 A1 86 00 90 00 9B [20:25:44]RAPDU: 90 00 [20:25:44]wFMCommunicate OK [20:25:44]wFMCommunicate request_size=10 [20:25:44]MH_SAM_APDU [20:25:44]CAPDU: 80 0D 02 02 05 E2 D5 07 59 9F [20:25:44]Write to MH i2c: E2 0D 00 A2 86 80 0D 02 02 05 00 E2 D5 07 59 9F 00 00 62 [20:25:44]Write i2c OK [20:25:44]MH_I2C_Read... [20:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:44]Read from MH i2c: E2 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: E2 03 00 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: E2 03 00 A2 86 00 90 00 9C [20:25:44]RAPDU: 90 00 [20:25:44]wFMCommunicate OK [20:25:44]wFMCommunicate request_size=4 [20:25:44]MH_SAM_APDU [20:25:44]CAPDU: 80 0D 03 02 [20:25:44]Write to MH i2c: E2 08 00 A3 86 80 0D 03 02 00 00 00 00 A4 [20:25:44]Write i2c OK [20:25:44]MH_I2C_Read... [20:25:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:44]Read from MH i2c: E2 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: E2 0B 00 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: E2 0B 00 A3 86 00 07 52 CC 3A 12 2E AC EC 90 00 DC [20:25:44]RAPDU: 07 52 CC 3A 12 2E AC EC 90 00 [20:25:44]wFMCommunicate OK [20:25:44]SAM_PROTO_SignData done [20:25:44]FM_MakeSignedData done [20:25:44]CreateOFDProtocolMessage [20:25:44]wFMCommunicate request_size=4 [20:25:44]MH_SAM_APDU [20:25:44]CAPDU: 80 11 00 00 [20:25:44]Write to MH i2c: E2 08 00 A4 86 80 11 00 00 00 00 00 00 A4 [20:25:44]Write i2c OK [20:25:44]MH_I2C_Read... [20:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:44]Read from MH i2c: E2 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: E2 17 00 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: E2 17 00 A4 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F1 [20:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:25:44]wFMCommunicate OK [20:25:44]CreateOFDProtocolMessage done [20:25:44]OFDSenderStorePacket 49264 [20:25:44]StoreOFDPacket docnum=49264 [20:25:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3A 39 07 01 A2 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 5B 5B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 70 C0 00 00 35 04 06 00 CA E2 D5 07 59 9F 07 52 CC 3A 12 2E AC EC [20:25:44]CheckFolder [20:25:44]dirname=/storage/ofd_packets [20:25:44]CheckFolder done [20:25:44]ProducePacketName [20:25:44]name=ofd_packets/00049264 [20:25:44]NVStorageSaveData ofd_packets/00049264 [20:25:44]File name is /storage/ofd_packets/00049264 [20:25:44]Write 301 bytes [20:25:44]NVStorageSaveData done [20:25:44]OFDSenderStorePacket done [20:25:44]KKMCreateOFDPacket done [20:25:44]NVStorageSaveData kkm_last_timestamp [20:25:44]File name is /storage/kkm_last_timestamp [20:25:44]Write 4 bytes [20:25:44]NVStorageSaveData done [20:25:44]ExternCall_PrintAddStr [20:25:44]wPrintStart [20:25:44]Write to MH i2c: 01 00 00 A5 86 2B [20:25:44]Write i2c OK [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: 01 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: 01 07 00 [20:25:44]MH_I2C_Read... [20:25:44]Read from MH i2c: 01 07 00 A5 86 00 00 00 00 00 FF 0F 40 [20:25:44]RasterBufferAndPrint [20:25:44]line Счет N : (1)216368 [20:25:44]line ИНН: 02508201610067 [20:25:44]line Контрольно-Кассовый Чек [20:25:44]line ПРОДАЖА [20:25:44]line ТРК (МРК, ГНК) : 22 [20:25:44]line Товар: 2710124130 [20:25:44]line Аи-92-К-5 [20:25:44]line 8.300 * 60.30 [20:25:44]line = 500.49 [20:25:44]line НДС 12% НСП 1% [20:25:44]line > о реализуемом товаре [20:25:44]line ОКРУГЛЕНИЕ: -0.49 [20:25:44]line ИТОГО: 500.00 [20:25:44]line Внесено: 500.00 [20:25:44]line СДАЧА: 0.00 [20:25:44]line НСП 1% : 4.43 [20:25:44]line НДС 12% : 53.15 [20:25:44]line Наличными: 500.00 [20:25:44]line Безнал.: 0.00 [20:25:44]line Место: АЗС № 102 "Партнер Нефть" [20:25:44]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [20:25:44]line СНО: Общий режим [20:25:44]line Чек 140 30.01.2024 20:26 [20:25:44]line Смена: 246 ФФД: 1.0 [20:25:44]line ЗНМ: 0300000040 [20:25:44]line РНМ: 0000000000092723 [20:25:44]line Версия ККМ: 001 [20:25:44]line ФМ: 0000000000875060 [20:25:44]line ФД: 49264 [20:25:44]line ФПД: 223075585448351 [20:25:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T202603&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49264&fm=223075585448351&tin=02508201610067®Number=0000000000092723&sum=50000 [20:25:44]OFD Sender: Processing packet 49264 [packets to send 12, broken 11] [20:25:44]ProducePacketName [20:25:44]name=ofd_packets/00049264 [20:25:44]OFD Sender: To server: pG, [20:25:44]CommunicateWithHost lk.salyk.kg:30040 [20:25:44]ConnectInit lk.salyk.kg [20:25:44]written 0, free lines is 4095 [20:25:44]Connected sock=10 [20:25: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 36 30 0F 01 00 00 3A 39 07 01 A2 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 5B 5B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 70 C0 00 00 35 04 06 00 CA E2 D5 07 59 9F 07 52 CC 3A 12 2E AC EC [20:25: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 36 30 4F 00 00 00 3C C3 47 00 86 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 70 C0 00 00 F4 03 04 00 4F 07 B9 65 B6 04 01 00 00 76 30 16 BC 92 AB 27 64 [20:25:44]CommunicateWithHost err = 0 [20:25:44]CheckOFDResponse [20:25:44]1017 (14) - 77093643461234 [20:25:44]1041 (16) - 0000000000875060 [20:25:44]1040 (4) - 49264 [20:25:44]1012 (4) - 30.01.2024 14:27 [20:25:44]1206 (1) - 0 [20:25:44]OFD Sender: Remove packet 49264 [20:25:44]ProducePacketName [20:25:44]name=ofd_packets/00049264 [20:25:44]NVStorageDeleteData [20:25:45]Write to MH i2c: 01 00 00 D0 86 56 [20:25:45]Write i2c OK [20:25:45]MH_I2C_Read... [20:25:45]Read from MH i2c: 01 [20:25:45]MH_I2C_Read... [20:25:45]Read from MH i2c: 01 07 00 [20:25:45]MH_I2C_Read... [20:25:45]Read from MH i2c: 01 07 00 D0 86 00 00 00 00 00 F6 0C 5F [20:25:45]RasterBufferAndPrint [20:25:45]line [20:25:45]line [20:25:45]line [20:25:45]line [20:25:45]line [20:25:45]written 0, free lines is 3324 [20:25:45]MH_Cut [20:25:45]Write to MH i2c: D1 01 00 D7 86 01 2F [20:25:45]Write i2c OK [20:25:45]MH_I2C_Read... [20:25:45]Read from MH i2c: D1 [20:25:45]MH_I2C_Read... [20:25:45]Read from MH i2c: D1 01 00 [20:25:45]MH_I2C_Read... [20:25:45]Read from MH i2c: D1 01 00 D7 86 00 2E [20:25:45]Write to MH i2c: 01 00 00 D8 86 5E [20:25:45]Write i2c OK [20:25:45]MH_I2C_Read... [20:25:45]OFD Sender: No OFD packet to send [20:25:45]*** Cut start [20:25:45]*** Partial cut [20:25:45]*** CUTSNS_PIN = 1 [20:25:45]*** CUTSNS_PIN = 0 [20:25:46]*** Brake cut motor [20:25:46]Read from MH i2c: 01 [20:25:46]MH_I2C_Read... [20:25:46]*** Stop cut motor [20:25:46]*** Cut end [20:25:46]Read from MH i2c: 01 07 00 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: 01 07 00 D8 86 00 00 00 00 00 FF 0F 73 [20:25:46]process_action close_receipt done [20:25:46]requested_data is exist [20:25:46]produce_requested_data [20:25:46]requested_item fm.sn is exist - process it [20:25:46]wFMCommunicate request_size=4 [20:25:46]MH_SAM_APDU [20:25:46]CAPDU: 80 11 00 00 [20:25:46]Write to MH i2c: E2 08 00 D9 86 80 11 00 00 00 00 00 00 D9 [20:25:46]Write i2c OK [20:25:46]MH_I2C_Read... [20:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:46]Read from MH i2c: E2 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: E2 17 00 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: E2 17 00 D9 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 26 [20:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:25:46]wFMCommunicate OK [20:25:46]requested_item fd.num is exist - process it [20:25:46]SAM_PROTO_GetFieldsCounters [20:25:46]wFMCommunicate request_size=4 [20:25:46]MH_SAM_APDU [20:25:46]CAPDU: 80 13 00 00 [20:25:46]Write to MH i2c: E2 08 00 DA 86 80 13 00 00 00 00 00 00 DC [20:25:46]Write i2c OK [20:25:46]MH_I2C_Read... [20:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:46]Read from MH i2c: E2 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: E2 62 00 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: E2 62 00 DA 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 70 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [20:25: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 70 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:46]wFMCommunicate OK [20:25:46]SAM_PROTO_GetFieldsCounters done [20:25:46]requested_item shift.num is exist - process it [20:25:46]requested_item shift.opened is exist - process it [20:25:46]req_shift_opened [20:25:46]FM_GetShiftState [20:25:46]SAM_PROTO_GetShiftState [20:25:46]wFMCommunicate request_size=4 [20:25:46]MH_SAM_APDU [20:25:46]CAPDU: 80 13 01 00 [20:25:46]Write to MH i2c: E2 08 00 DB 86 80 13 01 00 00 00 00 00 DE [20:25:46]Write i2c OK [20:25:46]MH_I2C_Read... [20:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:46]Read from MH i2c: E2 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: E2 0E 00 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: E2 0E 00 DB 86 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 06 [20:25:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [20:25:46]wFMCommunicate OK [20:25:46]SAM_PROTO_GetShiftState done [20:25:46]FM_GetShiftState done [20:25:46]req_shift_opened done [20:25:46]requested_item shift.open_date is exist - process it [20:25:46]req_shift_open_date [20:25:46]req_shift_open_date done [20:25:46]produce_requested_data done [20:25:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49264,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [20:25:46]process_action_free close_receipt [20:25:46]json_value_free [20:25:46]json_value_free done [20:25:46]process_json_proto returns [20:25:46]Send response to host [20:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49264,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [20:25:46]free response buf [20:25:46]execute_script done [20:25:46]execute_script returns [20:25:46]free content buf [20:25:46]Sock 9.Close socket [20:25:46]Sock 9.Thread stoped [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:20]accept exits with 7 [20:27:20]New connection [20:27:20]New thread 3066813796 created [20:27:20]Thread 3066670436 joined [20:27:20]Waiting for new connection... [20:27:20] Sock 7.Parse request [20:27:20]Sock 7.Check first char [20:27:20]Sock 7.First char is OK [20:27:20]request: POST /json_proto HTTP/1.0 [20:27:20]Method: POST [20:27:20]URL: /json_proto [20:27:20]Method is POST - this is cgi request [20:27:20]url: /json_proto [20:27:20]query_string will be loaded in cgi processing [20:27:20]execute_cgi json_proto POST (null) [20:27:20]execute_cgi path=json_proto method=POST [20:27:20]POST find Content-Length [20:27:20]Host: 172.17.56.67:8080 [20:27:20]Content-Length: 674 [20:27:20]Content-Type: application/json [20:27:20] [20:27:20]POST finish read [20:27:20]Found Content-Length = 674 [20:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:20]execute_script... [20:27:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:20]POST & json_proto [20:27:20]process_json_proto [20:27:20]json parsed OK: [20:27:20]protocol is kg_v1.0 [20:27:20]action value=close_receipt [20:27:20]process_action close_receipt [20:27:20]cmd_close_receipt [20:27:20]MH_GetDate [20:27:20]Write to MH i2c: F0 00 00 DC 86 51 [20:27:20]Write i2c OK [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: F0 [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: F0 09 00 [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: F0 09 00 DC 86 00 BD 5B B9 65 26 5D 9E 65 16 [20:27:20]GetLastDocTimeStamp 1706646363 [20:27:20]current date 1706646461 [20:27:20]FM_GetShiftState [20:27:20]SAM_PROTO_GetShiftState [20:27:20]wFMCommunicate request_size=4 [20:27:20]MH_SAM_APDU [20:27:20]CAPDU: 80 13 01 00 [20:27:20]Write to MH i2c: E2 08 00 DD 86 80 13 01 00 00 00 00 00 E0 [20:27:20]Write i2c OK [20:27:20]MH_I2C_Read... [20:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:20]Read from MH i2c: E2 [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: E2 0E 00 [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: E2 0E 00 DD 86 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 08 [20:27:20]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [20:27:20]wFMCommunicate OK [20:27:20]SAM_PROTO_GetShiftState done [20:27:20]FM_GetShiftState done [20:27:20]opened in 1706572995 [20:27:20]opened+sec_in_day 1706659395 [20:27:20]quantity*price = 50048 [20:27:20]sum+1 = 50049 [20:27:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 141 30.01.2024 20:27 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49265 ФПД: 130924490880711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T202741&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49265&fm=130924490880711&tin=02508201610067®Number=0000000000092723&sum=50000 [20:27:21]StoreToDocumentArchive [20:27:21]shift 246 fd 49265 [20:27:21]save to /storage/0246/doc_00049265 [20:27:21]save last doc name /storage/0246/doc_00049265 to /storage/kkm_last_doc_name [20:27:21]save OK [20:27:21]Clear old archive folders... [20:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:27:21]tlvbuf is 011DCED0 [20:27:21]SAM_PROTO_ClearQueue [20:27:21]wFMCommunicate request_size=4 [20:27:21]MH_SAM_APDU [20:27:21]CAPDU: 80 09 00 00 [20:27:21]Write to MH i2c: E2 08 00 EA 86 80 09 00 00 00 00 00 00 E2 [20:27:21]Write i2c OK [20:27:21]MH_I2C_Read... [20:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:21]Read from MH i2c: E2 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: E2 03 00 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: E2 03 00 EA 86 00 90 00 E4 [20:27:21]RAPDU: 90 00 [20:27:21]wFMCommunicate OK [20:27:21]SAM_PROTO_ClearQueue done [20:27:21]KKMCreateOFDPacket [20:27:21]OFDProtocolAddRootSTLVToBuf [20:27:21]FM_MakeSignedData [20:27:21]FM_MakeSignedData [20:27:21]SAM_PROTO_SignData [20:27:21]wFMCommunicate request_size=4 [20:27:21]MH_SAM_APDU [20:27:21]CAPDU: 80 0D 01 02 [20:27:21]Write to MH i2c: E2 08 00 EB 86 80 0D 01 02 00 00 00 00 EA [20:27:21]Write i2c OK [20:27:21]MH_I2C_Read... [20:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:21]Read from MH i2c: E2 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: E2 03 00 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: E2 03 00 EB 86 00 90 00 E5 [20:27:21]RAPDU: 90 00 [20:27:21]wFMCommunicate OK [20:27:21]wFMCommunicate request_size=255 [20:27:21]MH_SAM_APDU [20:27:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 BD 5B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 71 C0 00 00 35 04 06 00 77 13 3B C5 [20:27:21]Write to MH i2c: E2 02 01 EC 86 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 BD 5B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 71 C0 00 00 35 04 06 00 77 13 3B C5 00 00 2B [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 EC 86 00 90 00 E6 [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]wFMCommunicate request_size=7 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 0D 02 02 02 76 C7 [20:27:22]Write to MH i2c: E2 0A 00 ED 86 80 0D 02 02 02 00 76 C7 00 00 2E [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 ED 86 00 90 00 E7 [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 0D 03 02 [20:27:22]Write to MH i2c: E2 08 00 EE 86 80 0D 03 02 00 00 00 00 EF [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 0B 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 0B 00 EE 86 00 FC A0 FA 60 20 FF 8C E2 90 00 73 [20:27:22]RAPDU: FC A0 FA 60 20 FF 8C E2 90 00 [20:27:22]wFMCommunicate OK [20:27:22]SAM_PROTO_SignData done [20:27:22]FM_MakeSignedData done [20:27:22]CreateOFDProtocolMessage [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 11 00 00 [20:27:22]Write to MH i2c: E2 08 00 EF 86 80 11 00 00 00 00 00 00 EF [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 17 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 17 00 EF 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [20:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:27:22]wFMCommunicate OK [20:27:22]CreateOFDProtocolMessage done [20:27:22]OFDSenderStorePacket 49265 [20:27:22]StoreOFDPacket docnum=49265 [20:27:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 A7 DF 04 01 59 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 BD 5B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 71 C0 00 00 35 04 06 00 77 13 3B C5 76 C7 FC A0 FA 60 20 FF 8C E2 [20:27:22]CheckFolder [20:27:22]dirname=/storage/ofd_packets [20:27:22]CheckFolder done [20:27:22]ProducePacketName [20:27:22]name=ofd_packets/00049265 [20:27:22]NVStorageSaveData ofd_packets/00049265 [20:27:22]File name is /storage/ofd_packets/00049265 [20:27:22]Write 298 bytes [20:27:22]NVStorageSaveData done [20:27:22]OFDSenderStorePacket done [20:27:22]KKMCreateOFDPacket done [20:27:22]NVStorageSaveData kkm_last_timestamp [20:27:22]File name is /storage/kkm_last_timestamp [20:27:22]Write 4 bytes [20:27:22]NVStorageSaveData done [20:27:22]ExternCall_PrintAddStr [20:27:22]wPrintStart [20:27:22]Write to MH i2c: 01 00 00 F0 86 76 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: 01 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: 01 07 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: 01 07 00 F0 86 00 00 00 00 00 FF 0F 8B [20:27:22]RasterBufferAndPrint [20:27:22]line Счет N : (1)216369 [20:27:22]line ИНН: 02508201610067 [20:27:22]line Контрольно-Кассовый Чек [20:27:22]line ПРОДАЖА [20:27:22]line ТРК (МРК, ГНК) : 21 [20:27:22]line Товар: 2710194210 [20:27:22]line ДТ-К-5 [20:27:22]line 7.160 * 69.90 [20:27:22]line = 500.48 [20:27:22]line НДС 12% НСП 1% [20:27:22]line > о реализуемом товаре [20:27:22]line ОКРУГЛЕНИЕ: -0.48 [20:27:22]line ИТОГО: 500.00 [20:27:22]line Внесено: 500.00 [20:27:22]line СДАЧА: 0.00 [20:27:22]line НСП 1% : 4.43 [20:27:22]line НДС 12% : 53.15 [20:27:22]line Наличными: 500.00 [20:27:22]line Безнал.: 0.00 [20:27:22]line Место: АЗС № 102 "Партнер Нефть" [20:27:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [20:27:22]line СНО: Общий режим [20:27:22]line Чек 141 30.01.2024 20:27 [20:27:22]line Смена: 246 ФФД: 1.0 [20:27:22]line ЗНМ: 0300000040 [20:27:22]line РНМ: 0000000000092723 [20:27:22]line Версия ККМ: 001 [20:27:22]line ФМ: 0000000000875060 [20:27:22]line ФД: 49265 [20:27:22]line ФПД: 130924490880711 [20:27:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T202741&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49265&fm=130924490880711&tin=02508201610067®Number=0000000000092723&sum=50000 [20:27:22]OFD Sender: Processing packet 49265 [packets to send 12, broken 11] [20:27:22]ProducePacketName [20:27:22]name=ofd_packets/00049265 [20:27:22]OFD Sender: To server: pG, [20:27:22]CommunicateWithHost lk.salyk.kg:30040 [20:27:22]ConnectInit lk.salyk.kg [20:27:22]written 0, free lines is 4095 [20:27:22]Connected sock=10 [20:27:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 A7 DF 04 01 59 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C3 14 00 00 00 00 07 04 06 00 50 C3 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 BD 5B B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 71 C0 00 00 35 04 06 00 77 13 3B C5 76 C7 FC A0 FA 60 20 FF 8C E2 [20:27: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 36 30 4F 00 00 00 FA DD 47 00 48 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 36 30 10 04 04 00 71 C0 00 00 F4 03 04 00 B1 07 B9 65 B6 04 01 00 00 11 1B 5E 5C 24 28 6E 7D [20:27:23]CommunicateWithHost err = 0 [20:27:23]CheckOFDResponse [20:27:23]1017 (14) - 77093643461234 [20:27:23]1041 (16) - 0000000000875060 [20:27:23]1040 (4) - 49265 [20:27:23]1012 (4) - 30.01.2024 14:29 [20:27:23]1206 (1) - 0 [20:27:23]OFD Sender: Remove packet 49265 [20:27:23]ProducePacketName [20:27:23]name=ofd_packets/00049265 [20:27:23]NVStorageDeleteData [20:27:23]Write to MH i2c: 01 00 00 1B 87 A2 [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 07 00 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 07 00 1B 87 00 00 00 00 00 EF 0C A4 [20:27:23]RasterBufferAndPrint [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]written 0, free lines is 3320 [20:27:23]MH_Cut [20:27:23]Write to MH i2c: D1 01 00 22 87 01 7B [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 01 00 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 01 00 22 87 00 7A [20:27:23]Write to MH i2c: 01 00 00 23 87 AA [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:23]OFD Sender: No OFD packet to send [20:27:23]*** Cut start [20:27:23]*** Partial cut [20:27:23]*** CUTSNS_PIN = 1 [20:27:23]*** CUTSNS_PIN = 0 [20:27:24]*** Brake cut motor [20:27:24]Read from MH i2c: 01 [20:27:24]MH_I2C_Read... [20:27:24]*** Stop cut motor [20:27:24]*** Cut end [20:27:24]Read from MH i2c: 01 07 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: 01 07 00 23 87 00 00 00 00 00 FF 0F BF [20:27:24]process_action close_receipt done [20:27:24]requested_data is exist [20:27:24]produce_requested_data [20:27:24]requested_item fm.sn is exist - process it [20:27:24]wFMCommunicate request_size=4 [20:27:24]MH_SAM_APDU [20:27:24]CAPDU: 80 11 00 00 [20:27:24]Write to MH i2c: E2 08 00 24 87 80 11 00 00 00 00 00 00 25 [20:27:24]Write i2c OK [20:27:24]MH_I2C_Read... [20:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:24]Read from MH i2c: E2 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 17 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 17 00 24 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 72 [20:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:27:24]wFMCommunicate OK [20:27:24]requested_item fd.num is exist - process it [20:27:24]SAM_PROTO_GetFieldsCounters [20:27:24]wFMCommunicate request_size=4 [20:27:24]MH_SAM_APDU [20:27:24]CAPDU: 80 13 00 00 [20:27:24]Write to MH i2c: E2 08 00 25 87 80 13 00 00 00 00 00 00 28 [20:27:24]Write i2c OK [20:27:24]MH_I2C_Read... [20:27:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:24]Read from MH i2c: E2 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 62 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 62 00 25 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 71 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [20:27: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 71 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:24]wFMCommunicate OK [20:27:24]SAM_PROTO_GetFieldsCounters done [20:27:24]requested_item shift.num is exist - process it [20:27:24]requested_item shift.opened is exist - process it [20:27:24]req_shift_opened [20:27:24]FM_GetShiftState [20:27:24]SAM_PROTO_GetShiftState [20:27:24]wFMCommunicate request_size=4 [20:27:24]MH_SAM_APDU [20:27:24]CAPDU: 80 13 01 00 [20:27:24]Write to MH i2c: E2 08 00 26 87 80 13 01 00 00 00 00 00 2A [20:27:24]Write i2c OK [20:27:24]MH_I2C_Read... [20:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:24]Read from MH i2c: E2 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 0E 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 0E 00 26 87 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 52 [20:27:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [20:27:24]wFMCommunicate OK [20:27:24]SAM_PROTO_GetShiftState done [20:27:24]FM_GetShiftState done [20:27:24]req_shift_opened done [20:27:24]requested_item shift.open_date is exist - process it [20:27:24]req_shift_open_date [20:27:24]req_shift_open_date done [20:27:24]produce_requested_data done [20:27:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49265,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [20:27:24]process_action_free close_receipt [20:27:24]json_value_free [20:27:24]json_value_free done [20:27:24]process_json_proto returns [20:27:24]Send response to host [20:27:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49265,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [20:27:24]free response buf [20:27:24]execute_script done [20:27:24]execute_script returns [20:27:24]free content buf [20:27:24]Sock 7.Close socket [20:27:24]Sock 7.Thread stoped [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]accept exits with 9 [20:34:48]New connection [20:34:48]New thread 3066670436 created [20:34:48]Thread 3066813796 joined [20:34:48]Waiting for new connection... [20:34:48] Sock 9.Parse request [20:34:48]Sock 9.Check first char [20:34:48]Sock 9.First char is OK [20:34:48]request: POST /json_proto HTTP/1.0 [20:34:48]Method: POST [20:34:48]URL: /json_proto [20:34:48]Method is POST - this is cgi request [20:34:48]url: /json_proto [20:34:48]query_string will be loaded in cgi processing [20:34:48]execute_cgi json_proto POST (null) [20:34:48]execute_cgi path=json_proto method=POST [20:34:48]POST find Content-Length [20:34:48]Host: 172.17.56.67:8080 [20:34:48]Content-Length: 677 [20:34:48]Content-Type: application/json [20:34:48] [20:34:48]POST finish read [20:34:48]Found Content-Length = 677 [20:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.010, "sum" : 302.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 302.00, "total" : 302.00, "payments": [ { "type": 0, "sum" : 302.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:48]execute_script... [20:34:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.010, "sum" : 302.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 302.00, "total" : 302.00, "payments": [ { "type": 0, "sum" : 302.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:48]POST & json_proto [20:34:48]process_json_proto [20:34:48]json parsed OK: [20:34:48]protocol is kg_v1.0 [20:34:48]action value=close_receipt [20:34:48]process_action close_receipt [20:34:48]cmd_close_receipt [20:34:48]MH_GetDate [20:34:48]Write to MH i2c: F0 00 00 27 87 9D [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: F0 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: F0 09 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: F0 09 00 27 87 00 7D 5D B9 65 26 5D 9E 65 24 [20:34:48]GetLastDocTimeStamp 1706646461 [20:34:48]current date 1706646909 [20:34:48]FM_GetShiftState [20:34:48]SAM_PROTO_GetShiftState [20:34:48]wFMCommunicate request_size=4 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 13 01 00 [20:34:48]Write to MH i2c: E2 08 00 28 87 80 13 01 00 00 00 00 00 2C [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 0E 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 0E 00 28 87 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 54 [20:34:48]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [20:34:48]wFMCommunicate OK [20:34:48]SAM_PROTO_GetShiftState done [20:34:48]FM_GetShiftState done [20:34:48]opened in 1706572995 [20:34:48]opened+sec_in_day 1706659395 [20:34:48]quantity*price = 30210 [20:34:48]sum+1 = 30211 [20:34:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 302.00 Внесено: 302.00 СДАЧА: 0.00 НСП 1% : 2.67 НДС 12% : 32.08 Наличными: 302.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 142 30.01.2024 20:35 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49266 ФПД: 190227741013511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T203509&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49266&fm=190227741013511&tin=02508201610067®Number=0000000000092723&sum=30200 [20:34:49]StoreToDocumentArchive [20:34:49]shift 246 fd 49266 [20:34:49]save to /storage/0246/doc_00049266 [20:34:49]save last doc name /storage/0246/doc_00049266 to /storage/kkm_last_doc_name [20:34:49]save OK [20:34:49]Clear old archive folders... [20:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:49]tlvbuf is 0139F3F0 [20:34:49]SAM_PROTO_ClearQueue [20:34:49]wFMCommunicate request_size=4 [20:34:49]MH_SAM_APDU [20:34:49]CAPDU: 80 09 00 00 [20:34:49]Write to MH i2c: E2 08 00 35 87 80 09 00 00 00 00 00 00 2E [20:34:49]Write i2c OK [20:34:49]MH_I2C_Read... [20:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:49]Read from MH i2c: E2 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: E2 03 00 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: E2 03 00 35 87 00 90 00 30 [20:34:49]RAPDU: 90 00 [20:34:49]wFMCommunicate OK [20:34:49]SAM_PROTO_ClearQueue done [20:34:49]KKMCreateOFDPacket [20:34:49]OFDProtocolAddRootSTLVToBuf [20:34:49]FM_MakeSignedData [20:34:49]FM_MakeSignedData [20:34:49]SAM_PROTO_SignData [20:34:49]wFMCommunicate request_size=4 [20:34:49]MH_SAM_APDU [20:34:49]CAPDU: 80 0D 01 02 [20:34:49]Write to MH i2c: E2 08 00 36 87 80 0D 01 02 00 00 00 00 36 [20:34:49]Write i2c OK [20:34:49]MH_I2C_Read... [20:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:49]Read from MH i2c: E2 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: E2 03 00 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: E2 03 00 36 87 00 90 00 31 [20:34:49]RAPDU: 90 00 [20:34:49]wFMCommunicate OK [20:34:49]wFMCommunicate request_size=255 [20:34:49]MH_SAM_APDU [20:34:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 02 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0C 00 00 00 00 07 04 06 00 F8 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 8E 00 00 00 F4 03 04 00 7D 5D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 72 C0 00 00 35 04 06 00 AD [20:34:49]Write to MH i2c: E2 02 01 37 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 02 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0C 00 00 00 00 07 04 06 00 F8 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 8E 00 00 00 F4 03 04 00 7D 5D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 72 C0 00 00 35 04 06 00 AD 00 00 CF [20:34:49]Write i2c OK [20:34:49]MH_I2C_Read... [20:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:50]Read from MH i2c: E2 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 03 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 03 00 37 87 00 90 00 32 [20:34:50]RAPDU: 90 00 [20:34:50]wFMCommunicate OK [20:34:50]wFMCommunicate request_size=10 [20:34:50]MH_SAM_APDU [20:34:50]CAPDU: 80 0D 02 02 05 02 D8 ED F6 07 [20:34:50]Write to MH i2c: E2 0D 00 38 87 80 0D 02 02 05 00 02 D8 ED F6 07 00 00 07 [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:50]Read from MH i2c: E2 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 03 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 03 00 38 87 00 90 00 33 [20:34:50]RAPDU: 90 00 [20:34:50]wFMCommunicate OK [20:34:50]wFMCommunicate request_size=4 [20:34:50]MH_SAM_APDU [20:34:50]CAPDU: 80 0D 03 02 [20:34:50]Write to MH i2c: E2 08 00 39 87 80 0D 03 02 00 00 00 00 3B [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:50]Read from MH i2c: E2 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 0B 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 0B 00 39 87 00 ED 0D 67 90 3B 38 6D 04 90 00 11 [20:34:50]RAPDU: ED 0D 67 90 3B 38 6D 04 90 00 [20:34:50]wFMCommunicate OK [20:34:50]SAM_PROTO_SignData done [20:34:50]FM_MakeSignedData done [20:34:50]CreateOFDProtocolMessage [20:34:50]wFMCommunicate request_size=4 [20:34:50]MH_SAM_APDU [20:34:50]CAPDU: 80 11 00 00 [20:34:50]Write to MH i2c: E2 08 00 3A 87 80 11 00 00 00 00 00 00 3B [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:50]Read from MH i2c: E2 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 17 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 17 00 3A 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 88 [20:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:34:50]wFMCommunicate OK [20:34:50]CreateOFDProtocolMessage done [20:34:50]OFDSenderStorePacket 49266 [20:34:50]StoreOFDPacket docnum=49266 [20:34:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C9 9F 07 01 0C 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 02 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0C 00 00 00 00 07 04 06 00 F8 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 8E 00 00 00 F4 03 04 00 7D 5D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 72 C0 00 00 35 04 06 00 AD 02 D8 ED F6 07 ED 0D 67 90 3B 38 6D 04 [20:34:50]CheckFolder [20:34:50]dirname=/storage/ofd_packets [20:34:50]CheckFolder done [20:34:50]ProducePacketName [20:34:50]name=ofd_packets/00049266 [20:34:50]NVStorageSaveData ofd_packets/00049266 [20:34:50]File name is /storage/ofd_packets/00049266 [20:34:50]Write 301 bytes [20:34:50]NVStorageSaveData done [20:34:50]OFDSenderStorePacket done [20:34:50]KKMCreateOFDPacket done [20:34:50]NVStorageSaveData kkm_last_timestamp [20:34:50]File name is /storage/kkm_last_timestamp [20:34:50]Write 4 bytes [20:34:50]NVStorageSaveData done [20:34:50]ExternCall_PrintAddStr [20:34:50]wPrintStart [20:34:50]Write to MH i2c: 01 00 00 3B 87 C2 [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: 01 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: 01 07 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: 01 07 00 3B 87 00 00 00 00 00 FF 0F D7 [20:34:50]RasterBufferAndPrint [20:34:50]line Счет N : (1)216370 [20:34:50]line ИНН: 02508201610067 [20:34:50]line Контрольно-Кассовый Чек [20:34:50]line ПРОДАЖА [20:34:50]line ТРК (МРК, ГНК) : 12 [20:34:50]line Товар: 2710124130 [20:34:50]line Аи-92-К-5 [20:34:50]line 5.010 * 60.30 [20:34:50]line = 302.10 [20:34:50]line НДС 12% НСП 1% [20:34:50]line > о реализуемом товаре [20:34:50]line ОКРУГЛЕНИЕ: -0.10 [20:34:50]line ИТОГО: 302.00 [20:34:50]line Внесено: 302.00 [20:34:50]line СДАЧА: 0.00 [20:34:50]line НСП 1% : 2.67 [20:34:50]line НДС 12% : 32.08 [20:34:50]line Наличными: 302.00 [20:34:50]line Безнал.: 0.00 [20:34:50]line Место: АЗС № 102 "Партнер Нефть" [20:34:50]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [20:34:50]line СНО: Общий режим [20:34:50]line Чек 142 30.01.2024 20:35 [20:34:50]line Смена: 246 ФФД: 1.0 [20:34:50]line ЗНМ: 0300000040 [20:34:50]line РНМ: 0000000000092723 [20:34:50]line Версия ККМ: 001 [20:34:50]line ФМ: 0000000000875060 [20:34:50]line ФД: 49266 [20:34:50]line ФПД: 190227741013511 [20:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T203509&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49266&fm=190227741013511&tin=02508201610067®Number=0000000000092723&sum=30200 [20:34:50]OFD Sender: Processing packet 49266 [packets to send 12, broken 11] [20:34:50]ProducePacketName [20:34:50]name=ofd_packets/00049266 [20:34:50]OFD Sender: To server: pG, [20:34:50]CommunicateWithHost lk.salyk.kg:30040 [20:34:50]ConnectInit lk.salyk.kg [20:34:50]written 0, free lines is 4095 [20:34:50]Connected sock=10 [20:34: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 36 30 0F 01 00 00 C9 9F 07 01 0C 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 02 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0C 00 00 00 00 07 04 06 00 F8 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 8E 00 00 00 F4 03 04 00 7D 5D B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 72 C0 00 00 35 04 06 00 AD 02 D8 ED F6 07 ED 0D 67 90 3B 38 6D 04 [20:34: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 36 30 4F 00 00 00 0D D3 47 00 9F 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 36 30 10 04 04 00 72 C0 00 00 F4 03 04 00 71 09 B9 65 B6 04 01 00 00 72 99 75 FD 82 C9 AE DC [20:34:50]CommunicateWithHost err = 0 [20:34:50]CheckOFDResponse [20:34:50]1017 (14) - 77093643461234 [20:34:50]1041 (16) - 0000000000875060 [20:34:50]1040 (4) - 49266 [20:34:50]1012 (4) - 30.01.2024 14:36 [20:34:50]1206 (1) - 0 [20:34:50]OFD Sender: Remove packet 49266 [20:34:50]ProducePacketName [20:34:50]name=ofd_packets/00049266 [20:34:50]NVStorageDeleteData [20:34:51]Write to MH i2c: 01 00 00 66 87 ED [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 07 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 07 00 66 87 00 00 00 00 00 EF 0C EF [20:34:51]RasterBufferAndPrint [20:34:51]line [20:34:51]line [20:34:51]line [20:34:51]line [20:34:51]line [20:34:51]written 0, free lines is 3317 [20:34:51]MH_Cut [20:34:51]Write to MH i2c: D1 01 00 6D 87 01 C6 [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: D1 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: D1 01 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: D1 01 00 6D 87 00 C5 [20:34:51]Write to MH i2c: 01 00 00 6E 87 F5 [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]OFD Sender: No OFD packet to send [20:34:51]*** Cut start [20:34:51]*** Partial cut [20:34:51]*** CUTSNS_PIN = 1 [20:34:51]*** CUTSNS_PIN = 0 [20:34:52]*** Brake cut motor [20:34:52]Read from MH i2c: 01 [20:34:52]MH_I2C_Read... [20:34:52]*** Stop cut motor [20:34:52]*** Cut end [20:34:52]Read from MH i2c: 01 07 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 07 00 6E 87 00 00 00 00 00 FF 0F 0A [20:34:52]process_action close_receipt done [20:34:52]requested_data is exist [20:34:52]produce_requested_data [20:34:52]requested_item fm.sn is exist - process it [20:34:52]wFMCommunicate request_size=4 [20:34:52]MH_SAM_APDU [20:34:52]CAPDU: 80 11 00 00 [20:34:52]Write to MH i2c: E2 08 00 6F 87 80 11 00 00 00 00 00 00 70 [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:52]Read from MH i2c: E2 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 17 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 17 00 6F 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BD [20:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:34:52]wFMCommunicate OK [20:34:52]requested_item fd.num is exist - process it [20:34:52]SAM_PROTO_GetFieldsCounters [20:34:52]wFMCommunicate request_size=4 [20:34:52]MH_SAM_APDU [20:34:52]CAPDU: 80 13 00 00 [20:34:52]Write to MH i2c: E2 08 00 70 87 80 13 00 00 00 00 00 00 73 [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:52]Read from MH i2c: E2 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 62 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 62 00 70 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 72 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [20:34: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 72 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:52]wFMCommunicate OK [20:34:52]SAM_PROTO_GetFieldsCounters done [20:34:52]requested_item shift.num is exist - process it [20:34:52]requested_item shift.opened is exist - process it [20:34:52]req_shift_opened [20:34:52]FM_GetShiftState [20:34:52]SAM_PROTO_GetShiftState [20:34:52]wFMCommunicate request_size=4 [20:34:52]MH_SAM_APDU [20:34:52]CAPDU: 80 13 01 00 [20:34:52]Write to MH i2c: E2 08 00 71 87 80 13 01 00 00 00 00 00 75 [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:52]Read from MH i2c: E2 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 0E 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 0E 00 71 87 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 9D [20:34:52]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [20:34:52]wFMCommunicate OK [20:34:52]SAM_PROTO_GetShiftState done [20:34:52]FM_GetShiftState done [20:34:52]req_shift_opened done [20:34:52]requested_item shift.open_date is exist - process it [20:34:52]req_shift_open_date [20:34:52]req_shift_open_date done [20:34:52]produce_requested_data done [20:34:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49266,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [20:34:52]process_action_free close_receipt [20:34:52]json_value_free [20:34:52]json_value_free done [20:34:52]process_json_proto returns [20:34:52]Send response to host [20:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49266,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [20:34:52]free response buf [20:34:52]execute_script done [20:34:52]execute_script returns [20:34:52]free content buf [20:34:52]Sock 9.Close socket [20:34:52]Sock 9.Thread stoped [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]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:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]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:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:12:59]int [21:12:59]Write to MH i2c: 01 00 00 72 87 F9 [21:12:59]*** FLAG_PRN_KEY set [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 07 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 07 00 72 87 00 08 00 00 00 FF 0F 16 [21:12:59]state=0 [21:12:59]Key pressed [21:12:59]Feed [21:12:59]Write to MH i2c: D8 00 00 73 87 D1 [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: D8 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: D8 01 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: D8 01 00 73 87 00 D2 [21:12:59]int [21:12:59]Write to MH i2c: 01 00 00 74 87 FB [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 07 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 07 00 74 87 00 48 00 00 00 3C 00 86 [21:12:59]state=2 [21:12:59]Key pressed [21:12:59]int [21:12:59]Write to MH i2c: 01 00 00 75 87 FC [21:12:59]*** FLAG_PRN_KEY reset [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 07 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 07 00 75 87 00 00 00 00 00 FD 0F 0F [21:12:59]state=2 [21:12:59]Stop feed [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]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:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]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:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:28]accept exits with 7 [22:18:28]New connection [22:18:28]New thread 3066813796 created [22:18:28]Thread 3066670436 joined [22:18:28]Waiting for new connection... [22:18:28] Sock 7.Parse request [22:18:28]Sock 7.Check first char [22:18:28]Sock 7.First char is OK [22:18:28]request: POST /json_proto HTTP/1.0 [22:18:28]Method: POST [22:18:28]URL: /json_proto [22:18:28]Method is POST - this is cgi request [22:18:28]url: /json_proto [22:18:28]query_string will be loaded in cgi processing [22:18:28]execute_cgi json_proto POST (null) [22:18:28]execute_cgi path=json_proto method=POST [22:18:28]POST find Content-Length [22:18:28]Host: 172.17.56.67:8080 [22:18:28]Content-Length: 677 [22:18:28]Content-Type: application/json [22:18:28] [22:18:28]POST finish read [22:18:28]Found Content-Length = 677 [22:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:28]execute_script... [22:18:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:28]POST & json_proto [22:18:28]process_json_proto [22:18:28]json parsed OK: [22:18:28]protocol is kg_v1.0 [22:18:28]action value=close_receipt [22:18:28]process_action close_receipt [22:18:28]cmd_close_receipt [22:18:28]MH_GetDate [22:18:28]Write to MH i2c: F0 00 00 76 87 EC [22:18:28]Write i2c OK [22:18:28]MH_I2C_Read... [22:18:28]Read from MH i2c: F0 [22:18:28]MH_I2C_Read... [22:18:28]Read from MH i2c: F0 09 00 [22:18:28]MH_I2C_Read... [22:18:28]Read from MH i2c: F0 09 00 76 87 00 C8 75 B9 65 26 5D 9E 65 D6 [22:18:28]GetLastDocTimeStamp 1706646909 [22:18:28]current date 1706653128 [22:18:28]FM_GetShiftState [22:18:28]SAM_PROTO_GetShiftState [22:18:28]wFMCommunicate request_size=4 [22:18:28]MH_SAM_APDU [22:18:28]CAPDU: 80 13 01 00 [22:18:28]Write to MH i2c: E2 08 00 77 87 80 13 01 00 00 00 00 00 7B [22:18:28]Write i2c OK [22:18:28]MH_I2C_Read... [22:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:28]Read from MH i2c: E2 [22:18:28]MH_I2C_Read... [22:18:28]Read from MH i2c: E2 0E 00 [22:18:28]MH_I2C_Read... [22:18:28]Read from MH i2c: E2 0E 00 77 87 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 A3 [22:18:28]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:18:28]wFMCommunicate OK [22:18:28]SAM_PROTO_GetShiftState done [22:18:28]FM_GetShiftState done [22:18:28]opened in 1706572995 [22:18:28]opened+sec_in_day 1706659395 [22:18:28]quantity*price = 20019 [22:18:28]sum+1 = 20021 [22:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 143 30.01.2024 22:18 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49267 ФПД: 52934843289914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T221848&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49267&fm=52934843289914&tin=02508201610067®Number=0000000000092723&sum=20000 [22:18:29]StoreToDocumentArchive [22:18:29]shift 246 fd 49267 [22:18:29]save to /storage/0246/doc_00049267 [22:18:29]save last doc name /storage/0246/doc_00049267 to /storage/kkm_last_doc_name [22:18:29]save OK [22:18:29]Clear old archive folders... [22:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:29]tlvbuf is 011CFE60 [22:18:29]SAM_PROTO_ClearQueue [22:18:29]wFMCommunicate request_size=4 [22:18:29]MH_SAM_APDU [22:18:29]CAPDU: 80 09 00 00 [22:18:29]Write to MH i2c: E2 08 00 84 87 80 09 00 00 00 00 00 00 7D [22:18:29]Write i2c OK [22:18:29]MH_I2C_Read... [22:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:29]Read from MH i2c: E2 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 03 00 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 03 00 84 87 00 90 00 7F [22:18:29]RAPDU: 90 00 [22:18:29]wFMCommunicate OK [22:18:29]SAM_PROTO_ClearQueue done [22:18:29]KKMCreateOFDPacket [22:18:29]OFDProtocolAddRootSTLVToBuf [22:18:29]FM_MakeSignedData [22:18:29]FM_MakeSignedData [22:18:29]SAM_PROTO_SignData [22:18:29]wFMCommunicate request_size=4 [22:18:29]MH_SAM_APDU [22:18:29]CAPDU: 80 0D 01 02 [22:18:29]Write to MH i2c: E2 08 00 85 87 80 0D 01 02 00 00 00 00 85 [22:18:29]Write i2c OK [22:18:29]MH_I2C_Read... [22:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:29]Read from MH i2c: E2 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 03 00 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 03 00 85 87 00 90 00 80 [22:18:29]RAPDU: 90 00 [22:18:29]wFMCommunicate OK [22:18:29]wFMCommunicate request_size=255 [22:18:29]MH_SAM_APDU [22:18:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 C8 75 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 73 C0 00 00 35 04 06 00 30 [22:18:29]Write to MH i2c: E2 02 01 86 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 C8 75 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 73 C0 00 00 35 04 06 00 30 00 00 D8 [22:18:29]Write i2c OK [22:18:29]MH_I2C_Read... [22:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:29]Read from MH i2c: E2 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 03 00 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 03 00 86 87 00 90 00 81 [22:18:29]RAPDU: 90 00 [22:18:29]wFMCommunicate OK [22:18:29]wFMCommunicate request_size=10 [22:18:29]MH_SAM_APDU [22:18:29]CAPDU: 80 0D 02 02 05 24 DA 87 D1 3A [22:18:29]Write to MH i2c: E2 0D 00 87 87 80 0D 02 02 05 00 24 DA 87 D1 3A 00 00 22 [22:18:29]Write i2c OK [22:18:29]MH_I2C_Read... [22:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:29]Read from MH i2c: E2 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 03 00 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 03 00 87 87 00 90 00 82 [22:18:29]RAPDU: 90 00 [22:18:29]wFMCommunicate OK [22:18:29]wFMCommunicate request_size=4 [22:18:29]MH_SAM_APDU [22:18:29]CAPDU: 80 0D 03 02 [22:18:29]Write to MH i2c: E2 08 00 88 87 80 0D 03 02 00 00 00 00 8A [22:18:29]Write i2c OK [22:18:29]MH_I2C_Read... [22:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:29]Read from MH i2c: E2 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 0B 00 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 0B 00 88 87 00 B6 13 3A C2 F2 BE 73 A2 90 00 15 [22:18:29]RAPDU: B6 13 3A C2 F2 BE 73 A2 90 00 [22:18:29]wFMCommunicate OK [22:18:29]SAM_PROTO_SignData done [22:18:29]FM_MakeSignedData done [22:18:29]CreateOFDProtocolMessage [22:18:29]wFMCommunicate request_size=4 [22:18:29]MH_SAM_APDU [22:18:29]CAPDU: 80 11 00 00 [22:18:29]Write to MH i2c: E2 08 00 89 87 80 11 00 00 00 00 00 00 8A [22:18:29]Write i2c OK [22:18:29]MH_I2C_Read... [22:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:29]Read from MH i2c: E2 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 17 00 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: E2 17 00 89 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D7 [22:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:18:29]wFMCommunicate OK [22:18:29]CreateOFDProtocolMessage done [22:18:29]OFDSenderStorePacket 49267 [22:18:29]StoreOFDPacket docnum=49267 [22:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 10 B6 07 01 4C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 C8 75 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 73 C0 00 00 35 04 06 00 30 24 DA 87 D1 3A B6 13 3A C2 F2 BE 73 A2 [22:18:29]CheckFolder [22:18:29]dirname=/storage/ofd_packets [22:18:29]CheckFolder done [22:18:29]ProducePacketName [22:18:29]name=ofd_packets/00049267 [22:18:29]NVStorageSaveData ofd_packets/00049267 [22:18:29]File name is /storage/ofd_packets/00049267 [22:18:29]Write 301 bytes [22:18:29]NVStorageSaveData done [22:18:29]OFDSenderStorePacket done [22:18:29]KKMCreateOFDPacket done [22:18:29]NVStorageSaveData kkm_last_timestamp [22:18:29]File name is /storage/kkm_last_timestamp [22:18:29]Write 4 bytes [22:18:29]NVStorageSaveData done [22:18:29]ExternCall_PrintAddStr [22:18:29]wPrintStart [22:18:29]Write to MH i2c: 01 00 00 8A 87 11 [22:18:29]Write i2c OK [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: 01 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: 01 07 00 [22:18:29]MH_I2C_Read... [22:18:29]Read from MH i2c: 01 07 00 8A 87 00 00 00 00 00 FF 0F 26 [22:18:29]RasterBufferAndPrint [22:18:29]line Счет N : (1)216371 [22:18:29]line ИНН: 02508201610067 [22:18:29]line Контрольно-Кассовый Чек [22:18:29]line ПРОДАЖА [22:18:29]line ТРК (МРК, ГНК) : 12 [22:18:29]line Товар: 2710124130 [22:18:29]line Аи-92-К-5 [22:18:29]line 3.320 * 60.30 [22:18:29]line = 200.20 [22:18:29]line НДС 12% НСП 1% [22:18:29]line > о реализуемом товаре [22:18:29]line ОКРУГЛЕНИЕ: -0.20 [22:18:29]line ИТОГО: 200.00 [22:18:29]line Внесено: 200.00 [22:18:29]line СДАЧА: 0.00 [22:18:29]line НСП 1% : 1.77 [22:18:29]line НДС 12% : 21.26 [22:18:29]line Наличными: 200.00 [22:18:29]line Безнал.: 0.00 [22:18:29]line Место: АЗС № 102 "Партнер Нефть" [22:18:29]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [22:18:29]line СНО: Общий режим [22:18:29]line Чек 143 30.01.2024 22:18 [22:18:29]line Смена: 246 ФФД: 1.0 [22:18:29]line ЗНМ: 0300000040 [22:18:29]line РНМ: 0000000000092723 [22:18:29]line Версия ККМ: 001 [22:18:29]line ФМ: 0000000000875060 [22:18:29]line ФД: 49267 [22:18:29]line ФПД: 52934843289914 [22:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T221848&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49267&fm=52934843289914&tin=02508201610067®Number=0000000000092723&sum=20000 [22:18:29]written 0, free lines is 4095 [22:18:29]OFD Sender: Processing packet 49267 [packets to send 12, broken 11] [22:18:29]ProducePacketName [22:18:29]name=ofd_packets/00049267 [22:18:29]OFD Sender: To server: pG, [22:18:29]CommunicateWithHost lk.salyk.kg:30040 [22:18:29]ConnectInit lk.salyk.kg [22:18:29]Connected sock=11 [22:18:29]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 36 30 0F 01 00 00 10 B6 07 01 4C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 C8 75 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 73 C0 00 00 35 04 06 00 30 24 DA 87 D1 3A B6 13 3A C2 F2 BE 73 A2 [22:18: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 36 30 4F 00 00 00 61 B3 47 00 6B 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 36 30 10 04 04 00 73 C0 00 00 F4 03 04 00 BC 21 B9 65 B6 04 01 00 00 E7 BE 21 45 27 E1 C3 0B [22:18:30]CommunicateWithHost err = 0 [22:18:30]CheckOFDResponse [22:18:30]1017 (14) - 77093643461234 [22:18:30]1041 (16) - 0000000000875060 [22:18:30]1040 (4) - 49267 [22:18:30]1012 (4) - 30.01.2024 16:20 [22:18:30]1206 (1) - 0 [22:18:30]OFD Sender: Remove packet 49267 [22:18:30]ProducePacketName [22:18:30]name=ofd_packets/00049267 [22:18:30]NVStorageDeleteData [22:18:30]Write to MH i2c: 01 00 00 B5 87 3C [22:18:30]Write i2c OK [22:18:30]MH_I2C_Read... [22:18:30]Read from MH i2c: 01 [22:18:30]MH_I2C_Read... [22:18:30]Read from MH i2c: 01 07 00 [22:18:30]MH_I2C_Read... [22:18:30]Read from MH i2c: 01 07 00 B5 87 00 00 00 00 00 F5 0C 44 [22:18:30]RasterBufferAndPrint [22:18:30]line [22:18:30]line [22:18:30]line [22:18:30]line [22:18:30]line [22:18:30]written 0, free lines is 3323 [22:18:30]MH_Cut [22:18:30]Write to MH i2c: D1 01 00 BC 87 01 15 [22:18:30]Write i2c OK [22:18:30]MH_I2C_Read... [22:18:30]Read from MH i2c: D1 [22:18:30]MH_I2C_Read... [22:18:30]Read from MH i2c: D1 01 00 [22:18:30]MH_I2C_Read... [22:18:30]Read from MH i2c: D1 01 00 BC 87 00 14 [22:18:30]Write to MH i2c: 01 00 00 BD 87 44 [22:18:30]Write i2c OK [22:18:30]MH_I2C_Read... [22:18:30]OFD Sender: No OFD packet to send [22:18:30]*** Cut start [22:18:30]*** Partial cut [22:18:30]*** CUTSNS_PIN = 1 [22:18:30]*** CUTSNS_PIN = 0 [22:18:31]*** Brake cut motor [22:18:31]Read from MH i2c: 01 [22:18:31]MH_I2C_Read... [22:18:31]*** Stop cut motor [22:18:31]*** Cut end [22:18:31]Read from MH i2c: 01 07 00 [22:18:31]MH_I2C_Read... [22:18:31]Read from MH i2c: 01 07 00 BD 87 00 00 00 00 00 FF 0F 59 [22:18:31]process_action close_receipt done [22:18:31]requested_data is exist [22:18:31]produce_requested_data [22:18:31]requested_item fm.sn is exist - process it [22:18:31]wFMCommunicate request_size=4 [22:18:31]MH_SAM_APDU [22:18:31]CAPDU: 80 11 00 00 [22:18:31]Write to MH i2c: E2 08 00 BE 87 80 11 00 00 00 00 00 00 BF [22:18:31]Write i2c OK [22:18:31]MH_I2C_Read... [22:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:31]Read from MH i2c: E2 [22:18:31]MH_I2C_Read... [22:18:31]Read from MH i2c: E2 17 00 [22:18:31]MH_I2C_Read... [22:18:31]Read from MH i2c: E2 17 00 BE 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0C [22:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:18:31]wFMCommunicate OK [22:18:31]requested_item fd.num is exist - process it [22:18:31]SAM_PROTO_GetFieldsCounters [22:18:31]wFMCommunicate request_size=4 [22:18:31]MH_SAM_APDU [22:18:31]CAPDU: 80 13 00 00 [22:18:31]Write to MH i2c: E2 08 00 BF 87 80 13 00 00 00 00 00 00 C2 [22:18:31]Write i2c OK [22:18:31]MH_I2C_Read... [22:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:31]Read from MH i2c: E2 [22:18:31]MH_I2C_Read... [22:18:31]Read from MH i2c: E2 62 00 [22:18:31]MH_I2C_Read... [22:18:31]Read from MH i2c: E2 62 00 BF 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 73 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [22:18: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 73 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:31]wFMCommunicate OK [22:18:31]SAM_PROTO_GetFieldsCounters done [22:18:31]requested_item shift.num is exist - process it [22:18:31]requested_item shift.opened is exist - process it [22:18:31]req_shift_opened [22:18:31]FM_GetShiftState [22:18:31]SAM_PROTO_GetShiftState [22:18:31]wFMCommunicate request_size=4 [22:18:31]MH_SAM_APDU [22:18:31]CAPDU: 80 13 01 00 [22:18:31]Write to MH i2c: E2 08 00 C0 87 80 13 01 00 00 00 00 00 C4 [22:18:31]Write i2c OK [22:18:31]MH_I2C_Read... [22:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:31]Read from MH i2c: E2 [22:18:31]MH_I2C_Read... [22:18:31]Read from MH i2c: E2 0E 00 [22:18:31]MH_I2C_Read... [22:18:31]Read from MH i2c: E2 0E 00 C0 87 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 EC [22:18:31]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:18:31]wFMCommunicate OK [22:18:31]SAM_PROTO_GetShiftState done [22:18:31]FM_GetShiftState done [22:18:31]req_shift_opened done [22:18:31]requested_item shift.open_date is exist - process it [22:18:31]req_shift_open_date [22:18:31]req_shift_open_date done [22:18:31]produce_requested_data done [22:18:31]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49267,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [22:18:31]process_action_free close_receipt [22:18:31]json_value_free [22:18:31]json_value_free done [22:18:31]process_json_proto returns [22:18:31]Send response to host [22:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49267,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [22:18:31]free response buf [22:18:31]execute_script done [22:18:31]execute_script returns [22:18:31]free content buf [22:18:31]Sock 7.Close socket [22:18:31]Sock 7.Thread stoped [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:46]accept exits with 9 [22:21:46]New connection [22:21:46]New thread 3066670436 created [22:21:46]Thread 3066813796 joined [22:21:46]Waiting for new connection... [22:21:46] Sock 9.Parse request [22:21:46]Sock 9.Check first char [22:21:46]Sock 9.First char is OK [22:21:46]request: POST /json_proto HTTP/1.0 [22:21:46]Method: POST [22:21:46]URL: /json_proto [22:21:46]Method is POST - this is cgi request [22:21:46]url: /json_proto [22:21:46]query_string will be loaded in cgi processing [22:21:46]execute_cgi json_proto POST (null) [22:21:46]execute_cgi path=json_proto method=POST [22:21:46]POST find Content-Length [22:21:46]Host: 172.17.56.67:8080 [22:21:46]Content-Length: 677 [22:21:46]Content-Type: application/json [22:21:46] [22:21:46]POST finish read [22:21:46]Found Content-Length = 677 [22:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:46]execute_script... [22:21:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:46]POST & json_proto [22:21:46]process_json_proto [22:21:46]json parsed OK: [22:21:46]protocol is kg_v1.0 [22:21:46]action value=close_receipt [22:21:46]process_action close_receipt [22:21:46]cmd_close_receipt [22:21:46]MH_GetDate [22:21:46]Write to MH i2c: F0 00 00 C1 87 37 [22:21:46]Write i2c OK [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: F0 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: F0 09 00 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: F0 09 00 C1 87 00 8F 76 B9 65 26 5D 9E 65 E9 [22:21:46]GetLastDocTimeStamp 1706653128 [22:21:46]current date 1706653327 [22:21:46]FM_GetShiftState [22:21:46]SAM_PROTO_GetShiftState [22:21:46]wFMCommunicate request_size=4 [22:21:46]MH_SAM_APDU [22:21:46]CAPDU: 80 13 01 00 [22:21:46]Write to MH i2c: E2 08 00 C2 87 80 13 01 00 00 00 00 00 C6 [22:21:46]Write i2c OK [22:21:46]MH_I2C_Read... [22:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:46]Read from MH i2c: E2 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: E2 0E 00 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: E2 0E 00 C2 87 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 EE [22:21:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:21:46]wFMCommunicate OK [22:21:46]SAM_PROTO_GetShiftState done [22:21:46]FM_GetShiftState done [22:21:46]opened in 1706572995 [22:21:46]opened+sec_in_day 1706659395 [22:21:46]quantity*price = 40039 [22:21:46]sum+1 = 40040 [22:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 144 30.01.2024 22:22 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49268 ФПД: 136923821268625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T222207&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49268&fm=136923821268625&tin=02508201610067®Number=0000000000092723&sum=40000 [22:21:47]StoreToDocumentArchive [22:21:47]shift 246 fd 49268 [22:21:47]save to /storage/0246/doc_00049268 [22:21:47]save last doc name /storage/0246/doc_00049268 to /storage/kkm_last_doc_name [22:21:47]save OK [22:21:47]Clear old archive folders... [22:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:47]tlvbuf is 011E6530 [22:21:47]SAM_PROTO_ClearQueue [22:21:47]wFMCommunicate request_size=4 [22:21:47]MH_SAM_APDU [22:21:47]CAPDU: 80 09 00 00 [22:21:47]Write to MH i2c: E2 08 00 CF 87 80 09 00 00 00 00 00 00 C8 [22:21:47]Write i2c OK [22:21:47]MH_I2C_Read... [22:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:47]Read from MH i2c: E2 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 03 00 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 03 00 CF 87 00 90 00 CA [22:21:47]RAPDU: 90 00 [22:21:47]wFMCommunicate OK [22:21:47]SAM_PROTO_ClearQueue done [22:21:47]KKMCreateOFDPacket [22:21:47]OFDProtocolAddRootSTLVToBuf [22:21:47]FM_MakeSignedData [22:21:47]FM_MakeSignedData [22:21:47]SAM_PROTO_SignData [22:21:47]wFMCommunicate request_size=4 [22:21:47]MH_SAM_APDU [22:21:47]CAPDU: 80 0D 01 02 [22:21:47]Write to MH i2c: E2 08 00 D0 87 80 0D 01 02 00 00 00 00 D0 [22:21:47]Write i2c OK [22:21:47]MH_I2C_Read... [22:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:47]Read from MH i2c: E2 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 03 00 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 03 00 D0 87 00 90 00 CB [22:21:47]RAPDU: 90 00 [22:21:47]wFMCommunicate OK [22:21:47]wFMCommunicate request_size=255 [22:21:47]MH_SAM_APDU [22:21:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 8F 76 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 74 C0 00 00 35 04 06 00 7C [22:21:47]Write to MH i2c: E2 02 01 D1 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 8F 76 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 74 C0 00 00 35 04 06 00 7C 00 00 A3 [22:21:47]Write i2c OK [22:21:47]MH_I2C_Read... [22:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:47]Read from MH i2c: E2 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 03 00 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 03 00 D1 87 00 90 00 CC [22:21:47]RAPDU: 90 00 [22:21:47]wFMCommunicate OK [22:21:47]wFMCommunicate request_size=10 [22:21:47]MH_SAM_APDU [22:21:47]CAPDU: 80 0D 02 02 05 88 0F BA 5E 91 [22:21:47]Write to MH i2c: E2 0D 00 D2 87 80 0D 02 02 05 00 88 0F BA 5E 91 00 00 1D [22:21:47]Write i2c OK [22:21:47]MH_I2C_Read... [22:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:47]Read from MH i2c: E2 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 03 00 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 03 00 D2 87 00 90 00 CD [22:21:47]RAPDU: 90 00 [22:21:47]wFMCommunicate OK [22:21:47]wFMCommunicate request_size=4 [22:21:47]MH_SAM_APDU [22:21:47]CAPDU: 80 0D 03 02 [22:21:47]Write to MH i2c: E2 08 00 D3 87 80 0D 03 02 00 00 00 00 D5 [22:21:47]Write i2c OK [22:21:47]MH_I2C_Read... [22:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:47]Read from MH i2c: E2 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 0B 00 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 0B 00 D3 87 00 96 5A 47 5F 72 00 64 F1 90 00 33 [22:21:47]RAPDU: 96 5A 47 5F 72 00 64 F1 90 00 [22:21:47]wFMCommunicate OK [22:21:47]SAM_PROTO_SignData done [22:21:47]FM_MakeSignedData done [22:21:47]CreateOFDProtocolMessage [22:21:47]wFMCommunicate request_size=4 [22:21:47]MH_SAM_APDU [22:21:47]CAPDU: 80 11 00 00 [22:21:47]Write to MH i2c: E2 08 00 D4 87 80 11 00 00 00 00 00 00 D5 [22:21:47]Write i2c OK [22:21:47]MH_I2C_Read... [22:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:47]Read from MH i2c: E2 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 17 00 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: E2 17 00 D4 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 22 [22:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:21:47]wFMCommunicate OK [22:21:47]CreateOFDProtocolMessage done [22:21:47]OFDSenderStorePacket 49268 [22:21:47]StoreOFDPacket docnum=49268 [22:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 63 14 07 01 48 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 8F 76 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 74 C0 00 00 35 04 06 00 7C 88 0F BA 5E 91 96 5A 47 5F 72 00 64 F1 [22:21:47]CheckFolder [22:21:47]dirname=/storage/ofd_packets [22:21:47]CheckFolder done [22:21:47]ProducePacketName [22:21:47]name=ofd_packets/00049268 [22:21:47]NVStorageSaveData ofd_packets/00049268 [22:21:47]File name is /storage/ofd_packets/00049268 [22:21:47]Write 301 bytes [22:21:47]NVStorageSaveData done [22:21:47]OFDSenderStorePacket done [22:21:47]KKMCreateOFDPacket done [22:21:47]NVStorageSaveData kkm_last_timestamp [22:21:47]File name is /storage/kkm_last_timestamp [22:21:47]Write 4 bytes [22:21:47]NVStorageSaveData done [22:21:47]ExternCall_PrintAddStr [22:21:47]wPrintStart [22:21:47]Write to MH i2c: 01 00 00 D5 87 5C [22:21:47]Write i2c OK [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: 01 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: 01 07 00 [22:21:47]MH_I2C_Read... [22:21:47]Read from MH i2c: 01 07 00 D5 87 00 00 00 00 00 FF 0F 71 [22:21:47]RasterBufferAndPrint [22:21:47]line Счет N : (1)216372 [22:21:47]line ИНН: 02508201610067 [22:21:47]line Контрольно-Кассовый Чек [22:21:47]line ПРОДАЖА [22:21:47]line ТРК (МРК, ГНК) : 12 [22:21:47]line Товар: 2710124130 [22:21:47]line Аи-92-К-5 [22:21:47]line 6.640 * 60.30 [22:21:47]line = 400.39 [22:21:47]line НДС 12% НСП 1% [22:21:47]line > о реализуемом товаре [22:21:47]line ОКРУГЛЕНИЕ: -0.39 [22:21:47]line ИТОГО: 400.00 [22:21:47]line Внесено: 400.00 [22:21:47]line СДАЧА: 0.00 [22:21:47]line НСП 1% : 3.54 [22:21:47]line НДС 12% : 42.52 [22:21:47]line Наличными: 400.00 [22:21:47]line Безнал.: 0.00 [22:21:47]line Место: АЗС № 102 "Партнер Нефть" [22:21:47]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [22:21:47]line СНО: Общий режим [22:21:47]line Чек 144 30.01.2024 22:22 [22:21:47]line Смена: 246 ФФД: 1.0 [22:21:47]line ЗНМ: 0300000040 [22:21:47]line РНМ: 0000000000092723 [22:21:47]line Версия ККМ: 001 [22:21:47]line ФМ: 0000000000875060 [22:21:47]line ФД: 49268 [22:21:47]line ФПД: 136923821268625 [22:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T222207&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49268&fm=136923821268625&tin=02508201610067®Number=0000000000092723&sum=40000 [22:21:48]OFD Sender: Processing packet 49268 [packets to send 12, broken 11] [22:21:48]ProducePacketName [22:21:48]name=ofd_packets/00049268 [22:21:48]OFD Sender: To server: pG, [22:21:48]CommunicateWithHost lk.salyk.kg:30040 [22:21:48]ConnectInit lk.salyk.kg [22:21:48]written 0, free lines is 4095 [22:21:48]Connected sock=10 [22:21: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 36 30 0F 01 00 00 63 14 07 01 48 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 8F 76 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 74 C0 00 00 35 04 06 00 7C 88 0F BA 5E 91 96 5A 47 5F 72 00 64 F1 [22:21: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 36 30 4F 00 00 00 33 7B 47 00 AB 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 36 30 10 04 04 00 74 C0 00 00 F4 03 04 00 83 22 B9 65 B6 04 01 00 00 02 FB AB 28 8A D7 AC 3C [22:21:48]CommunicateWithHost err = 0 [22:21:48]CheckOFDResponse [22:21:48]1017 (14) - 77093643461234 [22:21:48]1041 (16) - 0000000000875060 [22:21:48]1040 (4) - 49268 [22:21:48]1012 (4) - 30.01.2024 16:23 [22:21:48]1206 (1) - 0 [22:21:48]OFD Sender: Remove packet 49268 [22:21:48]ProducePacketName [22:21:48]name=ofd_packets/00049268 [22:21:48]NVStorageDeleteData [22:21:48]Write to MH i2c: 01 00 00 00 88 88 [22:21:48]Write i2c OK [22:21:48]MH_I2C_Read... [22:21:48]Read from MH i2c: 01 [22:21:48]MH_I2C_Read... [22:21:48]Read from MH i2c: 01 07 00 [22:21:48]MH_I2C_Read... [22:21:48]Read from MH i2c: 01 07 00 00 88 00 00 00 00 00 F0 0C 8B [22:21:48]RasterBufferAndPrint [22:21:48]line [22:21:48]line [22:21:48]line [22:21:48]line [22:21:48]line [22:21:48]written 0, free lines is 3318 [22:21:48]MH_Cut [22:21:48]Write to MH i2c: D1 01 00 07 88 01 61 [22:21:48]Write i2c OK [22:21:48]MH_I2C_Read... [22:21:48]Read from MH i2c: D1 [22:21:48]MH_I2C_Read... [22:21:48]Read from MH i2c: D1 01 00 [22:21:48]MH_I2C_Read... [22:21:48]Read from MH i2c: D1 01 00 07 88 00 60 [22:21:48]Write to MH i2c: 01 00 00 08 88 90 [22:21:48]Write i2c OK [22:21:48]MH_I2C_Read... [22:21:49]OFD Sender: No OFD packet to send [22:21:49]*** Cut start [22:21:49]*** Partial cut [22:21:49]*** CUTSNS_PIN = 1 [22:21:49]*** CUTSNS_PIN = 0 [22:21:49]*** Brake cut motor [22:21:49]Read from MH i2c: 01 [22:21:49]MH_I2C_Read... [22:21:49]*** Stop cut motor [22:21:49]Read from MH i2c: 01 07 00 [22:21:49]MH_I2C_Read... [22:21:49]*** Cut end [22:21:49]Read from MH i2c: 01 07 00 08 88 00 00 00 00 00 FF 0F A5 [22:21:49]process_action close_receipt done [22:21:49]requested_data is exist [22:21:49]produce_requested_data [22:21:49]requested_item fm.sn is exist - process it [22:21:49]wFMCommunicate request_size=4 [22:21:49]MH_SAM_APDU [22:21:49]CAPDU: 80 11 00 00 [22:21:49]Write to MH i2c: E2 08 00 09 88 80 11 00 00 00 00 00 00 0B [22:21:49]Write i2c OK [22:21:49]MH_I2C_Read... [22:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:50]Read from MH i2c: E2 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 17 00 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 17 00 09 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 58 [22:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:21:50]wFMCommunicate OK [22:21:50]requested_item fd.num is exist - process it [22:21:50]SAM_PROTO_GetFieldsCounters [22:21:50]wFMCommunicate request_size=4 [22:21:50]MH_SAM_APDU [22:21:50]CAPDU: 80 13 00 00 [22:21:50]Write to MH i2c: E2 08 00 0A 88 80 13 00 00 00 00 00 00 0E [22:21:50]Write i2c OK [22:21:50]MH_I2C_Read... [22:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:50]Read from MH i2c: E2 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 62 00 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 62 00 0A 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 74 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [22:21: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 74 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:50]wFMCommunicate OK [22:21:50]SAM_PROTO_GetFieldsCounters done [22:21:50]requested_item shift.num is exist - process it [22:21:50]requested_item shift.opened is exist - process it [22:21:50]req_shift_opened [22:21:50]FM_GetShiftState [22:21:50]SAM_PROTO_GetShiftState [22:21:50]wFMCommunicate request_size=4 [22:21:50]MH_SAM_APDU [22:21:50]CAPDU: 80 13 01 00 [22:21:50]Write to MH i2c: E2 08 00 0B 88 80 13 01 00 00 00 00 00 10 [22:21:50]Write i2c OK [22:21:50]MH_I2C_Read... [22:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:50]Read from MH i2c: E2 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 0E 00 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 0E 00 0B 88 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 38 [22:21:50]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:21:50]wFMCommunicate OK [22:21:50]SAM_PROTO_GetShiftState done [22:21:50]FM_GetShiftState done [22:21:50]req_shift_opened done [22:21:50]requested_item shift.open_date is exist - process it [22:21:50]req_shift_open_date [22:21:50]req_shift_open_date done [22:21:50]produce_requested_data done [22:21:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49268,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [22:21:50]process_action_free close_receipt [22:21:50]json_value_free [22:21:50]json_value_free done [22:21:50]process_json_proto returns [22:21:50]Send response to host [22:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49268,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [22:21:50]free response buf [22:21:50]execute_script done [22:21:50]execute_script returns [22:21:50]free content buf [22:21:50]Sock 9.Close socket [22:21:50]Sock 9.Thread stoped [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:12]accept exits with 7 [22:28:12]New connection [22:28:12]New thread 3066813796 created [22:28:12]Thread 3066670436 joined [22:28:12]Waiting for new connection... [22:28:12] Sock 7.Parse request [22:28:12]Sock 7.Check first char [22:28:12]Sock 7.First char is OK [22:28:12]request: POST /json_proto HTTP/1.0 [22:28:12]Method: POST [22:28:12]URL: /json_proto [22:28:12]Method is POST - this is cgi request [22:28:12]url: /json_proto [22:28:12]query_string will be loaded in cgi processing [22:28:12]execute_cgi json_proto POST (null) [22:28:12]execute_cgi path=json_proto method=POST [22:28:12]POST find Content-Length [22:28:12]Host: 172.17.56.67:8080 [22:28:12]Content-Length: 677 [22:28:12]Content-Type: application/json [22:28:12] [22:28:12]POST finish read [22:28:12]Found Content-Length = 677 [22:28:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:12]execute_script... [22:28:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:12]POST & json_proto [22:28:12]process_json_proto [22:28:12]json parsed OK: [22:28:12]protocol is kg_v1.0 [22:28:12]action value=close_receipt [22:28:12]process_action close_receipt [22:28:12]cmd_close_receipt [22:28:12]MH_GetDate [22:28:12]Write to MH i2c: F0 00 00 0C 88 83 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: F0 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: F0 09 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: F0 09 00 0C 88 00 11 78 B9 65 26 5D 9E 65 B9 [22:28:12]GetLastDocTimeStamp 1706653327 [22:28:12]current date 1706653713 [22:28:12]FM_GetShiftState [22:28:12]SAM_PROTO_GetShiftState [22:28:12]wFMCommunicate request_size=4 [22:28:12]MH_SAM_APDU [22:28:12]CAPDU: 80 13 01 00 [22:28:12]Write to MH i2c: E2 08 00 0D 88 80 13 01 00 00 00 00 00 12 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:12]Read from MH i2c: E2 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 0E 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 0E 00 0D 88 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3A [22:28:12]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:28:12]wFMCommunicate OK [22:28:12]SAM_PROTO_GetShiftState done [22:28:12]FM_GetShiftState done [22:28:12]opened in 1706572995 [22:28:12]opened+sec_in_day 1706659395 [22:28:12]quantity*price = 60058 [22:28:12]sum+1 = 60060 [22:28:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 145 30.01.2024 22:28 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49269 ФПД: 19598556165994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T222833&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49269&fm=19598556165994&tin=02508201610067®Number=0000000000092723&sum=60000 [22:28:13]StoreToDocumentArchive [22:28:13]shift 246 fd 49269 [22:28:13]save to /storage/0246/doc_00049269 [22:28:13]save last doc name /storage/0246/doc_00049269 to /storage/kkm_last_doc_name [22:28:13]save OK [22:28:13]Clear old archive folders... [22:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:13]tlvbuf is 011E5F60 [22:28:13]SAM_PROTO_ClearQueue [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 09 00 00 [22:28:13]Write to MH i2c: E2 08 00 1A 88 80 09 00 00 00 00 00 00 14 [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:13]Read from MH i2c: E2 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 03 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 03 00 1A 88 00 90 00 16 [22:28:13]RAPDU: 90 00 [22:28:13]wFMCommunicate OK [22:28:13]SAM_PROTO_ClearQueue done [22:28:13]KKMCreateOFDPacket [22:28:13]OFDProtocolAddRootSTLVToBuf [22:28:13]FM_MakeSignedData [22:28:13]FM_MakeSignedData [22:28:13]SAM_PROTO_SignData [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 0D 01 02 [22:28:13]Write to MH i2c: E2 08 00 1B 88 80 0D 01 02 00 00 00 00 1C [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:13]Read from MH i2c: E2 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 03 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 03 00 1B 88 00 90 00 17 [22:28:13]RAPDU: 90 00 [22:28:13]wFMCommunicate OK [22:28:13]wFMCommunicate request_size=255 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 11 78 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 75 C0 00 00 35 04 06 00 11 [22:28:13]Write to MH i2c: E2 02 01 1C 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 11 78 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 75 C0 00 00 35 04 06 00 11 00 00 75 [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 1C 88 00 90 00 18 [22:28:14]RAPDU: 90 00 [22:28:14]wFMCommunicate OK [22:28:14]wFMCommunicate request_size=10 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 0D 02 02 05 D3 24 FA 77 6A [22:28:14]Write to MH i2c: E2 0D 00 1D 88 80 0D 02 02 05 00 D3 24 FA 77 6A 00 00 FB [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 1D 88 00 90 00 19 [22:28:14]RAPDU: 90 00 [22:28:14]wFMCommunicate OK [22:28:14]wFMCommunicate request_size=4 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 0D 03 02 [22:28:14]Write to MH i2c: E2 08 00 1E 88 80 0D 03 02 00 00 00 00 21 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 0B 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 0B 00 1E 88 00 B0 20 25 29 1E 1F DF 14 90 00 70 [22:28:14]RAPDU: B0 20 25 29 1E 1F DF 14 90 00 [22:28:14]wFMCommunicate OK [22:28:14]SAM_PROTO_SignData done [22:28:14]FM_MakeSignedData done [22:28:14]CreateOFDProtocolMessage [22:28:14]wFMCommunicate request_size=4 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 11 00 00 [22:28:14]Write to MH i2c: E2 08 00 1F 88 80 11 00 00 00 00 00 00 21 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 17 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 17 00 1F 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6E [22:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:28:14]wFMCommunicate OK [22:28:14]CreateOFDProtocolMessage done [22:28:14]OFDSenderStorePacket 49269 [22:28:14]StoreOFDPacket docnum=49269 [22:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 2B A0 07 01 D3 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 11 78 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 75 C0 00 00 35 04 06 00 11 D3 24 FA 77 6A B0 20 25 29 1E 1F DF 14 [22:28:14]CheckFolder [22:28:14]dirname=/storage/ofd_packets [22:28:14]CheckFolder done [22:28:14]ProducePacketName [22:28:14]name=ofd_packets/00049269 [22:28:14]NVStorageSaveData ofd_packets/00049269 [22:28:14]File name is /storage/ofd_packets/00049269 [22:28:14]Write 301 bytes [22:28:14]NVStorageSaveData done [22:28:14]OFDSenderStorePacket done [22:28:14]KKMCreateOFDPacket done [22:28:14]NVStorageSaveData kkm_last_timestamp [22:28:14]File name is /storage/kkm_last_timestamp [22:28:14]Write 4 bytes [22:28:14]NVStorageSaveData done [22:28:14]ExternCall_PrintAddStr [22:28:14]wPrintStart [22:28:14]Write to MH i2c: 01 00 00 20 88 A8 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: 01 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: 01 07 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: 01 07 00 20 88 00 00 00 00 00 FF 0F BD [22:28:14]RasterBufferAndPrint [22:28:14]line Счет N : (1)216373 [22:28:14]line ИНН: 02508201610067 [22:28:14]line Контрольно-Кассовый Чек [22:28:14]line ПРОДАЖА [22:28:14]line ТРК (МРК, ГНК) : 12 [22:28:14]line Товар: 2710124130 [22:28:14]line Аи-92-К-5 [22:28:14]line 9.960 * 60.30 [22:28:14]line = 600.59 [22:28:14]line НДС 12% НСП 1% [22:28:14]line > о реализуемом товаре [22:28:14]line ОКРУГЛЕНИЕ: -0.59 [22:28:14]line ИТОГО: 600.00 [22:28:14]line Внесено: 600.00 [22:28:14]line СДАЧА: 0.00 [22:28:14]line НСП 1% : 5.31 [22:28:14]line НДС 12% : 63.78 [22:28:14]line Наличными: 600.00 [22:28:14]line Безнал.: 0.00 [22:28:14]line Место: АЗС № 102 "Партнер Нефть" [22:28:14]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [22:28:14]line СНО: Общий режим [22:28:14]line Чек 145 30.01.2024 22:28 [22:28:14]line Смена: 246 ФФД: 1.0 [22:28:14]line ЗНМ: 0300000040 [22:28:14]line РНМ: 0000000000092723 [22:28:14]line Версия ККМ: 001 [22:28:14]line ФМ: 0000000000875060 [22:28:14]line ФД: 49269 [22:28:14]line ФПД: 19598556165994 [22:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T222833&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49269&fm=19598556165994&tin=02508201610067®Number=0000000000092723&sum=60000 [22:28:14]OFD Sender: Processing packet 49269 [packets to send 12, broken 11] [22:28:14]ProducePacketName [22:28:14]name=ofd_packets/00049269 [22:28:14]OFD Sender: To server: pG, [22:28:14]CommunicateWithHost lk.salyk.kg:30040 [22:28:14]ConnectInit lk.salyk.kg [22:28:14]written 0, free lines is 4095 [22:28:14]Connected sock=10 [22:28: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 36 30 0F 01 00 00 2B A0 07 01 D3 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 11 78 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 75 C0 00 00 35 04 06 00 11 D3 24 FA 77 6A B0 20 25 29 1E 1F DF 14 [22:28: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 36 30 4F 00 00 00 D0 3B 47 00 4D 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 36 30 10 04 04 00 75 C0 00 00 F4 03 04 00 05 24 B9 65 B6 04 01 00 00 CA 33 38 89 15 E6 23 31 [22:28:14]CommunicateWithHost err = 0 [22:28:14]CheckOFDResponse [22:28:14]1017 (14) - 77093643461234 [22:28:14]1041 (16) - 0000000000875060 [22:28:14]1040 (4) - 49269 [22:28:14]1012 (4) - 30.01.2024 16:29 [22:28:14]1206 (1) - 0 [22:28:14]OFD Sender: Remove packet 49269 [22:28:14]ProducePacketName [22:28:14]name=ofd_packets/00049269 [22:28:14]NVStorageDeleteData [22:28:15]Write to MH i2c: 01 00 00 4B 88 D3 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 07 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 07 00 4B 88 00 00 00 00 00 FA 0C E0 [22:28:15]RasterBufferAndPrint [22:28:15]line [22:28:15]line [22:28:15]line [22:28:15]line [22:28:15]line [22:28:15]written 0, free lines is 3328 [22:28:15]MH_Cut [22:28:15]Write to MH i2c: D1 01 00 52 88 01 AC [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: D1 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: D1 01 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: D1 01 00 52 88 00 AB [22:28:15]Write to MH i2c: 01 00 00 53 88 DB [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]OFD Sender: No OFD packet to send [22:28:15]*** Cut start [22:28:15]*** Partial cut [22:28:15]*** CUTSNS_PIN = 1 [22:28:15]*** CUTSNS_PIN = 0 [22:28:15]*** Brake cut motor [22:28:16]Read from MH i2c: 01 [22:28:16]MH_I2C_Read... [22:28:16]*** Stop cut motor [22:28:16]*** Cut end [22:28:16]Read from MH i2c: 01 07 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: 01 07 00 53 88 00 00 00 00 00 FF 0F F0 [22:28:16]process_action close_receipt done [22:28:16]requested_data is exist [22:28:16]produce_requested_data [22:28:16]requested_item fm.sn is exist - process it [22:28:16]wFMCommunicate request_size=4 [22:28:16]MH_SAM_APDU [22:28:16]CAPDU: 80 11 00 00 [22:28:16]Write to MH i2c: E2 08 00 54 88 80 11 00 00 00 00 00 00 56 [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:16]Read from MH i2c: E2 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: E2 17 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: E2 17 00 54 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A3 [22:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:28:16]wFMCommunicate OK [22:28:16]requested_item fd.num is exist - process it [22:28:16]SAM_PROTO_GetFieldsCounters [22:28:16]wFMCommunicate request_size=4 [22:28:16]MH_SAM_APDU [22:28:16]CAPDU: 80 13 00 00 [22:28:16]Write to MH i2c: E2 08 00 55 88 80 13 00 00 00 00 00 00 59 [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:16]Read from MH i2c: E2 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: E2 62 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: E2 62 00 55 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 75 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [22: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 75 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:16]wFMCommunicate OK [22:28:16]SAM_PROTO_GetFieldsCounters done [22:28:16]requested_item shift.num is exist - process it [22:28:16]requested_item shift.opened is exist - process it [22:28:16]req_shift_opened [22:28:16]FM_GetShiftState [22:28:16]SAM_PROTO_GetShiftState [22:28:16]wFMCommunicate request_size=4 [22:28:16]MH_SAM_APDU [22:28:16]CAPDU: 80 13 01 00 [22:28:16]Write to MH i2c: E2 08 00 56 88 80 13 01 00 00 00 00 00 5B [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:16]Read from MH i2c: E2 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: E2 0E 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: E2 0E 00 56 88 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 83 [22:28:16]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:28:16]wFMCommunicate OK [22:28:16]SAM_PROTO_GetShiftState done [22:28:16]FM_GetShiftState done [22:28:16]req_shift_opened done [22:28:16]requested_item shift.open_date is exist - process it [22:28:16]req_shift_open_date [22:28:16]req_shift_open_date done [22:28:16]produce_requested_data done [22:28:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49269,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [22:28:16]process_action_free close_receipt [22:28:16]json_value_free [22:28:16]json_value_free done [22:28:16]process_json_proto returns [22:28:16]Send response to host [22:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49269,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [22:28:16]free response buf [22:28:16]execute_script done [22:28:16]execute_script returns [22:28:16]free content buf [22:28:16]Sock 7.Close socket [22:28:16]Sock 7.Thread stoped [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: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:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:45]accept exits with 9 [22:45:45]New connection [22:45:45]New thread 3066670436 created [22:45:45]Thread 3066813796 joined [22:45:45]Waiting for new connection... [22:45:45] Sock 9.Parse request [22:45:45]Sock 9.Check first char [22:45:45]Sock 9.First char is OK [22:45:45]request: POST /json_proto HTTP/1.0 [22:45:45]Method: POST [22:45:45]URL: /json_proto [22:45:45]Method is POST - this is cgi request [22:45:45]url: /json_proto [22:45:45]query_string will be loaded in cgi processing [22:45:45]execute_cgi json_proto POST (null) [22:45:45]execute_cgi path=json_proto method=POST [22:45:45]POST find Content-Length [22:45:45]Host: 172.17.56.67:8080 [22:45:45]Content-Length: 679 [22:45:45]Content-Type: application/json [22:45:45] [22:45:45]POST finish read [22:45:45]Found Content-Length = 679 [22:45:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:45]execute_script... [22:45:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:45]POST & json_proto [22:45:45]process_json_proto [22:45:45]json parsed OK: [22:45:45]protocol is kg_v1.0 [22:45:45]action value=close_receipt [22:45:45]process_action close_receipt [22:45:45]cmd_close_receipt [22:45:45]MH_GetDate [22:45:45]Write to MH i2c: F0 00 00 57 88 CE [22:45:45]Write i2c OK [22:45:45]MH_I2C_Read... [22:45:45]Read from MH i2c: F0 [22:45:45]MH_I2C_Read... [22:45:45]Read from MH i2c: F0 09 00 [22:45:45]MH_I2C_Read... [22:45:45]Read from MH i2c: F0 09 00 57 88 00 2E 7C B9 65 26 5D 9E 65 25 [22:45:45]GetLastDocTimeStamp 1706653713 [22:45:45]current date 1706654766 [22:45:45]FM_GetShiftState [22:45:45]SAM_PROTO_GetShiftState [22:45:45]wFMCommunicate request_size=4 [22:45:45]MH_SAM_APDU [22:45:45]CAPDU: 80 13 01 00 [22:45:45]Write to MH i2c: E2 08 00 58 88 80 13 01 00 00 00 00 00 5D [22:45:45]Write i2c OK [22:45:45]MH_I2C_Read... [22:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:45]Read from MH i2c: E2 [22:45:45]MH_I2C_Read... [22:45:45]Read from MH i2c: E2 0E 00 [22:45:45]MH_I2C_Read... [22:45:45]Read from MH i2c: E2 0E 00 58 88 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 85 [22:45:45]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:45:45]wFMCommunicate OK [22:45:45]SAM_PROTO_GetShiftState done [22:45:45]FM_GetShiftState done [22:45:45]opened in 1706572995 [22:45:45]opened+sec_in_day 1706659395 [22:45:45]quantity*price = 100026 [22:45:45]sum+1 = 100028 [22:45:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 146 30.01.2024 22:46 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49270 ФПД: 246374858249096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T224606&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49270&fm=246374858249096&tin=02508201610067®Number=0000000000092723&sum=100000 [22:45:46]StoreToDocumentArchive [22:45:46]shift 246 fd 49270 [22:45:46]save to /storage/0246/doc_00049270 [22:45:46]save last doc name /storage/0246/doc_00049270 to /storage/kkm_last_doc_name [22:45:46]save OK [22:45:46]Clear old archive folders... [22:45:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:45:46]tlvbuf is 01210850 [22:45:46]SAM_PROTO_ClearQueue [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 09 00 00 [22:45:46]Write to MH i2c: E2 08 00 65 88 80 09 00 00 00 00 00 00 5F [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 65 88 00 90 00 61 [22:45:46]RAPDU: 90 00 [22:45:46]wFMCommunicate OK [22:45:46]SAM_PROTO_ClearQueue done [22:45:46]KKMCreateOFDPacket [22:45:46]OFDProtocolAddRootSTLVToBuf [22:45:46]FM_MakeSignedData [22:45:46]FM_MakeSignedData [22:45:46]SAM_PROTO_SignData [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 0D 01 02 [22:45:46]Write to MH i2c: E2 08 00 66 88 80 0D 01 02 00 00 00 00 67 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 66 88 00 90 00 62 [22:45:46]RAPDU: 90 00 [22:45:46]wFMCommunicate OK [22:45:46]wFMCommunicate request_size=255 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2E 7C B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 76 C0 00 00 35 04 06 00 E0 13 9D E8 [22:45:46]Write to MH i2c: E2 02 01 67 88 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2E 7C B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 76 C0 00 00 35 04 06 00 E0 13 9D E8 00 00 EF [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 67 88 00 90 00 63 [22:45:46]RAPDU: 90 00 [22:45:46]wFMCommunicate OK [22:45:46]wFMCommunicate request_size=7 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 0D 02 02 02 53 88 [22:45:46]Write to MH i2c: E2 0A 00 68 88 80 0D 02 02 02 00 53 88 00 00 49 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 68 88 00 90 00 64 [22:45:46]RAPDU: 90 00 [22:45:46]wFMCommunicate OK [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 0D 03 02 [22:45:46]Write to MH i2c: E2 08 00 69 88 80 0D 03 02 00 00 00 00 6C [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 0B 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 0B 00 69 88 00 39 E9 D6 F5 FE CB 33 98 90 00 EE [22:45:46]RAPDU: 39 E9 D6 F5 FE CB 33 98 90 00 [22:45:46]wFMCommunicate OK [22:45:46]SAM_PROTO_SignData done [22:45:46]FM_MakeSignedData done [22:45:46]CreateOFDProtocolMessage [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 11 00 00 [22:45:46]Write to MH i2c: E2 08 00 6A 88 80 11 00 00 00 00 00 00 6C [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 17 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 17 00 6A 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B9 [22:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:45:46]wFMCommunicate OK [22:45:46]CreateOFDProtocolMessage done [22:45:46]OFDSenderStorePacket 49270 [22:45:46]StoreOFDPacket docnum=49270 [22:45:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 C8 75 04 01 FC 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2E 7C B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 76 C0 00 00 35 04 06 00 E0 13 9D E8 53 88 39 E9 D6 F5 FE CB 33 98 [22:45:46]CheckFolder [22:45:46]dirname=/storage/ofd_packets [22:45:46]CheckFolder done [22:45:46]ProducePacketName [22:45:46]name=ofd_packets/00049270 [22:45:46]NVStorageSaveData ofd_packets/00049270 [22:45:46]File name is /storage/ofd_packets/00049270 [22:45:46]Write 298 bytes [22:45:46]NVStorageSaveData done [22:45:46]OFDSenderStorePacket done [22:45:46]KKMCreateOFDPacket done [22:45:46]NVStorageSaveData kkm_last_timestamp [22:45:46]File name is /storage/kkm_last_timestamp [22:45:46]Write 4 bytes [22:45:46]NVStorageSaveData done [22:45:46]ExternCall_PrintAddStr [22:45:46]wPrintStart [22:45:46]Write to MH i2c: 01 00 00 6B 88 F3 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: 01 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: 01 07 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: 01 07 00 6B 88 00 00 00 00 00 FF 0F 08 [22:45:46]RasterBufferAndPrint [22:45:46]line Счет N : (1)216374 [22:45:46]line ИНН: 02508201610067 [22:45:46]line Контрольно-Кассовый Чек [22:45:46]line ПРОДАЖА [22:45:46]line ТРК (МРК, ГНК) : 21 [22:45:46]line Товар: 2710194210 [22:45:46]line ДТ-К-5 [22:45:46]line 14.310 * 69.90 [22:45:46]line = 1000.27 [22:45:46]line НДС 12% НСП 1% [22:45:46]line > о реализуемом товаре [22:45:46]line ОКРУГЛЕНИЕ: -0.27 [22:45:46]line ИТОГО: 1000.00 [22:45:46]line Внесено: 1000.00 [22:45:46]line СДАЧА: 0.00 [22:45:46]line НСП 1% : 8.85 [22:45:46]line НДС 12% : 106.22 [22:45:46]line Наличными: 1000.00 [22:45:46]line Безнал.: 0.00 [22:45:46]line Место: АЗС № 102 "Партнер Нефть" [22:45:46]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [22:45:46]line СНО: Общий режим [22:45:46]line Чек 146 30.01.2024 22:46 [22:45:46]line Смена: 246 ФФД: 1.0 [22:45:46]line ЗНМ: 0300000040 [22:45:46]line РНМ: 0000000000092723 [22:45:46]line Версия ККМ: 001 [22:45:46]line ФМ: 0000000000875060 [22:45:46]line ФД: 49270 [22:45:46]line ФПД: 246374858249096 [22:45:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T224606&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49270&fm=246374858249096&tin=02508201610067®Number=0000000000092723&sum=100000 [22:45:47]OFD Sender: Processing packet 49270 [packets to send 12, broken 11] [22:45:47]ProducePacketName [22:45:47]name=ofd_packets/00049270 [22:45:47]OFD Sender: To server: pG, [22:45:47]CommunicateWithHost lk.salyk.kg:30040 [22:45:47]ConnectInit lk.salyk.kg [22:45:47]written 0, free lines is 4095 [22:45:47]Connected sock=11 [22:45:47]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 36 30 0C 01 00 00 C8 75 04 01 FC 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2E 7C B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 76 C0 00 00 35 04 06 00 E0 13 9D E8 53 88 39 E9 D6 F5 FE CB 33 98 [22:45:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 38 3E 47 00 F8 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 76 C0 00 00 F4 03 04 00 22 28 B9 65 B6 04 01 00 00 B4 50 E9 3A DD 2A DA 9C [22:45:47]CommunicateWithHost err = 0 [22:45:47]CheckOFDResponse [22:45:47]1017 (14) - 77093643461234 [22:45:47]1041 (16) - 0000000000875060 [22:45:47]1040 (4) - 49270 [22:45:47]1012 (4) - 30.01.2024 16:47 [22:45:47]1206 (1) - 0 [22:45:47]OFD Sender: Remove packet 49270 [22:45:47]ProducePacketName [22:45:47]name=ofd_packets/00049270 [22:45:47]NVStorageDeleteData [22:45:47]Write to MH i2c: 01 00 00 96 88 1E [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: 01 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: 01 07 00 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: 01 07 00 96 88 00 00 00 00 00 ED 0C 1E [22:45:47]RasterBufferAndPrint [22:45:47]line [22:45:47]line [22:45:47]line [22:45:47]line [22:45:47]line [22:45:47]written 0, free lines is 3315 [22:45:47]MH_Cut [22:45:47]Write to MH i2c: D1 01 00 9D 88 01 F7 [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: D1 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: D1 01 00 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: D1 01 00 9D 88 00 F6 [22:45:47]Write to MH i2c: 01 00 00 9E 88 26 [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]OFD Sender: No OFD packet to send [22:45:48]*** Cut start [22:45:48]*** Partial cut [22:45:48]*** CUTSNS_PIN = 1 [22:45:48]*** CUTSNS_PIN = 0 [22:45:48]*** Brake cut motor [22:45:48]Read from MH i2c: 01 [22:45:48]MH_I2C_Read... [22:45:48]*** Stop cut motor [22:45:48]*** Cut end [22:45:48]Read from MH i2c: 01 07 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: 01 07 00 9E 88 00 00 00 00 00 FF 0F 3B [22:45:48]process_action close_receipt done [22:45:48]requested_data is exist [22:45:48]produce_requested_data [22:45:48]requested_item fm.sn is exist - process it [22:45:48]wFMCommunicate request_size=4 [22:45:48]MH_SAM_APDU [22:45:48]CAPDU: 80 11 00 00 [22:45:48]Write to MH i2c: E2 08 00 9F 88 80 11 00 00 00 00 00 00 A1 [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:48]Read from MH i2c: E2 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 17 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 17 00 9F 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EE [22:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:45:48]wFMCommunicate OK [22:45:48]requested_item fd.num is exist - process it [22:45:48]SAM_PROTO_GetFieldsCounters [22:45:48]wFMCommunicate request_size=4 [22:45:48]MH_SAM_APDU [22:45:48]CAPDU: 80 13 00 00 [22:45:48]Write to MH i2c: E2 08 00 A0 88 80 13 00 00 00 00 00 00 A4 [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 62 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 62 00 A0 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 76 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [22:45: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 76 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:49]wFMCommunicate OK [22:45:49]SAM_PROTO_GetFieldsCounters done [22:45:49]requested_item shift.num is exist - process it [22:45:49]requested_item shift.opened is exist - process it [22:45:49]req_shift_opened [22:45:49]FM_GetShiftState [22:45:49]SAM_PROTO_GetShiftState [22:45:49]wFMCommunicate request_size=4 [22:45:49]MH_SAM_APDU [22:45:49]CAPDU: 80 13 01 00 [22:45:49]Write to MH i2c: E2 08 00 A1 88 80 13 01 00 00 00 00 00 A6 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 0E 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 0E 00 A1 88 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 CE [22:45:49]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:45:49]wFMCommunicate OK [22:45:49]SAM_PROTO_GetShiftState done [22:45:49]FM_GetShiftState done [22:45:49]req_shift_opened done [22:45:49]requested_item shift.open_date is exist - process it [22:45:49]req_shift_open_date [22:45:49]req_shift_open_date done [22:45:49]produce_requested_data done [22:45:49]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49270,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [22:45:49]process_action_free close_receipt [22:45:49]json_value_free [22:45:49]json_value_free done [22:45:49]process_json_proto returns [22:45:49]Send response to host [22:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49270,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [22:45:49]free response buf [22:45:49]execute_script done [22:45:49]execute_script returns [22:45:49]free content buf [22:45:49]Sock 9.Close socket [22:45:49]Sock 9.Thread stoped [22:45:52]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:12]accept exits with 7 [22:55:12]New connection [22:55:12]New thread 3066813796 created [22:55:12]Thread 3066670436 joined [22:55:12]Waiting for new connection... [22:55:12] Sock 7.Parse request [22:55:12]Sock 7.Check first char [22:55:12]Sock 7.First char is OK [22:55:12]request: POST /json_proto HTTP/1.0 [22:55:12]Method: POST [22:55:12]URL: /json_proto [22:55:12]Method is POST - this is cgi request [22:55:12]url: /json_proto [22:55:12]query_string will be loaded in cgi processing [22:55:12]execute_cgi json_proto POST (null) [22:55:12]execute_cgi path=json_proto method=POST [22:55:12]POST find Content-Length [22:55:12]Host: 172.17.56.67:8080 [22:55:12]Content-Length: 675 [22:55:12]Content-Type: application/json [22:55:12] [22:55:12]POST finish read [22:55:12]Found Content-Length = 675 [22:55:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:12]execute_script... [22:55:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:12]POST & json_proto [22:55:12]process_json_proto [22:55:12]json parsed OK: [22:55:12]protocol is kg_v1.0 [22:55:12]action value=close_receipt [22:55:12]process_action close_receipt [22:55:12]cmd_close_receipt [22:55:12]MH_GetDate [22:55:12]Write to MH i2c: F0 00 00 A2 88 19 [22:55:12]Write i2c OK [22:55:12]MH_I2C_Read... [22:55:12]Read from MH i2c: F0 [22:55:12]MH_I2C_Read... [22:55:12]Read from MH i2c: F0 09 00 [22:55:12]MH_I2C_Read... [22:55:12]Read from MH i2c: F0 09 00 A2 88 00 65 7E B9 65 26 5D 9E 65 A9 [22:55:12]GetLastDocTimeStamp 1706654766 [22:55:12]current date 1706655333 [22:55:12]FM_GetShiftState [22:55:12]SAM_PROTO_GetShiftState [22:55:12]wFMCommunicate request_size=4 [22:55:12]MH_SAM_APDU [22:55:12]CAPDU: 80 13 01 00 [22:55:12]Write to MH i2c: E2 08 00 A3 88 80 13 01 00 00 00 00 00 A8 [22:55:12]Write i2c OK [22:55:12]MH_I2C_Read... [22:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:12]Read from MH i2c: E2 [22:55:12]MH_I2C_Read... [22:55:12]Read from MH i2c: E2 0E 00 [22:55:12]MH_I2C_Read... [22:55:12]Read from MH i2c: E2 0E 00 A3 88 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D0 [22:55:12]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:55:12]wFMCommunicate OK [22:55:12]SAM_PROTO_GetShiftState done [22:55:12]FM_GetShiftState done [22:55:12]opened in 1706572995 [22:55:12]opened+sec_in_day 1706659395 [22:55:12]quantity*price = 70039 [22:55:12]sum+1 = 70041 [22:55:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 147 30.01.2024 22:55 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49271 ФПД: 127401990717787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T225533&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49271&fm=127401990717787&tin=02508201610067®Number=0000000000092723&sum=70000 [22:55:13]StoreToDocumentArchive [22:55:13]shift 246 fd 49271 [22:55:13]save to /storage/0246/doc_00049271 [22:55:13]save last doc name /storage/0246/doc_00049271 to /storage/kkm_last_doc_name [22:55:13]save OK [22:55:13]Clear old archive folders... [22:55:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:55:13]tlvbuf is 01384B50 [22:55:13]SAM_PROTO_ClearQueue [22:55:13]wFMCommunicate request_size=4 [22:55:13]MH_SAM_APDU [22:55:13]CAPDU: 80 09 00 00 [22:55:13]Write to MH i2c: E2 08 00 B0 88 80 09 00 00 00 00 00 00 AA [22:55:13]Write i2c OK [22:55:13]MH_I2C_Read... [22:55:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:13]Read from MH i2c: E2 [22:55:13]MH_I2C_Read... [22:55:13]Read from MH i2c: E2 03 00 [22:55:13]MH_I2C_Read... [22:55:13]Read from MH i2c: E2 03 00 B0 88 00 90 00 AC [22:55:13]RAPDU: 90 00 [22:55:13]wFMCommunicate OK [22:55:13]SAM_PROTO_ClearQueue done [22:55:13]KKMCreateOFDPacket [22:55:13]OFDProtocolAddRootSTLVToBuf [22:55:13]FM_MakeSignedData [22:55:13]FM_MakeSignedData [22:55:13]SAM_PROTO_SignData [22:55:13]wFMCommunicate request_size=4 [22:55:13]MH_SAM_APDU [22:55:13]CAPDU: 80 0D 01 02 [22:55:13]Write to MH i2c: E2 08 00 B1 88 80 0D 01 02 00 00 00 00 B2 [22:55:13]Write i2c OK [22:55:13]MH_I2C_Read... [22:55:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:13]Read from MH i2c: E2 [22:55:13]MH_I2C_Read... [22:55:13]Read from MH i2c: E2 03 00 [22:55:13]MH_I2C_Read... [22:55:13]Read from MH i2c: E2 03 00 B1 88 00 90 00 AD [22:55:13]RAPDU: 90 00 [22:55:13]wFMCommunicate OK [22:55:13]wFMCommunicate request_size=255 [22:55:13]MH_SAM_APDU [22:55:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 65 7E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 77 C0 00 00 35 04 06 00 73 DF 16 66 [22:55:13]Write to MH i2c: E2 02 01 B2 88 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 65 7E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 77 C0 00 00 35 04 06 00 73 DF 16 66 00 00 91 [22:55:13]Write i2c OK [22:55:13]MH_I2C_Read... [22:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:14]Read from MH i2c: E2 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: E2 03 00 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: E2 03 00 B2 88 00 90 00 AE [22:55:14]RAPDU: 90 00 [22:55:14]wFMCommunicate OK [22:55:14]wFMCommunicate request_size=7 [22:55:14]MH_SAM_APDU [22:55:14]CAPDU: 80 0D 02 02 02 81 5B [22:55:14]Write to MH i2c: E2 0A 00 B3 88 80 0D 02 02 02 00 81 5B 00 00 95 [22:55:14]Write i2c OK [22:55:14]MH_I2C_Read... [22:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:14]Read from MH i2c: E2 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: E2 03 00 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: E2 03 00 B3 88 00 90 00 AF [22:55:14]RAPDU: 90 00 [22:55:14]wFMCommunicate OK [22:55:14]wFMCommunicate request_size=4 [22:55:14]MH_SAM_APDU [22:55:14]CAPDU: 80 0D 03 02 [22:55:14]Write to MH i2c: E2 08 00 B4 88 80 0D 03 02 00 00 00 00 B7 [22:55:14]Write i2c OK [22:55:14]MH_I2C_Read... [22:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:14]Read from MH i2c: E2 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: E2 0B 00 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: E2 0B 00 B4 88 00 0B F5 12 17 67 44 E1 4D 90 00 BA [22:55:14]RAPDU: 0B F5 12 17 67 44 E1 4D 90 00 [22:55:14]wFMCommunicate OK [22:55:14]SAM_PROTO_SignData done [22:55:14]FM_MakeSignedData done [22:55:14]CreateOFDProtocolMessage [22:55:14]wFMCommunicate request_size=4 [22:55:14]MH_SAM_APDU [22:55:14]CAPDU: 80 11 00 00 [22:55:14]Write to MH i2c: E2 08 00 B5 88 80 11 00 00 00 00 00 00 B7 [22:55:14]Write i2c OK [22:55:14]MH_I2C_Read... [22:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:14]Read from MH i2c: E2 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: E2 17 00 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: E2 17 00 B5 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 04 [22:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:55:14]wFMCommunicate OK [22:55:14]CreateOFDProtocolMessage done [22:55:14]OFDSenderStorePacket 49271 [22:55:14]StoreOFDPacket docnum=49271 [22:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 22 06 04 01 A1 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 65 7E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 77 C0 00 00 35 04 06 00 73 DF 16 66 81 5B 0B F5 12 17 67 44 E1 4D [22:55:14]CheckFolder [22:55:14]dirname=/storage/ofd_packets [22:55:14]CheckFolder done [22:55:14]ProducePacketName [22:55:14]name=ofd_packets/00049271 [22:55:14]NVStorageSaveData ofd_packets/00049271 [22:55:14]File name is /storage/ofd_packets/00049271 [22:55:14]Write 298 bytes [22:55:14]NVStorageSaveData done [22:55:14]OFDSenderStorePacket done [22:55:14]KKMCreateOFDPacket done [22:55:14]NVStorageSaveData kkm_last_timestamp [22:55:14]File name is /storage/kkm_last_timestamp [22:55:14]Write 4 bytes [22:55:14]NVStorageSaveData done [22:55:14]ExternCall_PrintAddStr [22:55:14]wPrintStart [22:55:14]Write to MH i2c: 01 00 00 B6 88 3E [22:55:14]Write i2c OK [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: 01 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: 01 07 00 [22:55:14]MH_I2C_Read... [22:55:14]Read from MH i2c: 01 07 00 B6 88 00 00 00 00 00 FF 0F 53 [22:55:14]RasterBufferAndPrint [22:55:14]line Счет N : (1)216375 [22:55:14]line ИНН: 02508201610067 [22:55:14]line Контрольно-Кассовый Чек [22:55:14]line ПРОДАЖА [22:55:14]line ТРК (МРК, ГНК) : 21 [22:55:14]line Товар: 2710194210 [22:55:14]line ДТ-К-5 [22:55:14]line 10.020 * 69.90 [22:55:14]line = 700.40 [22:55:14]line НДС 12% НСП 1% [22:55:14]line > о реализуемом товаре [22:55:14]line ОКРУГЛЕНИЕ: -0.40 [22:55:14]line ИТОГО: 700.00 [22:55:14]line Внесено: 700.00 [22:55:14]line СДАЧА: 0.00 [22:55:14]line НСП 1% : 6.20 [22:55:14]line НДС 12% : 74.38 [22:55:14]line Наличными: 700.00 [22:55:14]line Безнал.: 0.00 [22:55:14]line Место: АЗС № 102 "Партнер Нефть" [22:55:14]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [22:55:14]line СНО: Общий режим [22:55:14]line Чек 147 30.01.2024 22:55 [22:55:14]line Смена: 246 ФФД: 1.0 [22:55:14]line ЗНМ: 0300000040 [22:55:14]line РНМ: 0000000000092723 [22:55:14]line Версия ККМ: 001 [22:55:14]line ФМ: 0000000000875060 [22:55:14]line ФД: 49271 [22:55:14]line ФПД: 127401990717787 [22:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T225533&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49271&fm=127401990717787&tin=02508201610067®Number=0000000000092723&sum=70000 [22:55:14]OFD Sender: Processing packet 49271 [packets to send 12, broken 11] [22:55:14]ProducePacketName [22:55:14]name=ofd_packets/00049271 [22:55:14]OFD Sender: To server: pG, [22:55:14]CommunicateWithHost lk.salyk.kg:30040 [22:55:14]ConnectInit lk.salyk.kg [22:55:14]written 0, free lines is 4095 [22:55:14]Connected sock=10 [22:55: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 36 30 0C 01 00 00 22 06 04 01 A1 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 65 7E B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 77 C0 00 00 35 04 06 00 73 DF 16 66 81 5B 0B F5 12 17 67 44 E1 4D [22:55: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 36 30 4F 00 00 00 12 1D 47 00 34 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 36 30 10 04 04 00 77 C0 00 00 F4 03 04 00 59 2A B9 65 B6 04 01 00 00 19 58 7D 34 13 F4 27 A4 [22:55:14]CommunicateWithHost err = 0 [22:55:14]CheckOFDResponse [22:55:14]1017 (14) - 77093643461234 [22:55:14]1041 (16) - 0000000000875060 [22:55:14]1040 (4) - 49271 [22:55:14]1012 (4) - 30.01.2024 16:56 [22:55:14]1206 (1) - 0 [22:55:14]OFD Sender: Remove packet 49271 [22:55:14]ProducePacketName [22:55:14]name=ofd_packets/00049271 [22:55:14]NVStorageDeleteData [22:55:15]Write to MH i2c: 01 00 00 E1 88 69 [22:55:15]Write i2c OK [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: 01 [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: 01 07 00 [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: 01 07 00 E1 88 00 00 00 00 00 E4 0C 60 [22:55:15]RasterBufferAndPrint [22:55:15]line [22:55:15]line [22:55:15]line [22:55:15]line [22:55:15]line [22:55:15]written 0, free lines is 3306 [22:55:15]MH_Cut [22:55:15]Write to MH i2c: D1 01 00 E8 88 01 42 [22:55:15]Write i2c OK [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: D1 [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: D1 01 00 [22:55:15]MH_I2C_Read... [22:55:15]Read from MH i2c: D1 01 00 E8 88 00 41 [22:55:15]Write to MH i2c: 01 00 00 E9 88 71 [22:55:15]Write i2c OK [22:55:15]MH_I2C_Read... [22:55:15]OFD Sender: No OFD packet to send [22:55:15]*** Cut start [22:55:15]*** Partial cut [22:55:15]*** CUTSNS_PIN = 1 [22:55:15]*** CUTSNS_PIN = 0 [22:55:15]*** Brake cut motor [22:55:16]Read from MH i2c: 01 [22:55:16]MH_I2C_Read... [22:55:16]*** Stop cut motor [22:55:16]*** Cut end [22:55:16]Read from MH i2c: 01 07 00 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: 01 07 00 E9 88 00 00 00 00 00 FF 0F 86 [22:55:16]process_action close_receipt done [22:55:16]requested_data is exist [22:55:16]produce_requested_data [22:55:16]requested_item fm.sn is exist - process it [22:55:16]wFMCommunicate request_size=4 [22:55:16]MH_SAM_APDU [22:55:16]CAPDU: 80 11 00 00 [22:55:16]Write to MH i2c: E2 08 00 EA 88 80 11 00 00 00 00 00 00 EC [22:55:16]Write i2c OK [22:55:16]MH_I2C_Read... [22:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:16]Read from MH i2c: E2 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 17 00 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 17 00 EA 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 39 [22:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:55:16]wFMCommunicate OK [22:55:16]requested_item fd.num is exist - process it [22:55:16]SAM_PROTO_GetFieldsCounters [22:55:16]wFMCommunicate request_size=4 [22:55:16]MH_SAM_APDU [22:55:16]CAPDU: 80 13 00 00 [22:55:16]Write to MH i2c: E2 08 00 EB 88 80 13 00 00 00 00 00 00 EF [22:55:16]Write i2c OK [22:55:16]MH_I2C_Read... [22:55:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:16]Read from MH i2c: E2 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 62 00 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 62 00 EB 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 77 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [22:55: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 77 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:16]wFMCommunicate OK [22:55:16]SAM_PROTO_GetFieldsCounters done [22:55:16]requested_item shift.num is exist - process it [22:55:16]requested_item shift.opened is exist - process it [22:55:16]req_shift_opened [22:55:16]FM_GetShiftState [22:55:16]SAM_PROTO_GetShiftState [22:55:16]wFMCommunicate request_size=4 [22:55:16]MH_SAM_APDU [22:55:16]CAPDU: 80 13 01 00 [22:55:16]Write to MH i2c: E2 08 00 EC 88 80 13 01 00 00 00 00 00 F1 [22:55:16]Write i2c OK [22:55:16]MH_I2C_Read... [22:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:16]Read from MH i2c: E2 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 0E 00 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 0E 00 EC 88 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 19 [22:55:16]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [22:55:16]wFMCommunicate OK [22:55:16]SAM_PROTO_GetShiftState done [22:55:16]FM_GetShiftState done [22:55:16]req_shift_opened done [22:55:16]requested_item shift.open_date is exist - process it [22:55:16]req_shift_open_date [22:55:16]req_shift_open_date done [22:55:16]produce_requested_data done [22:55:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49271,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [22:55:16]process_action_free close_receipt [22:55:16]json_value_free [22:55:16]json_value_free done [22:55:16]process_json_proto returns [22:55:16]Send response to host [22:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49271,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [22:55:16]free response buf [22:55:16]execute_script done [22:55:16]execute_script returns [22:55:16]free content buf [22:55:16]Sock 7.Close socket [22:55:16]Sock 7.Thread stoped [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [23:37:46]accept exits with 9 [23:37:46]New connection [23:37:46]New thread 3066670436 created [23:37:46]Thread 3066813796 joined [23:37:46]Waiting for new connection... [23:37:46] Sock 9.Parse request [23:37:46]Sock 9.Check first char [23:37:46]Sock 9.First char is OK [23:37:46]request: POST /json_proto HTTP/1.0 [23:37:46]Method: POST [23:37:46]URL: /json_proto [23:37:46]Method is POST - this is cgi request [23:37:46]url: /json_proto [23:37:46]query_string will be loaded in cgi processing [23:37:46]execute_cgi json_proto POST (null) [23:37:46]execute_cgi path=json_proto method=POST [23:37:46]POST find Content-Length [23:37:46]Host: 172.17.56.67:8080 [23:37:46]Content-Length: 670 [23:37:46]Content-Type: application/json [23:37:46] [23:37:46]POST finish read [23:37:46]Found Content-Length = 670 [23:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 0.020, "sum" : 1.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:46]execute_script... [23:37:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 0.020, "sum" : 1.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:46]POST & json_proto [23:37:46]process_json_proto [23:37:46]json parsed OK: [23:37:46]protocol is kg_v1.0 [23:37:46]action value=close_receipt [23:37:46]process_action close_receipt [23:37:46]cmd_close_receipt [23:37:46]MH_GetDate [23:37:46]Write to MH i2c: F0 00 00 ED 88 64 [23:37:46]Write i2c OK [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: F0 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: F0 09 00 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: F0 09 00 ED 88 00 5F 88 B9 65 26 5D 9E 65 F8 [23:37:46]GetLastDocTimeStamp 1706655333 [23:37:46]current date 1706657887 [23:37:46]FM_GetShiftState [23:37:46]SAM_PROTO_GetShiftState [23:37:46]wFMCommunicate request_size=4 [23:37:46]MH_SAM_APDU [23:37:46]CAPDU: 80 13 01 00 [23:37:46]Write to MH i2c: E2 08 00 EE 88 80 13 01 00 00 00 00 00 F3 [23:37:46]Write i2c OK [23:37:46]MH_I2C_Read... [23:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:46]Read from MH i2c: E2 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: E2 0E 00 [23:37:46]MH_I2C_Read... [23:37:46]Read from MH i2c: E2 0E 00 EE 88 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 1B [23:37:46]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:37:46]wFMCommunicate OK [23:37:46]SAM_PROTO_GetShiftState done [23:37:46]FM_GetShiftState done [23:37:46]opened in 1706572995 [23:37:46]opened+sec_in_day 1706659395 [23:37:46]quantity*price = 120 [23:37:46]sum+1 = 122 [23:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1.00 Внесено: 65.00 СДАЧА: 64.00 НСП 1% : 0.01 НДС 12% : 0.13 Наличными: 1.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 148 30.01.2024 23:38 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49272 ФПД: 207865741355061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T233807&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49272&fm=207865741355061&tin=02508201610067®Number=0000000000092723&sum=100 [23:37:47]StoreToDocumentArchive [23:37:47]shift 246 fd 49272 [23:37:47]save to /storage/0246/doc_00049272 [23:37:47]save last doc name /storage/0246/doc_00049272 to /storage/kkm_last_doc_name [23:37:47]save OK [23:37:47]Clear old archive folders... [23:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:47]tlvbuf is 0146A8D0 [23:37:47]SAM_PROTO_ClearQueue [23:37:47]wFMCommunicate request_size=4 [23:37:47]MH_SAM_APDU [23:37:47]CAPDU: 80 09 00 00 [23:37:47]Write to MH i2c: E2 08 00 FB 88 80 09 00 00 00 00 00 00 F5 [23:37:47]Write i2c OK [23:37:47]MH_I2C_Read... [23:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:47]Read from MH i2c: E2 [23:37:47]MH_I2C_Read... [23:37:47]Read from MH i2c: E2 03 00 [23:37:47]MH_I2C_Read... [23:37:47]Read from MH i2c: E2 03 00 FB 88 00 90 00 F7 [23:37:47]RAPDU: 90 00 [23:37:47]wFMCommunicate OK [23:37:47]SAM_PROTO_ClearQueue done [23:37:47]KKMCreateOFDPacket [23:37:47]OFDProtocolAddRootSTLVToBuf [23:37:47]FM_MakeSignedData [23:37:47]FM_MakeSignedData [23:37:47]SAM_PROTO_SignData [23:37:47]wFMCommunicate request_size=4 [23:37:47]MH_SAM_APDU [23:37:47]CAPDU: 80 0D 01 02 [23:37:47]Write to MH i2c: E2 08 00 FC 88 80 0D 01 02 00 00 00 00 FD [23:37:47]Write i2c OK [23:37:47]MH_I2C_Read... [23:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:47]Read from MH i2c: E2 [23:37:47]MH_I2C_Read... [23:37:47]Read from MH i2c: E2 03 00 [23:37:47]MH_I2C_Read... [23:37:47]Read from MH i2c: E2 03 00 FC 88 00 90 00 F8 [23:37:47]RAPDU: 90 00 [23:37:47]wFMCommunicate OK [23:37:47]wFMCommunicate request_size=255 [23:37:47]MH_SAM_APDU [23:37:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 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 94 00 00 00 F4 03 04 00 5F 88 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 78 C0 00 00 35 04 06 00 BD [23:37:47]Write to MH i2c: E2 02 01 FD 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 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 94 00 00 00 F4 03 04 00 5F 88 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 78 C0 00 00 35 04 06 00 BD 00 00 8B [23:37:47]Write i2c OK [23:37:47]MH_I2C_Read... [23:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:47]Read from MH i2c: E2 [23:37:47]MH_I2C_Read... [23:37:47]Read from MH i2c: E2 03 00 [23:37:47]MH_I2C_Read... [23:37:47]Read from MH i2c: E2 03 00 FD 88 00 90 00 F9 [23:37:47]RAPDU: 90 00 [23:37:47]wFMCommunicate OK [23:37:47]wFMCommunicate request_size=10 [23:37:47]MH_SAM_APDU [23:37:47]CAPDU: 80 0D 02 02 05 0D 83 AC A8 35 [23:37:47]Write to MH i2c: E2 0D 00 FE 88 80 0D 02 02 05 00 0D 83 AC A8 35 00 00 23 [23:37:47]Write i2c OK [23:37:47]MH_I2C_Read... [23:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:48]Read from MH i2c: E2 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: E2 03 00 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: E2 03 00 FE 88 00 90 00 FA [23:37:48]RAPDU: 90 00 [23:37:48]wFMCommunicate OK [23:37:48]wFMCommunicate request_size=4 [23:37:48]MH_SAM_APDU [23:37:48]CAPDU: 80 0D 03 02 [23:37:48]Write to MH i2c: E2 08 00 FF 88 80 0D 03 02 00 00 00 00 02 [23:37:48]Write i2c OK [23:37:48]MH_I2C_Read... [23:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:48]Read from MH i2c: E2 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: E2 0B 00 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: E2 0B 00 FF 88 00 9B 96 DF 20 F8 41 10 D1 90 00 4D [23:37:48]RAPDU: 9B 96 DF 20 F8 41 10 D1 90 00 [23:37:48]wFMCommunicate OK [23:37:48]SAM_PROTO_SignData done [23:37:48]FM_MakeSignedData done [23:37:48]CreateOFDProtocolMessage [23:37:48]wFMCommunicate request_size=4 [23:37:48]MH_SAM_APDU [23:37:48]CAPDU: 80 11 00 00 [23:37:48]Write to MH i2c: E2 08 00 00 89 80 11 00 00 00 00 00 00 03 [23:37:48]Write i2c OK [23:37:48]MH_I2C_Read... [23:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:48]Read from MH i2c: E2 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: E2 17 00 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: E2 17 00 00 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 50 [23:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:37:48]wFMCommunicate OK [23:37:48]CreateOFDProtocolMessage done [23:37:48]OFDSenderStorePacket 49272 [23:37:48]StoreOFDPacket docnum=49272 [23:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 38 7A 07 01 19 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 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 94 00 00 00 F4 03 04 00 5F 88 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 78 C0 00 00 35 04 06 00 BD 0D 83 AC A8 35 9B 96 DF 20 F8 41 10 D1 [23:37:48]CheckFolder [23:37:48]dirname=/storage/ofd_packets [23:37:48]CheckFolder done [23:37:48]ProducePacketName [23:37:48]name=ofd_packets/00049272 [23:37:48]NVStorageSaveData ofd_packets/00049272 [23:37:48]File name is /storage/ofd_packets/00049272 [23:37:48]Write 301 bytes [23:37:48]NVStorageSaveData done [23:37:48]OFDSenderStorePacket done [23:37:48]KKMCreateOFDPacket done [23:37:48]NVStorageSaveData kkm_last_timestamp [23:37:48]File name is /storage/kkm_last_timestamp [23:37:48]Write 4 bytes [23:37:48]NVStorageSaveData done [23:37:48]ExternCall_PrintAddStr [23:37:48]wPrintStart [23:37:48]Write to MH i2c: 01 00 00 01 89 8A [23:37:48]Write i2c OK [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: 01 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: 01 07 00 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: 01 07 00 01 89 00 00 00 00 00 FF 0F 9F [23:37:48]RasterBufferAndPrint [23:37:48]line Счет N : (1)216376 [23:37:48]line ИНН: 02508201610067 [23:37:48]line Контрольно-Кассовый Чек [23:37:48]line ПРОДАЖА [23:37:48]line ТРК (МРК, ГНК) : 12 [23:37:48]line Товар: 2710124130 [23:37:48]line Аи-92-К-5 [23:37:48]line 0.020 * 60.30 [23:37:48]line = 1.21 [23:37:48]line НДС 12% НСП 1% [23:37:48]line > о реализуемом товаре [23:37:48]line ОКРУГЛЕНИЕ: -0.21 [23:37:48]line ИТОГО: 1.00 [23:37:48]line Внесено: 65.00 [23:37:48]line СДАЧА: 64.00 [23:37:48]line НСП 1% : 0.01 [23:37:48]line НДС 12% : 0.13 [23:37:48]line Наличными: 1.00 [23:37:48]line Безнал.: 0.00 [23:37:48]line Место: АЗС № 102 "Партнер Нефть" [23:37:48]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [23:37:48]line СНО: Общий режим [23:37:48]line Чек 148 30.01.2024 23:38 [23:37:48]line Смена: 246 ФФД: 1.0 [23:37:48]line ЗНМ: 0300000040 [23:37:48]line РНМ: 0000000000092723 [23:37:48]line Версия ККМ: 001 [23:37:48]line ФМ: 0000000000875060 [23:37:48]line ФД: 49272 [23:37:48]line ФПД: 207865741355061 [23:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T233807&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49272&fm=207865741355061&tin=02508201610067®Number=0000000000092723&sum=100 [23:37:48]OFD Sender: Processing packet 49272 [packets to send 12, broken 11] [23:37:48]ProducePacketName [23:37:48]name=ofd_packets/00049272 [23:37:48]OFD Sender: To server: pG, [23:37:48]CommunicateWithHost lk.salyk.kg:30040 [23:37:48]ConnectInit lk.salyk.kg [23:37:48]written 0, free lines is 4095 [23:37:48]Connected sock=10 [23:37: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 36 30 0F 01 00 00 38 7A 07 01 19 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 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 94 00 00 00 F4 03 04 00 5F 88 B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 78 C0 00 00 35 04 06 00 BD 0D 83 AC A8 35 9B 96 DF 20 F8 41 10 D1 [23:37: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 36 30 4F 00 00 00 40 91 47 00 08 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 36 30 10 04 04 00 78 C0 00 00 F4 03 04 00 53 34 B9 65 B6 04 01 00 00 FD 51 72 66 5A 9E BE C9 [23:37:48]CommunicateWithHost err = 0 [23:37:48]CheckOFDResponse [23:37:48]1017 (14) - 77093643461234 [23:37:48]1041 (16) - 0000000000875060 [23:37:48]1040 (4) - 49272 [23:37:48]1012 (4) - 30.01.2024 17:39 [23:37:48]1206 (1) - 0 [23:37:48]OFD Sender: Remove packet 49272 [23:37:48]ProducePacketName [23:37:48]name=ofd_packets/00049272 [23:37:48]NVStorageDeleteData [23:37:48]Write to MH i2c: 01 00 00 2C 89 B5 [23:37:48]Write i2c OK [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: 01 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: 01 07 00 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: 01 07 00 2C 89 00 00 00 00 00 EF 0C B7 [23:37:48]RasterBufferAndPrint [23:37:48]line [23:37:48]line [23:37:48]line [23:37:48]line [23:37:48]line [23:37:48]written 0, free lines is 3318 [23:37:48]MH_Cut [23:37:48]Write to MH i2c: D1 01 00 33 89 01 8E [23:37:48]Write i2c OK [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: D1 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: D1 01 00 [23:37:48]MH_I2C_Read... [23:37:48]Read from MH i2c: D1 01 00 33 89 00 8D [23:37:48]Write to MH i2c: 01 00 00 34 89 BD [23:37:48]Write i2c OK [23:37:48]MH_I2C_Read... [23:37:49]OFD Sender: No OFD packet to send [23:37:49]*** Cut start [23:37:49]*** Partial cut [23:37:49]*** CUTSNS_PIN = 1 [23:37:49]*** CUTSNS_PIN = 0 [23:37:49]*** Brake cut motor [23:37:50]Read from MH i2c: 01 [23:37:50]MH_I2C_Read... [23:37:50]*** Stop cut motor [23:37:50]*** Cut end [23:37:50]Read from MH i2c: 01 07 00 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: 01 07 00 34 89 00 00 00 00 00 FF 0F D2 [23:37:50]process_action close_receipt done [23:37:50]requested_data is exist [23:37:50]produce_requested_data [23:37:50]requested_item fm.sn is exist - process it [23:37:50]wFMCommunicate request_size=4 [23:37:50]MH_SAM_APDU [23:37:50]CAPDU: 80 11 00 00 [23:37:50]Write to MH i2c: E2 08 00 35 89 80 11 00 00 00 00 00 00 38 [23:37:50]Write i2c OK [23:37:50]MH_I2C_Read... [23:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:50]Read from MH i2c: E2 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: E2 17 00 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: E2 17 00 35 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 85 [23:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:37:50]wFMCommunicate OK [23:37:50]requested_item fd.num is exist - process it [23:37:50]SAM_PROTO_GetFieldsCounters [23:37:50]wFMCommunicate request_size=4 [23:37:50]MH_SAM_APDU [23:37:50]CAPDU: 80 13 00 00 [23:37:50]Write to MH i2c: E2 08 00 36 89 80 13 00 00 00 00 00 00 3B [23:37:50]Write i2c OK [23:37:50]MH_I2C_Read... [23:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:50]Read from MH i2c: E2 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: E2 62 00 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: E2 62 00 36 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 78 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [23:37: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 78 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:50]wFMCommunicate OK [23:37:50]SAM_PROTO_GetFieldsCounters done [23:37:50]requested_item shift.num is exist - process it [23:37:50]requested_item shift.opened is exist - process it [23:37:50]req_shift_opened [23:37:50]FM_GetShiftState [23:37:50]SAM_PROTO_GetShiftState [23:37:50]wFMCommunicate request_size=4 [23:37:50]MH_SAM_APDU [23:37:50]CAPDU: 80 13 01 00 [23:37:50]Write to MH i2c: E2 08 00 37 89 80 13 01 00 00 00 00 00 3D [23:37:50]Write i2c OK [23:37:50]MH_I2C_Read... [23:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:50]Read from MH i2c: E2 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: E2 0E 00 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: E2 0E 00 37 89 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 65 [23:37:50]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:37:50]wFMCommunicate OK [23:37:50]SAM_PROTO_GetShiftState done [23:37:50]FM_GetShiftState done [23:37:50]req_shift_opened done [23:37:50]requested_item shift.open_date is exist - process it [23:37:50]req_shift_open_date [23:37:50]req_shift_open_date done [23:37:50]produce_requested_data done [23:37:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49272,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [23:37:50]process_action_free close_receipt [23:37:50]json_value_free [23:37:50]json_value_free done [23:37:50]process_json_proto returns [23:37:50]Send response to host [23:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49272,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [23:37:50]free response buf [23:37:50]execute_script done [23:37:50]execute_script returns [23:37:50]free content buf [23:37:50]Sock 9.Close socket [23:37:50]Sock 9.Thread stoped [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:23]int [23:44:23]Write to MH i2c: 01 00 00 38 89 C1 [23:44:23]*** FLAG_PRN_KEY set [23:44:23]Write i2c OK [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 07 00 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 07 00 38 89 00 08 00 00 00 FF 0F DE [23:44:23]state=0 [23:44:23]Key pressed [23:44:23]Feed [23:44:23]Write to MH i2c: D8 00 00 39 89 99 [23:44:23]Write i2c OK [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: D8 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: D8 01 00 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: D8 01 00 39 89 00 9A [23:44:23]int [23:44:23]Write to MH i2c: 01 00 00 3A 89 C3 [23:44:23]Write i2c OK [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 07 00 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 07 00 3A 89 00 48 00 00 00 3C 00 4E [23:44:23]state=2 [23:44:23]Key pressed [23:44:23]int [23:44:23]Write to MH i2c: 01 00 00 3B 89 C4 [23:44:23]*** FLAG_PRN_KEY reset [23:44:23]Write i2c OK [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 07 00 [23:44:23]MH_I2C_Read... [23:44:23]Read from MH i2c: 01 07 00 3B 89 00 00 00 00 00 F6 0F D0 [23:44:23]state=2 [23:44:23]Stop feed [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:31]accept exits with 7 [23:47:31]New connection [23:47:31]New thread 3066813796 created [23:47:31]Thread 3066670436 joined [23:47:31]Waiting for new connection... [23:47:31] Sock 7.Parse request [23:47:31]Sock 7.Check first char [23:47:31]Sock 7.First char is OK [23:47:31]request: POST /json_proto HTTP/1.0 [23:47:31]Method: POST [23:47:31]URL: /json_proto [23:47:31]Method is POST - this is cgi request [23:47:31]url: /json_proto [23:47:31]query_string will be loaded in cgi processing [23:47:31]execute_cgi json_proto POST (null) [23:47:31]execute_cgi path=json_proto method=POST [23:47:31]POST find Content-Length [23:47:31]Host: 172.17.56.67:8080 [23:47:31]Content-Length: 670 [23:47:31]Content-Type: application/json [23:47:31] [23:47:31]POST finish read [23:47:31]Found Content-Length = 670 [23:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 0.010, "sum" : 0.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:31]execute_script... [23:47: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)216378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 0.010, "sum" : 0.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:31]POST & json_proto [23:47:31]process_json_proto [23:47:31]json parsed OK: [23:47:31]protocol is kg_v1.0 [23:47:31]action value=close_receipt [23:47:31]process_action close_receipt [23:47:31]cmd_close_receipt [23:47:31]MH_GetDate [23:47:31]Write to MH i2c: F0 00 00 3C 89 B4 [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: F0 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: F0 09 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: F0 09 00 3C 89 00 A8 8A B9 65 26 5D 9E 65 93 [23:47:31]GetLastDocTimeStamp 1706657887 [23:47:31]current date 1706658472 [23:47:31]FM_GetShiftState [23:47:31]SAM_PROTO_GetShiftState [23:47:31]wFMCommunicate request_size=4 [23:47:31]MH_SAM_APDU [23:47:31]CAPDU: 80 13 01 00 [23:47:31]Write to MH i2c: E2 08 00 3D 89 80 13 01 00 00 00 00 00 43 [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:31]Read from MH i2c: E2 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 0E 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 0E 00 3D 89 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 6B [23:47:31]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:47:31]wFMCommunicate OK [23:47:31]SAM_PROTO_GetShiftState done [23:47:31]FM_GetShiftState done [23:47:31]opened in 1706572995 [23:47:31]opened+sec_in_day 1706659395 [23:47:31]quantity*price = 60 [23:47:31]sum+1 = 61 [23:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 0.00 Внесено: 65.00 СДАЧА: 65.00 НСП 1% : 0.00 НДС 12% : 0.06 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 149 30.01.2024 23:47 Смена: 246 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49273 ФПД: 115720027800094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T234752&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49273&fm=115720027800094&tin=02508201610067®Number=0000000000092723&sum=0 [23:47:32]StoreToDocumentArchive [23:47:32]shift 246 fd 49273 [23:47:32]save to /storage/0246/doc_00049273 [23:47:32]save last doc name /storage/0246/doc_00049273 to /storage/kkm_last_doc_name [23:47:32]save OK [23:47:32]Clear old archive folders... [23:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:47:32]tlvbuf is 0146A2A0 [23:47:32]SAM_PROTO_ClearQueue [23:47:32]wFMCommunicate request_size=4 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 09 00 00 [23:47:32]Write to MH i2c: E2 08 00 4A 89 80 09 00 00 00 00 00 00 45 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 4A 89 00 90 00 47 [23:47:32]RAPDU: 90 00 [23:47:32]wFMCommunicate OK [23:47:32]SAM_PROTO_ClearQueue done [23:47:32]KKMCreateOFDPacket [23:47:32]OFDProtocolAddRootSTLVToBuf [23:47:32]FM_MakeSignedData [23:47:32]FM_MakeSignedData [23:47:32]SAM_PROTO_SignData [23:47:32]wFMCommunicate request_size=4 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 0D 01 02 [23:47:32]Write to MH i2c: E2 08 00 4B 89 80 0D 01 02 00 00 00 00 4D [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 4B 89 00 90 00 48 [23:47:32]RAPDU: 90 00 [23:47:32]wFMCommunicate OK [23:47:32]wFMCommunicate request_size=255 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3C 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 06 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 95 00 00 00 F4 03 04 00 A8 8A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 79 C0 00 00 35 04 06 00 69 [23:47:32]Write to MH i2c: E2 02 01 4C 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3C 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 06 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 95 00 00 00 F4 03 04 00 A8 8A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 79 C0 00 00 35 04 06 00 69 00 00 BD [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 4C 89 00 90 00 49 [23:47:32]RAPDU: 90 00 [23:47:32]wFMCommunicate OK [23:47:32]wFMCommunicate request_size=10 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 0D 02 02 05 3F 2B 26 82 1E [23:47:32]Write to MH i2c: E2 0D 00 4D 89 80 0D 02 02 05 00 3F 2B 26 82 1E 00 00 8A [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 4D 89 00 90 00 4A [23:47:32]RAPDU: 90 00 [23:47:32]wFMCommunicate OK [23:47:32]wFMCommunicate request_size=4 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 0D 03 02 [23:47:32]Write to MH i2c: E2 08 00 4E 89 80 0D 03 02 00 00 00 00 52 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 0B 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 0B 00 4E 89 00 B5 96 59 3C 8B 10 0C 8B 90 00 65 [23:47:32]RAPDU: B5 96 59 3C 8B 10 0C 8B 90 00 [23:47:32]wFMCommunicate OK [23:47:32]SAM_PROTO_SignData done [23:47:32]FM_MakeSignedData done [23:47:32]CreateOFDProtocolMessage [23:47:32]wFMCommunicate request_size=4 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 11 00 00 [23:47:32]Write to MH i2c: E2 08 00 4F 89 80 11 00 00 00 00 00 00 52 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 17 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 17 00 4F 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9F [23:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:47:32]wFMCommunicate OK [23:47:32]CreateOFDProtocolMessage done [23:47:32]OFDSenderStorePacket 49273 [23:47:32]StoreOFDPacket docnum=49273 [23:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3F 30 07 01 50 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 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3C 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 06 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 95 00 00 00 F4 03 04 00 A8 8A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 79 C0 00 00 35 04 06 00 69 3F 2B 26 82 1E B5 96 59 3C 8B 10 0C 8B [23:47:32]CheckFolder [23:47:32]dirname=/storage/ofd_packets [23:47:32]CheckFolder done [23:47:32]ProducePacketName [23:47:32]name=ofd_packets/00049273 [23:47:32]NVStorageSaveData ofd_packets/00049273 [23:47:32]File name is /storage/ofd_packets/00049273 [23:47:32]Write 301 bytes [23:47:32]NVStorageSaveData done [23:47:32]OFDSenderStorePacket done [23:47:32]KKMCreateOFDPacket done [23:47:32]NVStorageSaveData kkm_last_timestamp [23:47:32]File name is /storage/kkm_last_timestamp [23:47:32]Write 4 bytes [23:47:32]NVStorageSaveData done [23:47:32]ExternCall_PrintAddStr [23:47:32]wPrintStart [23:47:32]Write to MH i2c: 01 00 00 50 89 D9 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: 01 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: 01 07 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: 01 07 00 50 89 00 00 00 00 00 FF 0F EE [23:47:32]RasterBufferAndPrint [23:47:32]line Счет N : (1)216378 [23:47:32]line ИНН: 02508201610067 [23:47:32]line Контрольно-Кассовый Чек [23:47:32]line ПРОДАЖА [23:47:32]line ТРК (МРК, ГНК) : 12 [23:47:32]line Товар: 2710124130 [23:47:32]line Аи-92-К-5 [23:47:32]line 0.010 * 60.30 [23:47:32]line = 0.60 [23:47:32]line НДС 12% НСП 1% [23:47:32]line > о реализуемом товаре [23:47:32]line ОКРУГЛЕНИЕ: -0.60 [23:47:32]line ИТОГО: 0.00 [23:47:32]line Внесено: 65.00 [23:47:32]line СДАЧА: 65.00 [23:47:32]line НСП 1% : 0.00 [23:47:32]line НДС 12% : 0.06 [23:47:32]line Наличными: 0.00 [23:47:32]line Безнал.: 0.00 [23:47:32]line Место: АЗС № 102 "Партнер Нефть" [23:47:32]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [23:47:32]line СНО: Общий режим [23:47:32]line Чек 149 30.01.2024 23:47 [23:47:32]line Смена: 246 ФФД: 1.0 [23:47:32]line ЗНМ: 0300000040 [23:47:32]line РНМ: 0000000000092723 [23:47:32]line Версия ККМ: 001 [23:47:32]line ФМ: 0000000000875060 [23:47:32]line ФД: 49273 [23:47:32]line ФПД: 115720027800094 [23:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T234752&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49273&fm=115720027800094&tin=02508201610067®Number=0000000000092723&sum=0 [23:47:33]OFD Sender: Processing packet 49273 [packets to send 12, broken 11] [23:47:33]ProducePacketName [23:47:33]name=ofd_packets/00049273 [23:47:33]OFD Sender: To server: pG, [23:47:33]CommunicateWithHost lk.salyk.kg:30040 [23:47:33]ConnectInit lk.salyk.kg [23:47:33]written 0, free lines is 4095 [23:47:33]Connected sock=10 [23:47: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 36 30 0F 01 00 00 3F 30 07 01 50 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 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3C 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 06 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 95 00 00 00 F4 03 04 00 A8 8A B9 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 79 C0 00 00 35 04 06 00 69 3F 2B 26 82 1E B5 96 59 3C 8B 10 0C 8B [23:47: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 36 30 4F 00 00 00 8B BB 47 00 51 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 79 C0 00 00 F4 03 04 00 9C 36 B9 65 B6 04 01 00 00 02 13 35 C4 71 38 07 F2 [23:47:33]CommunicateWithHost err = 0 [23:47:33]CheckOFDResponse [23:47:33]1017 (14) - 77093643461234 [23:47:33]1041 (16) - 0000000000875060 [23:47:33]1040 (4) - 49273 [23:47:33]1012 (4) - 30.01.2024 17:49 [23:47:33]1206 (1) - 0 [23:47:33]OFD Sender: Remove packet 49273 [23:47:33]ProducePacketName [23:47:33]name=ofd_packets/00049273 [23:47:33]NVStorageDeleteData [23:47:33]Write to MH i2c: 01 00 00 7B 89 04 [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: 01 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: 01 07 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: 01 07 00 7B 89 00 00 00 00 00 09 0D 21 [23:47:33]RasterBufferAndPrint [23:47:33]line [23:47:33]line [23:47:33]line [23:47:33]line [23:47:33]line [23:47:33]written 0, free lines is 3347 [23:47:33]MH_Cut [23:47:33]Write to MH i2c: D1 01 00 82 89 01 DD [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: D1 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: D1 01 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: D1 01 00 82 89 00 DC [23:47:33]Write to MH i2c: 01 00 00 83 89 0C [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]OFD Sender: No OFD packet to send [23:47:34]*** Cut start [23:47:34]*** Partial cut [23:47:34]*** CUTSNS_PIN = 1 [23:47:34]*** CUTSNS_PIN = 0 [23:47:34]*** Brake cut motor [23:47:34]Read from MH i2c: 01 [23:47:34]MH_I2C_Read... [23:47:34]*** Stop cut motor [23:47:34]*** Cut end [23:47:34]Read from MH i2c: 01 07 00 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: 01 07 00 83 89 00 00 00 00 00 FF 0F 21 [23:47:34]process_action close_receipt done [23:47:34]requested_data is exist [23:47:34]produce_requested_data [23:47:34]requested_item fm.sn is exist - process it [23:47:34]wFMCommunicate request_size=4 [23:47:34]MH_SAM_APDU [23:47:34]CAPDU: 80 11 00 00 [23:47:34]Write to MH i2c: E2 08 00 84 89 80 11 00 00 00 00 00 00 87 [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:34]Read from MH i2c: E2 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: E2 17 00 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: E2 17 00 84 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D4 [23:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:47:34]wFMCommunicate OK [23:47:34]requested_item fd.num is exist - process it [23:47:34]SAM_PROTO_GetFieldsCounters [23:47:34]wFMCommunicate request_size=4 [23:47:34]MH_SAM_APDU [23:47:34]CAPDU: 80 13 00 00 [23:47:34]Write to MH i2c: E2 08 00 85 89 80 13 00 00 00 00 00 00 8A [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:34]Read from MH i2c: E2 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: E2 62 00 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: E2 62 00 85 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [23:47: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:34]wFMCommunicate OK [23:47:34]SAM_PROTO_GetFieldsCounters done [23:47:34]requested_item shift.num is exist - process it [23:47:34]requested_item shift.opened is exist - process it [23:47:34]req_shift_opened [23:47:34]FM_GetShiftState [23:47:34]SAM_PROTO_GetShiftState [23:47:34]wFMCommunicate request_size=4 [23:47:34]MH_SAM_APDU [23:47:34]CAPDU: 80 13 01 00 [23:47:34]Write to MH i2c: E2 08 00 86 89 80 13 01 00 00 00 00 00 8C [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:35]Read from MH i2c: E2 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 0E 00 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 0E 00 86 89 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 B4 [23:47:35]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:47:35]wFMCommunicate OK [23:47:35]SAM_PROTO_GetShiftState done [23:47:35]FM_GetShiftState done [23:47:35]req_shift_opened done [23:47:35]requested_item shift.open_date is exist - process it [23:47:35]req_shift_open_date [23:47:35]req_shift_open_date done [23:47:35]produce_requested_data done [23:47:35]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49273,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [23:47:35]process_action_free close_receipt [23:47:35]json_value_free [23:47:35]json_value_free done [23:47:35]process_json_proto returns [23:47:35]Send response to host [23:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49273,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [23:47:35]free response buf [23:47:35]execute_script done [23:47:35]execute_script returns [23:47:35]free content buf [23:47:35]Sock 7.Close socket [23:47:35]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:34]int [23:50:34]Write to MH i2c: 01 00 00 87 89 10 [23:50:34]*** FLAG_PRN_KEY set [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 07 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 07 00 87 89 00 08 00 00 00 FF 0F 2D [23:50:34]state=0 [23:50:34]Key pressed [23:50:34]Feed [23:50:34]Write to MH i2c: D8 00 00 88 89 E8 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: D8 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: D8 01 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: D8 01 00 88 89 00 E9 [23:50:34]int [23:50:34]Write to MH i2c: 01 00 00 89 89 12 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 07 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 07 00 89 89 00 48 00 00 00 3C 00 9D [23:50:34]state=2 [23:50:34]Key pressed [23:50:34]int [23:50:34]Write to MH i2c: 01 00 00 8A 89 13 [23:50:34]*** FLAG_PRN_KEY reset [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 07 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 07 00 8A 89 00 00 00 00 00 FC 0F 25 [23:50:34]state=2 [23:50:34]Stop feed [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:02]accept exits with 9 [23:51:02]New connection [23:51:02]New thread 3066670436 created [23:51:02]Thread 3066813796 joined [23:51:02]Waiting for new connection... [23:51:02] Sock 9.Parse request [23:51:02]Sock 9.Check first char [23:51:02]Sock 9.First char is OK [23:51:02]request: POST /json_proto HTTP/1.0 [23:51:02]Method: POST [23:51:02]URL: /json_proto [23:51:02]Method is POST - this is cgi request [23:51:02]url: /json_proto [23:51:02]query_string will be loaded in cgi processing [23:51:02]execute_cgi json_proto POST (null) [23:51:02]execute_cgi path=json_proto method=POST [23:51:02]POST find Content-Length [23:51:02]Host: 172.17.56.67:8080 [23:51:02]Content-Length: 215 [23:51:02]Content-Type: application/json [23:51:02] [23:51:02]POST finish read [23:51:02]Found Content-Length = 215 [23:51:02]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:02]execute_script... [23:51:02]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:02]POST & json_proto [23:51:02]process_json_proto [23:51:02]json parsed OK: [23:51:02]protocol is kg_v1.0 [23:51:02]action value=get_value [23:51:02]process_action get_value [23:51:02]cmd_get_value [23:51:02]process_action get_value done [23:51:02]requested_data is exist [23:51:02]produce_requested_data [23:51:02]requested_item kkm.sn is exist - process it [23:51:02]requested_item kkm.ver is exist - process it [23:51:02]requested_item fm.sn is exist - process it [23:51:02]wFMCommunicate request_size=4 [23:51:02]MH_SAM_APDU [23:51:02]CAPDU: 80 11 00 00 [23:51:02]Write to MH i2c: E2 08 00 8B 89 80 11 00 00 00 00 00 00 8E [23:51:02]Write i2c OK [23:51:02]MH_I2C_Read... [23:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:02]Read from MH i2c: E2 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: E2 17 00 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: E2 17 00 8B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DB [23:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:51:02]wFMCommunicate OK [23:51:02]requested_item fd.num is exist - process it [23:51:02]SAM_PROTO_GetFieldsCounters [23:51:02]wFMCommunicate request_size=4 [23:51:02]MH_SAM_APDU [23:51:02]CAPDU: 80 13 00 00 [23:51:02]Write to MH i2c: E2 08 00 8C 89 80 13 00 00 00 00 00 00 91 [23:51:02]Write i2c OK [23:51:02]MH_I2C_Read... [23:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:02]Read from MH i2c: E2 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: E2 62 00 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: E2 62 00 8C 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [23:51: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:02]wFMCommunicate OK [23:51:02]SAM_PROTO_GetFieldsCounters done [23:51:02]requested_item shift.num is exist - process it [23:51:02]requested_item shift.opened is exist - process it [23:51:02]req_shift_opened [23:51:02]FM_GetShiftState [23:51:02]SAM_PROTO_GetShiftState [23:51:02]wFMCommunicate request_size=4 [23:51:02]MH_SAM_APDU [23:51:02]CAPDU: 80 13 01 00 [23:51:02]Write to MH i2c: E2 08 00 8D 89 80 13 01 00 00 00 00 00 93 [23:51:02]Write i2c OK [23:51:02]MH_I2C_Read... [23:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:03]Read from MH i2c: E2 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: E2 0E 00 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: E2 0E 00 8D 89 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 BB [23:51:03]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:51:03]wFMCommunicate OK [23:51:03]SAM_PROTO_GetShiftState done [23:51:03]FM_GetShiftState done [23:51:03]req_shift_opened done [23:51:03]requested_item shift.open_date is exist - process it [23:51:03]req_shift_open_date [23:51:03]req_shift_open_date done [23:51:03]produce_requested_data done [23:51:03]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49273,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [23:51:03]process_action_free get_value [23:51:03]json_value_free [23:51:03]json_value_free done [23:51:03]process_json_proto returns [23:51:03]Send response to host [23:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49273,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [23:51:03]free response buf [23:51:03]execute_script done [23:51:03]execute_script returns [23:51:03]free content buf [23:51:03]Sock 9.Close socket [23:51:03]Sock 9.Thread stoped [23:51:03]accept exits with 7 [23:51:03]New connection [23:51:03]New thread 3066813796 created [23:51:03]Thread 3066670436 joined [23:51:03]Waiting for new connection... [23:51:03] Sock 7.Parse request [23:51:03]Sock 7.Check first char [23:51:03]Sock 7.First char is OK [23:51:03]request: POST /json_proto HTTP/1.0 [23:51:03]Method: POST [23:51:03]URL: /json_proto [23:51:03]Method is POST - this is cgi request [23:51:03]url: /json_proto [23:51:03]query_string will be loaded in cgi processing [23:51:03]execute_cgi json_proto POST (null) [23:51:03]execute_cgi path=json_proto method=POST [23:51:03]POST find Content-Length [23:51:03]Host: 172.17.56.67:8080 [23:51:03]Content-Length: 331 [23:51:03]Content-Type: application/json [23:51:03] [23:51:03]POST finish read [23:51:03]Found Content-Length = 331 [23:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:03]execute_script... [23:51:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:03]POST & json_proto [23:51:03]process_json_proto [23:51:03]json parsed OK: [23:51:03]protocol is kg_v1.0 [23:51:03]action value=get_value [23:51:03]process_action get_value [23:51:03]cmd_get_value [23:51:03]process_action get_value done [23:51:03]requested_data is exist [23:51:03]produce_requested_data [23:51:03]requested_item fm.sale.total is exist - process it [23:51:03]SAM_PROTO_GetFMData [23:51:03]wFMCommunicate request_size=4 [23:51:03]MH_SAM_APDU [23:51:03]CAPDU: 80 13 03 00 [23:51:03]Write to MH i2c: E2 08 00 8E 89 80 13 03 00 00 00 00 00 96 [23:51:03]Write i2c OK [23:51:03]MH_I2C_Read... [23:51:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:03]Read from MH i2c: E2 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: E2 FD 00 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: E2 FD 00 8E 89 00 BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 2A [23:51:03]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:51:03]wFMCommunicate OK [23:51:03]wFMCommunicate request_size=4 [23:51:03]MH_SAM_APDU [23:51:03]CAPDU: 80 17 00 00 [23:51:03]Write to MH i2c: E2 08 00 8F 89 80 17 00 00 00 00 00 00 98 [23:51:03]Write i2c OK [23:51:03]MH_I2C_Read... [23:51:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:04]Read from MH i2c: E2 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 FD 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 FD 00 8F 89 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 48 [23:51:04]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23:51:04]wFMCommunicate OK [23:51:04]wFMCommunicate request_size=4 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 17 00 00 [23:51:04]Write to MH i2c: E2 08 00 90 89 80 17 00 00 00 00 00 00 99 [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:04]OFD Sender: No OFD packet to send [23:51:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:04]Read from MH i2c: E2 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 FD 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 FD 00 90 89 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3D [23:51:04]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:51:04]wFMCommunicate OK [23:51:04]wFMCommunicate request_size=4 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 17 00 00 [23:51:04]Write to MH i2c: E2 08 00 91 89 80 17 00 00 00 00 00 00 9A [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:04]Read from MH i2c: E2 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 FD 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 FD 00 91 89 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 14 [23:51:04]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:51:04]wFMCommunicate OK [23:51:04]wFMCommunicate request_size=4 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 17 00 00 [23:51:04]Write to MH i2c: E2 08 00 92 89 80 17 00 00 00 00 00 00 9B [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:51:04]Read from MH i2c: E2 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 DC 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 DC 00 92 89 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [23:51:04]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:04]wFMCommunicate OK [23:51:04]SAM_PROTO_GetFMData done [23:51:04]requested_item fm.sale_refund.total is exist - process it [23:51:04]requested_item fm.buy.total is exist - process it [23:51:04]requested_item shift.sale.total is exist - process it [23:51:04]SAM_PROTO_GetShiftData [23:51:04]wFMCommunicate request_size=4 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 13 02 00 [23:51:04]Write to MH i2c: E2 08 00 93 89 80 13 02 00 00 00 00 00 9A [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 FD 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 FD 00 93 89 00 AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 73 [23:51:05]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:51:05]wFMCommunicate OK [23:51:05]wFMCommunicate request_size=4 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 17 00 00 [23:51:05]Write to MH i2c: E2 08 00 94 89 80 17 00 00 00 00 00 00 9D [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 FD 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 FD 00 94 89 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B6 [23:51:05]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:51:05]wFMCommunicate OK [23:51:05]wFMCommunicate request_size=4 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 17 00 00 [23:51:05]Write to MH i2c: E2 08 00 95 89 80 17 00 00 00 00 00 00 9E [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 FD 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 FD 00 95 89 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 52 [23:51:05]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:51:05]wFMCommunicate OK [23:51:05]wFMCommunicate request_size=4 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 17 00 00 [23:51:05]Write to MH i2c: E2 08 00 96 89 80 17 00 00 00 00 00 00 9F [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:06]Read from MH i2c: E2 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: E2 FD 00 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: E2 FD 00 96 89 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 1D [23:51:06]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:51:06]wFMCommunicate OK [23:51:06]wFMCommunicate request_size=4 [23:51:06]MH_SAM_APDU [23:51:06]CAPDU: 80 17 00 00 [23:51:06]Write to MH i2c: E2 08 00 97 89 80 17 00 00 00 00 00 00 A0 [23:51:06]Write i2c OK [23:51:06]MH_I2C_Read... [23:51:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:51:06]Read from MH i2c: E2 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: E2 CC 00 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: E2 CC 00 97 89 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [23:51:06]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:06]wFMCommunicate OK [23:51:06]SAM_PROTO_GetShiftData done [23:51:06]requested_item shift.sale.total_cash is exist - process it [23:51:06]requested_item shift.sale_refund.total is exist - process it [23:51:06]requested_item shift.sale_refund.total_cash is exist - process it [23:51:06]requested_item shift.buy.total is exist - process it [23:51:06]requested_item shift.buy.total_cash is exist - process it [23:51:06]produce_requested_data done [23:51:06]produce_requested_data return {"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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:06]process_action_free get_value [23:51:06]json_value_free [23:51:06]json_value_free done [23:51:06]process_json_proto returns [23:51:06]Send response to host [23:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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:06]free response buf [23:51:06]execute_script done [23:51:06]execute_script returns [23:51:06]free content buf [23:51:06]Sock 7.Close socket [23:51:06]Sock 7.Thread stoped [23:51:06]accept exits with 9 [23:51:06]New connection [23:51:06]New thread 3066670436 created [23:51:06]Thread 3066813796 joined [23:51:06]Waiting for new connection... [23:51:06] Sock 9.Parse request [23:51:06]Sock 9.Check first char [23:51:06]Sock 9.First char is OK [23:51:06]request: POST /json_proto HTTP/1.0 [23:51:06]Method: POST [23:51:06]URL: /json_proto [23:51:06]Method is POST - this is cgi request [23:51:06]url: /json_proto [23:51:06]query_string will be loaded in cgi processing [23:51:06]execute_cgi json_proto POST (null) [23:51:06]execute_cgi path=json_proto method=POST [23:51:06]POST find Content-Length [23:51:06]Host: 172.17.56.67:8080 [23:51:06]Content-Length: 331 [23:51:06]Content-Type: application/json [23:51:06] [23:51:06]POST finish read [23:51:06]Found Content-Length = 331 [23:51: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:51:06]execute_script... [23:51: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:51:06]POST & json_proto [23:51:06]process_json_proto [23:51:06]json parsed OK: [23:51:06]protocol is kg_v1.0 [23:51:06]action value=get_value [23:51:06]process_action get_value [23:51:06]cmd_get_value [23:51:06]process_action get_value done [23:51:06]requested_data is exist [23:51:06]produce_requested_data [23:51:06]requested_item fm.sale.total is exist - process it [23:51:06]SAM_PROTO_GetFMData [23:51:06]wFMCommunicate request_size=4 [23:51:06]MH_SAM_APDU [23:51:06]CAPDU: 80 13 03 00 [23:51:06]Write to MH i2c: E2 08 00 98 89 80 13 03 00 00 00 00 00 A0 [23:51:06]Write i2c OK [23:51:06]MH_I2C_Read... [23:51:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:07]Read from MH i2c: E2 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 FD 00 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 FD 00 98 89 00 BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 34 [23:51:07]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:51:07]wFMCommunicate OK [23:51:07]wFMCommunicate request_size=4 [23:51:07]MH_SAM_APDU [23:51:07]CAPDU: 80 17 00 00 [23:51:07]Write to MH i2c: E2 08 00 99 89 80 17 00 00 00 00 00 00 A2 [23:51:07]Write i2c OK [23:51:07]MH_I2C_Read... [23:51:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:07]Read from MH i2c: E2 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 FD 00 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 FD 00 99 89 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 52 [23:51:07]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23:51:07]wFMCommunicate OK [23:51:07]wFMCommunicate request_size=4 [23:51:07]MH_SAM_APDU [23:51:07]CAPDU: 80 17 00 00 [23:51:07]Write to MH i2c: E2 08 00 9A 89 80 17 00 00 00 00 00 00 A3 [23:51:07]Write i2c OK [23:51:07]MH_I2C_Read... [23:51:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:07]Read from MH i2c: E2 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 FD 00 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 FD 00 9A 89 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 47 [23:51:07]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:51:07]wFMCommunicate OK [23:51:07]wFMCommunicate request_size=4 [23:51:07]MH_SAM_APDU [23:51:07]CAPDU: 80 17 00 00 [23:51:07]Write to MH i2c: E2 08 00 9B 89 80 17 00 00 00 00 00 00 A4 [23:51:07]Write i2c OK [23:51:07]MH_I2C_Read... [23:51:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:08]Read from MH i2c: E2 [23:51:08]MH_I2C_Read... [23:51:08]Read from MH i2c: E2 FD 00 [23:51:08]MH_I2C_Read... [23:51:08]Read from MH i2c: E2 FD 00 9B 89 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 1E [23:51:08]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:51:08]wFMCommunicate OK [23:51:08]wFMCommunicate request_size=4 [23:51:08]MH_SAM_APDU [23:51:08]CAPDU: 80 17 00 00 [23:51:08]Write to MH i2c: E2 08 00 9C 89 80 17 00 00 00 00 00 00 A5 [23:51:08]Write i2c OK [23:51:08]MH_I2C_Read... [23:51:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:51:08]Read from MH i2c: E2 [23:51:08]MH_I2C_Read... [23:51:08]Read from MH i2c: E2 DC 00 [23:51:08]MH_I2C_Read... [23:51:08]Read from MH i2c: E2 DC 00 9C 89 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 89 [23:51:08]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:08]wFMCommunicate OK [23:51:08]SAM_PROTO_GetFMData done [23:51:08]requested_item fm.sale_refund.total is exist - process it [23:51:08]requested_item fm.buy.total is exist - process it [23:51:08]requested_item shift.sale.total is exist - process it [23:51:08]SAM_PROTO_GetShiftData [23:51:08]wFMCommunicate request_size=4 [23:51:08]MH_SAM_APDU [23:51:08]CAPDU: 80 13 02 00 [23:51:08]Write to MH i2c: E2 08 00 9D 89 80 13 02 00 00 00 00 00 A4 [23:51:08]Write i2c OK [23:51:08]MH_I2C_Read... [23:51:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:09]Read from MH i2c: E2 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 FD 00 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 FD 00 9D 89 00 AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 7D [23:51:09]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 OFD Sender: No OFD packet to send [23:51:09]EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:51:09]wFMCommunicate OK [23:51:09]wFMCommunicate request_size=4 [23:51:09]MH_SAM_APDU [23:51:09]CAPDU: 80 17 00 00 [23:51:09]Write to MH i2c: E2 08 00 9E 89 80 17 00 00 00 00 00 00 A7 [23:51:09]Write i2c OK [23:51:09]MH_I2C_Read... [23:51:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:09]Read from MH i2c: E2 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 FD 00 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 FD 00 9E 89 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 C0 [23:51:09]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:51:09]wFMCommunicate OK [23:51:09]wFMCommunicate request_size=4 [23:51:09]MH_SAM_APDU [23:51:09]CAPDU: 80 17 00 00 [23:51:09]Write to MH i2c: E2 08 00 9F 89 80 17 00 00 00 00 00 00 A8 [23:51:09]Write i2c OK [23:51:09]MH_I2C_Read... [23:51:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:09]Read from MH i2c: E2 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 FD 00 [23:51:09]MH_I2C_Read... [23:51:10]Read from MH i2c: E2 FD 00 9F 89 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 5C [23:51:10]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:51:10]wFMCommunicate OK [23:51:10]wFMCommunicate request_size=4 [23:51:10]MH_SAM_APDU [23:51:10]CAPDU: 80 17 00 00 [23:51:10]Write to MH i2c: E2 08 00 A0 89 80 17 00 00 00 00 00 00 A9 [23:51:10]Write i2c OK [23:51:10]MH_I2C_Read... [23:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:10]Read from MH i2c: E2 [23:51:10]MH_I2C_Read... [23:51:10]Read from MH i2c: E2 FD 00 [23:51:10]MH_I2C_Read... [23:51:10]Read from MH i2c: E2 FD 00 A0 89 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 27 [23:51:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:51:10]wFMCommunicate OK [23:51:10]wFMCommunicate request_size=4 [23:51:10]MH_SAM_APDU [23:51:10]CAPDU: 80 17 00 00 [23:51:10]Write to MH i2c: E2 08 00 A1 89 80 17 00 00 00 00 00 00 AA [23:51:10]Write i2c OK [23:51:10]MH_I2C_Read... [23:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:51:10]Read from MH i2c: E2 [23:51:10]MH_I2C_Read... [23:51:10]Read from MH i2c: E2 CC 00 [23:51:10]MH_I2C_Read... [23:51:10]Read from MH i2c: E2 CC 00 A1 89 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [23:51:10]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:10]wFMCommunicate OK [23:51:10]SAM_PROTO_GetShiftData done [23:51:10]requested_item shift.sale.total_cash is exist - process it [23:51:10]requested_item shift.sale_refund.total is exist - process it [23:51:10]requested_item shift.sale_refund.total_cash is exist - process it [23:51:10]requested_item shift.buy.total is exist - process it [23:51:10]requested_item shift.buy.total_cash is exist - process it [23:51:10]produce_requested_data done [23:51:10]produce_requested_data return {"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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:10]process_action_free get_value [23:51:10]json_value_free [23:51:10]json_value_free done [23:51:10]process_json_proto returns [23:51:10]Send response to host [23:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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:10]free response buf [23:51:10]execute_script done [23:51:10]execute_script returns [23:51:10]free content buf [23:51:10]Sock 9.Close socket [23:51:10]Sock 9.Thread stoped [23:51:10]accept exits with 7 [23:51:10]New connection [23:51:10]New thread 3066813796 created [23:51:10]Thread 3066670436 joined [23:51:10]Waiting for new connection... [23:51:10] Sock 7.Parse request [23:51:10]Sock 7.Check first char [23:51:10]Sock 7.First char is OK [23:51:10]request: POST /json_proto HTTP/1.0 [23:51:10]Method: POST [23:51:10]URL: /json_proto [23:51:10]Method is POST - this is cgi request [23:51:10]url: /json_proto [23:51:10]query_string will be loaded in cgi processing [23:51:10]execute_cgi json_proto POST (null) [23:51:10]execute_cgi path=json_proto method=POST [23:51:10]POST find Content-Length [23:51:10]Host: 172.17.56.67:8080 [23:51:10]Content-Length: 245 [23:51:10]Content-Type: application/json [23:51:10] [23:51:10]POST finish read [23:51:10]Found Content-Length = 245 [23:51:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:10]execute_script... [23:51:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:10]POST & json_proto [23:51:10]process_json_proto [23:51:10]json parsed OK: [23:51:10]protocol is kg_v1.0 [23:51:10]action value=x_report [23:51:10]process_action x_report [23:51:10]cmd_x_report [23:51:10]MH_GetDate [23:51:10]Write to MH i2c: F0 00 00 A2 89 1A [23:51:10]Write i2c OK [23:51:10]MH_I2C_Read... [23:51:10]Read from MH i2c: F0 [23:51:10]MH_I2C_Read... [23:51:10]Read from MH i2c: F0 09 00 [23:51:10]MH_I2C_Read... [23:51:10]Read from MH i2c: F0 09 00 A2 89 00 84 8B B9 65 26 5D 9E 65 D6 [23:51:11]GetLastDocTimeStamp 1706658472 [23:51:11]current date 1706658692 [23:51:11]FM_GetShiftState [23:51:11]SAM_PROTO_GetShiftState [23:51:11]wFMCommunicate request_size=4 [23:51:11]MH_SAM_APDU [23:51:11]CAPDU: 80 13 01 00 [23:51:11]Write to MH i2c: E2 08 00 A3 89 80 13 01 00 00 00 00 00 A9 [23:51:11]Write i2c OK [23:51:11]MH_I2C_Read... [23:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:11]Read from MH i2c: E2 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: E2 0E 00 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: E2 0E 00 A3 89 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 D1 [23:51:11]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:51:11]wFMCommunicate OK [23:51:11]SAM_PROTO_GetShiftState done [23:51:11]FM_GetShiftState done [23:51:11]KKMCreateXReportDocument [23:51:11]Load OK [23:51:11]Malloc new data [23:51:11]MH_GetDate [23:51:11]Write to MH i2c: F0 00 00 A4 89 1C [23:51:11]Write i2c OK [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: F0 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: F0 09 00 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: F0 09 00 A4 89 00 84 8B B9 65 26 5D 9E 65 D8 [23:51:11]Malloc new data [23:51:11]Malloc new data [23:51:11]wFMCommunicate request_size=4 [23:51:11]MH_SAM_APDU [23:51:11]CAPDU: 80 11 00 00 [23:51:11]Write to MH i2c: E2 08 00 A5 89 80 11 00 00 00 00 00 00 A8 [23:51:11]Write i2c OK [23:51:11]MH_I2C_Read... [23:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:11]Read from MH i2c: E2 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: E2 17 00 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: E2 17 00 A5 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F5 [23:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:51:11]wFMCommunicate OK [23:51:11]SAM_PROTO_GetFieldsCounters [23:51:11]wFMCommunicate request_size=4 [23:51:11]MH_SAM_APDU [23:51:11]CAPDU: 80 13 00 00 [23:51:11]Write to MH i2c: E2 08 00 A6 89 80 13 00 00 00 00 00 00 AB [23:51:11]Write i2c OK [23:51:11]MH_I2C_Read... [23:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:11]Read from MH i2c: E2 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: E2 62 00 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: E2 62 00 A6 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [23:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:11]wFMCommunicate OK [23:51:11]SAM_PROTO_GetFieldsCounters done [23:51:11]Malloc new data [23:51:11]Malloc new data [23:51:11]Malloc new data [23:51:11]KKMCreateXReportDocument OK [23:51:11]KKMSetXReportData OK [23:51:11]KKMPrepareXReportFMData [23:51:11]SAM_PROTO_GetShiftData [23:51:11]wFMCommunicate request_size=4 [23:51:11]MH_SAM_APDU [23:51:11]CAPDU: 80 13 02 00 [23:51:11]Write to MH i2c: E2 08 00 A7 89 80 13 02 00 00 00 00 00 AE [23:51:11]Write i2c OK [23:51:11]MH_I2C_Read... [23:51:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:11]Read from MH i2c: E2 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: E2 FD 00 [23:51:11]MH_I2C_Read... [23:51:11]Read from MH i2c: E2 FD 00 A7 89 00 AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 87 [23:51:11]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:51:11]wFMCommunicate OK [23:51:11]wFMCommunicate request_size=4 [23:51:11]MH_SAM_APDU [23:51:11]CAPDU: 80 17 00 00 [23:51:11]Write to MH i2c: E2 08 00 A8 89 80 17 00 00 00 00 00 00 B1 [23:51:12]Write i2c OK [23:51:12]MH_I2C_Read... [23:51:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:12]Read from MH i2c: E2 [23:51:12]MH_I2C_Read... [23:51:12]Read from MH i2c: E2 FD 00 [23:51:12]MH_I2C_Read... [23:51:12]Read from MH i2c: E2 FD 00 A8 89 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 CA [23:51:12]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:51:12]wFMCommunicate OK [23:51:12]wFMCommunicate request_size=4 [23:51:12]MH_SAM_APDU [23:51:12]CAPDU: 80 17 00 00 [23:51:12]Write to MH i2c: E2 08 00 A9 89 80 17 00 00 00 00 00 00 B2 [23:51:12]Write i2c OK [23:51:12]MH_I2C_Read... [23:51:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:12]Read from MH i2c: E2 [23:51:12]MH_I2C_Read... [23:51:12]Read from MH i2c: E2 FD 00 [23:51:12]MH_I2C_Read... [23:51:12]Read from MH i2c: E2 FD 00 A9 89 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 66 [23:51:12]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:51:12]wFMCommunicate OK [23:51:12]wFMCommunicate request_size=4 [23:51:12]MH_SAM_APDU [23:51:12]CAPDU: 80 17 00 00 [23:51:12]Write to MH i2c: E2 08 00 AA 89 80 17 00 00 00 00 00 00 B3 [23:51:12]Write i2c OK [23:51:12]MH_I2C_Read... [23:51:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:13]Read from MH i2c: E2 [23:51:13]MH_I2C_Read... [23:51:13]Read from MH i2c: E2 FD 00 [23:51:13]MH_I2C_Read... [23:51:13]Read from MH i2c: E2 FD 00 AA 89 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 31 [23:51:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:51:13]wFMCommunicate OK [23:51:13]wFMCommunicate request_size=4 [23:51:13]MH_SAM_APDU [23:51:13]CAPDU: 80 17 00 00 [23:51:13]Write to MH i2c: E2 08 00 AB 89 80 17 00 00 00 00 00 00 B4 [23:51:13]Write i2c OK [23:51:13]MH_I2C_Read... [23:51:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:51:13]Read from MH i2c: E2 [23:51:13]MH_I2C_Read... [23:51:13]Read from MH i2c: E2 CC 00 [23:51:13]MH_I2C_Read... [23:51:13]Read from MH i2c: E2 CC 00 AB 89 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 95 [23:51:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:13]wFMCommunicate OK [23:51:13]SAM_PROTO_GetShiftData done [23:51:13]1194 (1195) - счетчики итогов смены [23:51:13] 1134 (4) - 149 - количество чеков со всеми признаками расчетов [23:51:13] 1129 (156) - счетчики операций «приход» [23:51:13] 1135 (4) - 149 - количество чеков по признаку расчетов [23:51:13] 1201 (3) - 98116.44 - общая итоговая сумма в чеках [23:51:13] 1136 (3) - 96176.00 - итоговая сумма в чеках наличными [23:51:13] 1138 (3) - 1940.44 - итоговая сумма в чеках безналичными [23:51:13] 1024 (123) - суммы налогов [23:51:13] 1006 (9) - суммы НДС [23:51:13] 1010 (1) - 0% - код ставки НДС [23:51:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:13] 1006 (12) - суммы НДС [23:51:13] 1010 (1) - 12% - код ставки НДС [23:51:13] 1011 (3) - 10424.93 - сумма НДС по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 0% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (12) - суммы НСП [23:51:13] 1014 (1) - 1% - код ставки НСП [23:51:13] 1015 (3) - 868.59 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 2% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 3% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 5% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 0,50% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 1,50% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1130 (141) - счетчики операций «возврат прихода» [23:51:13] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:13] 1024 (117) - суммы налогов [23:51:13] 1006 (9) - суммы НДС [23:51:13] 1010 (1) - 0% - код ставки НДС [23:51:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:13] 1006 (9) - суммы НДС [23:51:13] 1010 (1) - 12% - код ставки НДС [23:51:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 0% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 1% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 2% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 3% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 5% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 0,50% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 1,50% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1131 (141) - счетчики операций «расход» [23:51:13] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:13] 1024 (117) - суммы налогов [23:51:13] 1006 (9) - суммы НДС [23:51:13] 1010 (1) - 0% - код ставки НДС [23:51:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:13] 1006 (9) - суммы НДС [23:51:13] 1010 (1) - 12% - код ставки НДС [23:51:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 0% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 1% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 2% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 3% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:13] 1007 (9) - суммы НСП [23:51:13] 1014 (1) - 5% - код ставки НСП [23:51:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 0,50% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 1,50% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1132 (141) - счетчики операций «возврат расхода» [23:51:14] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:14] 1024 (117) - суммы налогов [23:51:14] 1006 (9) - суммы НДС [23:51:14] 1010 (1) - 0% - код ставки НДС [23:51:14] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:14] 1006 (9) - суммы НДС [23:51:14] 1010 (1) - 12% - код ставки НДС [23:51:14] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 0% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 1% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 2% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 3% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 5% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 0,50% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1007 (9) - суммы НСП [23:51:14] 1014 (1) - 1,50% - код ставки НСП [23:51:14] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:14] 1133 (588) - - счетчики коррекции - не используются [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1194 (04AA) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1134 (046E) [23:51:14]Malloc new data [23:51:14]Processing tag 1129 (0469) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1135 (046F) [23:51:14]Malloc new data [23:51:14]Processing tag 1201 (04B1) [23:51:14]Malloc new data [23:51:14]Processing tag 1136 (0470) [23:51:14]Malloc new data [23:51:14]Processing tag 1138 (0472) [23:51:14]Malloc new data [23:51:14]Processing tag 1024 (0400) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1006 (03EE) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1010 (03F2) [23:51:14]Malloc new data [23:51:14]Processing tag 1011 (03F3) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1006 (03EE) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1010 (03F2) [23:51:14]Malloc new data [23:51:14]Processing tag 1011 (03F3) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]SetTLVBufToDocument err=0 [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1130 (046A) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1135 (046F) [23:51:14]Malloc new data [23:51:14]Processing tag 1201 (04B1) [23:51:14]Malloc new data [23:51:14]Processing tag 1136 (0470) [23:51:14]Malloc new data [23:51:14]Processing tag 1138 (0472) [23:51:14]Malloc new data [23:51:14]Processing tag 1024 (0400) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1006 (03EE) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1010 (03F2) [23:51:14]Malloc new data [23:51:14]Processing tag 1011 (03F3) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1006 (03EE) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1010 (03F2) [23:51:14]Malloc new data [23:51:14]Processing tag 1011 (03F3) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]SetTLVBufToDocument err=0 [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1131 (046B) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1135 (046F) [23:51:14]Malloc new data [23:51:14]Processing tag 1201 (04B1) [23:51:14]Malloc new data [23:51:14]Processing tag 1136 (0470) [23:51:14]Malloc new data [23:51:14]Processing tag 1138 (0472) [23:51:14]Malloc new data [23:51:14]Processing tag 1024 (0400) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1006 (03EE) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1010 (03F2) [23:51:14]Malloc new data [23:51:14]Processing tag 1011 (03F3) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1006 (03EE) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1010 (03F2) [23:51:14]Malloc new data [23:51:14]Processing tag 1011 (03F3) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]OFD Sender: No OFD packet to send [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]SetTLVBufToDocument err=0 [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1132 (046C) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1135 (046F) [23:51:14]Malloc new data [23:51:14]Processing tag 1201 (04B1) [23:51:14]Malloc new data [23:51:14]Processing tag 1136 (0470) [23:51:14]Malloc new data [23:51:14]Processing tag 1138 (0472) [23:51:14]Malloc new data [23:51:14]Processing tag 1024 (0400) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1006 (03EE) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1010 (03F2) [23:51:14]Malloc new data [23:51:14]Processing tag 1011 (03F3) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1006 (03EE) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1010 (03F2) [23:51:14]Malloc new data [23:51:14]Processing tag 1011 (03F3) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:14]SetTLVBufToDocument [23:51:14]Processing tag 1014 (03F6) [23:51:14]Malloc new data [23:51:14]Processing tag 1015 (03F7) [23:51:14]Malloc new data [23:51:14]SetTLVBufToDocument err=0 [23:51:14]Processing tag 1007 (03EF) [23:51:14]Load OK [23:51:15]SetTLVBufToDocument [23:51:15]Processing tag 1014 (03F6) [23:51:15]Malloc new data [23:51:15]Processing tag 1015 (03F7) [23:51:15]Malloc new data [23:51:15]SetTLVBufToDocument err=0 [23:51:15]SetTLVBufToDocument err=0 [23:51:15]SetTLVBufToDocument err=0 [23:51:15]Processing tag 1133 (046D) [23:51:15]Malloc new data [23:51:15]SetTLVBufToDocument err=0 [23:51:15]SetTLVBufToDocument err=0 [23:51:15]Malloc new data [23:51:15]SAM_PROTO_GetFMData [23:51:15]wFMCommunicate request_size=4 [23:51:15]MH_SAM_APDU [23:51:15]CAPDU: 80 13 03 00 [23:51:15]Write to MH i2c: E2 08 00 AC 89 80 13 03 00 00 00 00 00 B4 [23:51:15]Write i2c OK [23:51:15]MH_I2C_Read... [23:51:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:15]Read from MH i2c: E2 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 FD 00 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 FD 00 AC 89 00 BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 48 [23:51:15]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:51:15]wFMCommunicate OK [23:51:15]wFMCommunicate request_size=4 [23:51:15]MH_SAM_APDU [23:51:15]CAPDU: 80 17 00 00 [23:51:15]Write to MH i2c: E2 08 00 AD 89 80 17 00 00 00 00 00 00 B6 [23:51:15]Write i2c OK [23:51:15]MH_I2C_Read... [23:51:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:16]Read from MH i2c: E2 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 FD 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 FD 00 AD 89 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 66 [23:51:16]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23:51:16]wFMCommunicate OK [23:51:16]wFMCommunicate request_size=4 [23:51:16]MH_SAM_APDU [23:51:16]CAPDU: 80 17 00 00 [23:51:16]Write to MH i2c: E2 08 00 AE 89 80 17 00 00 00 00 00 00 B7 [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:16]Read from MH i2c: E2 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 FD 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 FD 00 AE 89 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 5B [23:51:16]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:51:16]wFMCommunicate OK [23:51:16]wFMCommunicate request_size=4 [23:51:16]MH_SAM_APDU [23:51:16]CAPDU: 80 17 00 00 [23:51:16]Write to MH i2c: E2 08 00 AF 89 80 17 00 00 00 00 00 00 B8 [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:17]Read from MH i2c: E2 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: E2 FD 00 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: E2 FD 00 AF 89 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 32 [23:51:17]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:51:17]wFMCommunicate OK [23:51:17]wFMCommunicate request_size=4 [23:51:17]MH_SAM_APDU [23:51:17]CAPDU: 80 17 00 00 [23:51:17]Write to MH i2c: E2 08 00 B0 89 80 17 00 00 00 00 00 00 B9 [23:51:17]Write i2c OK [23:51:17]MH_I2C_Read... [23:51:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:51:17]Read from MH i2c: E2 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: E2 DC 00 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: E2 DC 00 B0 89 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9D [23:51:17]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:17]wFMCommunicate OK [23:51:17]SAM_PROTO_GetFMData done [23:51:17]FM_GetFMData:85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 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 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18]oper:6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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:18]total:15 0D D3 BC [23:51:18]Malloc new data [23:51:18]oper:6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 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 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18]total:18 75 09 [23:51:18]Malloc new data [23:51:18]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:18]total: [23:51:18]Malloc new data [23:51:18]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:18]total: [23:51:18]Malloc new data [23:51:18]KKMPrepareXReportFMData err=0 [23:51:18]Х отчет ИНН: 02508201610067 Кассир: Уморов С. 30.01.2024 23:51 Смена: 10 РНМ: 0000000000092723 ЗНМ: 0300000040 СНО: Общий режим Всего чеков: 149 ИТОГИ ПРИХОД Чеков: 149 Общий итог: 98116.44 Итого наличными: 96176.00 Итого безнал.: 1940.44 НДС 0% : 0.00 НДС 12% : 10424.93 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 868.59 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 96176.00 НС Приход: 31679480.53 НС Возвр.Прихода: 6198.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875060 [23:51:18]StoreToDocumentArchive [23:51:18]MH_GetDate [23:51:18]Write to MH i2c: F0 00 00 B1 89 29 [23:51:18]Write i2c OK [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: F0 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: F0 09 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: F0 09 00 B1 89 00 8B 8B B9 65 26 5D 9E 65 EC [23:51:18]shift 10 fd 1706658699 [23:51:18]Create dir for shift 0010 [23:51:18]save to /storage/0010/doc_1706658699 [23:51:18]save last doc name /storage/0010/doc_1706658699 to /storage/kkm_last_doc_name [23:51:18]save OK [23:51:18]Clear old archive folders... [23:51:18]NVStorageSaveData kkm_last_timestamp [23:51:18]File name is /storage/kkm_last_timestamp [23:51:18]Write 4 bytes [23:51:18]NVStorageSaveData done [23:51:18]ExternCall_PrintAddStr [23:51:18]wPrintStart [23:51:18]Write to MH i2c: 01 00 00 B2 89 3B [23:51:18]Write i2c OK [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: 01 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: 01 07 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: 01 07 00 B2 89 00 00 00 00 00 FF 0F 50 [23:51:18]RasterBufferAndPrint [23:51:18]line Х отчет [23:51:18]line ИНН: 02508201610067 [23:51:18]line Кассир: Уморов С. [23:51:18]line 30.01.2024 23:51 [23:51:18]line Смена: 10 [23:51:18]line РНМ: 0000000000092723 [23:51:18]line ЗНМ: 0300000040 [23:51:18]line СНО: Общий режим [23:51:18]line Всего чеков: 149 [23:51:18]line ИТОГИ ПРИХОД [23:51:18]line Чеков: 149 [23:51:18]line Общий итог: 98116.44 [23:51:18]line Итого наличными: 96176.00 [23:51:18]line Итого безнал.: 1940.44 [23:51:18]line НДС 0% : 0.00 [23:51:18]line НДС 12% : 10424.93 [23:51:18]line НСП 0% : 0.00 [23:51:18]line НСП 1,50% : 0.00 [23:51:18]line НСП 0,50% : 0.00 [23:51:18]line НСП 5% : 0.00 [23:51:18]line НСП 3% : 0.00 [23:51:18]line НСП 2% : 0.00 [23:51:18]line НСП 1% : 868.59 [23:51:18]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:18]line Чеков: 0 [23:51:18]line Общий итог: 0.00 [23:51:18]line Итого наличными: 0.00 [23:51:18]line Итого безнал.: 0.00 [23:51:18]line НДС 0% : 0.00 [23:51:18]line НДС 12% : 0.00 [23:51:18]line НСП 0% : 0.00 [23:51:18]line НСП 1,50% : 0.00 [23:51:18]line НСП 0,50% : 0.00 [23:51:18]line НСП 5% : 0.00 [23:51:18]line НСП 3% : 0.00 [23:51:18]line НСП 2% : 0.00 [23:51:18]line НСП 1% : 0.00 [23:51:18]line ИТОГИ РАСХОД [23:51:18]line Чеков: 0 [23:51:18]line Общий итог: 0.00 [23:51:18]line Итого наличными: 0.00 [23:51:18]line Итого безнал.: 0.00 [23:51:18]line НДС 0% : 0.00 [23:51:18]line НДС 12% : 0.00 [23:51:18]line НСП 0% : 0.00 [23:51:18]line НСП 1,50% : 0.00 [23:51:18]line НСП 0,50% : 0.00 [23:51:18]line НСП 5% : 0.00 [23:51:18]line НСП 3% : 0.00 [23:51:18]line НСП 2% : 0.00 [23:51:18]line НСП 1% : 0.00 [23:51:18]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:18]line Чеков: 0 [23:51:18]line Общий итог: 0.00 [23:51:18]line Итого наличными: 0.00 [23:51:18]line Итого безнал.: 0.00 [23:51:18]line НДС 0% : 0.00 [23:51:18]line НДС 12% : 0.00 [23:51:18]line НСП 0% : 0.00 [23:51:18]line НСП 1,50% : 0.00 [23:51:18]line НСП 0,50% : 0.00 [23:51:18]line НСП 5% : 0.00 [23:51:18]line НСП 3% : 0.00 [23:51:18]line НСП 2% : 0.00 [23:51:18]line НСП 1% : 0.00 [23:51:18]line Сумма внесений: 0.00 [23:51:18]line Сумма выплат: 0.00 [23:51:18]line Нал. в кассе: 96176.00 [23:51:18]line НС Приход: 31679480.53 [23:51:18]line НС Возвр.Прихода: 6198.00 [23:51:18]line НС Расход: 0.00 [23:51:18]line НС Возвр.Расхода: 0.00 [23:51:18]line ФМ: 0000000000875060 [23:51:18]written 0, free lines is 4095 [23:51:19]Write to MH i2c: 01 00 00 FD 89 86 [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: 01 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: 01 07 00 [23:51:19]MH_I2C_Read... [23:51:19]OFD Sender: No OFD packet to send [23:51:19]Read from MH i2c: 01 07 00 FD 89 00 00 00 00 00 21 0B B9 [23:51:19]RasterBufferAndPrint [23:51:19]line [23:51:19]line [23:51:19]line [23:51:19]line [23:51:19]line [23:51:19]written 0, free lines is 2897 [23:51:19]MH_Cut [23:51:19]Write to MH i2c: D1 01 00 04 8A 01 60 [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: D1 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: D1 01 00 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: D1 01 00 04 8A 00 5F [23:51:19]Write to MH i2c: 01 00 00 05 8A 8F [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:20]*** Cut start [23:51:20]*** Partial cut [23:51:20]*** CUTSNS_PIN = 1 [23:51:20]*** CUTSNS_PIN = 0 [23:51:20]*** Brake cut motor [23:51:21]Read from MH i2c: 01 [23:51:21]MH_I2C_Read... [23:51:21]*** Stop cut motor [23:51:21]*** Cut end [23:51:21]Read from MH i2c: 01 07 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 05 8A 00 00 00 00 00 FF 0F A4 [23:51:21]process_action x_report done [23:51:21]requested_data is exist [23:51:21]produce_requested_data [23:51:21]requested_item fd.num is exist - process it [23:51:21]SAM_PROTO_GetFieldsCounters [23:51:21]wFMCommunicate request_size=4 [23:51:21]MH_SAM_APDU [23:51:21]CAPDU: 80 13 00 00 [23:51:21]Write to MH i2c: E2 08 00 06 8A 80 13 00 00 00 00 00 00 0C [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:21]Read from MH i2c: E2 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 62 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 62 00 06 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [23:51: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:21]wFMCommunicate OK [23:51:21]SAM_PROTO_GetFieldsCounters done [23:51:21]requested_item shift.num is exist - process it [23:51:21]requested_item shift.opened is exist - process it [23:51:21]req_shift_opened [23:51:21]FM_GetShiftState [23:51:21]SAM_PROTO_GetShiftState [23:51:21]wFMCommunicate request_size=4 [23:51:21]MH_SAM_APDU [23:51:21]CAPDU: 80 13 01 00 [23:51:21]Write to MH i2c: E2 08 00 07 8A 80 13 01 00 00 00 00 00 0E [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:21]Read from MH i2c: E2 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 0E 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 0E 00 07 8A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 36 [23:51:21]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:51:21]wFMCommunicate OK [23:51:21]SAM_PROTO_GetShiftState done [23:51:21]FM_GetShiftState done [23:51:21]req_shift_opened done [23:51:21]requested_item shift.open_date is exist - process it [23:51:21]req_shift_open_date [23:51:21]req_shift_open_date done [23:51:21]produce_requested_data done [23:51:21]produce_requested_data return {"fd.num":49273,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [23:51:21]process_action_free x_report [23:51:21]json_value_free [23:51:21]json_value_free done [23:51:21]process_json_proto returns [23:51:21]Send response to host [23:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49273,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [23:51:21]free response buf [23:51:21]execute_script done [23:51:21]execute_script returns [23:51:21]free content buf [23:51:21]Sock 7.Close socket [23:51:21]Sock 7.Thread stoped [23:51:21]int [23:51:21]Write to MH i2c: 01 00 00 08 8A 92 [23:51:21]*** FLAG_PRN_KEY set [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 08 8A 00 08 00 00 00 FF 0F AF [23:51:21]state=0 [23:51:21]Key pressed [23:51:21]Feed [23:51:21]Write to MH i2c: D8 00 00 09 8A 6A [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: D8 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: D8 01 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: D8 01 00 09 8A 00 6B [23:51:21]int line is 0 - check status [23:51:21]Write to MH i2c: 01 00 00 0A 8A 94 [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 0A 8A 00 48 00 00 00 3C 00 1F [23:51:21]state=2 [23:51:21]Key pressed [23:51:21]int [23:51:21]Write to MH i2c: 01 00 00 0B 8A 95 [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 0B 8A 00 48 00 00 00 3C 00 20 [23:51:21]state=2 [23:51:21]Key pressed [23:51:21]int [23:51:21]Write to MH i2c: 01 00 00 0C 8A 96 [23:51:21]*** FLAG_PRN_KEY reset [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: 01 07 00 0C 8A 00 00 00 00 00 FF 0F AB [23:51:21]state=2 [23:51:21]Stop feed [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:30]accept exits with 9 [23:51:30]New connection [23:51:30]New thread 3066670436 created [23:51:30]Thread 3066813796 joined [23:51:30]Waiting for new connection... [23:51:30] Sock 9.Parse request [23:51:30]Sock 9.Check first char [23:51:30]Sock 9.First char is OK [23:51:30]request: POST /json_proto HTTP/1.0 [23:51:30]Method: POST [23:51:30]URL: /json_proto [23:51:30]Method is POST - this is cgi request [23:51:30]url: /json_proto [23:51:30]query_string will be loaded in cgi processing [23:51:30]execute_cgi json_proto POST (null) [23:51:30]execute_cgi path=json_proto method=POST [23:51:30]POST find Content-Length [23:51:30]Host: 172.17.56.67:8080 [23:51:30]Content-Length: 215 [23:51:30]Content-Type: application/json [23:51:30] [23:51:30]POST finish read [23:51:30]Found Content-Length = 215 [23:51: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:51:30]execute_script... [23:51: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:51:30]POST & json_proto [23:51:30]process_json_proto [23:51:30]json parsed OK: [23:51:30]protocol is kg_v1.0 [23:51:30]action value=get_value [23:51:30]process_action get_value [23:51:30]cmd_get_value [23:51:30]process_action get_value done [23:51:30]requested_data is exist [23:51:30]produce_requested_data [23:51:30]requested_item kkm.sn is exist - process it [23:51:30]requested_item kkm.ver is exist - process it [23:51:30]requested_item fm.sn is exist - process it [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 11 00 00 [23:51:30]Write to MH i2c: E2 08 00 0D 8A 80 11 00 00 00 00 00 00 11 [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 17 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 17 00 0D 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5E [23:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:51:30]wFMCommunicate OK [23:51:30]requested_item fd.num is exist - process it [23:51:30]SAM_PROTO_GetFieldsCounters [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 13 00 00 [23:51:30]Write to MH i2c: E2 08 00 0E 8A 80 13 00 00 00 00 00 00 14 [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 62 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 62 00 0E 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [23:51:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 79 C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:30]wFMCommunicate OK [23:51:30]SAM_PROTO_GetFieldsCounters done [23:51:30]requested_item shift.num is exist - process it [23:51:30]requested_item shift.opened is exist - process it [23:51:30]req_shift_opened [23:51:30]FM_GetShiftState [23:51:30]SAM_PROTO_GetShiftState [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 13 01 00 [23:51:30]Write to MH i2c: E2 08 00 0F 8A 80 13 01 00 00 00 00 00 16 [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 0E 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 0E 00 0F 8A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 3E [23:51:30]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:51:30]wFMCommunicate OK [23:51:30]SAM_PROTO_GetShiftState done [23:51:30]FM_GetShiftState done [23:51:30]req_shift_opened done [23:51:30]requested_item shift.open_date is exist - process it [23:51:30]req_shift_open_date [23:51:30]req_shift_open_date done [23:51:30]produce_requested_data done [23:51:30]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49273,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [23:51:30]process_action_free get_value [23:51:30]json_value_free [23:51:30]json_value_free done [23:51:30]process_json_proto returns [23:51:30]Send response to host [23:51:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49273,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [23:51:30]free response buf [23:51:30]execute_script done [23:51:30]execute_script returns [23:51:30]free content buf [23:51:30]Sock 9.Close socket [23:51:30]Sock 9.Thread stoped [23:51:30]accept exits with 7 [23:51:30]New connection [23:51:30]New thread 3066813796 created [23:51:30]Thread 3066670436 joined [23:51:30]Waiting for new connection... [23:51:30] Sock 7.Parse request [23:51:30]Sock 7.Check first char [23:51:30]Sock 7.First char is OK [23:51:30]request: POST /json_proto HTTP/1.0 [23:51:30]Method: POST [23:51:30]URL: /json_proto [23:51:30]Method is POST - this is cgi request [23:51:30]url: /json_proto [23:51:30]query_string will be loaded in cgi processing [23:51:30]execute_cgi json_proto POST (null) [23:51:30]execute_cgi path=json_proto method=POST [23:51:30]POST find Content-Length [23:51:30]Host: 172.17.56.67:8080 [23:51:30]Content-Length: 331 [23:51:30]Content-Type: application/json [23:51:30] [23:51:30]POST finish read [23:51:30]Found Content-Length = 331 [23:51: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:51:30]execute_script... [23:51: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:51:30]POST & json_proto [23:51:30]process_json_proto [23:51:30]json parsed OK: [23:51:30]protocol is kg_v1.0 [23:51:30]action value=get_value [23:51:30]process_action get_value [23:51:30]cmd_get_value [23:51:30]process_action get_value done [23:51:30]requested_data is exist [23:51:30]produce_requested_data [23:51:30]requested_item fm.sale.total is exist - process it [23:51:30]SAM_PROTO_GetFMData [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 13 03 00 [23:51:30]Write to MH i2c: E2 08 00 10 8A 80 13 03 00 00 00 00 00 19 [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:31]Read from MH i2c: E2 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 10 8A 00 BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 AD [23:51:31]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:51:31]wFMCommunicate OK [23:51:31]wFMCommunicate request_size=4 [23:51:31]MH_SAM_APDU [23:51:31]CAPDU: 80 17 00 00 [23:51:31]Write to MH i2c: E2 08 00 11 8A 80 17 00 00 00 00 00 00 1B [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:31]Read from MH i2c: E2 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 11 8A 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 CB [23:51:31]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23:51:31]wFMCommunicate OK [23:51:31]wFMCommunicate request_size=4 [23:51:31]MH_SAM_APDU [23:51:31]CAPDU: 80 17 00 00 [23:51:31]Write to MH i2c: E2 08 00 12 8A 80 17 00 00 00 00 00 00 1C [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:32]Read from MH i2c: E2 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 FD 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 FD 00 12 8A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C0 [23:51:32]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:51:32]wFMCommunicate OK [23:51:32]wFMCommunicate request_size=4 [23:51:32]MH_SAM_APDU [23:51:32]CAPDU: 80 17 00 00 [23:51:32]Write to MH i2c: E2 08 00 13 8A 80 17 00 00 00 00 00 00 1D [23:51:32]Write i2c OK [23:51:32]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:32]Read from MH i2c: E2 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 FD 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 FD 00 13 8A 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 97 [23:51:32]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:51:32]wFMCommunicate OK [23:51:32]wFMCommunicate request_size=4 [23:51:32]MH_SAM_APDU [23:51:32]CAPDU: 80 17 00 00 [23:51:32]Write to MH i2c: E2 08 00 14 8A 80 17 00 00 00 00 00 00 1E [23:51:32]Write i2c OK [23:51:32]MH_I2C_Read... [23:51:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:51:33]Read from MH i2c: E2 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 DC 00 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 DC 00 14 8A 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 02 [23:51:33]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:33]wFMCommunicate OK [23:51:33]SAM_PROTO_GetFMData done [23:51:33]requested_item fm.sale_refund.total is exist - process it [23:51:33]requested_item fm.buy.total is exist - process it [23:51:33]requested_item shift.sale.total is exist - process it [23:51:33]SAM_PROTO_GetShiftData [23:51:33]wFMCommunicate request_size=4 [23:51:33]MH_SAM_APDU [23:51:33]CAPDU: 80 13 02 00 [23:51:33]Write to MH i2c: E2 08 00 15 8A 80 13 02 00 00 00 00 00 1D [23:51:33]Write i2c OK [23:51:33]MH_I2C_Read... [23:51:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:33]Read from MH i2c: E2 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 15 8A 00 AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 F6 [23:51:34]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:51:34]wFMCommunicate OK [23:51:34]wFMCommunicate request_size=4 [23:51:34]MH_SAM_APDU [23:51:34]CAPDU: 80 17 00 00 [23:51:34]Write to MH i2c: E2 08 00 16 8A 80 17 00 00 00 00 00 00 20 [23:51:34]Write i2c OK [23:51:34]MH_I2C_Read... [23:51:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:34]Read from MH i2c: E2 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 16 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 39 [23:51:34]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:51:34]wFMCommunicate OK [23:51:34]wFMCommunicate request_size=4 [23:51:34]MH_SAM_APDU [23:51:34]CAPDU: 80 17 00 00 [23:51:34]Write to MH i2c: E2 08 00 17 8A 80 17 00 00 00 00 00 00 21 [23:51:34]OFD Sender: No OFD packet to send [23:51:34]Write i2c OK [23:51:34]MH_I2C_Read... [23:51:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:35]Read from MH i2c: E2 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 17 8A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 D5 [23:51:35]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:51:35]wFMCommunicate OK [23:51:35]wFMCommunicate request_size=4 [23:51:35]MH_SAM_APDU [23:51:35]CAPDU: 80 17 00 00 [23:51:35]Write to MH i2c: E2 08 00 18 8A 80 17 00 00 00 00 00 00 22 [23:51:35]Write i2c OK [23:51:35]MH_I2C_Read... [23:51:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:35]Read from MH i2c: E2 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 18 8A 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 A0 [23:51:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:51:35]wFMCommunicate OK [23:51:35]wFMCommunicate request_size=4 [23:51:35]MH_SAM_APDU [23:51:35]CAPDU: 80 17 00 00 [23:51:35]Write to MH i2c: E2 08 00 19 8A 80 17 00 00 00 00 00 00 23 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 CC 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 CC 00 19 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 04 [23:51:36]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:36]wFMCommunicate OK [23:51:36]SAM_PROTO_GetShiftData done [23:51:36]requested_item shift.sale.total_cash is exist - process it [23:51:36]requested_item shift.sale_refund.total is exist - process it [23:51:36]requested_item shift.sale_refund.total_cash is exist - process it [23:51:36]requested_item shift.buy.total is exist - process it [23:51:36]requested_item shift.buy.total_cash is exist - process it [23:51:36]produce_requested_data done [23:51:36]produce_requested_data return {"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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: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":{"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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: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 3066670436 created [23:51:36]Thread 3066813796 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.56.67: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 1A 8A 80 13 03 00 00 00 00 00 23 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 13 03 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 1A 8A 00 BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 B7 [23:51:37]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 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 1B 8A 80 17 00 00 00 00 00 00 25 [23:51:37]Write i2c OK [23:51:37]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 1B 8A 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 D5 [23:51:38]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23: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 1C 8A 80 17 00 00 00 00 00 00 26 [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 1C 8A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CA [23:51:38]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23: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 1D 8A 80 17 00 00 00 00 00 00 27 [23:51:38]Write i2c OK [23:51:38]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 1D 8A 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 A1 [23:51:39]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23: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 1E 8A 80 17 00 00 00 00 00 00 28 [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 = 217! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 DC 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 DC 00 1E 8A 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 OFD Sender: No OFD packet to send [23:51:39]00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0C [23:51:39]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:40]wFMCommunicate OK [23:51:40]SAM_PROTO_GetFMData done [23:51:40]requested_item fm.sale_refund.total is exist - process it [23:51:40]requested_item fm.buy.total is exist - process it [23:51:40]requested_item shift.sale.total is exist - process it [23:51:40]SAM_PROTO_GetShiftData [23:51:40]wFMCommunicate request_size=4 [23:51:40]MH_SAM_APDU [23:51:40]CAPDU: 80 13 02 00 [23:51:40]Write to MH i2c: E2 08 00 1F 8A 80 13 02 00 00 00 00 00 27 [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:40]*** iso7816_exchange 80 13 02 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 1F 8A 00 AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 00 [23:51:40]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [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 20 8A 80 17 00 00 00 00 00 00 2A [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 20 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 43 [23:51:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [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 21 8A 80 17 00 00 00 00 00 00 2B [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 21 8A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 DF [23:51:42]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [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 22 8A 80 17 00 00 00 00 00 00 2C [23:51:42]Write i2c OK [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 [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 22 8A 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 AA [23:51:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [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 23 8A 80 17 00 00 00 00 00 00 2D [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 = 201! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 CC 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 CC 00 23 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0E [23:51:43]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:43]wFMCommunicate OK [23:51:43]SAM_PROTO_GetShiftData done [23:51:43]requested_item shift.sale.total_cash is exist - process it [23:51:43]requested_item shift.sale_refund.total is exist - process it [23:51:43]requested_item shift.sale_refund.total_cash is exist - process it [23:51:43]requested_item shift.buy.total is exist - process it [23:51:43]requested_item shift.buy.total_cash is exist - process it [23:51:43]produce_requested_data done [23:51:43]produce_requested_data return {"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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:43]process_action_free get_value [23:51:43]json_value_free [23:51:43]json_value_free done [23:51:43]process_json_proto returns [23:51:43]Send response to host [23:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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:43]free response buf [23:51:43]execute_script done [23:51:43]execute_script returns [23:51:43]free content buf [23:51:43]Sock 9.Close socket [23:51:43]Sock 9.Thread stoped [23:51:43]accept exits with 7 [23:51:43]New connection [23:51:43]New thread 3066813796 created [23:51:43]Thread 3066670436 joined [23:51:43]Waiting for new connection... [23:51:43] Sock 7.Parse request [23:51:43]Sock 7.Check first char [23:51:43]Sock 7.First char is OK [23:51:43]request: POST /json_proto HTTP/1.0 [23:51:43]Method: POST [23:51:43]URL: /json_proto [23:51:43]Method is POST - this is cgi request [23:51:43]url: /json_proto [23:51:43]query_string will be loaded in cgi processing [23:51:43]execute_cgi json_proto POST (null) [23:51:43]execute_cgi path=json_proto method=POST [23:51:43]POST find Content-Length [23:51:43]Host: 172.17.56.67:8080 [23:51:43]Content-Length: 248 [23:51:43]Content-Type: application/json [23:51:43] [23:51:43]POST finish read [23:51:43]Found Content-Length = 248 [23:51:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:43]execute_script... [23:51:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:43]POST & json_proto [23:51:43]process_json_proto [23:51:43]json parsed OK: [23:51:43]protocol is kg_v1.0 [23:51:43]action value=close_shift [23:51:43]process_action close_shift [23:51:43]cmd_close_shift [23:51:43]MH_GetDate [23:51:43]Write to MH i2c: F0 00 00 24 8A 9D [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: F0 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: F0 09 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: F0 09 00 24 8A 00 A4 8B B9 65 26 5D 9E 65 79 [23:51:43]GetLastDocTimeStamp 1706658692 [23:51:43]current date 1706658724 [23:51:43]FM_GetShiftState [23:51:43]SAM_PROTO_GetShiftState [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 13 01 00 [23:51:43]Write to MH i2c: E2 08 00 25 8A 80 13 01 00 00 00 00 00 2C [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 0E 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 0E 00 25 8A 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 54 [23:51:43]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [23:51:43]wFMCommunicate OK [23:51:43]SAM_PROTO_GetShiftState done [23:51:43]FM_GetShiftState done [23:51:43]KKMCreateCloseShiftDocument [23:51:43]Load OK [23:51:43]Malloc new data [23:51:43]MH_GetDate [23:51:43]Write to MH i2c: F0 00 00 26 8A 9F [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: F0 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: F0 09 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: F0 09 00 26 8A 00 A4 8B B9 65 26 5D 9E 65 7B [23:51:43]Malloc new data [23:51:43]Malloc new data [23:51:43]Malloc new data [23:51:43]Malloc new data [23:51:43]KKMCreateCloseShiftDocument OK [23:51:43]KKMSetCloseShiftData OK [23:51:43]ProcessDocumentItem done err = 0, tmpTLVsize=67 [23:51:43]tlvbuf is 014E98A0 [23:51:43]KKMLoadAndSignCloseShiftData [23:51:43]SAM_PROTO_ProcessDocument [23:51:43]wFMCommunicate request_size=9 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 15 01 00 04 05 00 43 00 [23:51:43]Write to MH i2c: E2 0C 00 27 8A 80 15 01 00 04 00 05 00 43 00 00 00 80 [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 03 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 03 00 27 8A 00 90 00 25 [23:51:43]RAPDU: 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=23 [23:51:43]MH_SAM_APDU [23:51:43]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:51:43]Write to MH i2c: E2 1A 00 28 8A 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 27 [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 03 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 03 00 28 8A 00 90 00 26 [23:51:43]RAPDU: 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=26 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 [23:51:43]Write to MH i2c: E2 1D 00 29 8A 80 15 02 00 15 00 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 00 00 3B [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:51:43]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 03 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 03 00 29 8A 00 90 00 27 [23:51:44]RAPDU: 90 00 [23:51:44]wFMCommunicate OK [23:51:44]wFMCommunicate request_size=13 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 15 02 00 08 F4 03 04 00 A4 8B B9 65 [23:51:44]Write to MH i2c: E2 10 00 2A 8A 80 15 02 00 08 00 F4 03 04 00 A4 8B B9 65 00 00 8C [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 03 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 03 00 2A 8A 00 90 00 28 [23:51:44]RAPDU: 90 00 [23:51:44]wFMCommunicate OK [23:51:44]wFMCommunicate request_size=25 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 [23:51:44]Write to MH i2c: E2 1C 00 2B 8A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 00 00 95 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 03 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 03 00 2B 8A 00 90 00 29 [23:51:44]RAPDU: 90 00 [23:51:44]wFMCommunicate OK [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 15 03 00 [23:51:44]Write to MH i2c: E2 08 00 2C 8A 80 15 03 00 00 00 00 00 37 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 2C 8A 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7A C0 00 00 0E 04 04 00 F6 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 FC [23:51:44]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7A C0 00 00 0E 04 04 00 F6 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 OFD Sender: No OFD packet to send [23:51:45]00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [23:51:45]wFMCommunicate OK [23:51:45]SAM_PROTO_ProcessDocument answer len = 1266 [23:51:45]SAM_PROTO_ProcessDocument remain to read = 1018 [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 2D 8A 80 17 00 00 00 00 00 00 37 [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 2D 8A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 7D [23:51:45]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [23:51:45]wFMCommunicate OK [23:51:45]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:51:45]SAM_PROTO_ProcessDocument remain to read = 768 [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 2E 8A 80 17 00 00 00 00 00 00 38 [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 2E 8A 00 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 90 00 9A [23:51:46]RAPDU: 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 90 00 [23:51:46]wFMCommunicate OK [23:51:46]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:51:46]SAM_PROTO_ProcessDocument remain to read = 518 [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 2F 8A 80 17 00 00 00 00 00 00 39 [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 2F 8A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [23:51:47]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:47]wFMCommunicate OK [23:51:47]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:51:47]SAM_PROTO_ProcessDocument remain to read = 268 [23:51:47]wFMCommunicate request_size=4 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 17 00 00 [23:51:47]Write to MH i2c: E2 08 00 30 8A 80 17 00 00 00 00 00 00 3A [23:51:47]Write i2c OK [23:51:47]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 FD 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 FD 00 30 8A 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 F1 [23:51:47]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 [23:51:48]wFMCommunicate OK [23:51:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:51:48]SAM_PROTO_ProcessDocument remain to read = 18 [23:51:48]wFMCommunicate request_size=4 [23:51:48]MH_SAM_APDU [23:51:48]CAPDU: 80 17 00 00 [23:51:48]Write to MH i2c: E2 08 00 31 8A 80 17 00 00 00 00 00 00 3B [23:51:48]Write i2c OK [23:51:48]MH_I2C_Read... [23:51:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [23:51:48]Read from MH i2c: E2 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 15 00 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 15 00 31 8A 00 03 01 00 06 F7 03 00 00 35 04 06 00 26 E7 CF 7E B3 FF 90 00 90 [23:51:48]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 26 E7 CF 7E B3 FF 90 00 [23:51:48]wFMCommunicate OK [23:51:48]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [23:51:48]SAM_PROTO_ProcessDocument done [23:51:48]1209 (1) - 1.0 - номер версии ФФД [23:51:48]1041 (16) - 0000000000875060 - номер ФМ [23:51:48]1040 (4) - 49274 - номер ФД [23:51:48]1038 (4) - 246 - номер смены [23:51:48]1118 (4) - 149 - количество кассовых чеков за смену [23:51:48]1111 (4) - 151 - общее количество ФД за смену [23:51:48]1194 (1195) - счетчики итогов смены [23:51:48] 1134 (4) - 149 - количество чеков со всеми признаками расчетов [23:51:48] 1129 (156) - счетчики операций «приход» [23:51:48] 1135 (4) - 149 - количество чеков по признаку расчетов [23:51:48] 1201 (3) - 98116.44 - общая итоговая сумма в чеках [23:51:48] 1136 (3) - 96176.00 - итоговая сумма в чеках наличными [23:51:48] 1138 (3) - 1940.44 - итоговая сумма в чеках безналичными [23:51:48] 1024 (123) - суммы налогов [23:51:48] 1006 (9) - суммы НДС [23:51:48] 1010 (1) - 0% - код ставки НДС [23:51:48] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:48] 1006 (12) - суммы НДС [23:51:48] 1010 (1) - 12% - код ставки НДС [23:51:48] 1011 (3) - 10424.93 - сумма НДС по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 0% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (12) - суммы НСП [23:51:48] 1014 (1) - 1% - код ставки НСП [23:51:48] 1015 (3) - 868.59 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 2% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 3% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 5% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 0,50% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 1,50% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1130 (141) - счетчики операций «возврат прихода» [23:51:48] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:48] 1024 (117) - суммы налогов [23:51:48] 1006 (9) - суммы НДС [23:51:48] 1010 (1) - 0% - код ставки НДС [23:51:48] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:48] 1006 (9) - суммы НДС [23:51:48] 1010 (1) - 12% - код ставки НДС [23:51:48] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 0% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 1% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 2% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 3% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 5% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 0,50% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 1,50% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1131 (141) - счетчики операций «расход» [23:51:48] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:48] 1024 (117) - суммы налогов [23:51:48] 1006 (9) - суммы НДС [23:51:48] 1010 (1) - 0% - код ставки НДС [23:51:48] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:48] 1006 (9) - суммы НДС [23:51:48] 1010 (1) - 12% - код ставки НДС [23:51:48] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 0% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 1% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 2% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 3% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 5% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 0,50% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 1,50% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1132 (141) - счетчики операций «возврат расхода» [23:51:48] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:48] 1024 (117) - суммы налогов [23:51:48] 1006 (9) - суммы НДС [23:51:48] 1010 (1) - 0% - код ставки НДС [23:51:48] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:48] 1006 (9) - суммы НДС [23:51:48] 1010 (1) - 12% - код ставки НДС [23:51:48] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 0% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 1% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 2% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 3% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 5% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 0,50% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1007 (9) - суммы НСП [23:51:48] 1014 (1) - 1,50% - код ставки НСП [23:51:48] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:48] 1133 (588) - - счетчики коррекции - не используются [23:51:48]1077 (6) - 42777060488191 - ФПД [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1209 (04B9) [23:51:48]Malloc new data [23:51:48]Processing tag 1041 (0411) [23:51:48]Processing tag 1040 (0410) [23:51:48]Malloc new data [23:51:48]Processing tag 1038 (040E) [23:51:48]Malloc new data [23:51:48]Processing tag 1118 (045E) [23:51:48]Malloc new data [23:51:48]Processing tag 1111 (0457) [23:51:48]Malloc new data [23:51:48]Processing tag 1194 (04AA) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1134 (046E) [23:51:48]Malloc new data [23:51:48]Processing tag 1129 (0469) [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 1130 (046A) [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:49]Processing tag 1006 (03EE) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1010 (03F2) [23:51:49]Malloc new data [23:51:49]Processing tag 1011 (03F3) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]SetTLVBufToDocument err=0 [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1131 (046B) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1135 (046F) [23:51:49]Malloc new data [23:51:49]Processing tag 1201 (04B1) [23:51:49]Malloc new data [23:51:49]Processing tag 1136 (0470) [23:51:49]Malloc new data [23:51:49]Processing tag 1138 (0472) [23:51:49]Malloc new data [23:51:49]Processing tag 1024 (0400) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1006 (03EE) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1010 (03F2) [23:51:49]Malloc new data [23:51:49]Processing tag 1011 (03F3) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1006 (03EE) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1010 (03F2) [23:51:49]Malloc new data [23:51:49]Processing tag 1011 (03F3) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]SetTLVBufToDocument err=0 [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1132 (046C) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1135 (046F) [23:51:49]Malloc new data [23:51:49]Processing tag 1201 (04B1) [23:51:49]Malloc new data [23:51:49]Processing tag 1136 (0470) [23:51:49]Malloc new data [23:51:49]Processing tag 1138 (0472) [23:51:49]Malloc new data [23:51:49]Processing tag 1024 (0400) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1006 (03EE) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1010 (03F2) [23:51:49]Malloc new data [23:51:49]Processing tag 1011 (03F3) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1006 (03EE) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1010 (03F2) [23:51:49]Malloc new data [23:51:49]Processing tag 1011 (03F3) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1007 (03EF) [23:51:49]Load OK [23:51:49]SetTLVBufToDocument [23:51:49]Processing tag 1014 (03F6) [23:51:49]Malloc new data [23:51:49]Processing tag 1015 (03F7) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]SetTLVBufToDocument err=0 [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1133 (046D) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Processing tag 1077 (0435) [23:51:49]Malloc new data [23:51:49]SetTLVBufToDocument err=0 [23:51:49]Malloc new data [23:51:49]SAM_PROTO_GetFMData [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 13 03 00 [23:51:49]Write to MH i2c: E2 08 00 32 8A 80 13 03 00 00 00 00 00 3B [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 13 03 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 32 8A 00 BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 CF [23:51:49]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 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 33 8A 80 17 00 00 OFD Sender: No OFD packet to send [23:51:50]00 00 00 00 3D [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 33 8A 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 ED [23:51:50]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23: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 34 8A 80 17 00 00 00 00 00 00 3E [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 FD 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 FD 00 34 8A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E2 [23:51:51]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:51:51]wFMCommunicate OK [23:51:51]wFMCommunicate request_size=4 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 17 00 00 [23:51:51]Write to MH i2c: E2 08 00 35 8A 80 17 00 00 00 00 00 00 3F [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:52]Read from MH i2c: E2 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 FD 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 FD 00 35 8A 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 B9 [23:51:52]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:51:52]wFMCommunicate OK [23:51:52]wFMCommunicate request_size=4 [23:51:52]MH_SAM_APDU [23:51:52]CAPDU: 80 17 00 00 [23:51:52]Write to MH i2c: E2 08 00 36 8A 80 17 00 00 00 00 00 00 40 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:51:52]Read from MH i2c: E2 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 DC 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 DC 00 36 8A 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 24 [23:51:53]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:53]wFMCommunicate OK [23:51:53]SAM_PROTO_GetFMData done [23:51:53]Malloc new data [23:51:53]Malloc new data [23:51:53]Malloc new data [23:51:53]Malloc new data [23:51:53]KKMLoadAndSignCloseShiftData err=0 [23:51:53]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Уморов С. 30.01.2024 23:52 Смена: 246 РНМ: 0000000000092723 ЗНМ: 0300000040 СНО: Общий режим Чеков за смену: 149 ФД за смену: 151 Всего чеков: 149 ИТОГИ ПРИХОД Чеков: 149 Общий итог: 98116.44 Итого наличными: 96176.00 Итого безнал.: 1940.44 НДС 0% : 0.00 НДС 12% : 10424.93 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 868.59 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 96176.00 НС Приход: 31679480.53 НС Возвр.Прихода: 6198.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 49274 ФМ: 0000000000875060 ФПД: 42777060488191 [23:51:53]StoreToDocumentArchive [23:51:53]shift 246 fd 49274 [23:51:53]save to /storage/0246/doc_00049274 [23:51:53]save last doc name /storage/0246/doc_00049274 to /storage/kkm_last_doc_name [23:51:53]save OK [23:51:53]Clear old archive folders... [23:51:53]Remove dir /storage/0010 [23:51:53]opendir ok [23:51:53]file . [23:51:53]file .. [23:51:53]file doc_1706658699 [23:51:53]remove file /storage/0010/doc_1706658699 [23:51:53]remove dir /storage/0010 [23:51:53]NVStorageSaveData kkm_registers [23:51:53]File name is /storage/kkm_registers [23:51:53]Write 24 bytes [23:51:53]NVStorageSaveData done [23:51:53]NVStorageSaveData kkm_registers [23:51:53]File name is /storage/kkm_registers [23:51:53]Write 24 bytes [23:51:53]NVStorageSaveData done [23:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=1376 [23:51:53]tlvbuf is 015917C0 [23:51:53]SAM_PROTO_ClearQueue [23:51:53]wFMCommunicate request_size=4 [23:51:53]MH_SAM_APDU [23:51:53]CAPDU: 80 09 00 00 [23:51:53]Write to MH i2c: E2 08 00 37 8A 80 09 00 00 00 00 00 00 33 [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:53]Read from MH i2c: E2 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 03 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 03 00 37 8A 00 90 00 35 [23:51:53]RAPDU: 90 00 [23:51:53]wFMCommunicate OK [23:51:53]SAM_PROTO_ClearQueue done [23:51:53]KKMCreateOFDPacket [23:51:53]OFDProtocolAddRootSTLVToBuf [23:51:53]FM_MakeSignedData [23:51:53]FM_MakeSignedData [23:51:53]SAM_PROTO_SignData [23:51:53]wFMCommunicate request_size=4 [23:51:53]MH_SAM_APDU [23:51:53]CAPDU: 80 0D 01 02 [23:51:53]Write to MH i2c: E2 08 00 38 8A 80 0D 01 02 00 00 00 00 3B [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:53]Read from MH i2c: E2 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 03 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: E2 03 00 38 8A 00 90 00 36 [23:51:53]RAPDU: 90 00 [23:51:53]wFMCommunicate OK [23:51:53]wFMCommunicate request_size=255 [23:51:53]MH_SAM_APDU [23:51:53]CAPDU: 80 0D 02 02 FA 05 00 60 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 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 A4 8B B9 65 0E 04 04 00 F6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 AA 04 D6 04 6E 04 04 00 95 00 00 00 69 04 A3 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3D E8 0F 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 [23:51:53]Write to MH i2c: E2 02 01 39 8A 80 0D 02 02 FA 00 05 00 60 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 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 A4 8B B9 65 0E 04 04 00 F6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 AA 04 D6 04 6E 04 04 00 95 00 00 00 69 04 A3 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3D E8 0F 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 00 00 2F [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 03 00 39 8A 00 90 00 37 [23:51:54]RAPDU: 90 00 [23:51:54]wFMCommunicate OK [23:51:54]wFMCommunicate request_size=255 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 53 01 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 [23:51:54]Write to MH i2c: E2 02 01 3A 8A 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 53 01 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 00 00 51 [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:55]Read from MH i2c: E2 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 03 00 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 03 00 3A 8A 00 90 00 38 [23:51:55]RAPDU: 90 00 [23:51:55]wFMCommunicate OK [23:51:55]wFMCommunicate request_size=255 [23:51:55]MH_SAM_APDU [23:51:55]CAPDU: 80 0D 02 02 FA 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 [23:51:55]Write to MH i2c: E2 02 01 3B 8A 80 0D 02 02 FA 00 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 OFD Sender: No OFD packet to send [23:51:55]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 00 00 0F [23:51:55]Write i2c OK [23:51:55]MH_I2C_Read... [23:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:56]Read from MH i2c: E2 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 03 00 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 03 00 3B 8A 00 90 00 39 [23:51:56]RAPDU: 90 00 [23:51:56]wFMCommunicate OK [23:51:56]wFMCommunicate request_size=255 [23:51:56]MH_SAM_APDU [23:51:56]CAPDU: 80 0D 02 02 FA 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:56]Write to MH i2c: E2 02 01 3C 8A 80 0D 02 02 FA 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 05 [23:51:56]Write i2c OK [23:51:56]MH_I2C_Read... [23:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:56]Read from MH i2c: E2 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 03 00 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 03 00 3C 8A 00 90 00 3A [23:51:56]RAPDU: 90 00 [23:51:56]wFMCommunicate OK [23:51:56]wFMCommunicate request_size=255 [23:51:56]MH_SAM_APDU [23:51:56]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 [23:51:57]Write to MH i2c: E2 02 01 3D 8A 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 00 C7 [23:51:57]Write i2c OK [23:51:57]MH_I2C_Read... [23:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:57]Read from MH i2c: E2 [23:51:57]MH_I2C_Read... [23:51:57]Read from MH i2c: E2 03 00 [23:51:57]MH_I2C_Read... [23:51:57]Read from MH i2c: E2 03 00 3D 8A 00 90 00 3B [23:51:57]RAPDU: 90 00 [23:51:57]wFMCommunicate OK [23:51:57]wFMCommunicate request_size=135 [23:51:57]MH_SAM_APDU [23:51:57]CAPDU: 80 0D 02 02 82 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 26 E7 CF 7E B3 FF [23:51:57]Write to MH i2c: E2 8A 00 3E 8A 80 0D 02 02 82 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 26 E7 CF 7E B3 FF 00 00 C0 [23:51:57]Write i2c OK [23:51:57]MH_I2C_Read... [23:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:58]Read from MH i2c: E2 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: E2 03 00 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: E2 03 00 3E 8A 00 90 00 3C [23:51:58]RAPDU: 90 00 [23:51:58]wFMCommunicate OK [23:51:58]wFMCommunicate request_size=4 [23:51:58]MH_SAM_APDU [23:51:58]CAPDU: 80 0D 03 02 [23:51:58]Write to MH i2c: E2 08 00 3F 8A 80 0D 03 02 00 00 00 00 44 [23:51:58]Write i2c OK [23:51:58]MH_I2C_Read... [23:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:58]Read from MH i2c: E2 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: E2 0B 00 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: E2 0B 00 3F 8A 00 60 62 69 2B CF EB 98 C8 90 00 B5 [23:51:58]RAPDU: 60 62 69 2B CF EB 98 C8 90 00 [23:51:58]wFMCommunicate OK [23:51:58]SAM_PROTO_SignData done [23:51:58]FM_MakeSignedData done [23:51:58]CreateOFDProtocolMessage [23:51:58]wFMCommunicate request_size=4 [23:51:58]MH_SAM_APDU [23:51:58]CAPDU: 80 11 00 00 [23:51:58]Write to MH i2c: E2 08 00 40 8A 80 11 00 00 00 00 00 00 44 [23:51:58]Write i2c OK [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: E2 [23:51:58]MH_I2C_Read... [23:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:58]Read from MH i2c: E2 17 00 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: E2 17 00 40 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 91 [23:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:51:58]wFMCommunicate OK [23:51:58]CreateOFDProtocolMessage done [23:51:58]OFDSenderStorePacket 49274 [23:51:58]StoreOFDPacket docnum=49274 [23:51:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 74 05 00 00 4F D1 6C 05 FA F4 5A 05 01 00 05 00 60 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 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 A4 8B B9 65 0E 04 04 00 F6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 AA 04 D6 04 6E 04 04 00 95 00 00 00 69 04 A3 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3D E8 0F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 53 01 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 7A C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 26 E7 CF 7E B3 FF 60 62 69 2B CF EB 98 C8 [23:51:58]CheckFolder [23:51:58]dirname=/storage/ofd_packets [23:51:58]CheckFolder done [23:51:58]ProducePacketName [23:51:58]name=ofd_packets/00049274 [23:51:58]NVStorageSaveData ofd_packets/00049274 [23:51:58]File name is /storage/ofd_packets/00049274 [23:51:58]Write 1426 bytes [23:51:58]NVStorageSaveData done [23:51:58]OFDSenderStorePacket done [23:51:58]KKMCreateOFDPacket done [23:51:58]NVStorageSaveData kkm_last_timestamp [23:51:58]File name is /storage/kkm_last_timestamp [23:51:58]Write 4 bytes [23:51:58]NVStorageSaveData done [23:51:58]ExternCall_PrintAddStr [23:51:58]wPrintStart [23:51:58]Write to MH i2c: 01 00 00 41 8A CB [23:51:58]Write i2c OK [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: 01 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: 01 07 00 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: 01 07 00 41 8A 00 00 00 00 00 FF 0F E0 [23:51:58]RasterBufferAndPrint [23:51:58]line Отчет о закрытии смены [23:51:58]line ФФД: 1.0 [23:51:58]line ИНН: 02508201610067 [23:51:58]line Кассир: Уморов С. [23:51:58]line 30.01.2024 23:52 [23:51:58]line Смена: 246 [23:51:58]line РНМ: 0000000000092723 [23:51:58]line ЗНМ: 0300000040 [23:51:58]line СНО: Общий режим [23:51:58]line Чеков за смену: 149 [23:51:58]line ФД за смену: 151 [23:51:58]line Всего чеков: 149 [23:51:58]line ИТОГИ ПРИХОД [23:51:58]line Чеков: 149 [23:51:58]line Общий итог: 98116.44 [23:51:58]line Итого наличными: 96176.00 [23:51:58]line Итого безнал.: 1940.44 [23:51:58]line НДС 0% : 0.00 [23:51:58]line НДС 12% : 10424.93 [23:51:58]line НСП 0% : 0.00 [23:51:58]line НСП 1,50% : 0.00 [23:51:58]line НСП 0,50% : 0.00 [23:51:58]line НСП 5% : 0.00 [23:51:58]line НСП 3% : 0.00 [23:51:58]line НСП 2% : 0.00 [23:51:58]line НСП 1% : 868.59 [23:51:58]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:58]line Чеков: 0 [23:51:58]line Общий итог: 0.00 [23:51:58]line Итого наличными: 0.00 [23:51:58]line Итого безнал.: 0.00 [23:51:58]line НДС 0% : 0.00 [23:51:58]line НДС 12% : 0.00 [23:51:58]line НСП 0% : 0.00 [23:51:58]line НСП 1,50% : 0.00 [23:51:58]line НСП 0,50% : 0.00 [23:51:58]line НСП 5% : 0.00 [23:51:58]line НСП 3% : 0.00 [23:51:58]line НСП 2% : 0.00 [23:51:58]line НСП 1% : 0.00 [23:51:58]line ИТОГИ РАСХОД [23:51:58]line Чеков: 0 [23:51:58]line Общий итог: 0.00 [23:51:58]line Итого наличными: 0.00 [23:51:58]line Итого безнал.: 0.00 [23:51:58]OFD Sender: Processing packet 49274 [packets to send 12, broken 11] [23:51:58]line НДС 0% : 0.00 [23:51:58]ProducePacketName [23:51:58]line НДС 12% : 0.00 [23:51:58]name=ofd_packets/00049274 [23:51:58]line НСП 0% : 0.00 [23:51:58]OFD Sender: To server: pG, [23:51:58]line НСП 1,50% : 0.00 [23:51:58]CommunicateWithHost lk.salyk.kg:30040 [23:51:58]line НСП 0,50% : 0.00 [23:51:58]ConnectInit lk.salyk.kg [23:51:58]line НСП 5% : 0.00 [23:51:58]line НСП 3% : 0.00 [23:51:58]line НСП 2% : 0.00 [23:51:58]line НСП 1% : 0.00 [23:51:58]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:58]line Чеков: 0 [23:51:58]line Общий итог: 0.00 [23:51:58]line Итого наличными: 0.00 [23:51:58]line Итого безнал.: 0.00 [23:51:58]line НДС 0% : 0.00 [23:51:58]line НДС 12% : 0.00 [23:51:58]line НСП 0% : 0.00 [23:51:58]line НСП 1,50% : 0.00 [23:51:58]line НСП 0,50% : 0.00 [23:51:58]line НСП 5% : 0.00 [23:51:58]line НСП 3% : 0.00 [23:51:58]line НСП 2% : 0.00 [23:51:58]line НСП 1% : 0.00 [23:51:58]line Сумма внесений: 0.00 [23:51:58]line Сумма выплат: 0.00 [23:51:58]line Нал. в кассе: 96176.00 [23:51:58]line НС Приход: 31679480.53 [23:51:58]line НС Возвр.Прихода: 6198.00 [23:51:58]line НС Расход: 0.00 [23:51:58]line НС Возвр.Расхода: 0.00 [23:51:58]line ФД: 49274 [23:51:58]line ФМ: 0000000000875060 [23:51:58]line ФПД: 42777060488191 [23:51:58]written 0, free lines is 4095 [23:51:58]Connected sock=11 [23:51: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 36 30 74 05 00 00 4F D1 6C 05 FA F4 5A 05 01 00 05 00 60 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 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 A4 8B B9 65 0E 04 04 00 F6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 AA 04 D6 04 6E 04 04 00 95 00 00 00 69 04 A3 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3D E8 0F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 53 01 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 Write to MH i2c: 03 01 00 01 00 00 91 00 8A EF 1B 03 [23:52:00]0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 Write i2c OK [23:52:00]MH_I2C_Read... [23:52:00]00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 Read from MH i2c: 01 01 F7 [23:52:00]03 MH_I2C_Read... [23:52:00]01 Read from MH i2c: 00 01 00 07 6C 00 04 [23:52:00]99 MH_I2C_Read... [23:52:00]00 6F 04 04 00 00 00 00 00 B1 Read from MH i2c: 04 01 01 07 00 00 00 91 70 04 01 00 00 72 04 01 00 00 8A 00 00 04 00 7E 00 00 00 EE 03 0A 00 F2 03 01 00 00 F3 03 00 01 87 00 0C 00 B5 EE [23:52:00]03 RasterBufferAndPrint [23:52:00]0A line [23:52:00]00 line [23:52:00]F2 line [23:52:00]03 01 00 01 F3 03 01 00 00 EF 03 line [23:52:00]0A line [23:52:00]00 F6 written 0, free lines is 3482 [23:52:00]03 01 00 00 F7 03 01 00 00 EF MH_Cut [23:52:00]03 Write to MH i2c: 0A D1 00 01 F6 00 03 01 00 06 F7 03 01 00 00 EF 98 03 8A 0A 01 00 F4 F6 [23:52:00]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 Write i2c OK [23:52:00]00 MH_I2C_Read... [23:52:00]00 EF 03 0A 00 F6 Read from MH i2c: 03 D1 01 [23:52:00]00 MH_I2C_Read... [23:52:00]01 F7 03 Read from MH i2c: 01 D1 00 01 00 00 6D [23:52:00]04 4C 02 78 04 04 00 00 00 00 MH_I2C_Read... [23:52:00]00 79 04 8D 00 6F 04 04 00 00 Read from MH i2c: 00 D1 00 01 00 00 B1 04 00 00 70 04 00 00 72 04 00 98 00 8A 00 00 04 F3 75 [23:52:00]00 EE 03 09 00 F2 03 01 00 00 Write to MH i2c: F3 01 03 00 00 00 00 99 EE 03 09 8A 00 23 F2 [23:52:00]03 01 00 01 F3 03 00 00 EF 03 09 00 F6 Write i2c OK [23:52:00]03 MH_I2C_Read... [23:52:00]01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [23:52:00]EE *** Partial cut [23:52:00]03 *** CUTSNS_PIN = 1 [23:52:00]09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 *** CUTSNS_PIN = 0 [23:52:00]03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 *** Brake cut motor [23:52:00]00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 26 E7 CF 7E B3 FF 60 62 69 2B CF EB 98 C8 [23:52:01]Received data: 87 95 F6 70 47 2C 01 00 *** Stop cut motor [23:52:01]Read from MH i2c: *** Cut end [23:52:01]01 [23:52:01]MH_I2C_Read... [23:52:01]30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D0 E9 47 00 7E 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 36 30 10 04 04 00 7A C0 00 00 F4 03 04 00 A8 37 B9 65 B6 04 01 00 00 99 3C CC BA 01 D1 A0 C4 [23:52:01]CommunicateWithHost err = 0 [23:52:01]CheckOFDResponse [23:52:01]1017 (14) - 77093643461234 [23:52:01]1041 (16) - 0000000000875060 [23:52:01]1040 (4) - 49274 [23:52:01]1012 (4) - 30.01.2024 17:53 [23:52:01]1206 (1) - 0 [23:52:01]OFD Sender: Remove packet 49274 [23:52:01]ProducePacketName [23:52:01]name=ofd_packets/00049274 [23:52:01]NVStorageDeleteData [23:52:01]Read from MH i2c: 01 07 00 [23:52:01]MH_I2C_Read... [23:52:01]Read from MH i2c: 01 07 00 99 8A 00 00 00 00 00 FF 0F 38 [23:52:01]process_action close_shift done [23:52:01]requested_data is exist [23:52:01]produce_requested_data [23:52:01]requested_item fd.num is exist - process it [23:52:01]SAM_PROTO_GetFieldsCounters [23:52:01]wFMCommunicate request_size=4 [23:52:01]MH_SAM_APDU [23:52:01]CAPDU: 80 13 00 00 [23:52:01]Write to MH i2c: E2 08 00 9A 8A 80 13 00 00 00 00 00 00 A0 [23:52:01]Write i2c OK [23:52:01]MH_I2C_Read... [23:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:01]Read from MH i2c: E2 [23:52:01]MH_I2C_Read... [23:52:01]Read from MH i2c: E2 62 00 [23:52:01]MH_I2C_Read... [23:52:01]Read from MH i2c: E2 62 00 9A 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [23:52: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:01]wFMCommunicate OK [23:52:01]SAM_PROTO_GetFieldsCounters done [23:52:01]requested_item shift.num is exist - process it [23:52:01]requested_item shift.opened is exist - process it [23:52:01]req_shift_opened [23:52:01]FM_GetShiftState [23:52:01]SAM_PROTO_GetShiftState [23:52:01]wFMCommunicate request_size=4 [23:52:01]MH_SAM_APDU [23:52:01]CAPDU: 80 13 01 00 [23:52:01]Write to MH i2c: E2 08 00 9B 8A 80 13 01 00 00 00 00 00 A2 [23:52:02]Write i2c OK [23:52:02]MH_I2C_Read... [23:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:02]OFD Sender: No OFD packet to send [23:52:02]Read from MH i2c: E2 [23:52:02]MH_I2C_Read... [23:52:02]Read from MH i2c: E2 0E 00 [23:52:02]MH_I2C_Read... [23:52:02]Read from MH i2c: E2 0E 00 9B 8A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AD [23:52:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:02]wFMCommunicate OK [23:52:02]SAM_PROTO_GetShiftState done [23:52:02]FM_GetShiftState done [23:52:02]req_shift_opened done [23:52:02]requested_item shift.open_date is exist - process it [23:52:02]req_shift_open_date [23:52:02]FM_GetShiftState [23:52:02]SAM_PROTO_GetShiftState [23:52:02]wFMCommunicate request_size=4 [23:52:02]MH_SAM_APDU [23:52:02]CAPDU: 80 13 01 00 [23:52:02]Write to MH i2c: E2 08 00 9C 8A 80 13 01 00 00 00 00 00 A3 [23:52:02]Write i2c OK [23:52:02]MH_I2C_Read... [23:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:02]Read from MH i2c: E2 [23:52:02]MH_I2C_Read... [23:52:02]Read from MH i2c: E2 0E 00 [23:52:02]MH_I2C_Read... [23:52:02]Read from MH i2c: E2 0E 00 9C 8A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AE [23:52:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:02]wFMCommunicate OK [23:52:02]SAM_PROTO_GetShiftState done [23:52:02]FM_GetShiftState done [23:52:02]req_shift_open_date done [23:52:02]produce_requested_data done [23:52:02]produce_requested_data return {"fd.num":49274,"shift.num":246,"shift.opened":0,"shift.open_date":0} [23:52:02]process_action_free close_shift [23:52:02]json_value_free [23:52:02]json_value_free done [23:52:02]process_json_proto returns [23:52:02]Send response to host [23:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49274,"shift.num":246,"shift.opened":0,"shift.open_date":0}}} [23:52:02]free response buf [23:52:02]execute_script done [23:52:02]execute_script returns [23:52:02]free content buf [23:52:02]Sock 7.Close socket [23:52:02]Sock 7.Thread stoped [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]int [23:59:27]Write to MH i2c: 01 00 00 9D 8A 27 [23:59:27]*** FLAG_PRN_KEY set [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 07 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 07 00 9D 8A 00 08 00 00 00 FF 0F 44 [23:59:27]state=0 [23:59:27]Key pressed [23:59:27]Feed [23:59:27]Write to MH i2c: D8 00 00 9E 8A FF [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: D8 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: D8 01 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: D8 01 00 9E 8A 00 00 [23:59:27]int [23:59:27]Write to MH i2c: 01 00 00 9F 8A 29 [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 07 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 07 00 9F 8A 00 48 00 00 00 3C 00 B4 [23:59:27]state=2 [23:59:27]Key pressed [23:59:27]OFD Sender: No OFD packet to send [23:59:27]int [23:59:27]Write to MH i2c: 01 00 00 A0 8A 2A [23:59:27]*** FLAG_PRN_KEY reset [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 07 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: 01 07 00 A0 8A 00 00 00 00 00 F5 0F 35 [23:59:27]state=2 [23:59:27]Stop feed [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:21]accept exits with 9 [00:04:21]New connection [00:04:21]New thread 3066670436 created [00:04:21]Thread 3066813796 joined [00:04:21]Waiting for new connection... [00:04:21] Sock 9.Parse request [00:04:21]Sock 9.Check first char [00:04:21]Sock 9.First char is OK [00:04:21]request: POST /json_proto HTTP/1.0 [00:04:21]Method: POST [00:04:21]URL: /json_proto [00:04:21]Method is POST - this is cgi request [00:04:21]url: /json_proto [00:04:21]query_string will be loaded in cgi processing [00:04:21]execute_cgi json_proto POST (null) [00:04:21]execute_cgi path=json_proto method=POST [00:04:21]POST find Content-Length [00:04:21]Host: 172.17.56.67:8080 [00:04:21]Content-Length: 215 [00:04:21]Content-Type: application/json [00:04:21] [00:04:21]POST finish read [00:04:21]Found Content-Length = 215 [00:04:21]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:04:21]execute_script... [00:04:21]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:04:21]POST & json_proto [00:04:21]process_json_proto [00:04:21]json parsed OK: [00:04:21]protocol is kg_v1.0 [00:04:21]action value=get_value [00:04:21]process_action get_value [00:04:21]cmd_get_value [00:04:21]process_action get_value done [00:04:21]requested_data is exist [00:04:21]produce_requested_data [00:04:21]requested_item kkm.sn is exist - process it [00:04:21]requested_item kkm.ver is exist - process it [00:04:21]requested_item fm.sn is exist - process it [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 11 00 00 [00:04:21]Write to MH i2c: E2 08 00 A1 8A 80 11 00 00 00 00 00 00 A5 [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:21]Read from MH i2c: E2 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 17 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 17 00 A1 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F2 [00:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:04:21]wFMCommunicate OK [00:04:21]requested_item fd.num is exist - process it [00:04:21]SAM_PROTO_GetFieldsCounters [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 13 00 00 [00:04:21]Write to MH i2c: E2 08 00 A2 8A 80 13 00 00 00 00 00 00 A8 [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:21]Read from MH i2c: E2 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 62 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 62 00 A2 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [00:04: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7A C0 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:21]wFMCommunicate OK [00:04:21]SAM_PROTO_GetFieldsCounters done [00:04:21]requested_item shift.num is exist - process it [00:04:21]requested_item shift.opened is exist - process it [00:04:21]req_shift_opened [00:04:21]FM_GetShiftState [00:04:21]SAM_PROTO_GetShiftState [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 13 01 00 [00:04:21]Write to MH i2c: E2 08 00 A3 8A 80 13 01 00 00 00 00 00 AA [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:21]Read from MH i2c: E2 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 0E 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 0E 00 A3 8A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B5 [00:04:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:21]wFMCommunicate OK [00:04:21]SAM_PROTO_GetShiftState done [00:04:21]FM_GetShiftState done [00:04:21]req_shift_opened done [00:04:21]requested_item shift.open_date is exist - process it [00:04:21]req_shift_open_date [00:04:21]FM_GetShiftState [00:04:21]SAM_PROTO_GetShiftState [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 13 01 00 [00:04:21]Write to MH i2c: E2 08 00 A4 8A 80 13 01 00 00 00 00 00 AB [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:21]Read from MH i2c: E2 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 0E 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 0E 00 A4 8A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B6 [00:04:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:21]wFMCommunicate OK [00:04:21]SAM_PROTO_GetShiftState done [00:04:21]FM_GetShiftState done [00:04:21]req_shift_open_date done [00:04:21]produce_requested_data done [00:04:21]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49274,"shift.num":246,"shift.opened":0,"shift.open_date":0} [00:04:21]process_action_free get_value [00:04:21]json_value_free [00:04:21]json_value_free done [00:04:21]process_json_proto returns [00:04:21]Send response to host [00:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49274,"shift.num":246,"shift.opened":0,"shift.open_date":0}}} [00:04:21]free response buf [00:04:21]execute_script done [00:04:21]execute_script returns [00:04:21]free content buf [00:04:21]Sock 9.Close socket [00:04:21]Sock 9.Thread stoped [00:04:21]accept exits with 7 [00:04:21]New connection [00:04:21]New thread 3066813796 created [00:04:21]Thread 3066670436 joined [00:04:21]Waiting for new connection... [00:04:21] Sock 7.Parse request [00:04:21]Sock 7.Check first char [00:04:21]Sock 7.First char is OK [00:04:21]request: POST /json_proto HTTP/1.0 [00:04:21]Method: POST [00:04:21]URL: /json_proto [00:04:21]Method is POST - this is cgi request [00:04:21]url: /json_proto [00:04:21]query_string will be loaded in cgi processing [00:04:21]execute_cgi json_proto POST (null) [00:04:21]execute_cgi path=json_proto method=POST [00:04:21]POST find Content-Length [00:04:21]Host: 172.17.56.67:8080 [00:04:21]Content-Length: 331 [00:04:21]Content-Type: application/json [00:04:21] [00:04:21]POST finish read [00:04:21]Found Content-Length = 331 [00:04:21]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:04:21]execute_script... [00:04:21]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:04:21]POST & json_proto [00:04:21]process_json_proto [00:04:21]json parsed OK: [00:04:21]protocol is kg_v1.0 [00:04:21]action value=get_value [00:04:21]process_action get_value [00:04:21]cmd_get_value [00:04:21]process_action get_value done [00:04:21]requested_data is exist [00:04:21]produce_requested_data [00:04:21]requested_item fm.sale.total is exist - process it [00:04:21]SAM_PROTO_GetFMData [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 13 03 00 [00:04:21]Write to MH i2c: E2 08 00 A5 8A 80 13 03 00 00 00 00 00 AE [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 A5 8A 00 BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 42 [00:04:22]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [00:04:22]wFMCommunicate OK [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 17 00 00 [00:04:22]Write to MH i2c: E2 08 00 A6 8A 80 17 00 00 00 00 00 00 B0 [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 A6 8A 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 60 [00:04:22]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:04:22]wFMCommunicate OK [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 17 00 00 [00:04:22]Write to MH i2c: E2 08 00 A7 8A 80 17 00 00 00 00 00 00 B1 [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]OFD Sender: No OFD packet to send [00:04:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 A7 8A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 55 [00:04:22]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:04:22]wFMCommunicate OK [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 17 00 00 [00:04:22]Write to MH i2c: E2 08 00 A8 8A 80 17 00 00 00 00 00 00 B2 [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 A8 8A 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 2C [00:04:23]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 A9 8A 80 17 00 00 00 00 00 00 B3 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 DC 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 DC 00 A9 8A 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 97 [00:04:23]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:23]wFMCommunicate OK [00:04:23]SAM_PROTO_GetFMData done [00:04:23]requested_item fm.sale_refund.total is exist - process it [00:04:23]requested_item fm.buy.total is exist - process it [00:04:23]requested_item shift.sale.total is exist - process it [00:04:23]SAM_PROTO_GetShiftData [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 13 02 00 [00:04:23]Write to MH i2c: E2 08 00 AA 8A 80 13 02 00 00 00 00 00 B2 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 AA 8A 00 AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 8B [00:04:23]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 95 00 00 00 69 04 9C 00 6F 04 04 00 95 00 00 00 B1 04 03 00 BC B6 95 70 04 03 00 C0 C0 92 72 04 03 00 FC F5 02 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 3D E8 0F 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 4B 53 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 AB 8A 80 17 00 00 00 00 00 00 B5 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 AB 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 CE [00:04:24]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:04:24]wFMCommunicate OK [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 17 00 00 [00:04:24]Write to MH i2c: E2 08 00 AC 8A 80 17 00 00 00 00 00 00 B6 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 AC 8A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 6A [00:04:24]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:04:24]wFMCommunicate OK [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 17 00 00 [00:04:24]Write to MH i2c: E2 08 00 AD 8A 80 17 00 00 00 00 00 00 B7 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 AD 8A 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 35 [00:04:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:04:24]wFMCommunicate OK [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 17 00 00 [00:04:24]Write to MH i2c: E2 08 00 AE 8A 80 17 00 00 00 00 00 00 B8 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 CC 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 CC 00 AE 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 99 [00:04:25]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:25]wFMCommunicate OK [00:04:25]SAM_PROTO_GetShiftData done [00:04:25]requested_item shift.sale.total_cash is exist - process it [00:04:25]requested_item shift.sale_refund.total is exist - process it [00:04:25]requested_item shift.sale_refund.total_cash is exist - process it [00:04:25]requested_item shift.buy.total is exist - process it [00:04:25]requested_item shift.buy.total_cash is exist - process it [00:04:25]produce_requested_data done [00:04:25]produce_requested_data return {"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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:04:25]process_action_free get_value [00:04:25]json_value_free [00:04:25]json_value_free done [00:04:25]process_json_proto returns [00:04:25]Send response to host [00:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":98116.44,"shift.sale.total_cash":96176.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:04:25]free response buf [00:04:25]execute_script done [00:04:25]execute_script returns [00:04:25]free content buf [00:04:25]Sock 7.Close socket [00:04:25]Sock 7.Thread stoped [00:04:25]accept exits with 9 [00:04:25]New connection [00:04:25]New thread 3066670436 created [00:04:25]Thread 3066813796 joined [00:04:25]Waiting for new connection... [00:04:25] Sock 9.Parse request [00:04:25]Sock 9.Check first char [00:04:25]Sock 9.First char is OK [00:04:25]request: POST /json_proto HTTP/1.0 [00:04:25]Method: POST [00:04:25]URL: /json_proto [00:04:25]Method is POST - this is cgi request [00:04:25]url: /json_proto [00:04:25]query_string will be loaded in cgi processing [00:04:25]execute_cgi json_proto POST (null) [00:04:25]execute_cgi path=json_proto method=POST [00:04:25]POST find Content-Length [00:04:25]Host: 172.17.56.67:8080 [00:04:25]Content-Length: 283 [00:04:25]Content-Type: application/json [00:04:25] [00:04:25]POST finish read [00:04:25]Found Content-Length = 283 [00:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:25]execute_script... [00:04:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:25]POST & json_proto [00:04:25]process_json_proto [00:04:25]json parsed OK: [00:04:25]protocol is kg_v1.0 [00:04:25]action value=open_shift [00:04:25]process_action open_shift [00:04:25]cmd_open_shift [00:04:25]MH_GetDate [00:04:25]Write to MH i2c: F0 00 00 AF 8A 28 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: F0 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: F0 09 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: F0 09 00 AF 8A 00 9E 8E B9 65 26 5D 9E 65 01 [00:04:25]GetLastDocTimeStamp 1706658724 [00:04:25]current date 1706659486 [00:04:25]FM_GetShiftState [00:04:25]SAM_PROTO_GetShiftState [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 13 01 00 [00:04:25]Write to MH i2c: E2 08 00 B0 8A 80 13 01 00 00 00 00 00 B7 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 [00:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 0E 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 0E 00 B0 8A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C2 [00:04:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:25]wFMCommunicate OK [00:04:25]SAM_PROTO_GetShiftState done [00:04:25]FM_GetShiftState done [00:04:25]KKMCreateOpenShiftDocument [00:04:25]Load OK [00:04:25]Malloc new data [00:04:25]MH_GetDate [00:04:25]Write to MH i2c: F0 00 00 B1 8A 2A [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: F0 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: F0 09 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: F0 09 00 B1 8A 00 9E 8E B9 65 26 5D 9E 65 03 [00:04:25]Malloc new data [00:04:25]KKMCreateOpenShiftDocument OK [00:04:25]KKMSetOpenShiftData OK [00:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=207 [00:04:25]tlvbuf is 011BAB10 [00:04:25]KKMLoadAndSignOpenShiftData [00:04:25]SAM_PROTO_ProcessDocument [00:04:25]wFMCommunicate request_size=9 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 15 01 00 04 02 00 CF 00 [00:04:25]Write to MH i2c: E2 0C 00 B2 8A 80 15 01 00 04 00 02 00 CF 00 00 00 94 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 B2 8A 00 90 00 B0 [00:04:25]RAPDU: 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=23 [00:04:25]MH_SAM_APDU [00:04:25]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:04:25]Write to MH i2c: E2 1A 00 B3 8A 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 B2 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 B3 8A 00 90 00 B1 [00:04:25]RAPDU: 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=38 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 [00:04:25]Write to MH i2c: E2 29 00 B4 8A 80 15 02 00 21 00 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 00 00 4B [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 B4 8A 00 90 00 B2 [00:04:25]RAPDU: 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=87 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 [00:04:25]Write to MH i2c: E2 5A 00 B5 8A 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 00 00 63 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 B5 8A 00 90 00 B3 [00:04:25]RAPDU: 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=51 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 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:04:25]Write to MH i2c: E2 36 00 B6 8A 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 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 65 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 B6 8A 00 90 00 B4 [00:04:25]RAPDU: 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=13 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 15 02 00 08 F4 03 04 00 9E 8E B9 65 [00:04:25]Write to MH i2c: E2 10 00 B7 8A 80 15 02 00 08 00 F4 03 04 00 9E 8E B9 65 00 00 16 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 03 00 B7 8A 00 90 00 B5 [00:04:25]RAPDU: 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=25 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 [00:04:25]Write to MH i2c: E2 1C 00 B8 8A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 00 00 22 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:26]Read from MH i2c: E2 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 03 00 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 03 00 B8 8A 00 90 00 B6 [00:04:26]RAPDU: 90 00 [00:04:26]wFMCommunicate OK [00:04:26]wFMCommunicate request_size=4 [00:04:26]MH_SAM_APDU [00:04:26]CAPDU: 80 15 03 00 [00:04:26]Write to MH i2c: E2 08 00 B9 8A 80 15 03 00 00 00 00 00 C4 [00:04:26]Write i2c OK [00:04:26]MH_I2C_Read... [00:04:26]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:04:26]Read from MH i2c: E2 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 38 00 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 38 00 B9 8A 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 36 30 10 04 04 00 7B C0 00 00 0E 04 04 00 F7 00 00 00 35 04 06 00 9F 0D 6C 4D 0A A8 90 00 D3 [00:04:26]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 36 30 10 04 04 00 7B C0 00 00 0E 04 04 00 F7 00 00 00 35 04 06 00 9F 0D 6C 4D 0A A8 90 00 [00:04:26]wFMCommunicate OK [00:04:26]SAM_PROTO_ProcessDocument answer len = 51 [00:04:26]SAM_PROTO_ProcessDocument done [00:04:26]SetTLVBufToDocument [00:04:26]Processing tag 1209 (04B9) [00:04:26]Malloc new data [00:04:26]Processing tag 1041 (0411) [00:04:26]Processing tag 1040 (0410) [00:04:26]Malloc new data [00:04:26]Processing tag 1038 (040E) [00:04:26]Malloc new data [00:04:26]Processing tag 1077 (0435) [00:04:26]Malloc new data [00:04:26]SetTLVBufToDocument err=0 [00:04:26]KKMLoadAndSignOpenShiftData store KKM data [00:04:26]KKMLoadAndSignOpenShiftData err=0 [00:04:26]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Барыктабасов Т. Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 Место: АЗС № 102 "Партнер Нефть" 31.01.2024 00:04 Смена: 247 РНМ: 0000000000092723 ЗНМ: 0300000040 ФД: 49275 ФМ: 0000000000875060 ФПД: 174880000379560 [00:04:26]StoreToDocumentArchive [00:04:26]shift 247 fd 49275 [00:04:26]Create dir for shift 0247 [00:04:26]save to /storage/0247/doc_00049275 [00:04:26]save last doc name /storage/0247/doc_00049275 to /storage/kkm_last_doc_name [00:04:26]save OK [00:04:26]Clear old archive folders... [00:04:26]Remove dir /storage/0246 [00:04:26]opendir ok [00:04:26]file . [00:04:26]file .. [00:04:26]file doc_00049124 [00:04:26]remove file /storage/0246/doc_00049124 [00:04:26]file doc_00049125 [00:04:26]remove file /storage/0246/doc_00049125 [00:04:26]file doc_00049126 [00:04:26]remove file /storage/0246/doc_00049126 [00:04:26]file doc_00049127 [00:04:26]remove file /storage/0246/doc_00049127 [00:04:26]file doc_00049128 [00:04:26]remove file /storage/0246/doc_00049128 [00:04:26]file doc_00049129 [00:04:26]remove file /storage/0246/doc_00049129 [00:04:26]file doc_00049130 [00:04:26]remove file /storage/0246/doc_00049130 [00:04:26]file doc_00049131 [00:04:26]remove file /storage/0246/doc_00049131 [00:04:26]file doc_00049132 [00:04:26]remove file /storage/0246/doc_00049132 [00:04:26]file doc_00049133 [00:04:26]remove file /storage/0246/doc_00049133 [00:04:26]file doc_00049134 [00:04:26]remove file /storage/0246/doc_00049134 [00:04:26]file doc_00049135 [00:04:26]remove file /storage/0246/doc_00049135 [00:04:26]file doc_00049136 [00:04:26]remove file /storage/0246/doc_00049136 [00:04:26]file doc_00049137 [00:04:26]remove file /storage/0246/doc_00049137 [00:04:26]file doc_00049138 [00:04:26]remove file /storage/0246/doc_00049138 [00:04:26]file doc_00049139 [00:04:26]remove file /storage/0246/doc_00049139 [00:04:26]file doc_00049140 [00:04:26]remove file /storage/0246/doc_00049140 [00:04:26]file doc_00049141 [00:04:26]remove file /storage/0246/doc_00049141 [00:04:26]file doc_00049142 [00:04:26]remove file /storage/0246/doc_00049142 [00:04:26]file doc_00049143 [00:04:26]remove file /storage/0246/doc_00049143 [00:04:26]file doc_00049144 [00:04:26]remove file /storage/0246/doc_00049144 [00:04:26]file doc_00049145 [00:04:26]remove file /storage/0246/doc_00049145 [00:04:26]file doc_00049146 [00:04:26]remove file /storage/0246/doc_00049146 [00:04:26]file doc_00049147 [00:04:26]remove file /storage/0246/doc_00049147 [00:04:26]file doc_00049148 [00:04:26]remove file /storage/0246/doc_00049148 [00:04:26]file doc_00049149 [00:04:26]remove file /storage/0246/doc_00049149 [00:04:26]file doc_00049150 [00:04:26]remove file /storage/0246/doc_00049150 [00:04:26]file doc_00049151 [00:04:26]remove file /storage/0246/doc_00049151 [00:04:26]file doc_00049152 [00:04:26]remove file /storage/0246/doc_00049152 [00:04:26]file doc_00049153 [00:04:26]remove file /storage/0246/doc_00049153 [00:04:26]file doc_00049154 [00:04:26]remove file /storage/0246/doc_00049154 [00:04:26]file doc_00049155 [00:04:26]remove file /storage/0246/doc_00049155 [00:04:26]file doc_00049156 [00:04:26]remove file /storage/0246/doc_00049156 [00:04:26]file doc_00049157 [00:04:26]remove file /storage/0246/doc_00049157 [00:04:26]file doc_00049158 [00:04:26]remove file /storage/0246/doc_00049158 [00:04:26]file doc_00049159 [00:04:26]remove file /storage/0246/doc_00049159 [00:04:26]file doc_00049160 [00:04:26]remove file /storage/0246/doc_00049160 [00:04:26]file doc_00049161 [00:04:26]remove file /storage/0246/doc_00049161 [00:04:26]file doc_00049162 [00:04:26]remove file /storage/0246/doc_00049162 [00:04:26]file doc_00049163 [00:04:26]remove file /storage/0246/doc_00049163 [00:04:26]file doc_00049164 [00:04:26]remove file /storage/0246/doc_00049164 [00:04:26]file doc_00049165 [00:04:26]remove file /storage/0246/doc_00049165 [00:04:26]file doc_00049166 [00:04:26]remove file /storage/0246/doc_00049166 [00:04:26]file doc_00049167 [00:04:26]remove file /storage/0246/doc_00049167 [00:04:26]file doc_00049168 [00:04:26]remove file /storage/0246/doc_00049168 [00:04:26]file doc_00049169 [00:04:26]remove file /storage/0246/doc_00049169 [00:04:26]file doc_00049170 [00:04:26]remove file /storage/0246/doc_00049170 [00:04:26]file doc_00049171 [00:04:26]remove file /storage/0246/doc_00049171 [00:04:26]file doc_00049172 [00:04:26]remove file /storage/0246/doc_00049172 [00:04:26]file doc_00049173 [00:04:26]remove file /storage/0246/doc_00049173 [00:04:26]file doc_00049174 [00:04:26]remove file /storage/0246/doc_00049174 [00:04:26]file doc_00049175 [00:04:26]remove file /storage/0246/doc_00049175 [00:04:26]file doc_00049176 [00:04:26]remove file /storage/0246/doc_00049176 [00:04:26]file doc_00049177 [00:04:26]remove file /storage/0246/doc_00049177 [00:04:26]file doc_00049178 [00:04:26]remove file /storage/0246/doc_00049178 [00:04:26]file doc_00049179 [00:04:26]remove file /storage/0246/doc_00049179 [00:04:26]file doc_00049180 [00:04:26]remove file /storage/0246/doc_00049180 [00:04:26]file doc_00049181 [00:04:26]remove file /storage/0246/doc_00049181 [00:04:26]file doc_00049182 [00:04:26]remove file /storage/0246/doc_00049182 [00:04:26]file doc_00049183 [00:04:26]remove file /storage/0246/doc_00049183 [00:04:26]file doc_00049184 [00:04:26]remove file /storage/0246/doc_00049184 [00:04:26]file doc_00049185 [00:04:26]remove file /storage/0246/doc_00049185 [00:04:26]file doc_00049186 [00:04:26]remove file /storage/0246/doc_00049186 [00:04:26]file doc_00049187 [00:04:26]remove file /storage/0246/doc_00049187 [00:04:26]file doc_00049188 [00:04:26]remove file /storage/0246/doc_00049188 [00:04:26]file doc_00049189 [00:04:26]remove file /storage/0246/doc_00049189 [00:04:26]file doc_00049190 [00:04:26]remove file /storage/0246/doc_00049190 [00:04:26]file doc_00049191 [00:04:26]remove file /storage/0246/doc_00049191 [00:04:26]file doc_00049192 [00:04:26]remove file /storage/0246/doc_00049192 [00:04:26]file doc_00049193 [00:04:26]remove file /storage/0246/doc_00049193 [00:04:26]file doc_00049194 [00:04:26]remove file /storage/0246/doc_00049194 [00:04:26]file doc_00049195 [00:04:26]remove file /storage/0246/doc_00049195 [00:04:26]file doc_00049196 [00:04:26]remove file /storage/0246/doc_00049196 [00:04:26]file doc_00049197 [00:04:26]remove file /storage/0246/doc_00049197 [00:04:26]file doc_00049198 [00:04:26]remove file /storage/0246/doc_00049198 [00:04:26]file doc_00049199 [00:04:26]remove file /storage/0246/doc_00049199 [00:04:26]file doc_00049200 [00:04:26]remove file /storage/0246/doc_00049200 [00:04:26]file doc_00049201 [00:04:26]remove file /storage/0246/doc_00049201 [00:04:26]file doc_00049202 [00:04:26]remove file /storage/0246/doc_00049202 [00:04:26]file doc_00049203 [00:04:26]remove file /storage/0246/doc_00049203 [00:04:26]file doc_00049204 [00:04:26]remove file /storage/0246/doc_00049204 [00:04:26]file doc_00049205 [00:04:26]remove file /storage/0246/doc_00049205 [00:04:26]file doc_00049206 [00:04:26]remove file /storage/0246/doc_00049206 [00:04:26]file doc_00049207 [00:04:26]remove file /storage/0246/doc_00049207 [00:04:26]file doc_00049208 [00:04:26]remove file /storage/0246/doc_00049208 [00:04:26]file doc_00049209 [00:04:26]remove file /storage/0246/doc_00049209 [00:04:26]file doc_00049210 [00:04:26]remove file /storage/0246/doc_00049210 [00:04:26]file doc_00049211 [00:04:26]remove file /storage/0246/doc_00049211 [00:04:26]file doc_00049212 [00:04:26]remove file /storage/0246/doc_00049212 [00:04:26]file doc_00049213 [00:04:26]remove file /storage/0246/doc_00049213 [00:04:26]file doc_00049214 [00:04:26]remove file /storage/0246/doc_00049214 [00:04:26]file doc_00049215 [00:04:26]remove file /storage/0246/doc_00049215 [00:04:26]file doc_00049216 [00:04:26]remove file /storage/0246/doc_00049216 [00:04:26]file doc_00049217 [00:04:26]remove file /storage/0246/doc_00049217 [00:04:26]file doc_00049218 [00:04:26]remove file /storage/0246/doc_00049218 [00:04:26]file doc_00049219 [00:04:26]remove file /storage/0246/doc_00049219 [00:04:26]file doc_00049220 [00:04:26]remove file /storage/0246/doc_00049220 [00:04:26]file doc_00049221 [00:04:26]remove file /storage/0246/doc_00049221 [00:04:26]file doc_00049222 [00:04:26]remove file /storage/0246/doc_00049222 [00:04:26]file doc_00049223 [00:04:26]remove file /storage/0246/doc_00049223 [00:04:26]file doc_00049224 [00:04:26]remove file /storage/0246/doc_00049224 [00:04:26]file doc_00049225 [00:04:26]remove file /storage/0246/doc_00049225 [00:04:26]file doc_00049226 [00:04:26]remove file /storage/0246/doc_00049226 [00:04:26]file doc_00049227 [00:04:26]remove file /storage/0246/doc_00049227 [00:04:26]file doc_00049228 [00:04:26]remove file /storage/0246/doc_00049228 [00:04:26]file doc_00049229 [00:04:26]remove file /storage/0246/doc_00049229 [00:04:26]file doc_00049230 [00:04:26]remove file /storage/0246/doc_00049230 [00:04:26]file doc_00049231 [00:04:26]remove file /storage/0246/doc_00049231 [00:04:26]file doc_00049232 [00:04:26]remove file /storage/0246/doc_00049232 [00:04:26]file doc_00049233 [00:04:26]remove file /storage/0246/doc_00049233 [00:04:26]file doc_00049234 [00:04:26]remove file /storage/0246/doc_00049234 [00:04:26]file doc_00049235 [00:04:26]remove file /storage/0246/doc_00049235 [00:04:26]file doc_00049236 [00:04:26]remove file /storage/0246/doc_00049236 [00:04:26]file doc_00049237 [00:04:26]remove file /storage/0246/doc_00049237 [00:04:26]file doc_00049238 [00:04:27]remove file /storage/0246/doc_00049238 [00:04:27]file doc_00049239 [00:04:27]remove file /storage/0246/doc_00049239 [00:04:27]file doc_00049240 [00:04:27]remove file /storage/0246/doc_00049240 [00:04:27]file doc_00049241 [00:04:27]remove file /storage/0246/doc_00049241 [00:04:27]file doc_00049242 [00:04:27]remove file /storage/0246/doc_00049242 [00:04:27]file doc_00049243 [00:04:27]remove file /storage/0246/doc_00049243 [00:04:27]file doc_00049244 [00:04:27]remove file /storage/0246/doc_00049244 [00:04:27]file doc_00049245 [00:04:27]remove file /storage/0246/doc_00049245 [00:04:27]file doc_00049246 [00:04:27]remove file /storage/0246/doc_00049246 [00:04:27]file doc_00049247 [00:04:27]remove file /storage/0246/doc_00049247 [00:04:27]file doc_00049248 [00:04:27]remove file /storage/0246/doc_00049248 [00:04:27]file doc_00049249 [00:04:27]remove file /storage/0246/doc_00049249 [00:04:27]file doc_00049250 [00:04:27]remove file /storage/0246/doc_00049250 [00:04:27]file doc_00049251 [00:04:27]remove file /storage/0246/doc_00049251 [00:04:27]file doc_00049252 [00:04:27]remove file /storage/0246/doc_00049252 [00:04:27]file doc_00049253 [00:04:27]remove file /storage/0246/doc_00049253 [00:04:27]file doc_00049254 [00:04:27]remove file /storage/0246/doc_00049254 [00:04:27]file doc_00049255 [00:04:27]remove file /storage/0246/doc_00049255 [00:04:27]file doc_00049256 [00:04:27]remove file /storage/0246/doc_00049256 [00:04:27]file doc_00049257 [00:04:27]remove file /storage/0246/doc_00049257 [00:04:27]file doc_00049258 [00:04:27]remove file /storage/0246/doc_00049258 [00:04:27]file doc_00049259 [00:04:27]remove file /storage/0246/doc_00049259 [00:04:27]file doc_00049260 [00:04:27]remove file /storage/0246/doc_00049260 [00:04:27]file doc_00049261 [00:04:27]remove file /storage/0246/doc_00049261 [00:04:27]file doc_00049262 [00:04:27]remove file /storage/0246/doc_00049262 [00:04:27]file doc_00049263 [00:04:27]remove file /storage/0246/doc_00049263 [00:04:27]file doc_00049264 [00:04:27]remove file /storage/0246/doc_00049264 [00:04:27]file doc_00049265 [00:04:27]remove file /storage/0246/doc_00049265 [00:04:27]file doc_00049266 [00:04:27]remove file /storage/0246/doc_00049266 [00:04:27]file doc_00049267 [00:04:27]remove file /storage/0246/doc_00049267 [00:04:27]file doc_00049268 [00:04:27]remove file /storage/0246/doc_00049268 [00:04:27]file doc_00049269 [00:04:27]remove file /storage/0246/doc_00049269 [00:04:27]file doc_00049270 [00:04:27]remove file /storage/0246/doc_00049270 [00:04:27]file doc_00049271 [00:04:27]remove file /storage/0246/doc_00049271 [00:04:27]file doc_00049272 [00:04:27]remove file /storage/0246/doc_00049272 [00:04:27]file doc_00049273 [00:04:27]remove file /storage/0246/doc_00049273 [00:04:27]file doc_00049274 [00:04:27]remove file /storage/0246/doc_00049274 [00:04:27]remove dir /storage/0246 [00:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=258 [00:04:27]tlvbuf is 01355140 [00:04:27]SAM_PROTO_ClearQueue [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 09 00 00 [00:04:27]Write to MH i2c: E2 08 00 BA 8A 80 09 00 00 00 00 00 00 B6 [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 03 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 03 00 BA 8A 00 90 00 B8 [00:04:27]RAPDU: 90 00 [00:04:27]wFMCommunicate OK [00:04:27]SAM_PROTO_ClearQueue done [00:04:27]KKMCreateOFDPacket [00:04:27]OFDProtocolAddRootSTLVToBuf [00:04:27]FM_MakeSignedData [00:04:27]FM_MakeSignedData [00:04:27]SAM_PROTO_SignData [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 0D 01 02 [00:04:27]Write to MH i2c: E2 08 00 BB 8A 80 0D 01 02 00 00 00 00 BE [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 03 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 03 00 BB 8A 00 90 00 B9 [00:04:27]RAPDU: 90 00 [00:04:27]wFMCommunicate OK [00:04:27]wFMCommunicate request_size=255 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 0D 02 02 FA 02 00 02 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 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 9E 8E B9 65 0E 04 04 00 F7 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7B C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [00:04:27]Write to MH i2c: E2 02 01 BC 8A 80 0D 02 02 FA 00 02 00 02 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 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 9E 8E B9 65 0E 04 04 00 F7 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7B C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 94 [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 03 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 03 00 BC 8A 00 90 00 BA [00:04:27]RAPDU: 90 00 [00:04:27]wFMCommunicate OK [00:04:27]wFMCommunicate request_size=17 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 0D 02 02 0C 36 30 35 04 06 00 9F 0D 6C 4D 0A A8 [00:04:27]Write to MH i2c: E2 14 00 BD 8A 80 0D 02 02 0C 00 36 30 35 04 06 00 9F 0D 6C 4D 0A A8 00 00 95 [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 03 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 03 00 BD 8A 00 90 00 BB [00:04:27]RAPDU: 90 00 [00:04:27]wFMCommunicate OK [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 0D 03 02 [00:04:27]Write to MH i2c: E2 08 00 BE 8A 80 0D 03 02 00 00 00 00 C3 [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]OFD Sender: No OFD packet to send [00:04:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 0B 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 0B 00 BE 8A 00 CC 7E C4 97 8D FC B5 F8 90 00 9F [00:04:27]RAPDU: CC 7E C4 97 8D FC B5 F8 90 00 [00:04:27]wFMCommunicate OK [00:04:27]SAM_PROTO_SignData done [00:04:27]FM_MakeSignedData done [00:04:27]CreateOFDProtocolMessage [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 11 00 00 [00:04:27]Write to MH i2c: E2 08 00 BF 8A 80 11 00 00 00 00 00 00 C3 [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 17 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 17 00 BF 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 10 [00:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:04:27]wFMCommunicate OK [00:04:27]CreateOFDProtocolMessage done [00:04:27]OFDSenderStorePacket 49275 [00:04:27]StoreOFDPacket docnum=49275 [00:04:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 16 01 00 00 95 4F 0E 01 0F 80 5A 02 01 00 02 00 02 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 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 9E 8E B9 65 0E 04 04 00 F7 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7B C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 9F 0D 6C 4D 0A A8 CC 7E C4 97 8D FC B5 F8 [00:04:27]CheckFolder [00:04:27]dirname=/storage/ofd_packets [00:04:27]CheckFolder done [00:04:27]ProducePacketName [00:04:27]name=ofd_packets/00049275 [00:04:27]NVStorageSaveData ofd_packets/00049275 [00:04:27]File name is /storage/ofd_packets/00049275 [00:04:27]Write 308 bytes [00:04:27]NVStorageSaveData done [00:04:27]OFDSenderStorePacket done [00:04:27]KKMCreateOFDPacket done [00:04:27]NVStorageSaveData kkm_last_timestamp [00:04:27]File name is /storage/kkm_last_timestamp [00:04:27]Write 4 bytes [00:04:27]NVStorageSaveData done [00:04:27]ExternCall_PrintAddStr [00:04:27]wPrintStart [00:04:27]Write to MH i2c: 01 00 00 C0 8A 4A [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: 01 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: 01 07 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: 01 07 00 C0 8A 00 00 00 00 00 FF 0F 5F [00:04:27]RasterBufferAndPrint [00:04:27]line Отчет об открытии смены [00:04:27]line ФФД: 1.0 [00:04:27]line ИНН: 02508201610067 [00:04:27]line Кассир: Барыктабасов Т. [00:04:27]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:04:27]line Место: АЗС № 102 "Партнер Нефть" [00:04:27]line 31.01.2024 00:04 [00:04:27]line Смена: 247 [00:04:27]line РНМ: 0000000000092723 [00:04:27]line ЗНМ: 0300000040 [00:04:27]line ФД: 49275 [00:04:27]line ФМ: 0000000000875060 [00:04:27]line ФПД: 174880000379560 [00:04:27]written 0, free lines is 4095 [00:04:27]OFD Sender: Processing packet 49275 [packets to send 12, broken 11] [00:04:27]ProducePacketName [00:04:27]name=ofd_packets/00049275 [00:04:27]OFD Sender: To server: pG, [00:04:27]CommunicateWithHost lk.salyk.kg:30040 [00:04:27]ConnectInit lk.salyk.kg [00:04:28]Connected sock=10 [00:04: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 36 30 16 01 00 00 95 4F 0E 01 0F 80 5A 02 01 00 02 00 02 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 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 9E 8E B9 65 0E 04 04 00 F7 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7B C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 9F 0D 6C 4D 0A A8 CC 7E C4 97 8D FC B5 F8 [00:04:28]Write to MH i2c: 01 00 00 D2 8A 5C [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: 01 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: 01 07 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: 01 07 00 D2 8A 00 00 00 00 00 FC 0E 6D [00:04:28]RasterBufferAndPrint [00:04:28]line [00:04:28]line [00:04:28]line [00:04:28]line [00:04:28]line [00:04:28]written 0, free lines is 3858 [00:04:28]MH_Cut [00:04:28]Write to MH i2c: D1 01 00 D9 8A 01 35 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: D1 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: D1 01 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: D1 01 00 D9 8A 00 34 [00:04:28]Write to MH i2c: 01 00 00 DA 8A 64 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04: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 36 30 4F 00 00 00 D6 32 47 00 44 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 36 30 10 04 04 00 7B C0 00 00 F4 03 04 00 93 3A B9 65 B6 04 01 00 00 A6 9D F3 FC 6E 4A D5 0A [00:04:28]CommunicateWithHost err = 0 [00:04:28]CheckOFDResponse [00:04:28]1017 (14) - 77093643461234 [00:04:28]1041 (16) - 0000000000875060 [00:04:28]1040 (4) - 49275 [00:04:28]1012 (4) - 30.01.2024 18:06 [00:04:28]1206 (1) - 0 [00:04:28]OFD Sender: Remove packet 49275 [00:04:28]ProducePacketName [00:04:28]name=ofd_packets/00049275 [00:04:28]NVStorageDeleteData [00:04:28]*** Cut start [00:04:28]*** Partial cut [00:04:28]*** CUTSNS_PIN = 1 [00:04:28]*** CUTSNS_PIN = 0 [00:04:28]*** Brake cut motor [00:04:28]OFD Sender: No OFD packet to send [00:04:29]Read from MH i2c: 01 [00:04:29]MH_I2C_Read... [00:04:29]*** Stop cut motor [00:04:29]*** Cut end [00:04:29]Read from MH i2c: 01 07 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: 01 07 00 DA 8A 00 00 00 00 00 FF 0F 79 [00:04:29]process_action open_shift done [00:04:29]requested_data is exist [00:04:29]produce_requested_data [00:04:29]requested_item fd.num is exist - process it [00:04:29]SAM_PROTO_GetFieldsCounters [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 13 00 00 [00:04:29]Write to MH i2c: E2 08 00 DB 8A 80 13 00 00 00 00 00 00 E1 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 62 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 62 00 DB 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7B C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [00:04: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7B C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:29]wFMCommunicate OK [00:04:29]SAM_PROTO_GetFieldsCounters done [00:04:29]requested_item shift.num is exist - process it [00:04:29]requested_item shift.opened is exist - process it [00:04:29]req_shift_opened [00:04:29]FM_GetShiftState [00:04:29]SAM_PROTO_GetShiftState [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 13 01 00 [00:04:29]Write to MH i2c: E2 08 00 DC 8A 80 13 01 00 00 00 00 00 E3 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 0E 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 0E 00 DC 8A 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 39 [00:04:29]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [00:04:29]wFMCommunicate OK [00:04:29]SAM_PROTO_GetShiftState done [00:04:29]FM_GetShiftState done [00:04:29]req_shift_opened done [00:04:29]requested_item shift.open_date is exist - process it [00:04:29]req_shift_open_date [00:04:29]req_shift_open_date done [00:04:29]produce_requested_data done [00:04:29]produce_requested_data return {"fd.num":49275,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [00:04:29]process_action_free open_shift [00:04:29]json_value_free [00:04:29]json_value_free done [00:04:29]process_json_proto returns [00:04:29]Send response to host [00:04:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49275,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [00:04:29]free response buf [00:04:29]execute_script done [00:04:29]execute_script returns [00:04:29]free content buf [00:04:29]Sock 9.Close socket [00:04:29]Sock 9.Thread stoped [00:04:29]accept exits with 7 [00:04:29]New connection [00:04:29]New thread 3066813796 created [00:04:29]Thread 3066670436 joined [00:04:29]Waiting for new connection... [00:04:29] Sock 7.Parse request [00:04:29]Sock 7.Check first char [00:04:29]Sock 7.First char is OK [00:04:29]request: POST /json_proto HTTP/1.0 [00:04:29]Method: POST [00:04:29]URL: /json_proto [00:04:29]Method is POST - this is cgi request [00:04:29]url: /json_proto [00:04:29]query_string will be loaded in cgi processing [00:04:29]execute_cgi json_proto POST (null) [00:04:29]execute_cgi path=json_proto method=POST [00:04:29]POST find Content-Length [00:04:29]Host: 172.17.56.67:8080 [00:04:29]Content-Length: 331 [00:04:29]Content-Type: application/json [00:04:29] [00:04:29]POST finish read [00:04:29]Found Content-Length = 331 [00:04:29]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:04:29]execute_script... [00:04:29]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:04:29]POST & json_proto [00:04:29]process_json_proto [00:04:29]json parsed OK: [00:04:29]protocol is kg_v1.0 [00:04:29]action value=get_value [00:04:29]process_action get_value [00:04:29]cmd_get_value [00:04:29]process_action get_value done [00:04:29]requested_data is exist [00:04:29]produce_requested_data [00:04:29]requested_item fm.sale.total is exist - process it [00:04:29]SAM_PROTO_GetFMData [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 13 03 00 [00:04:29]Write to MH i2c: E2 08 00 DD 8A 80 13 03 00 00 00 00 00 E6 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 DD 8A 00 BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 7A [00:04:30]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 8F BE 00 00 69 04 A1 00 6F 04 04 00 8B BE 00 00 B1 04 04 00 15 0D D3 BC 70 04 04 00 84 04 17 B0 72 04 04 00 91 08 BC 0C 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 DE D2 0F 14 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 F3 AB 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 DE 8A 80 17 00 00 00 00 00 00 E8 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 DE 8A 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 98 [00:04:30]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 DF 8A 80 17 00 00 00 00 00 00 E9 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 DF 8A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 8D [00:04:30]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 E0 8A 80 17 00 00 00 00 00 00 EA [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 FD 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 FD 00 E0 8A 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 64 [00:04:31]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 17 00 00 [00:04:31]Write to MH i2c: E2 08 00 E1 8A 80 17 00 00 00 00 00 00 EB [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 DC 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 DC 00 E1 8A 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [00:04:31]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_GetFMData done [00:04:31]requested_item fm.sale_refund.total is exist - process it [00:04:31]requested_item fm.buy.total is exist - process it [00:04:31]requested_item shift.sale.total is exist - process it [00:04:31]SAM_PROTO_GetShiftData [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 13 02 00 [00:04:31]Write to MH i2c: E2 08 00 E2 8A 80 13 02 00 00 00 00 00 EA [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 E2 8A 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 5D [00:04:32]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:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 17 00 00 [00:04:32]Write to MH i2c: E2 08 00 E3 8A 80 17 00 00 00 00 00 00 ED [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 E3 8A 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 F5 [00:04:32]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:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 17 00 00 [00:04:32]Write to MH i2c: E2 08 00 E4 8A 80 17 00 00 00 00 00 00 EE [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 E4 8A 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 C0 [00:04:33]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:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 17 00 00 [00:04:33]Write to MH i2c: E2 08 00 E5 8A 80 17 00 00 00 00 00 00 EF [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 E5 8A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 61 [00:04:33]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:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 17 00 00 [00:04:33]Write to MH i2c: E2 08 00 E6 8A 80 17 00 00 00 00 00 00 F0 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:34]OFD Sender: No OFD packet to send [00:04:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 BD 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 BD 00 E6 8A 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 D6 [00:04:34]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:04:34]wFMCommunicate OK [00:04:34]SAM_PROTO_GetShiftData done [00:04:34]requested_item shift.sale.total_cash is exist - process it [00:04:34]requested_item shift.sale_refund.total is exist - process it [00:04:34]requested_item shift.sale_refund.total_cash is exist - process it [00:04:34]requested_item shift.buy.total is exist - process it [00:04:34]requested_item shift.buy.total_cash is exist - process it [00:04:34]produce_requested_data done [00:04:34]produce_requested_data return {"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.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:04:34]process_action_free get_value [00:04:34]json_value_free [00:04:34]json_value_free done [00:04:34]process_json_proto returns [00:04:34]Send response to host [00:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31679480.53,"fm.sale_refund.total":6198.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:04:34]free response buf [00:04:34]execute_script done [00:04:34]execute_script returns [00:04:34]free content buf [00:04:34]Sock 7.Close socket [00:04:34]Sock 7.Thread stoped [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:06]accept exits with 9 [00:08:06]New connection [00:08:06]New thread 3066670436 created [00:08:06]Thread 3066813796 joined [00:08:06]Waiting for new connection... [00:08:06] Sock 9.Parse request [00:08:06]Sock 9.Check first char [00:08:06]Sock 9.First char is OK [00:08:06]request: POST /json_proto HTTP/1.0 [00:08:06]Method: POST [00:08:06]URL: /json_proto [00:08:06]Method is POST - this is cgi request [00:08:06]url: /json_proto [00:08:06]query_string will be loaded in cgi processing [00:08:06]execute_cgi json_proto POST (null) [00:08:06]execute_cgi path=json_proto method=POST [00:08:06]POST find Content-Length [00:08:06]Host: 172.17.56.67:8080 [00:08:06]Content-Length: 677 [00:08:06]Content-Type: application/json [00:08:06] [00:08:06]POST finish read [00:08:06]Found Content-Length = 677 [00:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.490, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:06]execute_script... [00:08:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.490, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:06]POST & json_proto [00:08:06]process_json_proto [00:08:06]json parsed OK: [00:08:06]protocol is kg_v1.0 [00:08:06]action value=close_receipt [00:08:06]process_action close_receipt [00:08:06]cmd_close_receipt [00:08:06]MH_GetDate [00:08:06]Write to MH i2c: F0 00 00 E7 8A 60 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: F0 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: F0 09 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: F0 09 00 E7 8A 00 7B 8F B9 65 26 5D 9E 65 17 [00:08:06]GetLastDocTimeStamp 1706659486 [00:08:06]current date 1706659707 [00:08:06]FM_GetShiftState [00:08:06]SAM_PROTO_GetShiftState [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 13 01 00 [00:08:06]Write to MH i2c: E2 08 00 E8 8A 80 13 01 00 00 00 00 00 EF [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 0E 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 0E 00 E8 8A 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 45 [00:08:06]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_GetShiftState done [00:08:06]FM_GetShiftState done [00:08:06]opened in 1706659486 [00:08:06]opened+sec_in_day 1706745886 [00:08:06]quantity*price = 15014 [00:08:06]sum+1 = 15016 [00:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 1 31.01.2024 00:08 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49276 ФПД: 272392893089783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T000827&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49276&fm=272392893089783&tin=02508201610067®Number=0000000000092723&sum=15000 [00:08:07]StoreToDocumentArchive [00:08:07]shift 247 fd 49276 [00:08:07]save to /storage/0247/doc_00049276 [00:08:07]save last doc name /storage/0247/doc_00049276 to /storage/kkm_last_doc_name [00:08:07]save OK [00:08:07]Clear old archive folders... [00:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:08:07]tlvbuf is 013B8A60 [00:08:07]SAM_PROTO_ClearQueue [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 09 00 00 [00:08:07]Write to MH i2c: E2 08 00 F5 8A 80 09 00 00 00 00 00 00 F1 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 F5 8A 00 90 00 F3 [00:08:07]RAPDU: 90 00 [00:08:07]wFMCommunicate OK [00:08:07]SAM_PROTO_ClearQueue done [00:08:07]KKMCreateOFDPacket [00:08:07]OFDProtocolAddRootSTLVToBuf [00:08:07]FM_MakeSignedData [00:08:07]FM_MakeSignedData [00:08:07]SAM_PROTO_SignData [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 0D 01 02 [00:08:07]Write to MH i2c: E2 08 00 F6 8A 80 0D 01 02 00 00 00 00 F9 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 F6 8A 00 90 00 F4 [00:08:07]RAPDU: 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=255 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 7B 8F B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C C0 00 00 35 04 06 00 F7 [00:08:07]Write to MH i2c: E2 02 01 F7 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 7B 8F B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C C0 00 00 35 04 06 00 F7 00 00 00 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 F7 8A 00 90 00 F5 [00:08:07]RAPDU: 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=10 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 0D 02 02 05 BD 69 A1 C7 F7 [00:08:07]Write to MH i2c: E2 0D 00 F8 8A 80 0D 02 02 05 00 BD 69 A1 C7 F7 00 00 8B [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 F8 8A 00 90 00 F6 [00:08:07]RAPDU: 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 0D 03 02 [00:08:07]Write to MH i2c: E2 08 00 F9 8A 80 0D 03 02 00 00 00 00 FE [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 0B 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 0B 00 F9 8A 00 1E FD C3 C7 2B 5C 80 D1 90 00 7C [00:08:07]RAPDU: 1E FD C3 C7 2B 5C 80 D1 90 00 [00:08:07]wFMCommunicate OK [00:08:07]SAM_PROTO_SignData done [00:08:07]FM_MakeSignedData done [00:08:07]CreateOFDProtocolMessage [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 11 00 00 [00:08:07]Write to MH i2c: E2 08 00 FA 8A 80 11 00 00 00 00 00 00 FE [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 17 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 17 00 FA 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4B [00:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:08:07]wFMCommunicate OK [00:08:07]CreateOFDProtocolMessage done [00:08:07]OFDSenderStorePacket 49276 [00:08:07]StoreOFDPacket docnum=49276 [00:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 16 91 07 01 24 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 7B 8F B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C C0 00 00 35 04 06 00 F7 BD 69 A1 C7 F7 1E FD C3 C7 2B 5C 80 D1 [00:08:07]CheckFolder [00:08:07]dirname=/storage/ofd_packets [00:08:07]CheckFolder done [00:08:07]ProducePacketName [00:08:07]name=ofd_packets/00049276 [00:08:07]NVStorageSaveData ofd_packets/00049276 [00:08:07]File name is /storage/ofd_packets/00049276 [00:08:07]Write 301 bytes [00:08:07]NVStorageSaveData done [00:08:07]OFDSenderStorePacket done [00:08:07]KKMCreateOFDPacket done [00:08:07]NVStorageSaveData kkm_last_timestamp [00:08:07]File name is /storage/kkm_last_timestamp [00:08:07]Write 4 bytes [00:08:07]NVStorageSaveData done [00:08:07]ExternCall_PrintAddStr [00:08:07]wPrintStart [00:08:07]Write to MH i2c: 01 00 00 FB 8A 85 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 07 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 07 00 FB 8A 00 00 00 00 00 FF 0F 9A [00:08:07]RasterBufferAndPrint [00:08:07]line Счет N : (1)216379 [00:08:07]line ИНН: 02508201610067 [00:08:07]line Контрольно-Кассовый Чек [00:08:07]line ПРОДАЖА [00:08:07]line ТРК (МРК, ГНК) : 12 [00:08:07]line Товар: 2710124130 [00:08:07]line Аи-92-К-5 [00:08:07]line 2.490 * 60.30 [00:08:07]line = 150.15 [00:08:07]line НДС 12% НСП 1% [00:08:07]line > о реализуемом товаре [00:08:07]line ОКРУГЛЕНИЕ: -0.15 [00:08:07]line ИТОГО: 150.00 [00:08:07]line Внесено: 150.00 [00:08:07]line СДАЧА: 0.00 [00:08:07]line НСП 1% : 1.33 [00:08:07]line НДС 12% : 15.94 [00:08:07]line Наличными: 150.00 [00:08:07]line Безнал.: 0.00 [00:08:07]line Место: АЗС № 102 "Партнер Нефть" [00:08:07]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:08:07]line СНО: Общий режим [00:08:07]line Чек 1 31.01.2024 00:08 [00:08:07]line Смена: 247 ФФД: 1.0 [00:08:07]line ЗНМ: 0300000040 [00:08:07]line РНМ: 0000000000092723 [00:08:07]line Версия ККМ: 001 [00:08:07]line ФМ: 0000000000875060 [00:08:07]line ФД: 49276 [00:08:07]line ФПД: 272392893089783 [00:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T000827&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49276&fm=272392893089783&tin=02508201610067®Number=0000000000092723&sum=15000 [00:08:08]OFD Sender: Processing packet 49276 [packets to send 12, broken 11] [00:08:08]ProducePacketName [00:08:08]name=ofd_packets/00049276 [00:08:08]OFD Sender: To server: pG, [00:08:08]CommunicateWithHost lk.salyk.kg:30040 [00:08:08]ConnectInit lk.salyk.kg [00:08:08]written 0, free lines is 4095 [00:08:08]Connected sock=10 [00:08: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 36 30 0F 01 00 00 16 91 07 01 24 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 7B 8F B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C C0 00 00 35 04 06 00 F7 BD 69 A1 C7 F7 1E FD C3 C7 2B 5C 80 D1 [00:08: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 36 30 4F 00 00 00 32 F8 47 00 1C 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 36 30 10 04 04 00 7C C0 00 00 F4 03 04 00 6F 3B B9 65 B6 04 01 00 00 73 59 EF 64 02 8A 1E D0 [00:08:08]CommunicateWithHost err = 0 [00:08:08]CheckOFDResponse [00:08:08]1017 (14) - 77093643461234 [00:08:08]1041 (16) - 0000000000875060 [00:08:08]1040 (4) - 49276 [00:08:08]1012 (4) - 30.01.2024 18:09 [00:08:08]1206 (1) - 0 [00:08:08]OFD Sender: Remove packet 49276 [00:08:08]ProducePacketName [00:08:08]name=ofd_packets/00049276 [00:08:08]NVStorageDeleteData [00:08:08]Write to MH i2c: 01 00 00 26 8B B1 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: 01 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: 01 07 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: 01 07 00 26 8B 00 00 00 00 00 F3 0C B7 [00:08:08]RasterBufferAndPrint [00:08:08]line [00:08:08]line [00:08:08]line [00:08:08]line [00:08:08]line [00:08:08]written 0, free lines is 3321 [00:08:08]MH_Cut [00:08:08]Write to MH i2c: D1 01 00 2D 8B 01 8A [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: D1 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: D1 01 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: D1 01 00 2D 8B 00 89 [00:08:08]Write to MH i2c: 01 00 00 2E 8B B9 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:09]OFD Sender: No OFD packet to send [00:08:09]*** Cut start [00:08:09]*** Partial cut [00:08:09]*** CUTSNS_PIN = 1 [00:08:09]*** CUTSNS_PIN = 0 [00:08:09]*** Brake cut motor [00:08:09]Read from MH i2c: 01 [00:08:09]MH_I2C_Read... [00:08:09]*** Stop cut motor [00:08:09]*** Cut end [00:08:09]Read from MH i2c: 01 07 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: 01 07 00 2E 8B 00 00 00 00 00 FF 0F CE [00:08:09]process_action close_receipt done [00:08:09]requested_data is exist [00:08:09]produce_requested_data [00:08:09]requested_item fm.sn is exist - process it [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 11 00 00 [00:08:09]Write to MH i2c: E2 08 00 2F 8B 80 11 00 00 00 00 00 00 34 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:09]Read from MH i2c: E2 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 17 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 17 00 2F 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 81 [00:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:08:09]wFMCommunicate OK [00:08:09]requested_item fd.num is exist - process it [00:08:09]SAM_PROTO_GetFieldsCounters [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 13 00 00 [00:08:09]Write to MH i2c: E2 08 00 30 8B 80 13 00 00 00 00 00 00 37 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 30 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7C C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [00:08: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7C C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetFieldsCounters done [00:08:10]requested_item shift.num is exist - process it [00:08:10]requested_item shift.opened is exist - process it [00:08:10]req_shift_opened [00:08:10]FM_GetShiftState [00:08:10]SAM_PROTO_GetShiftState [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 01 00 [00:08:10]Write to MH i2c: E2 08 00 31 8B 80 13 01 00 00 00 00 00 39 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 31 8B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 8F [00:08:10]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetShiftState done [00:08:10]FM_GetShiftState done [00:08:10]req_shift_opened done [00:08:10]requested_item shift.open_date is exist - process it [00:08:10]req_shift_open_date [00:08:10]req_shift_open_date done [00:08:10]produce_requested_data done [00:08:10]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49276,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [00:08:10]process_action_free close_receipt [00:08:10]json_value_free [00:08:10]json_value_free done [00:08:10]process_json_proto returns [00:08:10]Send response to host [00:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49276,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [00:08:10]free response buf [00:08:10]execute_script done [00:08:10]execute_script returns [00:08:10]free content buf [00:08:10]Sock 9.Close socket [00:08:10]Sock 9.Thread stoped [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:27]accept exits with 7 [00:11:27]New connection [00:11:27]New thread 3066813796 created [00:11:27]Thread 3066670436 joined [00:11:27]Waiting for new connection... [00:11:27] Sock 7.Parse request [00:11:27]Sock 7.Check first char [00:11:27]Sock 7.First char is OK [00:11:27]request: POST /json_proto HTTP/1.0 [00:11:27]Method: POST [00:11:27]URL: /json_proto [00:11:27]Method is POST - this is cgi request [00:11:27]url: /json_proto [00:11:27]query_string will be loaded in cgi processing [00:11:27]execute_cgi json_proto POST (null) [00:11:27]execute_cgi path=json_proto method=POST [00:11:27]POST find Content-Length [00:11:27]Host: 172.17.56.67:8080 [00:11:27]Content-Length: 670 [00:11:27]Content-Type: application/json [00:11:27] [00:11:27]POST finish read [00:11:27]Found Content-Length = 670 [00:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 0.020, "sum" : 1.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:27]execute_script... [00:11:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 0.020, "sum" : 1.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:27]POST & json_proto [00:11:27]process_json_proto [00:11:27]json parsed OK: [00:11:27]protocol is kg_v1.0 [00:11:27]action value=close_receipt [00:11:27]process_action close_receipt [00:11:27]cmd_close_receipt [00:11:27]MH_GetDate [00:11:27]Write to MH i2c: F0 00 00 32 8B AC [00:11:27]Write i2c OK [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: F0 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: F0 09 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: F0 09 00 32 8B 00 44 90 B9 65 26 5D 9E 65 2D [00:11:27]GetLastDocTimeStamp 1706659707 [00:11:27]current date 1706659908 [00:11:27]FM_GetShiftState [00:11:27]SAM_PROTO_GetShiftState [00:11:27]wFMCommunicate request_size=4 [00:11:27]MH_SAM_APDU [00:11:27]CAPDU: 80 13 01 00 [00:11:27]Write to MH i2c: E2 08 00 33 8B 80 13 01 00 00 00 00 00 3B [00:11:27]Write i2c OK [00:11:27]MH_I2C_Read... [00:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:27]Read from MH i2c: E2 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 0E 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 0E 00 33 8B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 91 [00:11:27]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [00:11:27]wFMCommunicate OK [00:11:27]SAM_PROTO_GetShiftState done [00:11:27]FM_GetShiftState done [00:11:27]opened in 1706659486 [00:11:27]opened+sec_in_day 1706745886 [00:11:27]quantity*price = 120 [00:11:27]sum+1 = 122 [00:11:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1.00 Внесено: 65.00 СДАЧА: 64.00 НСП 1% : 0.01 НДС 12% : 0.13 Наличными: 1.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 2 31.01.2024 00:11 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49277 ФПД: 211786386497112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T001148&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49277&fm=211786386497112&tin=02508201610067®Number=0000000000092723&sum=100 [00:11:28]StoreToDocumentArchive [00:11:28]shift 247 fd 49277 [00:11:28]save to /storage/0247/doc_00049277 [00:11:28]save last doc name /storage/0247/doc_00049277 to /storage/kkm_last_doc_name [00:11:28]save OK [00:11:28]Clear old archive folders... [00:11:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:11:28]tlvbuf is 013848F0 [00:11:28]SAM_PROTO_ClearQueue [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 09 00 00 [00:11:28]Write to MH i2c: E2 08 00 40 8B 80 09 00 00 00 00 00 00 3D [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 03 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 03 00 40 8B 00 90 00 3F [00:11:28]RAPDU: 90 00 [00:11:28]wFMCommunicate OK [00:11:28]SAM_PROTO_ClearQueue done [00:11:28]KKMCreateOFDPacket [00:11:28]OFDProtocolAddRootSTLVToBuf [00:11:28]FM_MakeSignedData [00:11:28]FM_MakeSignedData [00:11:28]SAM_PROTO_SignData [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 0D 01 02 [00:11:28]Write to MH i2c: E2 08 00 41 8B 80 0D 01 02 00 00 00 00 45 [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 03 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 03 00 41 8B 00 90 00 40 [00:11:29]RAPDU: 90 00 [00:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=255 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 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 02 00 00 00 F4 03 04 00 44 90 B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D C0 00 00 35 04 06 00 C0 [00:11:29]Write to MH i2c: E2 02 01 42 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 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 02 00 00 00 F4 03 04 00 44 90 B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D C0 00 00 35 04 06 00 C0 00 00 37 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]OFD Sender: No OFD packet to send [00:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 03 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 03 00 42 8B 00 90 00 41 [00:11:29]RAPDU: 90 00 [00:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=10 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 0D 02 02 05 9E 5C 55 DE 58 [00:11:29]Write to MH i2c: E2 0D 00 43 8B 80 0D 02 02 05 00 9E 5C 55 DE 58 00 00 D7 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 03 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 03 00 43 8B 00 90 00 42 [00:11:29]RAPDU: 90 00 [00:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 0D 03 02 [00:11:29]Write to MH i2c: E2 08 00 44 8B 80 0D 03 02 00 00 00 00 4A [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 0B 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 0B 00 44 8B 00 6C CB 34 62 44 6C C5 7F 90 00 0C [00:11:29]RAPDU: 6C CB 34 62 44 6C C5 7F 90 00 [00:11:29]wFMCommunicate OK [00:11:29]SAM_PROTO_SignData done [00:11:29]FM_MakeSignedData done [00:11:29]CreateOFDProtocolMessage [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 11 00 00 [00:11:29]Write to MH i2c: E2 08 00 45 8B 80 11 00 00 00 00 00 00 4A [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 17 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 17 00 45 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 97 [00:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:11:29]wFMCommunicate OK [00:11:29]CreateOFDProtocolMessage done [00:11:29]OFDSenderStorePacket 49277 [00:11:29]StoreOFDPacket docnum=49277 [00:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 2C BC 07 01 9B D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 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 02 00 00 00 F4 03 04 00 44 90 B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D C0 00 00 35 04 06 00 C0 9E 5C 55 DE 58 6C CB 34 62 44 6C C5 7F [00:11:29]CheckFolder [00:11:29]dirname=/storage/ofd_packets [00:11:29]CheckFolder done [00:11:29]ProducePacketName [00:11:29]name=ofd_packets/00049277 [00:11:29]NVStorageSaveData ofd_packets/00049277 [00:11:29]File name is /storage/ofd_packets/00049277 [00:11:29]Write 301 bytes [00:11:29]NVStorageSaveData done [00:11:29]OFDSenderStorePacket done [00:11:29]KKMCreateOFDPacket done [00:11:29]NVStorageSaveData kkm_last_timestamp [00:11:29]File name is /storage/kkm_last_timestamp [00:11:29]Write 4 bytes [00:11:29]NVStorageSaveData done [00:11:29]ExternCall_PrintAddStr [00:11:29]wPrintStart [00:11:29]Write to MH i2c: 01 00 00 46 8B D1 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: 01 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: 01 07 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: 01 07 00 46 8B 00 00 00 00 00 FF 0F E6 [00:11:29]RasterBufferAndPrint [00:11:29]line Счет N : (1)216380 [00:11:29]line ИНН: 02508201610067 [00:11:29]line Контрольно-Кассовый Чек [00:11:29]line ПРОДАЖА [00:11:29]line ТРК (МРК, ГНК) : 12 [00:11:29]line Товар: 2710124130 [00:11:29]line Аи-92-К-5 [00:11:29]line 0.020 * 60.30 [00:11:29]line = 1.21 [00:11:29]line НДС 12% НСП 1% [00:11:29]line > о реализуемом товаре [00:11:29]line ОКРУГЛЕНИЕ: -0.21 [00:11:29]line ИТОГО: 1.00 [00:11:29]line Внесено: 65.00 [00:11:29]line СДАЧА: 64.00 [00:11:29]line НСП 1% : 0.01 [00:11:29]line НДС 12% : 0.13 [00:11:29]line Наличными: 1.00 [00:11:29]line Безнал.: 0.00 [00:11:29]line Место: АЗС № 102 "Партнер Нефть" [00:11:29]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:11:29]line СНО: Общий режим [00:11:29]line Чек 2 31.01.2024 00:11 [00:11:29]line Смена: 247 ФФД: 1.0 [00:11:29]line ЗНМ: 0300000040 [00:11:29]line РНМ: 0000000000092723 [00:11:29]line Версия ККМ: 001 [00:11:29]line ФМ: 0000000000875060 [00:11:29]line ФД: 49277 [00:11:29]line ФПД: 211786386497112 [00:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T001148&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49277&fm=211786386497112&tin=02508201610067®Number=0000000000092723&sum=100 [00:11:29]written 0, free lines is 4095 [00:11:29]OFD Sender: Processing packet 49277 [packets to send 12, broken 11] [00:11:29]ProducePacketName [00:11:29]name=ofd_packets/00049277 [00:11:29]OFD Sender: To server: pG, [00:11:29]CommunicateWithHost lk.salyk.kg:30040 [00:11:29]ConnectInit lk.salyk.kg [00:11:29]Connected sock=10 [00:11:29]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 36 30 0F 01 00 00 2C BC 07 01 9B D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 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 02 00 00 00 F4 03 04 00 44 90 B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D C0 00 00 35 04 06 00 C0 9E 5C 55 DE 58 6C CB 34 62 44 6C C5 7F [00:11:29]Write to MH i2c: 01 00 00 71 8B FC [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: 01 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: 01 07 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: 01 07 00 71 8B 00 00 00 00 00 ED 0C FC [00:11:29]RasterBufferAndPrint [00:11:29]line [00:11:29]line [00:11:29]line [00:11:29]line [00:11:29]line [00:11:29]written 0, free lines is 3315 [00:11:29]MH_Cut [00:11:29]Write to MH i2c: D1 01 00 78 8B 01 D5 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: D1 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: D1 01 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: D1 01 00 78 8B 00 D4 [00:11:29]Write to MH i2c: 01 00 00 79 8B 04 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11: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 36 30 4F 00 00 00 88 EB 47 00 24 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D C0 00 00 F4 03 04 00 39 3C B9 65 B6 04 01 00 00 81 EC 10 54 AF 3B A6 BE [00:11:30]CommunicateWithHost err = 0 [00:11:30]CheckOFDResponse [00:11:30]1017 (14) - 77093643461234 [00:11:30]1041 (16) - 0000000000875060 [00:11:30]1040 (4) - 49277 [00:11:30]1012 (4) - 30.01.2024 18:13 [00:11:30]1206 (1) - 0 [00:11:30]OFD Sender: Remove packet 49277 [00:11:30]ProducePacketName [00:11:30]name=ofd_packets/00049277 [00:11:30]NVStorageDeleteData [00:11:30]OFD Sender: No OFD packet to send [00:11:30]*** Cut start [00:11:30]*** Partial cut [00:11:30]*** CUTSNS_PIN = 1 [00:11:30]*** CUTSNS_PIN = 0 [00:11:30]*** Brake cut motor [00:11:31]Read from MH i2c: 01 [00:11:31]MH_I2C_Read... [00:11:31]*** Stop cut motor [00:11:31]*** Cut end [00:11:31]Read from MH i2c: 01 07 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: 01 07 00 79 8B 00 00 00 00 00 FF 0F 19 [00:11:31]process_action close_receipt done [00:11:31]requested_data is exist [00:11:31]produce_requested_data [00:11:31]requested_item fm.sn is exist - process it [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 11 00 00 [00:11:31]Write to MH i2c: E2 08 00 7A 8B 80 11 00 00 00 00 00 00 7F [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 17 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 17 00 7A 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CC [00:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:11:31]wFMCommunicate OK [00:11:31]requested_item fd.num is exist - process it [00:11:31]SAM_PROTO_GetFieldsCounters [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 13 00 00 [00:11:31]Write to MH i2c: E2 08 00 7B 8B 80 13 00 00 00 00 00 00 82 [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 62 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 62 00 7B 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7D C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [00:11: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7D C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:31]wFMCommunicate OK [00:11:31]SAM_PROTO_GetFieldsCounters done [00:11:31]requested_item shift.num is exist - process it [00:11:31]requested_item shift.opened is exist - process it [00:11:31]req_shift_opened [00:11:31]FM_GetShiftState [00:11:31]SAM_PROTO_GetShiftState [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 13 01 00 [00:11:31]Write to MH i2c: E2 08 00 7C 8B 80 13 01 00 00 00 00 00 84 [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 0E 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 0E 00 7C 8B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DA [00:11:31]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [00:11:31]wFMCommunicate OK [00:11:31]SAM_PROTO_GetShiftState done [00:11:31]FM_GetShiftState done [00:11:31]req_shift_opened done [00:11:31]requested_item shift.open_date is exist - process it [00:11:31]req_shift_open_date [00:11:31]req_shift_open_date done [00:11:31]produce_requested_data done [00:11:31]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49277,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [00:11:31]process_action_free close_receipt [00:11:31]json_value_free [00:11:31]json_value_free done [00:11:31]process_json_proto returns [00:11:31]Send response to host [00:11:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49277,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [00:11:31]free response buf [00:11:31]execute_script done [00:11:31]execute_script returns [00:11:31]free content buf [00:11:31]Sock 7.Close socket [00:11:31]Sock 7.Thread stoped [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:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:04]accept exits with 9 [00:21:04]New connection [00:21:04]New thread 3066670436 created [00:21:04]Thread 3066813796 joined [00:21:04]Waiting for new connection... [00:21:04] Sock 9.Parse request [00:21:04]Sock 9.Check first char [00:21:04]Sock 9.First char is OK [00:21:04]request: POST /json_proto HTTP/1.0 [00:21:04]Method: POST [00:21:04]URL: /json_proto [00:21:04]Method is POST - this is cgi request [00:21:04]url: /json_proto [00:21:04]query_string will be loaded in cgi processing [00:21:04]execute_cgi json_proto POST (null) [00:21:04]execute_cgi path=json_proto method=POST [00:21:04]POST find Content-Length [00:21:04]Host: 172.17.56.67:8080 [00:21:04]Content-Length: 670 [00:21:04]Content-Type: application/json [00:21:04] [00:21:04]POST finish read [00:21:04]Found Content-Length = 670 [00:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 0.010, "sum" : 0.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:04]execute_script... [00:21:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 0.010, "sum" : 0.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:04]POST & json_proto [00:21:04]process_json_proto [00:21:04]json parsed OK: [00:21:04]protocol is kg_v1.0 [00:21:04]action value=close_receipt [00:21:04]process_action close_receipt [00:21:04]cmd_close_receipt [00:21:04]MH_GetDate [00:21:04]Write to MH i2c: F0 00 00 7D 8B F7 [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: F0 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: F0 09 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: F0 09 00 7D 8B 00 85 92 B9 65 26 5D 9E 65 BB [00:21:04]GetLastDocTimeStamp 1706659908 [00:21:04]current date 1706660485 [00:21:04]FM_GetShiftState [00:21:04]SAM_PROTO_GetShiftState [00:21:04]wFMCommunicate request_size=4 [00:21:04]MH_SAM_APDU [00:21:04]CAPDU: 80 13 01 00 [00:21:04]Write to MH i2c: E2 08 00 7E 8B 80 13 01 00 00 00 00 00 86 [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:04]Read from MH i2c: E2 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 0E 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 0E 00 7E 8B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DC [00:21:04]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [00:21:04]wFMCommunicate OK [00:21:04]SAM_PROTO_GetShiftState done [00:21:04]FM_GetShiftState done [00:21:04]opened in 1706659486 [00:21:04]opened+sec_in_day 1706745886 [00:21:04]quantity*price = 60 [00:21:04]sum+1 = 61 [00:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 0.00 Внесено: 65.00 СДАЧА: 65.00 НСП 1% : 0.00 НДС 12% : 0.06 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 3 31.01.2024 00:21 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49278 ФПД: 146812557960394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T002126&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49278&fm=146812557960394&tin=02508201610067®Number=0000000000092723&sum=0 [00:21:05]StoreToDocumentArchive [00:21:05]shift 247 fd 49278 [00:21:05]save to /storage/0247/doc_00049278 [00:21:05]save last doc name /storage/0247/doc_00049278 to /storage/kkm_last_doc_name [00:21:05]save OK [00:21:05]Clear old archive folders... [00:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:21:05]tlvbuf is 011E5E60 [00:21:05]SAM_PROTO_ClearQueue [00:21:05]wFMCommunicate request_size=4 [00:21:05]MH_SAM_APDU [00:21:05]CAPDU: 80 09 00 00 [00:21:05]Write to MH i2c: E2 08 00 8B 8B 80 09 00 00 00 00 00 00 88 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:05]Read from MH i2c: E2 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 03 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 03 00 8B 8B 00 90 00 8A [00:21:05]RAPDU: 90 00 [00:21:05]wFMCommunicate OK [00:21:05]SAM_PROTO_ClearQueue done [00:21:05]KKMCreateOFDPacket [00:21:05]OFDProtocolAddRootSTLVToBuf [00:21:05]FM_MakeSignedData [00:21:05]FM_MakeSignedData [00:21:05]SAM_PROTO_SignData [00:21:05]wFMCommunicate request_size=4 [00:21:05]MH_SAM_APDU [00:21:05]CAPDU: 80 0D 01 02 [00:21:05]Write to MH i2c: E2 08 00 8C 8B 80 0D 01 02 00 00 00 00 90 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 8C 8B 00 90 00 8B [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=255 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3C 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 06 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 03 00 00 00 F4 03 04 00 86 92 B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E C0 00 00 35 04 06 00 85 [00:21:06]Write to MH i2c: E2 02 01 8D 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3C 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 06 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 03 00 00 00 F4 03 04 00 86 92 B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E C0 00 00 35 04 06 00 85 00 00 76 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]OFD Sender: No OFD packet to send [00:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 8D 8B 00 90 00 8C [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=10 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 0D 02 02 05 86 76 5D A4 CA [00:21:06]Write to MH i2c: E2 0D 00 8E 8B 80 0D 02 02 05 00 86 76 5D A4 CA 00 00 64 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 8E 8B 00 90 00 8D [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 0D 03 02 [00:21:06]Write to MH i2c: E2 08 00 8F 8B 80 0D 03 02 00 00 00 00 95 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 0B 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 0B 00 8F 8B 00 BB 77 A2 4E AF C3 31 1B 90 00 76 [00:21:06]RAPDU: BB 77 A2 4E AF C3 31 1B 90 00 [00:21:06]wFMCommunicate OK [00:21:06]SAM_PROTO_SignData done [00:21:06]FM_MakeSignedData done [00:21:06]CreateOFDProtocolMessage [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 11 00 00 [00:21:06]Write to MH i2c: E2 08 00 90 8B 80 11 00 00 00 00 00 00 95 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 17 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 17 00 90 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E2 [00:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:21:06]wFMCommunicate OK [00:21:06]CreateOFDProtocolMessage done [00:21:06]OFDSenderStorePacket 49278 [00:21:06]StoreOFDPacket docnum=49278 [00:21:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 7B B2 07 01 FC C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3C 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 06 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 03 00 00 00 F4 03 04 00 86 92 B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E C0 00 00 35 04 06 00 85 86 76 5D A4 CA BB 77 A2 4E AF C3 31 1B [00:21:06]CheckFolder [00:21:06]dirname=/storage/ofd_packets [00:21:06]CheckFolder done [00:21:06]ProducePacketName [00:21:06]name=ofd_packets/00049278 [00:21:06]NVStorageSaveData ofd_packets/00049278 [00:21:06]File name is /storage/ofd_packets/00049278 [00:21:06]Write 301 bytes [00:21:06]NVStorageSaveData done [00:21:06]OFDSenderStorePacket done [00:21:06]KKMCreateOFDPacket done [00:21:06]NVStorageSaveData kkm_last_timestamp [00:21:06]File name is /storage/kkm_last_timestamp [00:21:06]Write 4 bytes [00:21:06]NVStorageSaveData done [00:21:06]ExternCall_PrintAddStr [00:21:06]wPrintStart [00:21:06]Write to MH i2c: 01 00 00 91 8B 1C [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: 01 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: 01 07 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: 01 07 00 91 8B 00 00 00 00 00 FF 0F 31 [00:21:06]RasterBufferAndPrint [00:21:06]line Счет N : (1)216381 [00:21:06]line ИНН: 02508201610067 [00:21:06]line Контрольно-Кассовый Чек [00:21:06]line ПРОДАЖА [00:21:06]line ТРК (МРК, ГНК) : 12 [00:21:06]line Товар: 2710124130 [00:21:06]line Аи-92-К-5 [00:21:06]line 0.010 * 60.30 [00:21:06]line = 0.60 [00:21:06]line НДС 12% НСП 1% [00:21:06]line > о реализуемом товаре [00:21:06]line ОКРУГЛЕНИЕ: -0.60 [00:21:06]line ИТОГО: 0.00 [00:21:06]line Внесено: 65.00 [00:21:06]line СДАЧА: 65.00 [00:21:06]line НСП 1% : 0.00 [00:21:06]line НДС 12% : 0.06 [00:21:06]line Наличными: 0.00 [00:21:06]line Безнал.: 0.00 [00:21:06]line Место: АЗС № 102 "Партнер Нефть" [00:21:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:21:06]line СНО: Общий режим [00:21:06]line Чек 3 31.01.2024 00:21 [00:21:06]line Смена: 247 ФФД: 1.0 [00:21:06]line ЗНМ: 0300000040 [00:21:06]line РНМ: 0000000000092723 [00:21:06]line Версия ККМ: 001 [00:21:06]line ФМ: 0000000000875060 [00:21:06]line ФД: 49278 [00:21:06]line ФПД: 146812557960394 [00:21:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T002126&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49278&fm=146812557960394&tin=02508201610067®Number=0000000000092723&sum=0 [00:21:06]OFD Sender: Processing packet 49278 [packets to send 12, broken 11] [00:21:06]ProducePacketName [00:21:06]name=ofd_packets/00049278 [00:21:06]OFD Sender: To server: pG, [00:21:06]CommunicateWithHost lk.salyk.kg:30040 [00:21:06]ConnectInit lk.salyk.kg [00:21:06]written 0, free lines is 4095 [00:21:06]Connected sock=10 [00:21:06]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 36 30 0F 01 00 00 7B B2 07 01 FC C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3C 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 06 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 03 00 00 00 F4 03 04 00 86 92 B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E C0 00 00 35 04 06 00 85 86 76 5D A4 CA BB 77 A2 4E AF C3 31 1B [00:21: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 36 30 4F 00 00 00 F2 E3 47 00 A5 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 36 30 10 04 04 00 7E C0 00 00 F4 03 04 00 7A 3E B9 65 B6 04 01 00 00 3E 2F 6F D7 E4 C6 6A C3 [00:21:07]CommunicateWithHost err = 0 [00:21:07]CheckOFDResponse [00:21:07]1017 (14) - 77093643461234 [00:21:07]1041 (16) - 0000000000875060 [00:21:07]1040 (4) - 49278 [00:21:07]1012 (4) - 30.01.2024 18:22 [00:21:07]1206 (1) - 0 [00:21:07]OFD Sender: Remove packet 49278 [00:21:07]ProducePacketName [00:21:07]name=ofd_packets/00049278 [00:21:07]NVStorageDeleteData [00:21:07]Write to MH i2c: 01 00 00 BC 8B 47 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: 01 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: 01 07 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: 01 07 00 BC 8B 00 00 00 00 00 F0 0C 4A [00:21:07]RasterBufferAndPrint [00:21:07]line [00:21:07]line [00:21:07]line [00:21:07]line [00:21:07]line [00:21:07]written 0, free lines is 3318 [00:21:07]MH_Cut [00:21:07]Write to MH i2c: D1 01 00 C3 8B 01 20 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: D1 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: D1 01 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: D1 01 00 C3 8B 00 1F [00:21:07]Write to MH i2c: 01 00 00 C4 8B 4F [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]OFD Sender: No OFD packet to send [00:21:07]*** Cut start [00:21:07]*** Partial cut [00:21:07]*** CUTSNS_PIN = 1 [00:21:07]*** CUTSNS_PIN = 0 [00:21:08]*** Brake cut motor [00:21:08]Read from MH i2c: 01 [00:21:08]MH_I2C_Read... [00:21:08]*** Stop cut motor [00:21:08]*** Cut end [00:21:08]Read from MH i2c: 01 07 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: 01 07 00 C4 8B 00 00 00 00 00 FF 0F 64 [00:21:08]process_action close_receipt done [00:21:08]requested_data is exist [00:21:08]produce_requested_data [00:21:08]requested_item fm.sn is exist - process it [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 11 00 00 [00:21:08]Write to MH i2c: E2 08 00 C5 8B 80 11 00 00 00 00 00 00 CA [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 17 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 17 00 C5 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 17 [00:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:21:08]wFMCommunicate OK [00:21:08]requested_item fd.num is exist - process it [00:21:08]SAM_PROTO_GetFieldsCounters [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 13 00 00 [00:21:08]Write to MH i2c: E2 08 00 C6 8B 80 13 00 00 00 00 00 00 CD [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 62 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 62 00 C6 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7E C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [00:21: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 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7E C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:08]wFMCommunicate OK [00:21:08]SAM_PROTO_GetFieldsCounters done [00:21:08]requested_item shift.num is exist - process it [00:21:08]requested_item shift.opened is exist - process it [00:21:08]req_shift_opened [00:21:08]FM_GetShiftState [00:21:08]SAM_PROTO_GetShiftState [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 13 01 00 [00:21:08]Write to MH i2c: E2 08 00 C7 8B 80 13 01 00 00 00 00 00 CF [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 0E 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 0E 00 C7 8B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 25 [00:21:08]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [00:21:08]wFMCommunicate OK [00:21:08]SAM_PROTO_GetShiftState done [00:21:08]FM_GetShiftState done [00:21:08]req_shift_opened done [00:21:08]requested_item shift.open_date is exist - process it [00:21:08]req_shift_open_date [00:21:08]req_shift_open_date done [00:21:08]produce_requested_data done [00:21:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49278,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [00:21:08]process_action_free close_receipt [00:21:08]json_value_free [00:21:08]json_value_free done [00:21:08]process_json_proto returns [00:21:08]Send response to host [00:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49278,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [00:21:08]free response buf [00:21:08]execute_script done [00:21:08]execute_script returns [00:21:08]free content buf [00:21:08]Sock 9.Close socket [00:21:08]Sock 9.Thread stoped [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49: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:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]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:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]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:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]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:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send